Repository navigation
import_game_data: add objects and terrain steps, support the current game layout - #183
Merged
happyleavesaoc merged 1 commit intoOct 19, 2026
Conversation
with_objects adds the gaia objects (fish, forage, livestock, animals, birds, flora, trees, mines) the dataset lacks, named from the English strings. with_terrain adds missing terrains with their minimap colors: the dat stores them as indices into original.pal, and the existing up/level/down values are exactly those colors. Existing entries are never renamed or recolored. The script no longer ran on the current game build: civTechTrees.json is now one CivTechTrees/<CIV>.json per civilization, several node fields are omitted when empty, and civilizations carry tech_tree_description_string_id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends
scripts/import_game_data.pyso objects and terrain can be refreshed from the game files like maps and technologies, instead of being added by hand (as in #182).New steps
with_objectsreadsempires2_x2_p1.dat(viagenieutils-py) and adds the missing gaia objects, named from the English strings. Only these unit classes are included: fish 5, forage 7, livestock 8, prey 9, predator 10, bird 11, flora 14, tree 15, stone mine 32 and gold mine 33.with_terrainadds missing terrains with their minimap colors. Each terrain in the dat names three colors as indices intoresources/_common/palettes/original.pal, and the existingup/level/downvalues are exactly those colors: 95 of the 101 current terrains match.Running on the current build
The script failed on the current game build (Steam build 25464371) before reaching the new steps:
civTechTrees.jsonis now split into oneCivTechTrees/<CIV>.jsonper civilization. Both layouts are read.tech_tree_description_string_idfield.Output against current
masterThings for review:
Objects the script cannot name:
key-value-strings-utf8.txt.Add newer DE gaia objects and terrains 110-133 to dataset 100 #182 adds these by hand.
Flora class 14: this class also brings in eye candy such as bridge pieces, ruins, gates and stumps. The dataset already holds 181 class-14 objects, so I kept it, but it is easy to drop from
GAIA_CLASSESif that is too broad.Existing terrain colors that differ from the game: 32, 69, 70, 75, 76 and 101. These were left untouched.
🤖 Generated with Claude Code