User Tools

Site Tools


modding:xml:stationtype

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
modding:xml:stationtype [2014/07/30 17:36] gpmmodding:xml:stationtype [2017/01/21 06:56] – More gravity info 0xabcdef
Line 12: Line 12:
  
 **scale=** The scale property is used to define the size-scale of the object. The following values are defined: **scale=** The scale property is used to define the size-scale of the object. The following values are defined:
 + * **star** : A stellar object, generally one that emits light.
 + * **world** : An asteroids or world. This scale covers all natural objects smaller than a star.
 + * **structure** : A stationary artificial structure, such as a station.
 + * **ship** : A moving artificial structure, generally smaller than a station.
 + * **flotsam** : A piece of debris or wreckage, generally smaller than a ship.
  
-  * **star** : A stellar object, generally one that emits light. +**canAttack=** This specifies whether a station without weapons can attack and should be considered a threat for purposes of targeting. Stations with weapons are automatically considered capable of attacking. 
-  * **world** : An asteroids or world. This scale covers all natural objects smaller than a star. + ***"true"** : Always treat the station like it can attack 
-  * **structure** : A stationary artificial structure, such as a station. + ***"false"** : Always treat the station like it cannot attack
-  * **ship** : A moving artificial structure, generally smaller than a station. +
-  * **flotsam** : A piece of debris or wreckage, generally smaller than a ship. +
- +
-**canAttack="true"** This specifies that a station without weapons can attack and should be considered a threat for purposes of targeting. Stations with weapons are automatically considered capable of attacking. +
 =====Naming===== =====Naming=====
 **name=** The name of the station. **name=** The name of the station.
Line 54: Line 54:
 You use a special syntax to have more control over the probability: You use a special syntax to have more control over the probability:
  
-**+attribute|adj**: If adj is positive, we increase the probability of appearing at locations //with// the attribute by adj%. For example, +asteroids|50; increases the chance of appearing at asteroid locations by 50%. +  * **+attribute|adj**: If adj is positive, we increase the probability of appearing at locations //with// the attribute by adj%. For example, +asteroids|50; increases the chance of appearing at asteroid locations by 50%.  If adj is negative, we //decrease// the probability of appearing at locations //with// the attribute by adj%. For example, +asteroids|-10; sets our probability of appearing at asteroid locations to 0.9 (-10% from standard).
- +
-If adj is negative, we //decrease// the probability of appearing at locations //with// the attribute by adj%. For example, +asteroids|-10; sets our probability of appearing at asteroid locations to 0.9 (-10% from standard)+
- +
-**-attribute|adj**: This is the same as above, but adjusts the probability only for locations //without// the attribute.+
  
 +  * **-attribute|adj**: This is the same as above, but adjusts the probability only for locations //without// the attribute.
  
 **enemyExclusionRadius=** If present, this property specifies that the station should not be placed within this number of light-seconds of an enemy. **enemyExclusionRadius=** If present, this property specifies that the station should not be placed within this number of light-seconds of an enemy.
Line 71: Line 68:
  
 **spaceColor=** This is an RGB value specifying the color of space in the vicinity of the star. **spaceColor=** This is an RGB value specifying the color of space in the vicinity of the star.
 +
 +**mass=** This defines the mass of the star in terms of solar masses (equivalent to 330000 Earth masses). It affects the gravitational acceleration that this object exerts in its gravitational field.
 +
 +**gravityRadius=** This specifies the radius (in light-minutes) in which the station will exert gravitational force on mobile objects (such as ships and **mobile** stations like cargo crates and shipwrecks. Acceleration applied to nearby space objects may be roughly determined by **V = [g_SecondsPerUpdate * rAccel * vDist / sqrt(rDist2) = 6468 * mass * (gravityRadius^2 / distance^2) * distance / sqrt(distance^2)] km/s / 299792.5 ls/km**, where **V** is the change in speed in light-seconds per second (towards the star) after a single second. The maximum range at which objects can get "ripped apart by" this star will scale up with mass and radius also.
 =====Armor and HP===== =====Armor and HP=====
  
modding/xml/stationtype.txt · Last modified: 2017/04/13 07:15 by 0xabcdef