game's fking me off at the mo. i've got a new station i'm testing. it all works good, i was genning one up on launch etc so i know all's working. i've just inserted a copy of the script i used for the NEst, to gen up on exit from WS using a PR number. Nowt's going on, in that the log says it's creating a station, but its letter is not coming up on the Space Compass. it's supposed to gen up at 90% of WPU, and there's no sign of it, ever. WTF's going on? if it's getting genned as per the script, why doesn't my compass see it and why isn't it where i want it? i'm also getting Nests genned up, and they show up fine on the compass.
<edit> right i changed
system.legacy_addShipsAt(this.role, this.count, "wpu", [0, 0, 0.99]);
to
system.legacy_addShipsAt(this.role, this.count, "wpu", [0, 0, 0.5]);
and it's genned up something i can spot on my compass, what's that all about then?
Where's my station? >:-(
Moderators: winston, another_commander, Getafix
- Killer Wolf
- ---- E L I T E ----
- Posts: 2272
- Joined: Tue Jan 02, 2007 12:38 pm
Legacy doesn't take the radii of the planet or sun into account. So you spawned your new station effectively 0.01 unit from the centre of the planet, which was probably still below it's surface Hence station goes kaboom...
If I remember correctly the nest is near the witchpoint, which of course has no solid body and so nothing to get in the way.
If you use the new system.addShips or addShipsToRoute (or whichever you want) you'll have less problems as they do take the radii into account.
If I remember correctly the nest is near the witchpoint, which of course has no solid body and so nothing to get in the way.
If you use the new system.addShips or addShipsToRoute (or whichever you want) you'll have less problems as they do take the radii into account.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- Killer Wolf
- ---- E L I T E ----
- Posts: 2272
- Joined: Tue Jan 02, 2007 12:38 pm
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
And when you intended to add a station close to the planet use another coordinate system:
This uses the planet radius as basis for distance. In this example 2 planet radii from the centre of the planet, what is also the distance used for main stations. Slightly better would be:
This puts it a bit outwards from the main spacelane axis. (at the risk it will no longer at exact 2 radii distance) But you lower the chance to meet another station at the same spot from another oxp adding also one there.
Code: Select all
system.legacy_addShipsAt(this.role, this.count, "pwp", [0, 0, 2]);
Code: Select all
system.legacy_addShipsAt(this.role, this.count, "pwp", [0.1, 0.2, 2]);
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Killer Wolf
- ---- E L I T E ----
- Posts: 2272
- Joined: Tue Jan 02, 2007 12:38 pm