Project Zomboid

Project Zomboid

Autotsar Motorclub
This topic has been locked
BLUmountain Jul 9, 2022 @ 11:06am
[41.72 Unstable] Spams Error in ride a vehicle(Bike/Kawasaki)
https://pastebin.com/yEmTC8n8

Please check this log i tested multiple times but it occur same error in a log.

ingame menu UI[41.72 function] tsar library mod turn to red letter(means mod has a error)
but other using this library mod seems normal.
< >
Showing 1-7 of 7 comments
Drizzt Jul 16, 2022 @ 1:23pm 
yeah it's something specific to these vehicles - is to do with falling off

i wrote a note about it in the main comment section - you can go into your local copy of Tsar's Library and change the values to get rid of the errors and get the player to sit on bikes correctly (otherwise one leg always stays down like the bike is stopped) - and i am just testing to try and get the values right so that falling off works correctly (it won't work without a fix, and i think my values may be out by one, and so only backwards falling off works - and sometimes the player falls over when trying to mount the vehicle)
Drizzt Jul 16, 2022 @ 1:37pm 
ok - i got it sorted - so here it is:

the issue is with this line in:

tsarslib\media\lua\client\Animations\AMC_TickControl.lua

local generalCondition = getClassFieldVal(vehicle, getClassField(vehicle, 61)) + getClassFieldVal(vehicle, getClassField(vehicle, 62))

is possible the PZ devs moved some fields around or removed some unused ones

anyway - i used the debug mode and counted the fields to find the right ones, and i believe if you change 61 to 56 and 62 to 57 it will work again

in my testing the player now sits properly on the bike (previously one leg would keep hanging), and will fall off when they crash

hope this helps everyone to continue to use this awesome mod

and thanks again guys - your mods are awesome :-)
Last edited by Drizzt; Jul 16, 2022 @ 1:37pm
BLUmountain Jul 17, 2022 @ 1:22am 
@Drizzt Thanks! I tried your solution, work fine. no more spam red letters.
Last edited by BLUmountain; Jul 17, 2022 @ 1:23am
Drizzt Jul 17, 2022 @ 4:28am 
Originally posted by BLUmountain:
@Drizzt Thanks! I tried your solution, work fine. no more spam red letters.
cool - falling off should work properly too :-)
13th Jul 30, 2022 @ 7:42am 
where is the file to be modified?
KI5  [developer] Aug 2, 2022 @ 1:20am 
Originally posted by Drizzt:
ok - i got it sorted - so here it is:

the issue is with this line in:

tsarslib\media\lua\client\Animations\AMC_TickControl.lua

local generalCondition = getClassFieldVal(vehicle, getClassField(vehicle, 61)) + getClassFieldVal(vehicle, getClassField(vehicle, 62))

is possible the PZ devs moved some fields around or removed some unused ones

anyway - i used the debug mode and counted the fields to find the right ones, and i believe if you change 61 to 56 and 62 to 57 it will work again

in my testing the player now sits properly on the bike (previously one leg would keep hanging), and will fall off when they crash

hope this helps everyone to continue to use this awesome mod

and thanks again guys - your mods are awesome :-)

I've just published a temp fix with this, thanks for the help, much appreciated!
Drizzt Aug 2, 2022 @ 5:22pm 
Originally posted by KI5:
Originally posted by Drizzt:
ok - i got it sorted - so here it is:

the issue is with this line in:

tsarslib\media\lua\client\Animations\AMC_TickControl.lua

local generalCondition = getClassFieldVal(vehicle, getClassField(vehicle, 61)) + getClassFieldVal(vehicle, getClassField(vehicle, 62))

is possible the PZ devs moved some fields around or removed some unused ones

anyway - i used the debug mode and counted the fields to find the right ones, and i believe if you change 61 to 56 and 62 to 57 it will work again

in my testing the player now sits properly on the bike (previously one leg would keep hanging), and will fall off when they crash

hope this helps everyone to continue to use this awesome mod

and thanks again guys - your mods are awesome :-)

I've just published a temp fix with this, thanks for the help, much appreciated!
Glad to have been of help, and thanks for posting the fix :-)
Last edited by Drizzt; Aug 2, 2022 @ 5:23pm
< >
Showing 1-7 of 7 comments
Per page: 1530 50