Display For Tool Position v1.0.3.1

DESCRIPTION

Modified conversion of Ralf08's "Display For Tool Position" FS19 mod to FS25
Switched specialization registration to ifko's script (modified)

v1.0.3.1 - fix forklift load/save errors

CREDITS

Ralf08 (script author)
ifko[nator] (specialization registration)
andlaz (port to FS25 and FS22)

Similar modifications
COMMENTS

Commented on 2024-11-18 20:44:50

Hey it is a great mod! ,work on SP perfect , but on Dedi server no :( can u fix it ?

0
Reply to comment
avatar
andlaz
Reply comment on 2024-11-18 21:37:15

Hi,
Not sure about that as I don't use MP.
I've not changed networking code (it dates back to FS19, but perhaps it needs some update in later FS?)
Does it log any errors? (in what manner it's not working?)

0
Reply to comment
avatar
andlaz
Reply comment on 2024-11-18 21:52:46

If it logs any errors, please use "Send message" to send me what errors does it log?

0
Reply to comment
avatar
Ramza
Reply comment on 2024-11-18 23:04:23

Crate MP game on Priv Server on my PC works good , SP works good, only DEDI SERVER have a problem

0
Reply to comment
avatar
Ramza
Reply comment on 2024-11-18 23:28:22

2024-11-18 22:00 Warning (script): 'streamReadUIntN': Argument 1 has wrong type. Expected: Int. Actual: Table



D:\auto_builder\cache\svn\7741beb42f4ec919989899a3508d8d12\src\base\scripting\lua\LuauScriptSystem.cpp (1051): expectedType == Value::VoidType || expectedType == Value::ObjectType || expectedType == Value::IntArrayType || expectedType == Value::FloatArrayType || expectedType == Value::ArrayType2024-11-18 22:00
Script error: 'streamReadUIntN': Argument 1 has wrong type. Expected: Int. Actual: Table



LUA call stack:
=[C]:-1 streamReadUIntN
=dataS/scripts/network/NetworkUtil.lua:43 readNodeObjectId
=dataS/scripts/network/NetworkUtil.lua:35 readNodeObject
=config/mods/FS25_ToolDisplay/scripts/SetToDiZeroEvent.lua:36 readStream
=dataS/scripts/network/Server.lua:518 packetReceived
=dataS/scripts/network/ConnectionManager.lua:27 packetReceived
2024-11-18 22:00 Error: Running LUA method 'packetReceived'.
config/mods/FS25_ToolDisplay/scripts/SetToDiZeroEvent.lua:36: attempt to index nil with 'vehicle'
2024-11-18 22:00 Warning (script): 'streamReadUIntN': Argument 1 has wrong type. Expected: Int. Actual: Table



D:\auto_builder\cache\svn\7741beb42f4ec919989899a3508d8d12\src\base\scripting\lua\LuauScriptSystem.cpp (1051): expectedType == Value::VoidType || expectedType == Value::ObjectType || expectedType == Value::IntArrayType || expectedType == Value::FloatArrayType || expectedType == Value::ArrayType2024-11-18 22:00
Script error: 'streamReadUIntN': Argument 1 has wrong type. Expected: Int. Actual: Table



LUA call stack:
=[C]:-1 streamReadUIntN
=dataS/scripts/network/NetworkUtil.lua:43 readNodeObjectId
=dataS/scripts/network/NetworkUtil.lua:35 readNodeObject
=config/mods/FS25_ToolDisplay/scripts/SetToDiZeroEvent.lua:36 readStream
=dataS/scripts/network/Server.lua:518 packetReceived
=dataS/scripts/network/ConnectionManager.lua:27 packetReceived
2024-11-18 22:00 Error: Running LUA method 'packetReceived'.
config/mods/FS25_ToolDisplay/scripts/SetToDiZeroEvent.lua:36: attempt to index nil with 'vehicle'
2024-11-18 22:07 Warning (script): 'streamReadUIntN': Argument 1 has wrong type. Expected: Int. Actual: Table



D:\auto_builder\cache\svn\7741beb42f4ec919989899a3508d8d12\src\base\scripting\lua\LuauScriptSystem.cpp (1051): expectedType == Value::VoidType || expectedType == Value::ObjectType || expectedType == Value::IntArrayType || expectedType == Value::FloatArrayType || expectedType == Value::ArrayType2024-11-18 22:07
Script error: 'streamReadUIntN': Argument 1 has wrong type. Expected: Int. Actual: Table



LUA call stack:
=[C]:-1 streamReadUIntN
=dataS/scripts/network/NetworkUtil.lua:43 readNodeObjectId
=dataS/scripts/network/NetworkUtil.lua:35 readNodeObject
=config/mods/FS25_ToolDisplay/scripts/SetToDiZeroEvent.lua:36 readStream
=dataS/scripts/network/Server.lua:518 packetReceived
=dataS/scripts/network/ConnectionManager.lua:27 packetReceived
2024-11-18 22:07 Error: Running LUA method 'packetReceived'.
config/mods/FS25_ToolDisplay/scripts/SetToDiZeroEvent.lua:36: attempt to index nil with 'vehicle'
2024-11-18 22:07 Warning (script): 'streamReadUIntN': Argument 1 has wrong type. Expected: Int. Actual: Table



D:\auto_builder\cache\svn\7741beb42f4ec919989899a3508d8d12\src\base\scripting\lua\LuauScriptSystem.cpp (1051): expectedType == Value::VoidType || expectedType == Value::ObjectType || expectedType == Value::IntArrayType || expectedType == Value::FloatArrayType || expectedType == Value::ArrayType2024-11-18 22:07
Script error: 'streamReadUIntN': Argument 1 has wrong type. Expected: Int. Actual: Table



LUA call stack:
=[C]:-1 streamReadUIntN
=dataS/scripts/network/NetworkUtil.lua:43 readNodeObjectId
=dataS/scripts/network/NetworkUtil.lua:35 readNodeObject
=config/mods/FS25_ToolDisplay/scripts/SetToDiZeroEvent.lua:36 readStream
=dataS/scripts/network/Server.lua:518 packetReceived
=dataS/scripts/network/ConnectionManager.lua:27 packetReceived
2024-11-18 22:07 Error: Running LUA method 'packetReceived'.
config/mods/FS25_ToolDisplay/scripts/SetToDiZeroEvent.lua:36: attempt to index nil with 'vehicle'
2024-11-18 22:07 Warning (script): 'streamReadUIntN': Argument 1 has wrong type. Expected: Int. Actual: Table



D:\auto_builder\cache\svn\7741beb42f4ec919989899a3508d8d12\src\base\scripting\lua\LuauScriptSystem.cpp (1051): expectedType == Value::VoidType || expectedType == Value::ObjectType || expectedType == Value::IntArrayType || expectedType == Value::FloatArrayType || expectedType == Value::ArrayType2024-11-18 22:07
Script error: 'streamReadUIntN': Argument 1 has wrong type. Expected: Int. Actual: Table



LUA call stack:
=[C]:-1 streamReadUIntN
=dataS/scripts/network/NetworkUtil.lua:43 readNodeObjectId
=dataS/scripts/network/NetworkUtil.lua:35 readNodeObject
=config/mods/FS25_ToolDisplay/scripts/SetToDiZeroEvent.lua:36 readStream
=dataS/scripts/network/Server.lua:518 packetReceived
=dataS/scripts/network/ConnectionManager.lua:27 packetReceived
2024-11-18 22:07 Error: Running LUA method 'packetReceived'.
config/mods/FS25_ToolDisplay/scripts/SetToDiZeroEvent.lua:36: attempt to index nil with 'vehicle'

0
Reply to comment
avatar
andlaz
Reply comment on 2024-11-19 01:57:30

Hello,



Please try this version (1.0.3.2)
https://sharemods.com/bkn5i2adbwdl/FS25_ToolDisplay.zip.html



I've done some small changes that might fix the issue.



If they don't, there is a plan B - to disable the event that is used to propagate
between players if you reset the tool position or angle reference point (the Tool height reset / Tool angle reset hotkeys)
If the event is disabled, everyone will use their on zero reference (if you change it for a particular
implement, and somebody else uses it, he will not be using your changed reference).
That reference is only used for angle/height display by the mod, doesn't affect the position of the implement.



While not ideal, that would be better than crashing altogether.

0
Reply to comment
Commented on 2024-11-19 20:20:22

i can only tell, it works! SP , MP, MP dedi works perfecto ! , Thank you for you feedback and help!

0
Reply to comment
avatar
andlaz
Reply comment on 2024-11-19 20:45:18

Nice! I'll upload this version then.
Thank you for your help with the testing!

0
Reply to comment
Write a comment