addShipsToRoute
doesn't work in interstellar space. It returns null
.This could be deliberately, because there are no routes in interstellar space. A warning/reminder in the Wiki would be nice, though.
Moderators: winston, another_commander, Getafix
addShipsToRoute
doesn't work in interstellar space. It returns null
.It is better to have it returnCommander McLane wrote:ApparentlyaddShipsToRoute
doesn't work in interstellar space. It returnsnull
.
This could be deliberately, because there are no routes in interstellar space. A warning/reminder in the Wiki would be nice, though.
null
than populate all ships near the zero coordinate, because its clearly an oxp error when that code is used in places without any possible route It's not so difficult, especially for interstellar space. The player is always spawned in the vicinity of the originSwiteck wrote:I guess I need to re-read how to place ships at absolute coordinates using the new methods.
[0, 0, 0]
(vectors are given in square brackets). So, if you want to spawn a ship there as well, you only need to use
Code: Select all
system.addShips("role", 1, [0, 0, 0]);
1
to another value.Code: Select all
system.addShips("role", 1, [0, 0, 0], 25600);
You can do it even shorter by usingCommander McLane wrote:It's not so difficult, especially for interstellar space. The player is always spawned in the vicinity of the origin[0, 0, 0]
(vectors are given in square brackets). So, if you want to spawn a ship there as well, you only need to useIf you want more than one ship, you change theCode: Select all
system.addShips("role", 1, [0, 0, 0]);
1
to another value.
Code: Select all
system.addShips("role", 1);
Code: Select all
system.legacy_addShips("role", 1);