Difference between revisions of "MW Factions"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
For MegaMekNET-specific Faction information, check [[Factions|here]]. | For MegaMekNET-specific Faction information, check [[Factions|here]]. | ||
+ | |||
+ | Factions are defined at initial server start in data/factions.xml. A sample faction entry, taken from the default factions.xml shipped with MekWars is as follows: | ||
+ | |||
+ | <pre> | ||
+ | <FACTION> | ||
+ | <NAME>Davion</NAME> | ||
+ | <MONEY>180</MONEY> | ||
+ | <COLOR>#808000</COLOR> | ||
+ | <ABBREVIATION>D</ABBREVIATION> | ||
+ | <LOGO>http://www.megamek.com/NoLogo.jpg</LOGO> | ||
+ | <ID>0</ID> | ||
+ | </FACTION> | ||
+ | </pre> | ||
+ | |||
+ | There is more that could be in this file, though, as noted by factions.dtd: | ||
+ | |||
+ | <pre> | ||
+ | <!ELEMENT ABBREVIATION (#PCDATA)> | ||
+ | <!ELEMENT BASEGUNNER (#PCDATA)> | ||
+ | <!ELEMENT BASEPILOT (#PCDATA)> | ||
+ | <!ELEMENT COLOR (#PCDATA)> | ||
+ | <!ELEMENT CONQUERABLE (#PCDATA)> | ||
+ | <!ELEMENT INHOUSEATTACKS (#PCDATA)> | ||
+ | <!ELEMENT ISMERCENARY (#PCDATA)> | ||
+ | <!ELEMENT LOGO (#PCDATA)> | ||
+ | <!ELEMENT MAYUSEBM (#PCDATA)> | ||
+ | <!ELEMENT MONEY (#PCDATA)> | ||
+ | <!ELEMENT NAME (#PCDATA)> | ||
+ | <!ELEMENT CONQUERABLE (#PCDATA)> | ||
+ | <!ELEMENT INHOUSEATTACKS (#PCDATA)> | ||
+ | <!ELEMENT HOUSEPLAYERCOLOR (#PCDATA)> | ||
+ | <!ELEMENT DEFECTTO (#PCDATA)> | ||
+ | <!ELEMENT DEFECTFROM (#PCDATA)> | ||
+ | <!ELEMENT ISNEWBIE (#PCDATA)> | ||
+ | </pre> |
Revision as of 10:59, 2 December 2015
Factions are the MekWars equivalent of teams. Players in the same faction share resources, such as components and bays, and have a faction-specific dedicated Chat channel.
For MegaMekNET-specific Faction information, check here.
Factions are defined at initial server start in data/factions.xml. A sample faction entry, taken from the default factions.xml shipped with MekWars is as follows:
<FACTION> <NAME>Davion</NAME> <MONEY>180</MONEY> <COLOR>#808000</COLOR> <ABBREVIATION>D</ABBREVIATION> <LOGO>http://www.megamek.com/NoLogo.jpg</LOGO> <ID>0</ID> </FACTION>
There is more that could be in this file, though, as noted by factions.dtd:
<!ELEMENT ABBREVIATION (#PCDATA)> <!ELEMENT BASEGUNNER (#PCDATA)> <!ELEMENT BASEPILOT (#PCDATA)> <!ELEMENT COLOR (#PCDATA)> <!ELEMENT CONQUERABLE (#PCDATA)> <!ELEMENT INHOUSEATTACKS (#PCDATA)> <!ELEMENT ISMERCENARY (#PCDATA)> <!ELEMENT LOGO (#PCDATA)> <!ELEMENT MAYUSEBM (#PCDATA)> <!ELEMENT MONEY (#PCDATA)> <!ELEMENT NAME (#PCDATA)> <!ELEMENT CONQUERABLE (#PCDATA)> <!ELEMENT INHOUSEATTACKS (#PCDATA)> <!ELEMENT HOUSEPLAYERCOLOR (#PCDATA)> <!ELEMENT DEFECTTO (#PCDATA)> <!ELEMENT DEFECTFROM (#PCDATA)> <!ELEMENT ISNEWBIE (#PCDATA)>