Changing the XML tables

Pep1977

Chieftain
Joined
Jun 1, 2009
Messages
4
Hello All,

Can i change the xml tables content, i.e can i add an existing column from table A into table B??

In the table <Table name="Civilizations"> there are 2 columns:
<Column name="Playable" type="boolean" default="true" />
<Column name="AIPlayable" type="boolean" default="true" />

And i would like to add (copy into) these 2 columns to the table <Table name="Units">

I think i can write the xml for it but will the game database recognise the 2 new columns in the table units and more important will the game know what to do with them??


Cheers
 
I think i can write the xml for it but will the game database recognise the 2 new columns in the table units and more important will the game know what to do with them??
Not with XML modding alone. LUA seems to be lacking in this regard as well, so you may need to delve into the C++, but that code hasn't been released yet. :(
 
Yeah, no way to do it through XML, which doesn't make sense to me. if a tag works in one XML file, there should be a way to get the same tag to function in another xml file.

if someone finds a way to get thise done with LUA, please let us know!
 
Yeah, no way to do it through XML, which doesn't make sense to me. if a tag works in one XML file, there should be a way to get the same tag to function in another xml file.

if someone finds a way to get thise done with LUA, please let us know!

Well, it would be pretty magical to have it all be plug-and-play like that. Tags in one table don't always make sense in another one, and even when they do there needs to be code for what to do with it, cause it may be an analogous situation but still not the same.
 
Back
Top Bottom