• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days (this includes any time you see the message "account suspended"). For more updates please see here.

Debug folder lists available Lua functions

ww2commander

Emperor
Joined
Aug 23, 2003
Messages
1,243
Location
Australia
Am I correct in assuming that the ".ltp" files located within the \steamapps\common\Sid Meier's Civilization VI\Debug folder provides a glimpse at what functions are available via Lua?

These files can be read via any text editor.

Example:
Action name "+10 XP" within the Unit.ltp file runs via the debug console:
Code:
local pUnit = GetSelectedUnit();
if (pUnit ~= nil) then
    pUnit:GetExperience():ChangeExperience(10);
end
 
Some of those files may work with the civ5 firetuner, see the topic about it.
 
Am I correct in assuming that the ".ltp" files located within the \steamapps\common\Sid Meier's Civilization VI\Debug folder provides a glimpse at what functions are available via Lua?
Those are firetuner panels (formally known as live tuner, hence ltp (at least I guess that's where that extention comes from ;))), which is a debug tool to test stuff, so the functions in there should indeed be functional.
 
Back
Top Bottom