Hi, I'm new to TPT moding, and am doing my first mod. How do do you add a console command? i was also wondering where the code that run autorun .lua is (completely unrelated).
Thanks in advance.
In C++? The lua commands are in src/lua/LuaScriptInterface.h I think, along with the autorun.lua code (It's a small function somewhere in the middle)
For normal console commands I think it's gui/console/consolecontroller.cpp
Jacob1 yes it is in TPTScriptInterface.cpp, ignore what I said about console controller