How does the game know where to save units from histfigs that started without a civilization? #2370
-
The game saves units in "unit chunks", which are binary files saved separated from the rest of the world data. When the game needs to load the unit for a historical figure, it grabs its However, there are historical figures that don't have any civilization (titans, semi/mega/forgotten beasts, night trolls, animals and animal people generated from the wilds), and by my observations it's very clear that the game draws their nemesis records' I want to know where these fields are located. I looked and experimented a ton with generating civless worlds with tons of beasts, and I also looked through the structure docs for anything that might have "save_file_id", "next_member_idx" and some similar variations, but couldn't find anything. I have no idea how to even start reverse engineering the game's memory, so I'm asking here in case someone happens to know about this or might want to look into it in the future. Knowing this might give some insight on how the game deals with civless figures in matters that it's already known when it comes to figures with civilizations. Names, for example: I know where to find the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I got my answer from somewhere else. |
Beta Was this translation helpful? Give feedback.
I got my answer from somewhere else.
It's in
df.global.world.worldgen
, the fieldsnext_unit_chunk_id
andnext_unit_chunk_offset
.In hindsight, I should have looked for "unit_chunk" in the structure docs.