Planetinfo.plist

From Elite Wiki
Revision as of 15:47, 9 January 2006 by Galileo (talk | contribs) (initial page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

planetinfo.plist in 'AddOns/Config' contains a dictionary of planets for which you wish to set custom data, each keyed by a string consisting the galaxy number (0..7) followed by a space and then the planet number (0..255).

Each of the following properties can be set (but, notably, not the location, which is hard coded into the system seed value):

Code:

 <?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
<plist version="1.0"> 
<dict> 
    <key>0..7 0..255</key> 
    <dict> 
        <key>government</key> 
        <integer>0..7</integer> 
        <key>economy</key> 
        <integer>0..7</integer> 
        <key>techlevel</key> 
        <integer>0..13</integer> 
        <key>population</key> 
        <integer>0..67 </integer> 
        <key>productivity</key> 
        <integer>1000 </integer> 
        <key>radius</key> 
        <integer>3000..7000 </integer> 
        <key>name</key> 
        <string>The planet's name</string> 
        <key>inhabitants</key> 
        <string>Small Blue Frogs .. Human Colonials</string> 
        <key>description</key> 
        <string>Really, anything you want to say about the place!</string> 
        <key>percent_land</key> 
        <integer>0..100</integer> 
        <key>land_hsb_color</key> 
        <string>0.0..1.0 0.0..1.0 0.0..1.0</string> 
        <key>sea_hsb_color</key> 
        <string>0.0..1.0 0.0..1.0 0.0..1.0</string> 
        <key>sky_rgb_colors</key> 
        <string>0.0..1.0 0.0..1.0 0.0..1.0 0.0..1.0 0.0..1.0 0.0..1.0</string> 
        <key>station</key> 
        <string>coriolis..dodec..special</string> 
        <key>sky_blur_cluster_chance</key> 
        <real>0.0 .. 1.0</real>  
        <key>sky_blur_alpha</key> 
        <real>0.0 .. 1.0</real>  
        <key>sky_blur_scale</key> 
        <real>0.0 .. 128.0 or more</real>  
    </dict> 
</dict> 
</plist>


eg. For Lave you'd use the key '0 7' (planet 7 in galaxy 0) Then you set the values. This example sets Lave's sea to blue, land to green, and land to sea ratio to 75%.

Code:

 <?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
<plist version="1.0"> 
<dict> 
   <key>0 7</key> 
   <dict> 
      <key>percent_land</key> 
      <integer>75</integer> 
      <key>land_hsb_color</key> 
      <string>0.333 1.0 1.0</string> 
      <key>sea_hsb_color</key> 
      <string>0.667 1.0 1.0</string> 
   </dict> 
</dict> 
</plist>

If you press '!' on a long range chart, it'll dump the galaxy information to files in the same folder as Oolite. That'll give you a list of the planet numbers, and some other information about each planet for the given galaxy.

Then you can override any of the settings listed above, for example to change Zaatxe's (Galaxy 0 Planet 8) inhabitants into blue frogs you'd enter

Code:

    <key>0 8</key> 
   <dict> 
        <key>inhabitants</key> 
        <string>Blue Frogs</string> 
   </dict> 


You can use any or all of the keys in each of the entries. It's probably best to only use the key's you want to change. So, another example, to change the sky_blur_xxx settings for Zaonce (Galaxy 0 Planet 129) to big, heavily clustered, but pale blurs - you'd enter

Code:

    <key>0 129</key> 
   <dict> 
        <key>sky_blur_cluster_chance</key> 
        <real>0.9</real> 
        <key>sky_blur_alpha</key> 
        <real>0.1</real> 
        <key>sky_blur_scale</key> 
        <real>32.0</real> 
   </dict>