Skip to content

MrPowerGamerBR/TemmieSC2KParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TemmieSC2KParser

A SimCity 2000 save file parser in Kotlin

Because why not? :)

Loading a save file and reading the city's name

(In this example I used "RETREAT.SC2" from SimCity 2000's City folder)

Code:

SC2KCity city = TemmieSC2KParser.loadCity(new File("path to sc2 file"));
System.out.println(city.getCityName());

Output:

Kathy's Retreat

You can also use Kotlin

Code:

var city = TemmieSC2KParser.loadCity(File("path to sc2 file"));
println(city.cityName);

Output:

Kathy's Retreat

Simple as that, have fun!

Thanks to...

Maven

You can use TemmieSC2KParser with Maven by using Jitpack. (sorry, I don't have a maven repo yet 😢)

<repositories>
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
    </repository>
</repositories>
<dependency>
    <groupId>com.github.MrPowerGamerBR</groupId>
	<artifactId>TemmieSC2KParser</artifactId>
	<version>-SNAPSHOT</version>
</dependency>

Dependencies

Guava

Why Temmie?

Why not Temmie?

About

🌆 A simple SimCity 2000 city parser in Kotlin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages