Doomturtle
Chieftain
- Joined
- Nov 7, 2017
- Messages
- 5
I am trying to have every city start with my custom building that effectively acts like free ancient walls. I can do this by inserting a line into StartingBuildings for my building in the ancient era:
INSERT INTO StartingBuildings (Building, Era, District) VALUES ('BUILDING_EPN_CITY_DEFENSES', 'ERA_ANCIENT', 'DISTRICT_CITY_CENTER');
This works correctly when starting the game in the classical era or later. Every city I found has my BUILDING_EPN_CITY_DEFENSES building already constructed in the city center.
If I start the game in the ancient era, then my building is not automatically constructed. It shows up in the build queue immediately because it has no tech prerequisite.
My first thought was that only entries in StartingBuildings for eras earlier than the starting era are automatically constructed, but this is not the case. For every starting era except for the ancient era, entries in StartingBuildings for the starting era are respected. For example, starting in the Medieval era will cause cities to be founded with a monument in the city center as specified in Eras.xml.
It appears that the game does not check entries in StartingBuildings when beginning a game in the ancient era. My attempt at setting my building as a starting building can be found in Buildings.sql. The default settings for StartingBuildings as copied from the game assets can be found in Eras.xml.
INSERT INTO StartingBuildings (Building, Era, District) VALUES ('BUILDING_EPN_CITY_DEFENSES', 'ERA_ANCIENT', 'DISTRICT_CITY_CENTER');
This works correctly when starting the game in the classical era or later. Every city I found has my BUILDING_EPN_CITY_DEFENSES building already constructed in the city center.
If I start the game in the ancient era, then my building is not automatically constructed. It shows up in the build queue immediately because it has no tech prerequisite.
My first thought was that only entries in StartingBuildings for eras earlier than the starting era are automatically constructed, but this is not the case. For every starting era except for the ancient era, entries in StartingBuildings for the starting era are respected. For example, starting in the Medieval era will cause cities to be founded with a monument in the city center as specified in Eras.xml.
It appears that the game does not check entries in StartingBuildings when beginning a game in the ancient era. My attempt at setting my building as a starting building can be found in Buildings.sql. The default settings for StartingBuildings as copied from the game assets can be found in Eras.xml.