Just now, well, some time ago, I was at the Kiota Relay Station in Ervein (G1), it had really cheap fur, so i decide to run it to then main station for good profit. There was a taxi passenger waiting to go to the Mall-Wart Con Store, too, so I decide to fly him over for a few extra bucks. I ran the trip all the way either on witchfuel or jump drive, but arrived with only 3 minutes to dock before the contract expiration, but the 25 KM area was completely empty, so I thought no problem, I can fly in manually in much less, only to hear from the station I was to keep in line as there was incoming traffic. No such traffic appeared, nor docked, and still I had no clearance, as the final seconds of the contract ticked away.
Fustrated, I discarded all thought of money, and put the ship on computer docking. That was 32 minutes ago, and I'm still not docked, and the 25 km are still empty. I've not watched the whole time, but it takes no other evidence to see that there is something seriously wrong in the docking code. Is this scripted code, that I can look at (and if so, where?), or part of the compiled binary?
Serious docking AI buggery.
Moderators: winston, another_commander, Getafix
Serious docking AI buggery.
User Mazur, Commander Vatta, Hyperspace Delivery Boy.
Squeaky clean, utterly harmless, rank amateur.
Squeaky clean, utterly harmless, rank amateur.
Re: Serious docking AI buggery.
Now I've calmed down a bit, and cleared my spleen and head, I realise this could be a side effect of Station Dock Control, if ships that are the first to depart from a station in time are put in the departure queue long before the actual departure, thus tying up docking until they want to leave.
Is such a side effect possible?
Is such a side effect possible?
User Mazur, Commander Vatta, Hyperspace Delivery Boy.
Squeaky clean, utterly harmless, rank amateur.
Squeaky clean, utterly harmless, rank amateur.
- phkb
- Impressively Grand Sub-Admiral
- Posts: 5148
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: Serious docking AI buggery.
I don't think the Station Dock Control is the cause of this. SDC will put ships into the launch queue of a station, but after that it's all core code. The original populator does the same thing, just randomly - the SDC does it from a list. As for the docking process, SDC doesn't handle that at all. It will record what ships dock, but it doesn't cause ships to dock, or interfere with the docking process at all.
Maybe someone who know the core routines better than I can determine what happens if a ship requests docking clearance and then moves away. Is there any possibility the station (particularly OXP stations) could get stuck in a loop of waiting for a non-existent ship to dock? I've also seen the same thing happen at Con-stores but didn't think a lot of it at the time. I didn't need to dock, so I just headed for the main station.
Maybe someone who know the core routines better than I can determine what happens if a ship requests docking clearance and then moves away. Is there any possibility the station (particularly OXP stations) could get stuck in a loop of waiting for a non-existent ship to dock? I've also seen the same thing happen at Con-stores but didn't think a lot of it at the time. I didn't need to dock, so I just headed for the main station.
Re: Serious docking AI buggery.
It's possible that an NPC ship could grab docking clearance and then fly off in the other direction. I've no idea what might cause that to happen, though.
I'll add a failsafe for it in the next version.
I'll add a failsafe for it in the next version.
Re: Serious docking AI buggery.
Please do. To round the report off: after some 50 minutes the store barfed out two sets of ships and I was finally allowed to drop off my seriously pissed off passenger.cim wrote:It's possible that an NPC ship could grab docking clearance and then fly off in the other direction. I've no idea what might cause that to happen, though.
I'll add a failsafe for it in the next version.
User Mazur, Commander Vatta, Hyperspace Delivery Boy.
Squeaky clean, utterly harmless, rank amateur.
Squeaky clean, utterly harmless, rank amateur.
Re: Serious docking AI buggery.
Tonight's build should kick ships out of the docking queue if they get out of scanner range of the dock.
There was also a bug in the old plist-based docking AI which would send ships, including the player on docking computer, off to the witchpoint as their "holding position". Ships with newer AIs were not affected. So that may have been where the ship taking up the docking queue went (presumably when it finally reached the witchpoint, it released the queue spot). Also fixed tonight, I hope.
Thanks for the bug report.
There was also a bug in the old plist-based docking AI which would send ships, including the player on docking computer, off to the witchpoint as their "holding position". Ships with newer AIs were not affected. So that may have been where the ship taking up the docking queue went (presumably when it finally reached the witchpoint, it released the queue spot). Also fixed tonight, I hope.
Thanks for the bug report.
Re: Serious docking AI buggery.
Bug report? What bug report? I was just blowing off steam at inferior programming code and barely refraining myself from ranting at the good people that made all this fun even remotely possible!cim wrote:Thanks for the bug report.

User Mazur, Commander Vatta, Hyperspace Delivery Boy.
Squeaky clean, utterly harmless, rank amateur.
Squeaky clean, utterly harmless, rank amateur.
Re: Serious docking AI buggery.
You might also consider adding code to allow a ship a maximum of two extensions, or something, so that another bug i once or twice noticedcim wrote:Tonight's build should kick ships out of the docking queue if they get out of scanner range of the dock.
There was also a bug in the old plist-based docking AI which would send ships, including the player on docking computer, off to the witchpoint as their "holding position". Ships with newer AIs were not affected. So that may have been where the ship taking up the docking queue went (presumably when it finally reached the witchpoint, it released the queue spot). Also fixed tonight, I hope.
Thanks for the bug report.
(ship in loop of approach but failing to dock) will be broken through.
User Mazur, Commander Vatta, Hyperspace Delivery Boy.
Squeaky clean, utterly harmless, rank amateur.
Squeaky clean, utterly harmless, rank amateur.