yumi-modding / FS22_CombineXP

Combine XPerience mod for Farming Simulator 22 - This is a development version, use it at your own risk
https://www.farming-simulator.com/mod.php?mod_id=252266&title=fs2022
33 stars 7 forks source link

Lua Error while using Krone BigX for cutting grass (realSpeedLimit mod conflict) #7

Closed BarnyHarz closed 2 years ago

BarnyHarz commented 2 years ago

Describe the bug When i try to use the Krone BigX with Easyflow 300 to cut mowed swathed grass I get the following lua.error: 2021-12-23 13:10 Error: Running LUA method 'update'. C:/Users/Barnabas/Documents/My Games/FarmingSimulator2022/mods/FS22_CombineXP/src/xpCombine.lua:411: bad argument #1 to 'min' (number expected, got nil). The Combine and cutter do not work and the cutter is losing very fast his over all status for repairing. Everything on Erlengrat in LS22

To Reproduce Details to reproduce the behavior:

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

yumi-modding commented 2 years ago

Hello,

I tried to reproduce your issue on Haut-Beyleron and Erlengrat with BigX1180 & Easyflow 300 but I'm not able get this error. Are you using any mod (for the BigX or Easyflow) or script mod that could have changed/removed the default speedLimit that is set in the xml files ? fsScreen_2021_12_23_23_28_33 fsScreen_2021_12_23_23_20_42

BarnyHarz commented 2 years ago

Hello yumi,

I think I found the conflicting mod. It was RealSpeedLimit from the hub which was conflicting the script of CombineXP

yumi-modding commented 2 years ago

Hello @BarnyHarz , Thanks. I will try this mod and push a piece of code to avoid the error anyway.

yumi-modding commented 2 years ago

Hello @BarnyHarz I confirm it's due to realSpeedLimit mod conflict. I will deliver a fix so people can use both if they like.

jason0611 commented 2 years ago

Hello yumi, today I investigated I little bit in this issue: Both mods are overwriting the same function, vehicle:getSpeedLimit. So I fear, this mod conflict will not be solvable. As a workaround for myself I modified realSpeedLimit to no longer register into combines, but this is only helpful if you are using both mods. Regards, Martin

yumi-modding commented 2 years ago

Thanks, that could be an idea. I think i can maybe tell that for combines RSL getSpeedLimit overwrite does nothing. Need to test

JimmyBeam1990 commented 2 years ago

hi, are there any changes yet? because we also use both mods on a Dedi server and when we want to chop grass the chopper only goes 3 kmh

Mod: FS22_adjustWorkingSpeed.zip v2.1.0.0

edit: after the removal of: FS22_adjustWorkingSpeed, the Fendt Katana 65 and Kemper P3003 still only drives 3 Kmh around harvest mode.

edit2: never mind, the fendt katana is a private mod, it is not stored in combineXP.xml