900hasse / FS22_REAwheels

Farming Simulator 22, wheels
34 stars 2 forks source link

attempt to compare two nil values #22

Open Gordon-Dry opened 9 months ago

Gordon-Dry commented 9 months ago
Error: Running LUA method 'update'.
.../mods/FS22_REAwheels/REAwheels.lua:1278: attempt to compare two nil values

Afer line 1275 I added 6 lines to calm down the symptom - no error logged anymore:

                if ExpectedDistance == nil then
                    ExpectedDistance = 0;
                end
                if ActualDistance == nil then
                    ActualDistance = 0;
                end

I assume it has something to do with the tiny wheels of a tedder or swather, actually I got the FELLA Juras 14055 Pro swather from FS22_fellaGrasslandEquipment and the vanilla Pöttinger HIT 16.18 T tedder - both being uncoupled but unfolded and lowered on the field.