Wow, simple capitalization mistake on my part...and Oolite complains about a missing ;
I got my code to work after replacing "If" with "if".
Thanks cim.
Now has addShips changed since v1.76?
...because this line:
Code: Select all
system.addShips("workcom", 1, Math.random()*0.8);
(Note: I'd edited Commies OXP in the past, so this line isn't in the original!)
Generates this message:
08:51:24.906 [script.javaScript.exception.ooliteDefined]: ***** JavaScript exception (communist_population 2.11): Error: System.addShips: Invalid arguments (0.5895650011952548) -- expected vector.
I could replace such and similar lines with this:
Code: Select all
system.addShipsToRoute("workcom", 1, Math.random()*0.8);
or this:
Code: Select all
system.addGroupToRoute("workcom", 1, Math.random()*0.8);
...but it seems such a chore.
Also seeing this...which probably isn't good:
08:58:14.718 [station.launchShip.failed]: Cancelled launch for a Cobra Mark III with role trader, as it is too large for the docking port of the TransHab Station.
08:58:14.734 [station.launchShip.failed]: Cancelled launch for a Cobra Mark III with role trader, as it is too large for the docking port of the TransHab Station.
08:58:14.734 [station.launchShip.failed]: Cancelled launch for a Cobra Mark I with role sunskim-trader, as it is too large for the docking port of the TransHab Station.
I've seen that on other stations as well, so I'm not sure it's a TransHab Station problem.