by nine2 » 08 Jul 2014, 04:11
i am a beginner
== to read the code
go to your FA folder, mine is C:\Program Files (x86)\Steam\SteamApps\common\Supreme Commander Forged Alliance
go to gamedata folder
all of the scd files are really zips of stuff
copy lua.scd somewhere, rename it to zip, unzip it
open any lua file in text editor to start reading through code
units.scd contains unit blueprints, will be interesting for you to see
== to make changes
you need to understand lua, which has many similarities to javascript
== understand mod structure
go to your mods folder, mine is E:\Documents\My Games\Gas Powered Games\Supreme Commander Forged Alliance\Mods
have a look at an existing mod to see what is going on
- it has a mod_info file that describes the mod
- it has a bunch of lua files that override the normal ones
== make a mod
create your own folder, and mod_info file
copy one of the standard lua files to the equivalent folder location within your mod folder
start changing your copy
enable your mod via FAF client