AI Files
Posted: Wed Aug 06, 2014 12:02 am
Are the *.ai files compiled Lua files?
-- edit 2014.08.07 --
I think they are compiled Lua based on a reference in the "ai.lua" file to load "ai_r.ai" if aiModeCompiled = true (which it is) else to load "airun.lua". I don't see "airun.lua" around, so I'm trying to decompile the .ai files with LuaDec (various versions up to 2.0.1 for Lua 5.1). I keep getting "bad header in precompiled chunk" when trying to decompile though.
Anyway, the reason I'm trying to do this is that I ran into a null pointer in the c.ai file when I was messing around with modding the other Lua files for my own fun and learning. I wanted to fix the null pointer.
-- edit 2014.08.07 --
I think they are compiled Lua based on a reference in the "ai.lua" file to load "ai_r.ai" if aiModeCompiled = true (which it is) else to load "airun.lua". I don't see "airun.lua" around, so I'm trying to decompile the .ai files with LuaDec (various versions up to 2.0.1 for Lua 5.1). I keep getting "bad header in precompiled chunk" when trying to decompile though.
Anyway, the reason I'm trying to do this is that I ran into a null pointer in the c.ai file when I was messing around with modding the other Lua files for my own fun and learning. I wanted to fix the null pointer.