Results 1 to 6 of 6

Thread: Save files, hex editors, help from CA?

  1. #1
    Shaidar Haran Senior Member SAM Site Champion Myrddraal's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    5,752

    Default Save files, hex editors, help from CA?

    The next step in my MP campaign is to include battles. To do this I need to read some info from (but not edit) the .sav files. I'm not great with Hex, but I've had a look anyway.

    What I need to do is lookup the name of a general, and read off the details of his army. I've found the section in the save file which deals with armies (simply by finding that the unit names and portrait file locations are text strings).

    I know that some work on the sav files has been done before, does anyone know the format of this part of the sav file? For example, which bits refer to number of men, experience etc...

    This is where CA could give me a hand, just a bit of info on the layout of sav files.

    Heres a slightly more advanced question (again possibly for CA), when you save a game just before a battle, if you then load that save, the battle screen is still open and you have to play the battle. How does this work, is it just a section which says that this general has engaged another, or does it store details of the battle seperately or what? Could I have a hand here too.

    I hope this isn't too much to ask.

    Many many thanks,

  2. #2
    Insanity perhaps is inevitable Member shifty157's Avatar
    Join Date
    Jan 2005
    Posts
    1,145

    Default Re: Save files, hex editors, help from CA?

    I think i remember someone having made a save file editor but im not really sure.

  3. #3
    nudge nudge, wink wink Member GrimSta's Avatar
    Join Date
    Oct 2005
    Posts
    126

    Default Re: Save files, hex editors, help from CA?

    Yeah there is, there is a download link floating around the Org somewere
    "I'm right and everyone else is wrong or has taken too much LSD."

  4. #4
    Shaidar Haran Senior Member SAM Site Champion Myrddraal's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    5,752

    Default Re: Save files, hex editors, help from CA?

    yes, I believe it edits very simple stuff like options, but I'm going to try to get in touch with whoever developped it

  5. #5
    CA CA JeromeGrasdyke's Avatar
    Join Date
    Dec 2002
    Location
    At a new top-secret (non-CA) location, surrounded by lots of steel and glass, high atriums, hordes of lovely marketing ladies, and with a new and spacious desk with plenty of room for body-moving.
    Posts
    257

    Default Re: Save files, hex editors, help from CA?

    Unfortunately the Rome savegames are just a binary data stream which is read and dispatched by the game - easy to code and maintain, but kinda tough to document There will be a data chunk of that sort somewhere in the stream, and it will be seperate and relate to the Battle code object. Hopefully that is of some use...
    "All our words are but crumbs that fall down from the feast of the mind."
    -- from 'The Prophet' by Kahlil Gibran

  6. #6
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Save files, hex editors, help from CA?

    Eww that's ugly.
    I'd do it just like that
    Guess you'll have to try around with data types and offsets... I guess it's little endian, though, to save you some trouble

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO