Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
xml and
the XML files inside the data/universe/planets/ folder.
Each of those files are a simple XML file with <planet> entries. The tag
names are case-sensitive. The files are read in a consistent order:
First data/universe/planets.xml, then the files in data/universe/planets/
subfolder, sorted case-insensitively. Information read later in the process
overwrites information read earlier.
Inside the <planet> tag, the following three tags are required:
<id>(string)</id>
<shortName>(string)</shortName>
<sysPos>(integer)</sysPos>
<spectralType>(string)</spectralType>
The star's spectral type. MekHQ can parse most simple types like
"G2V", "sdM4.5", "O3IIIne", "B5V(e)+DQ6.2" and so on. If set,
the following three values are ignored.
<spectralClass>(character)</spectralClass>
<luminosity>(string)</luminosity>
0, Ia0, Ia-0, Ia+, I, Ia, Iab, Ib, I-II, I/II, Ib-II, Ib/II,
II, II-III, II/III, III, III-IV, III/IV, IV, IV-V, IV/V, V,
VI, VI+, VII
<nadirCharge>(true or false)</nadirCharge>
<zenithCharge>(true or false)</zenithCharge>
<orbitRadius>(number)</orbitRadius>
<satellites>(integer)</satellites>
<satellite>(string)</satellite>
<mass>(number)</mass>
<density>(number)</density>
<gravity>(number)</gravity>
<dayLength>(number)</dayLength>
<className>(string)</className>
<landMass>(string)</landMass>
A continent's of major land mass name. Can be given more than once.
<pressureAtm>(number)</pressureAtm>
<atmosphere>(string)</atmosphere>
<atmMass>(number)</atmMass>
<greenhouse>(number)</greenhouse>
Highest (native) life form (still not killed off by the humans). An integer
or string from the following table:
0, NONE
1, MICROBE
2, PLANT
3, FISH
4, AMPH
5, REPTILE
6, BIRD
7, MAMMAL
8, INSECT
<habitability>(integer)</habitability>
The base habitability of the planet. This corresponds roughly to how much
human population the planet could support even without modern technology
(see the "pop" tag for details). Defaults to "unknown" and can be negative.
Earth's is typically 7.
0: a few people
1: tens of people
2: hundreds of people
3: thousands
4: tens of thousands
5: hundreds of thousands
6: millions
7: tens of millions
8: hundreds of millions
9: billions
10: tens of billions
11: hundreds of billions
12: trillions
Values above 12 make little sense and are displayed as "uncountable" or variant
thereof. Earth's pop value is typically 9 or 10.
<government>(string)</government>
The amount of actual control the nominal government wields over the population.
Tends to drop sharply towards the periphery, with the exception of the clan
homeworlds. Defaults to "situation unclear".
-1: total anarchy, not even the government bothers pretending otherwise
0: anarchy, no governmental control outside of the line of sight of its trooops
1: very free society, wild west mentality, everyone is armed, ...
2: free society
3: moderately free society
4: controlled society, strong weapon control laws and surveillance
5: repressive society, secret police, gulags, ...
6: population under total control and surveillance
7: population consists almost entirely of slaves to the ruling class
<socioIndustrial>(string)</socioIndustrial>
<hpg>(character)</hpg>
The current factions on the planet. The valid factions are defined in the
data/universe/factions.xml file. Defaults to "no faction".
<desc>(string)</desc>
<event>
<date>(date)</date>
<message>(string)</message>
...
</event>
A generic event changing some of the planet's data on the given date. The
date line is required. The message line is optional and makes the event show
up in the daily log, as a news item.
* name
* shortName
* nadirCharge and zenithCharge
* percentWater
* pressure
* pressureAtm
* atmosphere
* atmMass
* albedo
* greenhouse
* temperature
* climate
* lifeForm
* habitability
* pop
* government
* controlRating
* socioIndustrial
* hpg
* faction
<factionChange>
<date>(date)</date>
<faction>(comma separated list of faction IDs)</faction>
</factionChange>
Obsolete form of the event tag, only applicable to faction changes. It's
retained for backwards compatibility only and should not be used in
newer data sets.
<delete>(true or false)</delete>
A marker telling the planet data loader to delete the planet with the
given ID from its database, if found. All the other data defined in the entry
is ignored, save for name and id, which are used to identify the entry
to delete. Defaults to "false" (obviously).