[FS22]stack overflow while using tension belt [patch 1.2 fixed]

Your forum for all discussions around Modding.
User avatar
HatsuneKid
Posts: 26
Joined: Thu Jul 30, 2020 5:15 am

[FS22]stack overflow while using tension belt [patch 1.2 fixed]

Post by HatsuneKid »

I'm making a flat truck with a crane for FS22. It using a tool with tension belt to pick up pallet or something else. Just likes this mod.
Image

I did the same thing in FS19 and everything works fine. But something wrong in FS22.
The truck and tool both work fine. No error or warning in log. Once I pick up a pallet on another truck with tension belt, it will pick up not only the pallet but also the truck. How could I separate them???? This won't happen in FS19!
Image

Moreover, once I pick up a pallet on the truck I currently control, the game will crash.
Image
The log shows:
2021-11-29 14:19 Error: Running LUA method 'update'.
2021-11-29 14:19 dataS/scripts/vehicles/specializations/TensionBelts.lua(1233) : stack overflow
2021-11-29 14:19 Error: Running LUA method 'update'.
2021-11-29 14:19 dataS/scripts/vehicles/specializations/TensionBelts.lua(1233) : stack overflow
2021-11-29 14:19 Error: Running LUA method 'update'.
2021-11-29 14:19 dataS/scripts/vehicles/specializations/TensionBelts.lua(1233) : stack overflow
2021-11-29 14:19 Error: Running LUA method 'update'.
2021-11-29 14:19 dataS/scripts/vehicles/specializations/TensionBelts.lua(1233) : stack overflow
..............

How to solve this problem??
Last edited by HatsuneKid on Fri Dec 17, 2021 5:53 am, edited 1 time in total.
zogla89
Posts: 2
Joined: Tue Dec 07, 2021 10:39 am

Re: [FS22]stack overflow while using tension belt

Post by zogla89 »

Set the totalinteractionradius of your belts to "0"
I think this is the last one in the tensionbelt line in the xml
User avatar
HatsuneKid
Posts: 26
Joined: Thu Jul 30, 2020 5:15 am

Re: [FS22]stack overflow while using tension belt

Post by HatsuneKid »

zogla89 wrote: Tue Dec 07, 2021 10:43 am Set the totalinteractionradius of your belts to "0"
I think this is the last one in the tensionbelt line in the xml
.....
<tensionBelts linkNode="belts" jointNode="Pallet_connector" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="-0.25" defaultOffsetSide="0.1" defaultHeight="2.75" interactionRadius="0" totalInteractionRadius="0" activationTrigger="beltActivationTrigger">
<tensionBelt startNode="beltStart1" endNode="beltEnd1" offsetLeft="0.95"/>
<tensionBelt startNode="beltStart2" endNode="beltEnd2" offsetRight="0.8"/>
</tensionBelts>
.....
Still not work.
Once I press L, the belt on that crane seems to tie the vehicle and I can no longer control anything of that vehicle.
Log:
...
2021-12-07 21:39 dataS/scripts/vehicles/specializations/TensionBelts.lua(1233) : stack overflow
2021-12-07 21:39 Error: Running LUA method 'update'.
2021-12-07 21:39 dataS/scripts/vehicles/specializations/TensionBelts.lua(1233) : stack overflow
2021-12-07 21:39 Error: Running LUA method 'update'.
2021-12-07 21:39 dataS/scripts/vehicles/specializations/TensionBelts.lua(1233) : stack overflow
2021-12-07 21:39 Error: Running LUA method 'update'.
...
User avatar
HatsuneKid
Posts: 26
Joined: Thu Jul 30, 2020 5:15 am

Re: [FS22]stack overflow while using tension belt

Post by HatsuneKid »

😁thx for patch 1.2! Bug fixed.
Image
Netts
Posts: 2
Joined: Mon Dec 26, 2022 2:49 am

Re: [FS22]stack overflow while using tension belt [patch 1.2 fixed]

Post by Netts »

Hi! Do you have a link to download this mod? This would be really handy to have around the farm! Thanks.
Post Reply