Edit savegame (.sav) files -1 reply

Please wait...

exodus_499

... soon to be "reconditioned"

50 XP

16th April 2007

0 Uploads

263 Posts

0 Threads

#1 10 years ago

I just started up legacy again (it's been a while), and played through until the mission "At The Gates", where I decided that I couldn't be bothered to go on through the exact same campaign again without having a little fun first :) So, I decided to have a go at replacing one of the ships I previously purchased with something else, perhaps a nebula class... No luck. No luck with anything in fact, the slightest change to the file results in loading a blank map with a fleet consisting of (I think) The USS Yorktown (ENT battleshipthing), the Constitution Enterprise (in the second slot?!), a minuteman and a miranda class ship. I reckoned that perhaps using a ship that was available in the era I was in might work, so I tried the same with the excelsior - replace "USS Constitution" and "f_constitution" (no caps, exactly like that) with "USS Excelsior" (the first name on the list) and "f_excelsior". No luck there, either. So I tried with notepad++'s Hex editor, looking at the characters immediately before, between and after each item... Nothing I can make sense of, only a seemingly randomized pattern of blanks and dots (which I think represent the same as the undefined boxes in plain old notepad...) which sometimes represent differing hexedecimal numbers... Basically, I'm stumped. Any ideas? (I'll post some screenshots if they're needed) Ah, there's one more thing I haven't tried - making the date and time when the file was last modified (when it autosaved) exactly the same, down to the nearest second. I'll test that tomorrow :nodding:




Guest

I didn't make it!

0 XP

 
#2 10 years ago

maybe you just cant.. i dont know you could edit the mission scripts to have a nebula in there..




exodus_499

... soon to be "reconditioned"

50 XP

16th April 2007

0 Uploads

263 Posts

0 Threads

#3 10 years ago

True, but it wouldn't be the same :) I'll keep trying, it's keeping me busy... Is it possible that something is saved elsewhere that it referrs to to check the files authenticity? I'm off to check that second idea now.




exodus_499

... soon to be "reconditioned"

50 XP

16th April 2007

0 Uploads

263 Posts

0 Threads

#4 10 years ago

Right, making the date and time the same doesn't work. How is it possible that it's not possible? I mean, my savegame can't be hardcoded into the exe or something like that, so what on earth can it be?




gdata

Who needs a user title?

50 XP

10th January 2007

0 Uploads

1,588 Posts

0 Threads

#5 10 years ago

no, but it might be some sort of compiled code, like the mission scripts. I took a look at it with the hex editor and found for example odf-filenames of the ships one has and the map, etc.. It's probably a merge of the map and the script including some Vector stuff (because Legacy HAS to save the exact position of the models).

You should try to contact ChessMess, he wrote most of the mission code for Legacy and maybe he also knows how the information is saved exactly.




exodus_499

... soon to be "reconditioned"

50 XP

16th April 2007

0 Uploads

263 Posts

0 Threads

#6 10 years ago

Contacting Chess Mess sounds like a good bet, I'll look into it. But why would legacy save the position of models - the file only needs to contain what the next mission is (because it saves between missions), the ships you have in your fleet and the amount of command points you have... That said, I don't see that value anywhere in plain text.




gdata

Who needs a user title?

50 XP

10th January 2007

0 Uploads

1,588 Posts

0 Threads

#7 10 years ago

It does not save just between missions. With eg. Keys of Legacy + you can launch autosaved games and continue with your mission(s)!




exodus_499

... soon to be "reconditioned"

50 XP

16th April 2007

0 Uploads

263 Posts

0 Threads

#8 10 years ago

Hmmmmm