scs-sdk-plugin icon indicating copy to clipboard operation
scs-sdk-plugin copied to clipboard

Events getting called too often

Open Er0nax opened this issue 4 years ago • 6 comments

Each time, the sdk gets an event (e.g. fined), the function gets called more then once. This isn't just once every x times. Might it be a bug from ets2 side?

Er0nax avatar Jan 02 '22 16:01 Er0nax

The plugin passes everything it receives directly, so it probably is something with the game, although it should be possible to change that

ndelta0 avatar Jan 02 '22 20:01 ndelta0

Well, if you are trying to use the included Demo, its even sending any event 4 times. I do not have a problem with that as there are many workarounds, but I thought I let you guys know in case its a problem with the actual code from this repo.

Er0nax avatar Jan 03 '22 16:01 Er0nax

Thank you for reporting this. Like ndelta0 wrote the events are basically just past through.

I will check that. It could be the bug of another issue than i would try to prevent this.

RenCloud avatar Jan 08 '22 15:01 RenCloud

Could not reproduce it in a 10 minute drive. But another person reported it to me, too. So I probably need more information e.g. game version and game (ats or ets2)

RenCloud avatar Jan 17 '22 07:01 RenCloud

I was trying it in ETS2 on 1.42 aswell as 1.43

Er0nax avatar Jan 20 '22 19:01 Er0nax

Could I ask if this is similar to the event job.delivered spamming many times? Our client will flush (Write over) the memory location of the event once it been dealt with but for some people, it will just spam forever, not every job and its not limited to job.delivered event. Its very random and I haven't found a pattern yet.

mrnat7471 avatar Feb 05 '23 04:02 mrnat7471