Frvetz / FS22_RealisticDamageSystem

Realistic Damage System
https://discord.com/invite/mfergkwhDu
51 stars 6 forks source link

Starting Tractor After Repairs #21

Closed joscmoe closed 6 months ago

joscmoe commented 7 months ago

After I repair damage to a tractor I sometimes cannot start it. Doesn't matter the amount of damage repaired. If I quit the game and go back in the tractor starts normally. I have the autostart turned off.

Frvetz commented 6 months ago

Hmm okay, thank you!

pwmeredith commented 6 months ago

I did a short test yesterday evening and the problem seems to be fixed. On the first try I got the message that the inspection was done. Before I got the message that the CVT Change was complete.

But now another problem arises. Since some time I get no damage at all… but there I’m unsure if it has something to do with your mod at all. So I need to further investigate.

@pwmeredith i don’t expect anything like this. Can you post your Logfile after FS crashes?

Please disregard my comments above. I found a mod that was causing the freezing at exit. Removed this and now carrying out further tests. Will let you know.

pwmeredith commented 6 months ago

I think I may of found what's causing the vehicle not to start after repair. Could somebody put the repair pallet by a vehicle repair icon (spanner) in game so that the zones intersect each other and then do a repair on it using the realistic vehicle repair mod (if that makes sense!). Then when complete, try to start the vehicle please.

Merrlin commented 6 months ago

That’s what I’ve done the whole time… That was the first thought that crossed my mind. But for now it works even if tractor and Pallet stand in the same Repair Area.

Frvetz commented 6 months ago

Ohhh okay. That's super weird since I don't use a area trigger like the game does. The pallet is an object without any triggers so no triggers can interfere. Instead my script searches for the name of the pallet, gets its position and then calculates how far the vehicle is away from the pallet. If it is close enough the button will appear.

But it could be that the vehicle is somehow loaded when it's inside the workshop trigger from the game and then it doesn't start anymore after a repair. It would be awesome if it's fixed now.

Then the only issue left is the no damages/faults problem

Merrlin commented 6 months ago

Yeah as said, it’s not a problem if pallet and tractor are inside the trigger. I play on Galgenberg and the pallet is inside the lifting platform and the tractor stands right beside in the same room. So no issues here.

maybe the no damage bug is caused because of the reduced maintenance cost mod mentioned in the readme. That was my first thought but didn’t test yet

Frvetz commented 6 months ago

Maybe... The reduced maintenance mod no longer serves any function for me, now everything is only controlled by my settings. However, the mod is still supported by my script, as the vehicle would otherwise receive normal FS damage, but that has nothing to do with my damages/faults

Frvetz commented 6 months ago

Then I would close this issue for now. As soon as the problem occurs again and someone reports it, I'll reopen the issue 👍

And @Merrlin - I'll open another issue for the no damages problem so the two problems stay separated 😃

goldenshoes commented 6 months ago

Hi! So I use latest version that is 0.9.1.5. Can's start tractor or start repairs now, Uploading log file after rdsDebug command in console

log.txt

Frvetz commented 6 months ago

Oh my god. I found the problem. The problem is in the area where I load the saved values from the XML. The variable that is set to true as soon as the engine is not allowed to start (when a maintenance or inspection is started) is loaded for the variable for a CVT maintenance. So this started the CVT maintenance and as a result the variable for the engine start was then set to true again (motor can't start)