There is a null pointer in the LUA file ...\Commander The Great War\data\scripts\ui\research_panel.lua
-- How to Fix --
In that file "research_panel.lua"
Go to "function ResearchPanel:UpdateTechStats(techName, techLine, faction)"
Right below that line write in "if techName ~= nil then"
Go to "function ResearchPanel:GetTechCompletion(techId, faction)"
Right above that line write in "end"
------------------
This is a quick and dirty fix for the "techName" variable being null.
While researching this, I couldn't use the "print()" function so I had to write my own and put it in "utils.lua" to debug the crashing issue.
Code: Select all
function log(message)
logFile = io.open("log_file.txt", "a")
logFile:write(os.date("%c"), " ", message, "\n")
logFile:close()
end
edit:
Nevermind, I found it. It's LogUi(). i.e. LogUi("text to print in log file ctgw.log")