Page 1 of 1

Can an OXP claim an additional key ?

Posted: Fri Aug 15, 2025 10:40 am
by Lone_Wolf
While trying to draft a usage guide for my ShieldCycler i realised its design is way to complicated. Over time it also deviated a lot from my original intent to port xwing shield energy control to oolite.

To make manual control of shield energy possible I'd need 2 keys/buttons :
- key1 mode switch (divide evenly, prioritise fore, prioritise aft)
- key2 transfer shield strength

Both should be easily accessible in-flight and respond fast, but key2 would be used more often then key1.

A possibly is to make 2 primable devices and tell users to set one of them (key2 probably) to one of the fast activation keys.
Maybe there are better alternatives ?

Re: Can an OXP claim an additional key ?

Posted: Fri Aug 15, 2025 11:46 am
by phkb
In v1.91 you have the option of adding “default_activate_key” and “default_mode_key” to you equipment definition, so you can have some preconfiguration right out of the box. With v1.90 though, you’re a bit more limited (with just the fast activation keys (0 and tab).

Re: Can an OXP claim an additional key ?

Posted: Fri Aug 15, 2025 4:34 pm
by Lone_Wolf
That would have been in added in https://github.com/OoliteProject/oolite/pull/476 ?

It seems I completely missed the fact that primed equipment can already use 2 keys : b + n

Does that mean technically 4 keys could be used for primable equipment ?
2 dedicated ones + 2 when equipment is primed ?

Re-designing SC suddenly looks a lot easier then I ever expected.