Difference between revisions of "Equipment-overrides.plist"
From Elite Wiki
Cholmondely (talk | contribs) (Added Links) |
|||
| Line 3: | Line 3: | ||
It loads after all the <code>[[equipment.plist]]</code> data is read in. Whenever it finds a match with a key that also exists in <code>[[equipment.plist]]</code> of any oxp, it overwrites the entries defined in equipment-overrides.plist but leaves the others as they were. | It loads after all the <code>[[equipment.plist]]</code> data is read in. Whenever it finds a match with a key that also exists in <code>[[equipment.plist]]</code> of any oxp, it overwrites the entries defined in equipment-overrides.plist but leaves the others as they were. | ||
| − | The structure of the file is slightly different to the equipment.plist file, which is an array of arrays. This is a dictionary of dictionary objects. Each element of an equipment definition is specified with | + | The structure of the file is slightly different to the equipment.plist file, which is an array of arrays. This is a dictionary of dictionary objects. Each element of an equipment definition is specified with its own unique property name. A sample file is shown below. |
{ | { | ||
| Line 18: | Line 18: | ||
} | } | ||
| − | See [[OXP_howto]] for an overview about the other plists. | + | == Links == |
| + | *[http://www.aegidian.org/bb/viewtopic.php?f=2&t=21499 Equipment-overrides :-/] (2023 - not all about the Equipment-overrides.plist) | ||
| + | |||
| + | *See [[OXP_howto]] for an overview about the other plists. | ||
---- | ---- | ||
Revision as of 18:21, 6 December 2023
equipment-overrides.plist is added with Oolite 1.89.
It loads after all the equipment.plist data is read in. Whenever it finds a match with a key that also exists in equipment.plist of any oxp, it overwrites the entries defined in equipment-overrides.plist but leaves the others as they were.
The structure of the file is slightly different to the equipment.plist file, which is an array of arrays. This is a dictionary of dictionary objects. Each element of an equipment definition is specified with its own unique property name. A sample file is shown below.
{
"EQ_WEAPON_PULSE_LASER" = {
techlevel = 7;
price = 50000;
short_description = "Laser Pointer";
long_description = "A simple, all purpose (but weak) laser. Only useful for irritating pirates.";
available_to_all = YES;
weapon_info = {
color = "whiteColor";
};
};
}
Links
- Equipment-overrides :-/ (2023 - not all about the Equipment-overrides.plist)
- See OXP_howto for an overview about the other plists.