You're right. No-one has made an oxp that adds a witchpoint buoy. I suppose that the years of software maintenance have taken their toll!
<_<
>_>
Ok, I'll skip the 'paranoid mode' bits.
Why should I care about the witchpoint position? Because in the internal coordinates system, used by the engine and javascript alike, the fixpoints are
not fixed, and to translate from absolute to wpm I need the absolute coordinates of those 3 fixpoints.
pwm 0 0 0 = wpu 0 0 1 = spu 0 0 1 = abs ? ? ?
Neither planet, nor sun, nor witchpoint are ever in absolute position (0,0,0).
Ok I've just made a mini oxp to make it slightly clearer:
pwstest.zip
What it does: whenever you leave a station or jump into a new system, it will display the 3 fixpoints in absolute coordinates, it also writes them to the log. This is what I got from the first 3 systems:
Code: Select all
2008-01-28 15:06:54.171 oolite[5924] [script.pws.test]: Lave: W (-8700, -6700, -2500) P (0, 0, 617400) S (-782892, -340254, 919514)
2008-01-28 15:07:28.734 oolite[5924] [script.pws.test]: Leesti: W (-4900, -3500, 4400) P (0, 0, 401050) S (-403002, -35200.1, 734814)
2008-01-28 15:08:50.343 oolite[5924] [script.pws.test]: Diso: W (2500, 3600, -6600) P (0, 0, 677050) S (1.08895e+006, 404170, 541212)
Drats! Commander McLane, I was hoping for someone else to solve the problem for me, but it looks like I'm already a third of the way there, thanks to your searching questions! Curses!
It all seemed so easy when I saw this snippet of information inside the wiki
// in witchspace (== no sun) coordinates are absolute irrespective of the system used
I thought it might be relatively painless for either ahruman, another_commander, or dajit, to change the relevant code from something like
to something like
Code: Select all
if(witchspace || coordinatesString=='abs')
'Course, nothing in life comes easy. I suppose I should have stuck to the day job!
