2008-04-29 19:55:18.468 oolite.exe[3260] [script.javaScript.warning.206]: ----- JavaScript warning: Mission.missionScreenTextKey is deprecated and read-only.
2008-04-29 19:55:18.468 oolite.exe[3260] [script.javaScript.warning.206]: ----- JavaScript warning: Mission.imageFileName is deprecated and read-only.
2008-04-29 19:55:18.468 oolite.exe[3260] [script.javaScript.warning.206]: ----- JavaScript warning: Mission.musicFileName is deprecated and read-only.
2008-04-29 19:55:18.468 oolite.exe[3260] [script.javaScript.warning.206]: ----- JavaScript warning: Mission.choicesKey is deprecated and read-only.
2008-04-29 19:55:18.468 oolite.exe[3260] [script.javaScript.warning.206]: ----- JavaScript warning: Mission.instructionsKey is deprecated and read-only.
I was under the impression that it was from random hits ver 1.1(the only oxp that I am aware of not being compatible with 1.71) but apparently I was mistaken since i have just installed ver 1.2 and those lines are still there
I got them too, and what I also get is the mission music on the F7 screen when in flight!!
Don`t know if the two are related, but if they were, I think the F7 thing is from localhero which, I have to say, never worked as it should on my system.
I got them too, and what I also get is the mission music on the F7 screen when in flight!!
Don`t know if the two are related, but if they were, I think the F7 thing is from localhero which, I have to say, never worked as it should on my system.
Yes, for sure you've got music INFLIGHT when pressing F7. You have the Hyperradio installed ! And the warnings are not from Localhero 1.05.
BTW: @Lestradae. What kind of problem is it with Localhero? Maybe you could specify your problem (->Localhero-Thread).
I know that the timer doesn't start again if you get killed. But this seems to be a Oolite problem. this.timer.start(); doesn't do anything since v1.71.
The error code Ark is quoting are from the JS version of "Asteroid storm". I just don't know why. I can't find none of the wrong commands inside the OXP to correct, but when I remove the OXP, the errors stop.
EDIT: And also transports.oxp is generating these warnings while I am not able to find the commands itself in the code.
On the" this.timer.start()", I don't think it stop working. In one oxp I stop it on docking and start it again on launching. I have seen no problems. I had just one occasion were I thought it didn't work. But now I am not sure anymore what it was.
Last edited by Eric Walch on Thu May 01, 2008 10:56 am, edited 1 time in total.
/* ahruman-timer-test.js
JavaScript test.oxp
A script which exercises the Timer class.
*/
this.name = "ahruman-timer-test";
this.author = "Jens Ayton";
this.copyright = "This work is hereby placed in the public domain.";
this.description = "A test of Timer functionality in Oolite.";
this.version = "1.1";
this.doSomething = function doSomething()
{
log("jsTimerTest.timerA", "timerA fired.");
}
this.doSomethingElse = function doSomethingElse()
{
log("jsTimerTest.timerB", "timerB fired.");
}
// Called after all OXPs are launched, before the game has begun.
this.startUp = function()
{
// Call this.doSomething() after one second
this.timerA = new Timer(this, this.doSomething, 7);
// Call this.doSomethingElse() every five seconds, even if the game resets.
this.timerB = new Timer(this, this.doSomethingElse, 1, 5);
this.timerB.isPersistent = true;
// Create a stopped timer, to test start()
this.timerD = new Timer(this, function () { log("jsTimerTest.timerD", "timerD fired."); }, -1, 3);
// Increment this.counter every 3 seconds, starting half a minute from now
this.counter = 0;
this.timerC = new Timer(this, function ()
{
this.counter++;
log("jsTimerTest.timerC", "timerC fired; counter = " + this.counter);
if (this.counter == 10)
{
log("jsTimerTest.timerC", "Killing timerC.");
this.timerC.stop();
delete this.timerC;
this.timerD.start();
}
}, 30, 3);
log("jsTimerTest.setUp", "Set up some timers, such as " + this.timerA + ".");
}