PDA

View Full Version : how to split content over more than one xml file



plastictotoro
August 11th, 2017, 08:48
Hi,

is it possible to split the content within the common / client xml file other more than just these two files?

accounting to the xml code it must be possible, but I am not sure, if this is a reference link to an other modul.

<section-901>
<librarylink type="windowreference">
<class>referenceraces</class>
<recordname>reference.racedata@Rolemaster Companion I</recordname> <-- can I refer after the @ character to an other file within my modul?
</librarylink>
<name type="string">RMC I Race Abilities</name>
</section-901>

thanks for any support
plastictotoro

Zacchaeus
August 11th, 2017, 10:54
The snippet that you have posted is the library part of the db.xml or common.xml (client.xml should no longer exists in most cases). What is shown here are links to the data within the module itself and those are the links that appear in the library when the module is opened. So in the case above when you open that module and look at the library it will show the race data for Rolemaster. You can't have links in there to another module if that is your question; but you can link elsewhere in the module to data in another module.

Trenloe
August 11th, 2017, 13:04
The name after the @ sign is the name of a module, which needs to be open to be able to access that data. The link may point to the same module or it can refer to data from another module. The module name could even be a wildcard, i.e. @* which would mean FG will try to match the link in all valid open modules, displaying the first set of data it matches.

You can't have different files within a module and choose which files you access.

plastictotoro
August 11th, 2017, 14:45
Thank you for the answer.

I will put all my stuff in one file.

Thanks
plastictotoro