Mod Console Helper v1.0.0.0 for Farming Simulator 2022
This mod is a little helper to make debugging mods or scripts easier. With three commands, values can be read and written, functions can be called, and tables can be read recursively. Anything that is output to the console is also directly available in the log file.
The following commands are available:
Command: chT
Read tables recursively, you can specify a maximum depth if you want (no specification = depth 1).
Examples of
chT _G
chT g_currentMission
chT g_currentMission 10 (better not do this because it will take forever ...)
Command: chF
Calling functions / methods, if desired, you can pass up to 3 arguments.
Examples of
chF g_currentMission.controlledVehicle: getFullName
chF g_currentMission.controlledVehicle: setCruiseControlMaxSpeed 20
chF g_currentMission.controlledVehicle: getCruiseControlMaxSpeed
Command: chV
Read or write down the field value.
Examples of
chV g_currentMission.controlledVehicle.price
chV g_currentMission.controlledVehicle.price 999999
chV g_missionManager.missions.1.reward
chV g_missionManager.missions.1.reward 50,000
Of course, many other things can be called or displayed using ConsoleHelper commands. |