Hi, I'm having trouble with Technologies. I changed Writing to connect to Mathemetics and to disconnect to Philosophy, but the image of Technologies is strange. I don't know why. Please help me.
In your code there are some errors. Have you browsed through the logs? Well, you should, as the game usually points what's wrong with the mod in there.
There's no such command as <Replace>, the only valid values are Row, Delete, and Update, however you can't exchange in your code Replace for Update easily, as the latter has a different syntax:
<Replace> in XML is equivalent to SQL's INSERT OR REPLACE INTO.
<Replace> however needs to be limited to primary or "parent" tables that have ID numbers assigned to each row, or where column 'Type' is used with a requirement that each such type entered is unique to all other Type data entered into the same table.
<Replace> literally replaces the matching row for the 'Type' argument with the new data given when such a match is found, and will otherwise add a new row to the table with the designated information. In this sense <Replace> acts like an <Update> statement in many ways, but as mentioned cannot reliably be used for tables that are not Primary or "Parent" tables in Civ5.
-----------------------------
Incidentally, there is also <InsertOrAbort> but unless you are really sure of what you are doing you should probably not use it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.