The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
July 21, 2024, 06:17:27 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Questions about editing saved games
« previous next »
Pages: [1] Print
Author Topic: Questions about editing saved games  (Read 1967 times)
Frungy champion
Offline Offline

Posts: 73

View Profile
Questions about editing saved games
« on: March 04, 2007, 10:45:23 am »

How can I change the date and the ships in my fleet using a hex editor? I would also be interested in knowing how messing about with the date would affect the game. Are events like Spathi slave shielding, Pkunk journey to Yehat and Kohr-Ah victory directly connected to the date or do they run on a separate timer?
Offline Offline

Gender: Male
Posts: 1938

Fot or not?

View Profile
Re: Questions about editing saved games
« Reply #1 on: March 04, 2007, 03:22:22 pm »

The best description of the UQM save format is probably the save source code in src/sc2code/save.c.

UQM maintains an event queue with date-stamped future events (src/sc2code/gameev.c and src/sc2code/clock.c). The dates are stored in an absolute format, so changing the date may cause events (such as those you mention) to be skipped or delayed.

I suspect that adapting the loader code will be easier than using a hex editor, due to the use of compression in the saves and the variable-length and optional sections in the saves.

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Pages: [1] Print 
« previous next »
Jump to:  

Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!