Personal settings OXP
Posted: Sun Dec 06, 2015 11:02 pm
I'm trying to concentrate all the little changes I have made to Oolite config files into a little "personal settings" OXP. If I haven't forgotten anything I've made changes to descriptions.plist, equipment.plist, hud.plist, planetinfo.plist and role-categories.plist.
planetinfo.plist is easy, you just can override the entries. For the HUD, it seems that a copy of hud.plist can be moved into the OXP Config folder - or is there a way for adding entries (e.g. for Norby's hull integrity bar) without having to copy the whole file? Working on a copy would be a (little) problem if a new Oolite version changes the standard HUD.
But I'm stuck with the three remaining files: descriptions.plist, equipment.plist, and role-categories.plist. The first isn't really important (but could be important if somebody wishes to translate parts or all of it into another language). In equipment.plist I've changed some of the damage_probability entries, and in role-categories.plist I made a change that results in a more sensible behaviour of NPC traders (I've explained the reason in Testing and bug reports). My problem here is that I didn't add entries (that is possible) but I removed entries.
I also have changed two event handlers in oolite-populator.js concerning interstellar space. This is much more than a "personal setting", but I can put the question more common: How can a core event handler function like oolite-populator.js-interstellarSpaceWillRepopulate be completely replaced (and not only extended!) by an OXP?
Probably the answers are simple, and I'm not seeing the wood for the trees...
planetinfo.plist is easy, you just can override the entries. For the HUD, it seems that a copy of hud.plist can be moved into the OXP Config folder - or is there a way for adding entries (e.g. for Norby's hull integrity bar) without having to copy the whole file? Working on a copy would be a (little) problem if a new Oolite version changes the standard HUD.
But I'm stuck with the three remaining files: descriptions.plist, equipment.plist, and role-categories.plist. The first isn't really important (but could be important if somebody wishes to translate parts or all of it into another language). In equipment.plist I've changed some of the damage_probability entries, and in role-categories.plist I made a change that results in a more sensible behaviour of NPC traders (I've explained the reason in Testing and bug reports). My problem here is that I didn't add entries (that is possible) but I removed entries.
I also have changed two event handlers in oolite-populator.js concerning interstellar space. This is much more than a "personal setting", but I can put the question more common: How can a core event handler function like oolite-populator.js-interstellarSpaceWillRepopulate be completely replaced (and not only extended!) by an OXP?
Probably the answers are simple, and I'm not seeing the wood for the trees...