General Tso
Panzer General
I would like to add one or more rows to the following table. Here's how it's defined in Civ5Civilizations.xml.
Is it possible to add a new row in Lua? I assume I would be using DB.Query() but everything I tried gives me a query error. What do I need to do?
I think I can get around the DB cache problem because I'm setting the values in the front end (Advanced Setup screen) and they are being used in PreGame when the map is being created. I've done something similar where I updated existing rows and it worked fine. I just can't figure out how to create new rows.
Code:
<Civilization_Start_Along_Ocean>
<Row>
<CivilizationType>CIVILIZATION_ENGLAND</CivilizationType>
<StartAlongOcean>true</StartAlongOcean>
</Row>
<Row>
<CivilizationType>CIVILIZATION_OTTOMAN</CivilizationType>
<StartAlongOcean>true</StartAlongOcean>
</Row>
</Civilization_Start_Along_Ocean>
Is it possible to add a new row in Lua? I assume I would be using DB.Query() but everything I tried gives me a query error. What do I need to do?
I think I can get around the DB cache problem because I'm setting the values in the front end (Advanced Setup screen) and they are being used in PreGame when the map is being created. I've done something similar where I updated existing rows and it worked fine. I just can't figure out how to create new rows.