Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: Save format - SoD/HotA
Thread: Save format - SoD/HotA This thread is 2 pages long: 1 2 · «PREV
Maurice
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

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
ignus
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)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Maurice
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

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
ignus
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
ignus
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)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 2 pages long: 1 2 · «PREV
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0310 seconds