Open
Description
As discussed on Discord, AIV info seems to be in the sav file. Meaning that a sav can function normally,, and the AI continues to build the pre-specified AIV, even after AIV files in the game folder have been replaced.
This needs verification, and we need to identify key AIV info in the sav file.
Specifically, we need:
- 1. verification an AI builds an AIV that has been loaded from the sav file.
- 2. key information from an AIV we can hunt down in a sav file (or many sav files).
Current progress (updated)
An aiv file is burnt into a sav file by making all relative coordinates absolute map positions, and removing any building/placement instructions that are illegal from the aiv in the .sav file. Building placement including walls and moats is stored in section 1107. Troop unit locations is stored in section 1022.
To do:
Manipulate:
- 1. building locations
- 2. building order
- 3. building type
- 4. troop type
- 5. troop location
- 6. know how exactly to convert from relative coordinates in the aiv file to absolute coordinates in the sav file (the reference point is probably the center of the keep)