LeeS
Imperator
Note that the game does not equate this:
or this:
or this:
in XML files as being equivalent to this
In all cases where a technology prerequisite is not stated as NULL the game attempts to parse the character-string entered as if it were a valid Type name to be found within table Technologies.
You need to state NULL or you need to omit the column altogether
Also note that column ObsoleteTech in table Units and table Buildings acts in the same way and is defined in the same way. The default value is NULL.
Code:
<PrereqTech>null</PrereqTech>
Code:
<PrereqTech>NONE</PrereqTech>
Code:
<PrereqTech>none</PrereqTech>
Code:
<PrereqTech>NULL</PrereqTech>
You need to state NULL or you need to omit the column altogether
- this works because in both Buildings and Units the default value for column PrereqTech is NULL.
- From Table Buildings:
Code:
<Column name="PrereqTech" type="text" reference="Technologies(Type)" default="NULL"/>
- From Table Units
Code:
<Column name="PrereqTech" type="text" reference="Technologies(Type)" default="NULL"/>
- From Table Buildings:
- Stating any other "value" in XML when there is to be no PrereqTech will cause invalid reference errors in the Database.log at the very least, and might cause some odd behaviors in UI panels.
Also note that column ObsoleteTech in table Units and table Buildings acts in the same way and is defined in the same way. The default value is NULL.