|
Thread: Save format - SoD/HotA | This thread is pages long: 1 2 · «PREV |
|
Maurice
Hero of Order
Part of the furniture
|
posted November 21, 2019 07:02 PM |
|
|
ignus said: I found that tiles without objects have 22 bytes of length. Map section is very high, maybe one of first sections in savegame file.
Well, yes, if there are no object Defs to refer, then their count is 00 00 00 00 and nothing follows it .
____________
The last Reasonable Steward of Good Game Design and a Responsible Hero of HC. - Verriker
|
|
ignus
Tavern Dweller
|
posted November 21, 2019 07:43 PM |
|
Edited by ignus at 19:45, 21 Nov 2019.
|
Maurice do you know what is between rumour section and map section? Yeah so it's 22 + 4*(number of defs)
|
|
Maurice
Hero of Order
Part of the furniture
|
posted November 21, 2019 08:42 PM |
|
|
ignus said: Maurice do you know what is between rumour section and map section?
I once did . However, it's been a while since I've really examined it; it's a data table in any case. If I remember correctly, it's a data table that links two different elements. If my notes are correct, it links Dwellings to their actual state (number of creatures left to hire, ownership, etc ...).
____________
The last Reasonable Steward of Good Game Design and a Responsible Hero of HC. - Verriker
|
|
ignus
Tavern Dweller
|
posted November 23, 2019 01:21 PM |
|
Edited by ignus at 13:56, 23 Nov 2019.
|
Maurice said:
ignus said: Maurice do you know what is between rumour section and map section?
I once did . However, it's been a while since I've really examined it; it's a data table in any case. If I remember correctly, it's a data table that links two different elements. If my notes are correct, it links Dwellings to their actual state (number of creatures left to hire, ownership, etc ...).
Okey I found (you wrote it too) that just before map section there is table with black markets. Each black market has 28 byte lenght. It's because there are stored 7 items, I suppose that each item id has 4 byte lenght. If item in specific slot is bought then there is FFFF value inside of item id.
So after rumour section I see 104 bytes where there are random 0 or 1 value, next there is quantity of black markets on the map. After that there is black market table (quanity*28) and then is map section.
Edit:
I think that with these informations I'm able to create algorithm&program which would calculate start of map offset and then it would parse whole map data.
|
|
ignus
Tavern Dweller
|
posted November 23, 2019 02:11 PM |
|
Edited by ignus at 09:42, 24 Nov 2019.
|
Maurice do you know what is right after defs section?
Edit:
I'm starting saving information about savegame file format on Google Docs in consistent form.
For now, I know how to parse black market, map, defs section. I know order of many important sections:
Header
Rumours
Unknown section after rumours
Black market details table section
Map section (table of tiles)
Def section (table)
Uknown sections
Quest section (table)
Player section (table)
Castle section (table)
Hero section (table)
Here I'll collect all informations
https://docs.google.com/spreadsheets/d/16V6geR8xk9Z5Kqe27n7JT8iNre2JvV77jf8kautQ9Hc/edit?usp=sharing
I think that I solved the worst problem (how to find beginning of map section)
|
|
|
|