I bought an APRIL system and I would like to upgrade it to militairy specifications but I do not be able to do this I can not find a Planet where I can upgrade the system to militairy specifications I would like to tripple my amount of missiles
by the way I am flying a super Cobra at the moment has this somewhat to do with my problem????
can anyone tell me how I can upgrade the system? please

Sorry but the militairy upgrade does not appear at a TL 15 system I could try at other high level systems I downloaded de OXP again and put it in my addons folder again but no effect yet, maybe I am to inpatience, I wil inform you of my progress though

Simplest way is to back up your save game, then open it in a decent text editor and look for the line <key>mission_aprilExpanded</key>.

If you don't have the expansion then the line following that should say <string>false</string> - if it doesn't then change it to do so and save it (make sure you don't add a .txt suffix -or any other one - to the file by mistake too, it must end .oolite-save). Then reload the commander and try again.

You're welcome, although I wonder if this has perhaps exposed a case-sense bug in trunk.

I checked all through the OXP and nowhere is the variable set to "FALSE" as a string, but only to false as a boolean state (which is also how it is checked in equipment.plist and in the script). But iirc the save game file saves things as a string, so perhaps it's a potential mismatch problem (or I maybe need to use something other than Booleans for that flag, or use JSON).

You're welcome, although I wonder if this has perhaps exposed a case-sense bug in trunk.

I checked all through the OXP and nowhere is the variable set to "FALSE" as a string, but only to false as a boolean state (which is also how it is checked in equipment.plist and in the script). But iirc the save game file saves things as a string, so perhaps it's a potential mismatch problem (or I maybe need to use something other than Booleans for that flag, or use JSON).

I have no experience with booleans in mission variables. Probably I have always assumed that only strings and numbers are possible (I think the early script examples used only strings anyway; and we were learning by copying).

It should be no problem to convert the boolean into a string, just to be on the safe side.

Mission variables are strings. When you assign a boolean to it, it is immediately converted to a string. It is always tricky when using them as boolean as it gives 'unpredictable' results. Any string in JS is true. You see it easy when explicit convert a "FALSE" sting to a boolean with:

Code:

Boolean("FALSE")

To your surprise it will return 'true'. Okay the results are predictable but not what you might expect.

So in general it is more safe to avoid booleans in combination with mission variables altogether and only do string comparisons with "FALSE" or "NO" etc.