ets2-telemetry-server icon indicating copy to clipboard operation
ets2-telemetry-server copied to clipboard

loose job data when unhook trailer

Open dualznz opened this issue 8 years ago • 16 comments

there seems to be a issue when unhooking the trailer it cancels the information being displayed even though i still have the job.

this shouldn't clear until cancel job or complete job

dualznz avatar Apr 27 '16 08:04 dualznz

I have also noticed this problem for a few days now and I have also noticed that the job info returns after restarting the game. I haven't tried just restarting the telemetry server though.

Foshitz avatar Apr 27 '16 08:04 Foshitz

yea i have, it didnt make a difference

dualznz avatar Apr 27 '16 08:04 dualznz

If you unhook the trailer within 0.5km of the destination point - the plugin cancels job information. Due to SDK restrictions this is the only way to achieve "job finished" event. If you are sure that you are pretty far from the destination when you unhook the trailer - it might be a bug. Please let me know.

Funbit avatar Apr 27 '16 08:04 Funbit

Last time I had that issue was in Leipzig when trucking from Bremen to Linz.

Foshitz avatar Apr 27 '16 08:04 Foshitz

yes i can confirm its a bug i was 1200 km from destination and it cancelled it

dualznz avatar Apr 27 '16 08:04 dualznz

Unfortunately, this means that game reports that destination is either 0 or less than 500m (but it shouldn't). So if this is the case - it's more like an SDK problem, rather than the plugin... Can I ask a question, why do you unhook the trailer in the first place? Where do you place it? o_o

Funbit avatar Apr 27 '16 08:04 Funbit

i got stuck so i unhooked so i could move position and then it happend

dualznz avatar Apr 27 '16 08:04 dualznz

I see. Well, if you're using the latest version of the server (3.2.5), then we should ask SDK developers, why distance changes along the way to [0, 500m]..

Funbit avatar Apr 27 '16 08:04 Funbit

yea not sure, but ok so good old scs bug

dualznz avatar Apr 27 '16 08:04 dualznz

maybe if we can store the trailer info, and if it detects it being unhooked it holds the information for a min or 2 then kills it if it hasnt been rehooked

dualznz avatar Apr 27 '16 08:04 dualznz

I'm unhooking the trailer in the intersection outside the garage on my hunt for the Property Magnate achievement, so I don't have to drive in and then back up with the trailer to be able to continue my journey

Foshitz avatar Apr 27 '16 08:04 Foshitz

mmmm, i tried 4 jobs so far in both games and they do the same thing, im running the latest

dualznz avatar Apr 27 '16 08:04 dualznz

@dualznz Actually, you proposed a very good idea regarding job info buffer. Probably I will implement it. So whenever you unhook your trailer the plugin will clear the job but remember it in some buffer. If trailer is hooked again - restore from the buffer. It should solve the issue.

Funbit avatar Apr 27 '16 08:04 Funbit

yea, that would work great indeed

dualznz avatar Apr 27 '16 08:04 dualznz

maybe you could add the buffer to the json output showing thats its stored in the buffer with a activation by a boolean True / False, then adding the trailer id and so forth to that container.

this will allow it to still be shown on the API

dualznz avatar May 04 '16 01:05 dualznz

I also can confirm this bug.

jammerxd avatar May 29 '16 05:05 jammerxd