currently tired, so keeping this short:
(i sometimes linked previous Versions on this package with some minor and major differences as extdev.7z, this Package replaces that completely; the content.xsd and .xsl from the Mod Overview Submissions is also included here for consistency)
this is (intended to be) a collection of all small Modding Tools available for XRebirth, with bat files included to convert all existent files to a format you can work with. (its still WIP)
currently included are:
-> all xsd and dtd files included with XR in the cats/dats (thanks Egosoft)
-> MD Documentation and scriptproperties.html with necesary files to read it (thanks Ketraar, thanks Egosoft)
-> some user-generated xsd-files (thanks brammie)
-> a xml-diff and xml-patch tool based on rfc-5261 (thanks arc_ for compiling; thanks jari urpalainen for the code) with a bat file to apply a xml-patch file to all savegames
-> a list with zone_macros <-> zonenames (source unknown; fund it here in the Forum)
-> recommendations for Mod compatibility (still hevily WIP; just began with that)
-> a "template mod" which includes all xsds necesary to work with the files in each folder (the xsds there use include for simple updating - just update the xsds in the ModTools/libraries folder and you're done.) - Mod Development File removal bat included, too for simple Package creation.
Planned:
-> Include all other availabe Modding Documentation, too
-> Include more xsds as soon as they are available
-> Include Cat Tool with bat for extracting everything (i cannt decide which one ^^)
-> Create and Include xml-diff.bat to automagically convert file replacement Mods to diff Mods (although i still recommend to create them manually)
-> include xmf -> dae converter with a batch file to convert all models in the Game
-> a "light" version for Mod users which only has the files necesary for Mod Users (e.g. Savegame Patching)
i know that this Package may not always be up-to-date, but thats not the intention here. the intention is to provide all tools for modding XR in one package and to provide simplification for their usage as far as possible, which is easiaer if i know where each file is.
Download Package and extract to XRebirth ROOT
Download light Version (Savegame PAtch Tools only)
[Tools] UniTraders ModTools collection
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Moderator (Script&Mod)
- Posts: 14571
- Joined: Sun, 20. Nov 05, 22:45
[Tools] UniTraders ModTools collection
if not stated otherwise everything i post is licensed under WTFPL
Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter
I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help
Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help

-
- Posts: 100
- Joined: Thu, 19. Dec 13, 23:26
i got some working xsd's for the index, components and macro's, when using a validating parser i get one 1 error (there is a comma somewhere so the content type of the component tags is mixed and i fixed that by intercepting that in the xml parser befor validation). The rest is coming but the big on after those is one for the savegame's.
Further things i've done is adding some namspacess and fixing the includes , but thats done by maven scripts and is only ussefull if you want a xml binding model (visual galaxy editor)
Anyways i was thinking along those lines to, the additions you are proposing and cause i'm a java developer and know tonns about build enviroments i was thinking of making a maven archetype (default project layout and file templates) and an plugin with some commands , in the line xr:addware ${ware-name}, xr:addcomponent ${name}, and so on, depending on what is needed. And the maven plugin could copy the resources directly from the cat/dat filesystem
then use the maven build commands to validate, strip stuff and so on (eg check against other mods) and package as zip.
anyways, let me know if its useful to spend time on that. pretty easy to make and setup.
the only thing one needs then to use it is maven (maven.apache.org) and an java runtime the archetype and plugin can be installed using command line stuff that downloads everything.
xsd's are here
https://github.com/brammie73/xrebirth/t ... c/main/xsd
and will be updated till i can parse and validate every xml file. feel free to use
Further things i've done is adding some namspacess and fixing the includes , but thats done by maven scripts and is only ussefull if you want a xml binding model (visual galaxy editor)
Anyways i was thinking along those lines to, the additions you are proposing and cause i'm a java developer and know tonns about build enviroments i was thinking of making a maven archetype (default project layout and file templates) and an plugin with some commands , in the line xr:addware ${ware-name}, xr:addcomponent ${name}, and so on, depending on what is needed. And the maven plugin could copy the resources directly from the cat/dat filesystem
then use the maven build commands to validate, strip stuff and so on (eg check against other mods) and package as zip.
anyways, let me know if its useful to spend time on that. pretty easy to make and setup.
the only thing one needs then to use it is maven (maven.apache.org) and an java runtime the archetype and plugin can be installed using command line stuff that downloads everything.
xsd's are here
https://github.com/brammie73/xrebirth/t ... c/main/xsd
and will be updated till i can parse and validate every xml file. feel free to use
-
- Posts: 100
- Joined: Thu, 19. Dec 13, 23:26
ps:
any idea's about the namespaces to use?
currently i'm using:
why is this needed you might ask?
its to differentiate between a component in the macro.xsd and a component in the components.xsd the easiest way was adding namespaces
eg
doesn't know its about wares.xml and cant be validated but with a namespace
it can be validated. and when packaging, deploying, just strip out the namespaces
any idea's about the namespaces to use?
currently i'm using:
Code: Select all
<property><name>unlocks.xsd</name><value>http://xrebirth.egosoft.com/unlocks</value></property>
<property><name>wares.xsd</name><value>http://xrebirth.egosoft.com/wares</value></property>
<property><name>macros.xsd</name><value>http://xrebirth.egosoft.com/macros</value></property>
its to differentiate between a component in the macro.xsd and a component in the components.xsd the easiest way was adding namespaces
eg
Code: Select all
<add sel="/wares">
<ware id="${name}" >
</ware>
</add>
Code: Select all
<add sel="/wares" >
<ware:ware id="${name}" xmlns:ware="http://xrebirth.egosoft.com/wares" />
</add>
-
- Posts: 2963
- Joined: Tue, 18. Nov 14, 16:23