I trying to isolate the issue with crashes I have found weird behaviours with Auto Drive. (It may be some stations in Boron Space as I cant get crashes in Agron space)
Firstly I consolidated log files to
log86200.txt and updated all the log file texts.

Ignore my poor spelling.
The log texts all identify the ship and will print if the drives were engaged or if there was a failure cause of no fuel or missing equipment.
Added tests for if the ship is docked.
Code: Select all
015 * === LOOP START ===
016 while [TRUE]
017 |
018 * Skip all tests if ship is docked, Landed or landing
019 |skip if not [THIS] -> is landing
020 ||goto label exit.long.wait
021 |skip if not [THIS] -> is landed
022 ||goto label exit.long.wait
023 |skip if not [THIS] -> is docked
024 ||goto label exit.long.wait
Download
mhordes.autojump_28-3-2009.zip
Here is a log output for a MORT trader with no Quantum Drive
Code: Select all
=== Start on David Super Freighter ===
David Super Freighter has destination of Factory, Ore Mine M gamma(Herron's Nebula)
David Super Freighter is atempting to Hyperjump to (-536, 6854, -14935) in Herron's Nebula
David Super Freighter sucessfully jumped...
David Super Freighter has destination of Factory, Ore Mine M gamma(Herron's Nebula)
David Super Freighter is atempting to Hyperjump to (-536, 6854, -14935) in Herron's Nebula
David Super Freighter sucessfully jumped...
David Super Freighter has destination of Factory, Ore Mine M gamma(Herron's Nebula)
David Super Freighter is atempting to Hyperjump to (-536, 6854, -14935) in Herron's Nebula
David Super Freighter sucessfully jumped...
David Super Freighter has destination of Factory, Ore Mine M gamma(Herron's Nebula)
David Super Freighter is atempting to Hyperjump to (-536, 6854, -14935) in Herron's Nebula
David Super Freighter sucessfully jumped...
David Super Freighter has destination of Factory, Ore Mine M gamma(Herron's Nebula)
David Super Freighter is atempting to Quantum Jump to (-536, 6854, -14935)
David Super Freighter unable to jump, needs drive to be installed....
David Super Freighter is atempting to Hyperjump to (-536, 6854, -14935) in Herron's Nebula
David Super Freighter sucessfully jumped...
David Super Freighter has destination of Factory, Ore Mine M gamma(Herron's Nebula)
<<<snip>>
David Super Freighter has destination of Factory, Ore Mine M beta(Herron's Nebula)
David Super Freighter is atempting to Quantum Jump to (-2032, -2133, 7555)
David Super Freighter unable to jump, needs drive to be installed....
David Super Freighter is atempting to Hyperjump to (-2032, -2133, 7555) in Herron's Nebula
David Super Freighter sucessfully jumped...
David Super Freighter has destination of Factory, Ore Mine M beta(Herron's Nebula)
David Super Freighter has destination of Factory, Ore Mine M beta(Herron's Nebula)
David Super Freighter has destination of Factory, Weapon Component Factory alpha(Argon Prime)
David Super Freighter is atempting to Hyperjump to (20639, 5092, 29689) in Argon Prime
David Super Freighter sucessfully jumped...
David Super Freighter has destination of Factory, Weapon Component Factory alpha(Argon Prime)
David Super Freighter is atempting to Hyperjump to (20639, 5092, 29689) in Argon Prime
David Super Freighter sucessfully jumped...
David Super Freighter has destination of Factory, Weapon Component Factory alpha(Argon Prime)
David Super Freighter is atempting to Hyperjump to (20639, 5092, 29689) in Argon Prime
David Super Freighter sucessfully jumped...
David Super Freighter has destination of Factory, Weapon Component Factory alpha(Argon Prime)
David Super Freighter is atempting to Quantum Jump to (20639, 5092, 29689)
David Super Freighter unable to jump, needs drive to be installed....
David Super Freighter is atempting to Hyperjump to (20639, 5092, 29689) in Argon Prime
David Super Freighter sucessfully jumped...
David Super Freighter has destination of Factory, Weapon Component Factory alpha(Argon Prime)
David Super Freighter is atempting to Quantum Jump to (20639, 5092, 29689)
David Super Freighter unable to jump, needs drive to be installed....
David Super Freighter is atempting to Hyperjump to (20639, 5092, 29689) in Argon Prime
David Super Freighter sucessfully jumped...
David Super Freighter has destination of Factory, Weapon Component Factory alpha(Argon Prime)
David Super Freighter has destination of Factory, Weapon Component Factory alpha(Argon Prime)
The line David Super Freighter sucessfully jumped... is telling us that the AutoDrive Script has called the hyperjump script.
Since it's called again next iteration it didn't work at first. This only occurs when moving to another sector
I looked at the Script stack and for about 20 - 30 seconds it would be
Code: Select all
Trade Scripts
!move.movetostation
!move.jumptogate.nearest
!move.jump
Then change for about 5 seconds to
Code: Select all
Trade Scripts
!move.movetostation
plugin.loky.hyperjump
plugin.loky.hyperjumping
Now this is from memory of me staring at the screen today so I may have the names incorrect.
Now observing on the sector map the ship jumps from near the station it undocked and arrives at the gate near the destination station. Then shortly later it jumps to the station.
I think the issues is in the interrupt script call
Code: Select all
340 ||[THIS] -> interrupt with script 'plugin.loky.hyperjump' and prio 20: arg1=$jump.pos arg2=$ship.ret arg3=null arg4=0
Can
move.jumptogate.nearest and
!move.jump be interrupted in this way?
To me it seems that the remote ship does a conventional jump with three or four failed Hyper jumps and arrives at a gate then the ship try's to quantum jump which fails (no Q drive on ship) then it finally does a hyper jump.
Now I am sure I saw the traders arriving at gates before I started playing in your code last week

But I could be wrong.
I have not observed any of these issues with the playership. But I have not tried to jump commands. Just use the autopilok

using the mouse drop down list on the destination.
EDIT: Oooh! I was reading some of the tutorials and learnt how to replace the standard commands without changing any Egosoft scripts. So next week when I get a few days off I will fix Move to Position script to work with auto drive and then fall back to normal Egosoft script.
WD