Oolite JavaScript Reference: Mission

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Oolite JavaScript Reference: Mission

Post by spara »

No idea where to post this, but there seems to be an error in the Mission Reference:

Page says this:

Code: Select all

var options = {
   "01_AGREE" = "Take the job";
   "02_DECLINE" = "Politely decline";
};
which throws "missing : after property id" to the log.

This seems to work:

Code: Select all

var options = {
   "01_AGREE" : "Take the job",
   "02_DECLINE" : "Politely decline"
};
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Oolite JavaScript Reference: Mission

Post by cim »

Correct; error when copying the choices key from plist format and not fixing all the differences. Fixed now - thanks.
Post Reply