StarCrawlers

StarCrawlers

View Stats:
Augmenti May 25, 2017 @ 3:39pm
Savegame editing?
Has anyone figured out the encoding on the savegame, to be able to edit it?

Thanks
< >
Showing 1-7 of 7 comments
LordBlade May 25, 2017 @ 4:39pm 
Don't know about that, but I'm sure you could grab a CheatEngine table for the game.
Ophite May 25, 2017 @ 6:09pm 
I've ruined more than one game using cheats too early. Hope no one gets something up and running until I get my first playthrough. Because, if there are cheats/edits, I will use them!

Path of least resistance and all. Stupid human nature.
FieserMoep May 25, 2017 @ 6:59pm 
Good thing then you have not found CheatEngine I guess.
Virtia May 25, 2017 @ 10:05pm 
Originally posted by Augmenti:
Has anyone figured out the encoding on the savegame, to be able to edit it?

Thanks
Was this the one you wanted to ask about, Augmenti? It's just a standard C# object dump through BinaryFormatter.

If you point ILSpy at Assembly-UnityScript.dll and poke around, you'll find the Game.DoAutoSave() method fairly trivially. A quick read points to Serializer.Save() as the main call. Somewhat annoyingly, there's JSON methods defined here indicating that the devs considered JSON-encoded saves (which are much more trivially hand-editable, as you know), but they're not used. Instead, the SaveBINARY() and LoadBINARY() methods are the ones in use.

If you've got rudimentary knowledge of C#, you should be able to bolt together a program leveraging the above-mentioned assembly -- just run LoadBINARY on your save file, then the provided SaveJSON to output in something legible. Edit the JSON, then reverse the process with LoadJSON and SaveBINARY to create a valid save file. Works easily.

If you don't have said rudimentary C# knowledge, then you're kinda ♥♥♥♥ out of luck unless someone nicer than I am wants to distribute a utility. Due to the nature of BinaryFormatter (eg, it needs to know about the object it's supposed to encode/decode, and the SaveData object is custom to this application), there's no handy web-based decoder I can point you at like with E:V.

That said, most relevant values (XP, credits, etc.) are trivially locateable and editable with a hex editor. Or live cheat engine for that matter. You could theoretically do item editing with this method, but it's reasonably dangerous and I haven't delved into the binary-encoded file layout that much since deserialization is so simple.
Last edited by Virtia; May 25, 2017 @ 10:09pm
Augmenti May 26, 2017 @ 5:51am 
Yes! Thanks very much, Virtia! The game is alot of fun, glad to see you noticed it too! :whiskeybottle:

Thanks to the other posters and yes I know about Cheat Engine. :VampireTongue:

Faction was the real issue and I'm still trying to understand it, which isn't really Trival. I think it's a great idea, just a little overwhelming atm. Sadly, I don't know enough about C# but there seems to be a live CE table atm. That being said, Virtia you still rank pretty high cause actually took the time to post. :sheriffsbadge:

If anyone wants the link, let me know I'll post it. I'm just worried, you know how Ophite gets around cookies and well tequla for that matter! :HappyVampire:
Last edited by Augmenti; May 26, 2017 @ 5:52am
FieserMoep May 26, 2017 @ 12:43pm 
What is your problem with faction?
Understanding them at all or how to cheat them?
Augmenti May 26, 2017 @ 3:18pm 
All good, now thanks for the reply.
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: May 25, 2017 @ 3:39pm
Posts: 7