The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => General UQM Discussion => Topic started by: jucce on December 17, 2009, 02:31:17 am



Title: Check out my UQM save game editor
Post by: jucce on December 17, 2009, 02:31:17 am
Hello. I'm currently trying to learn C# so I decided to create a save game editor for UQM for practice and as a small project. This is how it turned out.

(http://i50.tinypic.com/21o0e8l.jpg) (http://i46.tinypic.com/3446xrk.jpg)
UQM Save Game Editor (solidfiles.com) (http://solidfiles.com/d/LumQ)
UQM Save Game Editor (mediafire.com) (http://www.mediafire.com/download/s9kd132m81vc7d0/UQMEdit.zip)
UQM Save Game Editor (4shared.com) (http://www.4shared.com/zip/P-yYpylcba/UQMEdit.html)
UQM Save Game Editor (filesplat.com) (http://www.filesplat.com/.sasasa/shared/C59MJPY6GG7XK59ALM44IHIE2GLF1HXF----UQMEdit.zip)
UQM Save Game Editor (anonfiles.com) (https://anonfiles.com/file/f051b17a7b3e08a40e1d66dff1123996)
UQM Save Game Editor (fildirekt.se) (http://www.fildirekt.se/dl/1391660376.zip)

Maybe some people will find it useful and if there are any requests for features or comments I will gladly hear them.

EDIT: Latest version added.

EDIT2: Updated again. Note that some settings are read-only.

EDIT3: New version.

EDIT4: Update and new links.

2014-02-06: Moderator edit: updated links at the request of jucce


Title: Re: Check out my save game editor
Post by: Alvarin on December 17, 2009, 09:29:30 am
Just a thought - have you implemented in the code to check amount of fuel and crew is not beyond modules capacity?
If you're doing an editor already, do you plan on adding items and battlegroup options ?


Title: Re: Check out my save game editor
Post by: jucce on December 17, 2009, 01:26:18 pm
Just a thought - have you implemented in the code to check amount of fuel and crew is not beyond modules capacity?
Oh, I just tried setting the fuel and crew beyond the capacity of the modules and it did reset to the maximum capacity. I could add a warning if the user tries to do that.

If you're doing an editor already, do you plan on adding items and battlegroup options ?
I would love to do that but I simply haven't been able to figure out how that information is stored. Same goes for things like credits and date. They are there in the save file but if I change them they just reset when you start playing. I can change the symbols for the items when you view the save in the load-screen and also change the displayed date but the changes are just superficial and not persistant.

I've tried to make the user as free as possible to make changes. For example you could set you 5:th thruster to be a shiva furnace or your 1:st module to a lander. From tests it doesn't seem to do anything constructive except show up but I haven't tested everything comprehensively.

EDIT: Okay I made some changes to display the maximum supported by the modules, what do you think? I updated the first post with a link.


Title: Re: Check out my UQM save game editor
Post by: Zapotec on December 28, 2009, 09:25:11 am
Your server seems to be down.
Perhaps you could upload it to Mediafire or something similar?

I obtained the first revision of this from Rapidshare (the link was in Google's cache), and it looks pretty nice.

Edit: Thanks a bunch! Appreciate it :).


Title: Re: Check out my UQM save game editor
Post by: jucce on December 28, 2009, 09:58:28 am
Your server seems to be down.
Perhaps you could upload it to Mediafire or something similar?

I obtained the first revision of this from Rapidshare (the link was in Google's cache), and it looks pretty nice.
Alright I added some extra functioning servers and the latest version. What do you think?


Title: Re: Check out my UQM save game editor
Post by: Zapotec on December 28, 2009, 10:09:56 am
It's honestly very impressive; it is ridiculously detailed, and what I've tried out works perfectly.
Thanks for taking the time to release it for us to enjoy.

Good luck on figuring out credits and items.


Title: Re: Check out my UQM save game editor
Post by: jucce on December 29, 2009, 02:41:00 am
It's honestly very impressive; it is ridiculously detailed, and what I've tried out works perfectly.
Thanks. That sounds good. I tried making it work smoothly for the user. Do you have any experience in programing yourself? C# and .NET is really quite convenient to work in. Any ideas for improvements though?

Thanks for taking the time to release it for us to enjoy.

Good luck on figuring out credits and items.
Yeah that is the long term goal. I think I'll have to look more at the source of UQM than just compare save games to be able to do that. Some save information is really convenient and easy to edit but some is quite tricky it seems. The way the items (and ships) are read right now is basically for the summary data so if you change those only the icons in the save preview changes which is pretty pointless. Credits can be changed in the save but when you visit the Melnorme they just reset so obviously they are stored somewhere else too. Probably in the compressed harder to edit part.


Title: Re: Check out my UQM save game editor
Post by: meep-eep on December 29, 2009, 01:57:28 pm
To get you started: look at src/uqm/save.c in SVN (src/sc2code/save.c in 0.6.2). That's where the game information is stored to disk. SaveSummary() would be a good place to start.
Note the two types of functions: write_8() vs cwrite_8(). The latter writes the data in a compressed way.
All the cwrite_XX() methods call cwrite(), which is defined in libs/decomp/lzencode.c. Similarly, reading compressed data goes through cread(), defined in libs/decomp/lzdecode.c You should probably not try to comprehend the code in these two files.


Title: Re: Check out my UQM save game editor
Post by: DrillDaddy01 on April 17, 2013, 08:15:49 pm
It dosen't work on the HD version.


Title: Re: Check out my UQM save game editor
Post by: onpon4 on April 17, 2013, 09:58:19 pm
Judging by the date, this would have been for 0.6.2, an old version of UQM. I don't know specifically if the save game format changed, but I do know quite a few things like that changed, so it wouldn't surprise me if that's the problem.


Title: Re: Check out my UQM save game editor
Post by: oldlaptop on April 18, 2013, 02:04:40 am
Several fairly big changes have happened in uqm-hd savegames. Even if this works with 0.7, it won't work with the HD mod.


Title: Re: Check out my UQM save game editor
Post by: jucce on April 19, 2013, 08:04:51 pm
Judging by the date, this would have been for 0.6.2, an old version of UQM. I don't know specifically if the save game format changed, but I do know quite a few things like that changed, so it wouldn't surprise me if that's the problem.
As far as I know there were no changes to the save game format between 0.6.2 and 0.7.0 (I guess to keep backwards compatibility) so the editor should work without problems for both versions.


When it comes to the HD version it seems the save game format is different. I would suggest simply using a hex editor to edit those save games, especially since I suspect the format is likely to change in future versions.


Title: Re: Check out my UQM save game editor
Post by: meep-eep on April 19, 2013, 09:20:04 pm
Judging by the date, this would have been for 0.6.2, an old version of UQM. I don't know specifically if the save game format changed, but I do know quite a few things like that changed, so it wouldn't surprise me if that's the problem.
As far as I know there were no changes to the save game format between 0.6.2 and 0.7.0 (I guess to keep backwards compatibility)
I can confirm this. Both that there were no changes, and that this was intentional to keep backwards compatibility.
At one point we will be breaking backwards compatibility, but we want to do this only once, so we have avoided changes to the save game format so far.


Title: Re: Check out my UQM save game editor
Post by: Dabir on April 23, 2013, 04:41:04 am
Wouldn't it be possible to retain the ability to load from old save formats, but remove the ability to save to any but the latest?


Title: Re: Check out my UQM save game editor
Post by: meep-eep on April 23, 2013, 05:55:41 pm
Wouldn't it be possible to retain the ability to load from old save formats, but remove the ability to save to any but the latest?
That would be possible.


Title: Re: Check out my UQM save game editor
Post by: CaptainQuasi on February 03, 2014, 07:14:18 am
Is anyone else having issues with the download links? rapidshare says it can't find the file; solidfiles will not connect, "connection reset" error no matter what I do; and fuskbugg also will not load and eventually times out. Could anyone please point me to where I might obtain this editor? Thanks.


Title: Re: Check out my UQM save game editor
Post by: jucce on February 07, 2014, 01:28:06 am
Is anyone else having issues with the download links? rapidshare says it can't find the file; solidfiles will not connect, "connection reset" error no matter what I do; and fuskbugg also will not load and eventually times out. Could anyone please point me to where I might obtain this editor? Thanks.
Try it now, the links in the first post have been updated.


Title: Re: Check out my UQM save game editor
Post by: what on February 16, 2014, 09:44:31 pm
Does a linux (specifically xubuntu) version of this exist? 


Title: Re: Check out my UQM save game editor
Post by: jucce on February 19, 2014, 07:25:12 pm
Does a linux (specifically xubuntu) version of this exist?  
No there is no native Linux version, however the application is coded in C# so trying Wine or Mono could work. I just found a tool called MoMA that allows scanning a .NET application to check if it works with Mono and according to that the save game editor should run under Mono so I would try that.