you would need to bring all ai running trade.ship as a root script, back to trade.ship (instead of whatever subscript they are running). Offcourse, this could also break docked status and other things, but generally those fix themself over a few mins
If i could figure a way to read what scripts (scripts not command), an entity contain, i could make them all compatible using an md command that just restart everything when the version change. But i have yet to figure that out ><.
-= version 0.22 =-
http://www.jeypc.com/dl/tradeship_fix_wip_0.22.zip
* each trader now have a watcher that keep an eye on them, if they stop moving / executing trades attempt (frozen in whatever state) for more than 20 minutes, they get a force reset done on them, which should keep everything moving quite nicely (freezes are pretty rare now, since most are either handled by my changes with interrupts, or fixed with 1.18 beta), but well, a few still happen, and until i catch them all, that at least, let the universe run (and in debug, give me info on where the ai was frozen).
* player trade should now be fully functional. Altho still need some esthetic work (some dock are hard to reach using collision, so if they cant get to the park withing acceptable time (5mins once the docking actually start), they disable the collision and just get to the destination.
** fixed the docking, the notification and 3 different case of trading getting stuck.
- As with all my other WIP there is no garantee the save will be compatible, altho an universe from 0.20 should since most changes in between are compatible or player trade related (which you can generally reset easily by removing / adding to your squad).
The compatibility doesnt go the other way tho. a save from 0.22 definitly wouldnt work in 0.20, and chances are very high that vanilla universe wont work properly on it either (need a new game).
Assuming all the issues i wanted to fix are fixed (assuming player trade work properly, i did not test it extensively, only did a few transaction both while watching and while not watching).
Next step will be to finish the cleanup to make it compatible with vanilla.
Making it work when applied to a vanilla universe would be somewhat simple, but its a lot more complicated to go back to vanilla after (ill need to figure a way to catch command without using an npc communication kind of thing. Debug console maybe, no idea xD).