How can i make a mod?scd file/lobby vaults

Everything about mods can be found here.

Moderator: Morax

How can i make a mod?scd file/lobby vaults

Postby jj_erklärt » 08 Jul 2014, 01:35

Until yet I understood there are lua files, where can i change some basics...

but how can i make a mod in scd files?which programm language is needet etc...?
paaaaaaau!
User avatar
jj_erklärt
Crusader
 
Posts: 26
Joined: 08 Jul 2014, 01:17
Has liked: 2 times
Been liked: 1 time
FAF User Name: pls_play_fair

Re: How can i make a mod?scd file/lobby vaults

Postby 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
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest