MegaGlest Forum

MegaGlest => MegaGlest => Topic started by: titi on 17 January 2012, 01:40:43

Title: New feature faction links ( in svn )
Post by: titi on 17 January 2012, 01:40:43
Now Modders can link factions from other techtrees ( if compatible with their own techtree )

Here is an example how to link the megapack indians in your techtree. Just unpack and put this as a "faction" into your techtree:
http://www.titusgames.de/indian_link.zip (http://www.titusgames.de/indian_link.zip)

Code: [Select]
<?xml version="1.0"?>
<link>
     <techtree name="megapack"/>
</link>

( warning: multiplayer might still have some problem with this! At least downloads will be tricky so everyone has to have all needed techtrees! )
Title: Re: New feature faction links ( in svn )
Post by: tomreyn on 17 January 2012, 01:58:44
Nice! Especially this not exactly lengthy XML. :)
Title: Re: New feature faction links ( in svn )
Post by: Omega on 17 January 2012, 06:26:30
Very nice, added it to the wiki (https://docs.megaglest.org/XML/Faction) (which should state what revision this is available in, rather than just "latest SVN".

I'd really like to see this expanded. I'd like to see the ability to create a link to a faction in the same techtree (impossible because you can't have two factions of the same name in the same techtree), and to make that useful, the ability to edit the rest of the faction XML and overwrite the link. So for example, Annex (I think) has a few different versions of the same faction, with the only difference being the starting units (one might have an extra worker and be geared towards expansion while one might have an extra warrior and be geared towards combat, etc). Doing such a thing requires copying the entire faction and tweaking every link to the original resources. This new link element could make a simple starting unit change considerably easier, if expanded.
Title: Re: New feature faction links ( in svn )
Post by: titi on 17 January 2012, 09:12:53
Yes I also thought about links to units, but we first should get some experience with this one. Crc calculation(data checking in general) and download in multiplayer maybe still make trouble.