Advertisement
robn

Untitled

Nov 16th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. 20:27 < Ziusudra> so, it looks like AIDockWith isn't always realizing that the ship successfully docked
  2. 20:27 < Ziusudra> which is causing trade ships to undock as soon as they have docked
  3. 20:27 < robn> hmm
  4. 20:27 < robn> reproducable?
  5. 20:28 < Ziusudra> somewhat
  6. 20:29 < Ziusudra> I've a stdout.txt in which 4/4 Caribou and 3/4 Asp Explorers did so
  7. 20:29 < robn> curious
  8. 20:29 < Ziusudra> but only 1/5 Imp Traders did
  9. 20:30 < robn> so what happens? do you get onShipDocked?
  10. 20:30 < Ziusudra> I get do
  11. 20:30 < Ziusudra> er, I do
  12. 20:30 < jpab> Those sneaky imperials -- I always had a hunch that their AI research was ahead of ours!
  13. 20:31 < robn> hah
  14. 20:31 < robn> Ziusudra: then what? they're not really docked?
  15. 20:31 < Ziusudra> well, the one Imp Courier did it, too :)
  16. 20:32 < Ziusudra> No, they are docked, but the AI is still running, sees they are docked and tells them to undock
  17. 20:32 < Ziusudra> at which the point the TradeShips script gives them a new order
  18. 20:33 < robn> this would be at some high timeaccel, right?
  19. 20:33 < Ziusudra> I start looking into it because I saw an Asp do it at Mexico City at 1x
  20. 20:34 < Ziusudra> *started
  21. 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
  22. 20:34 < robn> hrm, at 1x
  23. 20:34 < robn> that doesn't sound right at all
  24. 20:34 < Ziusudra> but all the ones in the stdout are max accel though
  25. 20:34 < robn> well I don't know the AI at all, but lets give it a try :)
  26. 20:35 < robn> so to confirm, you don't undock them - the AI does
  27. 20:35 < robn> and then you get onShipUndocked
  28. 20:35 < robn> presumably
  29. 20:35 < Ziusudra> yes
  30. 20:36 < Ziusudra> the script sets up a timer to undock them later, but it doesn't fire
  31. 20:37 < Ziusudra> well, it does, but by that time they already undocked so it doesn't do anything
  32. 20:37 >>> robn nods
  33. 20:37 < robn> curious, AICmdDock does not call Launch()
  34. 20:41 < robn> I don't know. ask JohnJ :P
  35. 20:41 < robn> it reads like it should be working
  36. 20:41 < robn> but clearly its not for some cases
  37. 20:41 < robn> I don't really know how to begin
  38. 20:41 < Ziusudra> it might be something else...
  39. 20:41 < robn> from what I can see, AICmdDock will issue a AIFlyTo if you're not close enough to the target
  40. 20:42 < robn> and that might launch the ship
  41. 20:42 < robn> but once FlyTo completes, Dock comes back to life and starts guiding you through the docking waypoints
  42. 20:42 < robn> and stops the moment you're in a state that is not FLYING
  43. 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
  44. 20:53 < robn> possibly related to terrain, buildings, etc
  45. 20:53 < robn> I'm guessing really
  46. 20:59 < Ziusudra> meh, its not a big deal, I'll keep my notes and look into it later
  47. 21:00 < robn> yell at john anyway. I have another autopilot-related quirk to report, so you're in good company :)
  48. 21:02 < Ziusudra> in his defense, out of 59 trade ships in the stdout, none of them were destroyed
  49. 21:03 < robn> that's rather better than it used to be
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement