XML Append mode, how does it work?
More specifically, what information in the 'appended' XML is used by the game engine to associate it to the core XML.
More specifically, what information in the 'appended' XML is used by the game engine to associate it to the core XML.
Go read the modding tutorials, then come back and ask specific questions.
The tutorials don't answer my question.
It just tells you how to make it happen not why it happens.
I am trying to emulate the way the engine recognises which unique file belongs to which internal file, so my tech tree viewer can handle appended files.
<?xml version="1.0" encoding="utf-8"?>
<ColorList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/Lib/ColorDefs.xsd"> <---- This tells the game what table the code goes in.
<-- Code inbetween tells the game what to put in said table -->
<Color> <--- The sub table
<InternalName>BlueBlue</InternalName>
<Red>0</Red>
<Green>0</Green>
<Blue>255</Blue>
</Color> <--- End sub table
</ColorList> <---- This ends the table
Thanks Horemvore.
Looks like I will have to re-code my xml parser.
The tutorials don't answer my question.
It just tells you how to make it happen not why it happens.
I am trying to emulate the way the engine recognises which unique file belongs to which internal file, so my tech tree viewer can handle appended files.
since your talking about the tech tree specifically, here are the important bits. I used color coding to link items
YorTechDefs.xml
YorTechDefsText.xml
with tech trees, it's really flexible on naming of the files in my experience. I'd suggest taking the easy route and make the user save the individual file components (techdefs, techdefstext, & umm.. the specialization one). I've done a lot with tech trees in gc2/gc3 & almost always work mostly from one portion at a time even though I'll usually wind up opening more that one of the three files at a time when editing stuff. You could do the same for opening the files y making people open them one at a time.
There are good reasons to have the old and the new techdefstext open at the same time. for example:
Thanks, you have given me a lot to go on.
I do this when asking the user to save a cloned tree, I automatically clone the other 2 connected files and rename them according the core file naming convention.
It all falls apart when trying to view trees that have the append method changes. i.e. Enhanced terraforming mod.
I do this when asking the user to save a cloned tree, I automatically clone the other 2 connected files and rename them according the core file naming convention.
It all falls apart when trying to view trees that have the append method changes. i.e. Enhanced terraforming mod.
Welcome Guest! Please take the time to register with us.