The JS function "unmarkSystem()" is not working. markSystem() however works.
Using "unmarkSystem" in a script currently leads to a systemcrash. Also with debugMenu you can mark a system (the red cross appears in the chart). When using the unmarkSystem debugMenu complains about a unknown function.
It is possible that this function still had to be tested as it was not mentioned on the wiki. But looking in the code (in: OOJSMission.m) I see almost no difference between the two and why one is working and the other not.
unmarkSystem
Moderators: winston, another_commander, Getafix
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Shouldn't the line
in unmarkSystem be
like in its markSystem counterpart?
If you can provide a test script I could test and check in a fix really soon. This has to be a typo or copy/paste error.
Code: Select all
player = [NSString concatenationOfStringsFromJavaScriptValues:argv count:argc separator:@" " inContext:context];
Code: Select all
params = [NSString concatenationOfStringsFromJavaScriptValues:argv count:argc separator:@" " inContext:context];
If you can provide a test script I could test and check in a fix really soon. This has to be a typo or copy/paste error.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
That should be "removeMissionDestination:". The colon is part of the method name.
E-mail: [email protected]
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Thanks, I should have known as I wondered about that colon before. Just an addition. player.call() does not accept a mission variable as parameter. I had to define a local variable first an use that instead. But it works now.That should be "removeMissionDestination:". The colon is part of the method name.