The problem code is in the Charon Pirate cache: StaticData: "mission 0b" a particular section of which is reproduced below.
Code: Select all
(setq testDest Nil) ; This next bit seems to be the problem code
(setq Dest Nil)
(setq destList (sysFindObject chosenKorolov "T:populated:F"))
(enum destList testDest
;(if (and
; (gr (objGetDistance chosenKorolov testDest) minDist)
; (ls (objGetDistance chosenKorolov testDest) bestDist))
(block Nil
;(setq bestDist (objGetDistance chosenKorolov testDest))
(setq Dest testDest) ; With those lines commented out, this code simply should find *any* station that is a freind of Korolov and choose it.
)
;)
)
(if (eq Dest Nil)
(block Nil
;Can't seem to find a way to stop the mission, but that is not the main problem.
)
) ; End problem code
(setq ship (sysCreateShip &scEI100; chosenKorolov &svCommonwealth;))
(shpOrderDock ship Dest)
Code: Select all
(shpOrderDock ship Dest)
Code: Select all
(shpOrderDock ship gSource)
The entire program is on xelarus if you want to test things out:
http://xelerus.de/index.php?s=mod&id=95