Totay i wanted to test astreroid storm (latest version) with oolite 1.72
I just wanted to see the FPS during the missions (In the past i had serious performance problems)
The funny thing is that i bumbed into a bug of the JS instead
[script.javaScript.exception.22]: ***** JavaScript exception: TypeError: player.call is not a function
[script.javaScript.exception.22]: AddOns/AsteroidStorm.oxp/Scripts/AsteroidStorm.js, line 126.
Also I had the initiation of the mission without the mission info screen about the doomsday asteroid
Ah, yes. This stems from the deprecated way the missionscreen was put up in the current version, which--I think--was a workaround for some problems that no longer exist in 1.72. Instead the workaround no longer exists...
However this only works for the current system. For changing an other system info we need to use system.infoForSystem(). I just don't know how to use it. Both are write only what makes things more difficult to test. The code below lets Oolite crash. Its probably not good.
Crash confirmed and fixed. (The correct syntax is System.infoForSystem(0, 55).description = d; with a capital S – it applies to the class System, not the object system. I’m not entirely sure why it works with a lowercase s, but don’t rely on it.)
Maybe it's just me, but I am getting null every time I type in the console System.infoForSystem(0,55).description . Is this working OK in the trunk for everyone else?
Maybe it's just me, but I am getting null every time I type in the console System.infoForSystem(0,55).description . Is this working OK in the trunk for everyone else?
This is also true for 1.72. But remember it is write only. Changes are only visible on the F7 screen.