Forums » Bugs

Probable timing issues

Jul 15, 2020 PaKettle link
2 examples...
The gettargetinfo function which use to be immediately usable now requires a short delay after switching radar target or the function spits out nils and other garbage.
I had to add a while loop with a counter to prevent infinite looping to get the function working again.

Last night I took an escort mission and immediately launched and no convoy was generated until I flew to my destination , docked and launched again. The convoy was then generated locally and it flew to the wormhole and back.

I sort of recall that you guys made the server more responsive and lowering the priority of these types of actions is a good move however these type of issues seem likely to cause you a lot of problems.

Perhaps preventing the affected functions from returning until valid results are available would be a consideration and suspending player side Lua execution might be a way to provide reliable results.

Shrug
Use to be my problem...
edit: darn autocorrect...
Jul 15, 2020 PaKettle link
I checked the radar select code...
The delay was to avoid issues with other plugs I had.
The radar was busy handling the other plug requests and sometimes took a moment to respond.

I will likely be redoing most of it due to the target refusing to change / switching back unannounced.
I think at this point I might find a better order that avoids some of the problems.
Kinda frustrating when stuff quits working due to code rot.
Jul 15, 2020 PaKettle link
Ray it appears I have been had.
I forgot about the radar issues and was using the mdi targetless plugin which does not have a hold flag like the original one does. After removing mdi targetless my plug appears to be back to normal operation.

Even so it would be helpfull if the relevant functions didnt return until valid results were availible or perhaps some sort of error code to indicate if the target had changed might be helpfull. I know you guys arent responsible for plug foul ups but the radar does see multiple users at times and a bit of enforced cooperation would help both sides of the issue.

Hopefully some of this will prove as usefull to you as it was to me.