AI Files

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, The Lordz

Post Reply
axlevought
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 3
Joined: Fri Aug 01, 2014 3:09 am

AI Files

Post by axlevought »

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.
Post Reply

Return to “Commander the Great War : Mods & Scenario Design”