Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 20:27 < Ziusudra> so, it looks like AIDockWith isn't always realizing that the ship successfully docked
- 20:27 < Ziusudra> which is causing trade ships to undock as soon as they have docked
- 20:27 < robn> hmm
- 20:27 < robn> reproducable?
- 20:28 < Ziusudra> somewhat
- 20:29 < Ziusudra> I've a stdout.txt in which 4/4 Caribou and 3/4 Asp Explorers did so
- 20:29 < robn> curious
- 20:29 < Ziusudra> but only 1/5 Imp Traders did
- 20:30 < robn> so what happens? do you get onShipDocked?
- 20:30 < Ziusudra> I get do
- 20:30 < Ziusudra> er, I do
- 20:30 < jpab> Those sneaky imperials -- I always had a hunch that their AI research was ahead of ours!
- 20:31 < robn> hah
- 20:31 < robn> Ziusudra: then what? they're not really docked?
- 20:31 < Ziusudra> well, the one Imp Courier did it, too :)
- 20:32 < Ziusudra> No, they are docked, but the AI is still running, sees they are docked and tells them to undock
- 20:32 < Ziusudra> at which the point the TradeShips script gives them a new order
- 20:33 < robn> this would be at some high timeaccel, right?
- 20:33 < Ziusudra> I start looking into it because I saw an Asp do it at Mexico City at 1x
- 20:34 < Ziusudra> *started
- 20:34 < robn> AIDock doesn't complete until the ship hits the docking surface. I suppose if it somehow misses that then it could end up docked with the AI completing. and all the AI commands issue Launch() if they find themselves docked, iirc
- 20:34 < robn> hrm, at 1x
- 20:34 < robn> that doesn't sound right at all
- 20:34 < Ziusudra> but all the ones in the stdout are max accel though
- 20:34 < robn> well I don't know the AI at all, but lets give it a try :)
- 20:35 < robn> so to confirm, you don't undock them - the AI does
- 20:35 < robn> and then you get onShipUndocked
- 20:35 < robn> presumably
- 20:35 < Ziusudra> yes
- 20:36 < Ziusudra> the script sets up a timer to undock them later, but it doesn't fire
- 20:37 < Ziusudra> well, it does, but by that time they already undocked so it doesn't do anything
- 20:37 >>> robn nods
- 20:37 < robn> curious, AICmdDock does not call Launch()
- 20:41 < robn> I don't know. ask JohnJ :P
- 20:41 < robn> it reads like it should be working
- 20:41 < robn> but clearly its not for some cases
- 20:41 < robn> I don't really know how to begin
- 20:41 < Ziusudra> it might be something else...
- 20:41 < robn> from what I can see, AICmdDock will issue a AIFlyTo if you're not close enough to the target
- 20:42 < robn> and that might launch the ship
- 20:42 < robn> but once FlyTo completes, Dock comes back to life and starts guiding you through the docking waypoints
- 20:42 < robn> and stops the moment you're in a state that is not FLYING
- 20:52 < Ziusudra> maybe the place matters, 4 of the 8 times was at Enki Catena, 2 at Dante's Base, 1 Mars High, 1 Tomm's
- 20:53 < robn> possibly related to terrain, buildings, etc
- 20:53 < robn> I'm guessing really
- 20:59 < Ziusudra> meh, its not a big deal, I'll keep my notes and look into it later
- 21:00 < robn> yell at john anyway. I have another autopilot-related quirk to report, so you're in good company :)
- 21:02 < Ziusudra> in his defense, out of 59 trade ships in the stdout, none of them were destroyed
- 21:03 < robn> that's rather better than it used to be
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement