Difference between revisions of "Shipdata-overrides.plist"

From Elite Wiki
m (get rid of deadend pages)
(Updating BB links)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
'''shipdata-overrides.plist''' is added with oolite 1.72.
 
'''shipdata-overrides.plist''' is added with oolite 1.72.
  
It loads after all the shipdata.plist data are read in. It contains the same keys as the normal '''shipdata.plist'''. Whenever it finds a match with a key that also exists in '''shipdata.plist''' of any oxp, it overwrites the entries defined in '''shipdata-overrides.plist''' but leaves the other as they were. e.g.
+
It loads ''after'' all the shipdata.plist data are read in. It contains the same keys as the normal '''shipdata.plist'''. Whenever it finds a match with a key that also exists in '''shipdata.plist''' of any oxp, it overwrites the entries defined in '''shipdata-overrides.plist''' but leaves the other as they were. e.g.
  
 
  "adder-player" = {
 
  "adder-player" = {
Line 7: Line 7:
 
   thrust = 25;
 
   thrust = 25;
 
  };
 
  };
Will change the max_energy and the thrust of the ship adder-player. All other data remain original.
+
Will change only the max_energy and the thrust of the adder-player ships. ''All other data remain unchanged.''
  
 
See [[OXP_howto]] for a overview about the other plists.
 
See [[OXP_howto]] for a overview about the other plists.
 +
 +
*[https://bb.oolite.space/viewtopic.php?f=4&t=20672 Overriding shipdata entries in the core game and in other OXPs] (2020)
  
 
----
 
----
 
[[Category:Oolite]]
 
[[Category:Oolite]]
 
[[Category:Oolite scripting]]
 
[[Category:Oolite scripting]]

Latest revision as of 03:25, 29 February 2024

shipdata-overrides.plist is added with oolite 1.72.

It loads after all the shipdata.plist data are read in. It contains the same keys as the normal shipdata.plist. Whenever it finds a match with a key that also exists in shipdata.plist of any oxp, it overwrites the entries defined in shipdata-overrides.plist but leaves the other as they were. e.g.

"adder-player" = {
 max_energy = 95;
 thrust = 25;
};

Will change only the max_energy and the thrust of the adder-player ships. All other data remain unchanged.

See OXP_howto for a overview about the other plists.