Console Helper v

FS22 mods

What do you think about this mod? Write in comments!

1 Star2 Stars3 Stars4 Stars5 Stars
About mod:

This mod is a little helper to debug mods or scripts easier. With the 3 commands, values can be read and written, functions can be called and tables can be read recursively. Everything that is output in the console is also directly available in the logfile.

The following commands are available:

Command: chT
– Read tables recursively, optionally you can specify the maximum depth (no specification = depth 1).

– chT _G
– chT g_currentMission
– chT g_currentMission 10 (better not do this because it takes forever…)

Command: chF
– Call functions/methods, optionally pass up to 3 arguments.

– chF g_currentMission.controlledVehicle:getFullName
– chF g_currentMission.controlledVehicle:setCruiseControlMaxSpeed 20
– chF g_currentMission.controlledVehicle:getCruiseControlMaxSpeed

Command: chV
– Read or write the value of a field.

– chV g_currentMission.controlledVehicle.price
– chV g_currentMission.controlledVehicle.price 999999
– chV g_missionManager.missions.1.reward
– chV g_missionManager.missions.1.reward 50000

* Fix Bug in chV Command (gfind replaced by gmatch)


Leave a Reply

Your email address will not be published. Required fields are marked *

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.