900hasse / FS22_REAgui

Farming Simulator 22, User interface
21 stars 5 forks source link

LUA with Lizard Conveyor from Grimme Pack #2

Open FuryDee opened 1 year ago

FuryDee commented 1 year ago

Hi, When buying Lizard Conveyor from Grimme Pack, REA Gui freaks out I:/Users/Fury/Documents/my games/FarmingSimulator2022/mods/FS22_REAgui/REAgui.lua:101: attempt to call method 'getIsControlled' (a nil value) 2022-11-06 11:26 Error: Running LUA method 'draw'. I:/Users/Fury/Documents/my games/FarmingSimulator2022/mods/FS22_REAgui/REAgui.lua:65: attempt to call method 'getIsControlled' (a nil value) 2022-11-06 11:26 Error: Running LUA method 'update'.

OptimusPrime45 commented 1 year ago

das selbe problem habe ich auch

Done82 commented 1 year ago

Edit: found an fix for this problem:

In the modDesc.xml in the FS22_GrimmePack.zip just change

<type name="conveyorLoader" parent="baseFillable" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
            <specialization name="ikChains" />
            <specialization name="motorized" />
            <specialization name="dischargeable" />
            <specialization name="conveyorBelt" />
        </type>

to

<type name="conveyorLoader" parent="baseFillable" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
            <specialization name="ikChains" />
            <specialization name="dischargeable" />
            <specialization name="conveyorBelt" />
        </type>

and the REAgui errors with this Conveyor are gone.