Modding help

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Modding help

Postby NotAsian » 18 Nov 2012, 15:29

Im looking for some how to guides on the finer points of .lua / modding in sup com. Im having issues with merge also I fiddled around a little with a couple of UI mods that weren't labelled as UI mods and when I changed them to being flagged as UI mods they stopped working. Im trying to make 1.lightweight mod giving new ability's to some units and trying to extend the lifetime of pings (I always miss them).
Thanks for your help
Intentions for modification of next season of ladder
viewtopic.php?f=2&t=2030
very minor and feels like a waste.
NotAsian
Crusader
 
Posts: 48
Joined: 10 Sep 2012, 14:33
Has liked: 0 time
Been liked: 0 time
FAF User Name: NotAsian

Re: Modding help

Postby Lyr » 19 Nov 2012, 06:46

http://forums.gaspowered.com/viewforum. ... e030e55eff

The Moho mod talk forums is a relative treasure trove of useful information.

[EDIT]: http://forums.gaspowered.com/viewforum.php?f=19

This link will actually be mroe helpful with the nuts and bolts. Scuse.

EDIT2: If you want some help just reading lua, http://www.lua.org/manual/
Lyr
Banned
 
Posts: 108
Joined: 14 Nov 2012, 18:55
Has liked: 3 times
Been liked: 5 times

Re: Modding help

Postby Myxir » 19 Nov 2012, 12:41

a lot of functions used in supcom fa (patch 3599, but they probably haven't changed at all until now)
http://supcom.wikia.com/wiki/LUADOC_1.5.3599
Unhappy with balance http://i.imgur.com/q5G2BlM.png
User avatar
Myxir
Evaluator
 
Posts: 791
Joined: 09 Apr 2012, 14:01
Has liked: 94 times
Been liked: 306 times
FAF User Name: Washy (irc)

Re: Modding help

Postby NotAsian » 20 Nov 2012, 13:33

Lyr wrote:http://forums.gaspowered.com/viewforum.php?f=7&sid=e557ff300e9c5789334887e030e55eff

The Moho mod talk forums is a relative treasure trove of useful information.

[EDIT]: http://forums.gaspowered.com/viewforum.php?f=19

This link will actually be mroe helpful with the nuts and bolts. Scuse.

EDIT2: If you want some help just reading lua, http://www.lua.org/manual/


Myxir wrote:a lot of functions used in supcom fa (patch 3599, but they probably haven't changed at all until now)
http://supcom.wikia.com/wiki/LUADOC_1.5.3599


Thanks :D
Intentions for modification of next season of ladder
viewtopic.php?f=2&t=2030
very minor and feels like a waste.
NotAsian
Crusader
 
Posts: 48
Joined: 10 Sep 2012, 14:33
Has liked: 0 time
Been liked: 0 time
FAF User Name: NotAsian

Re: Modding help

Postby NotAsian » 25 Nov 2012, 04:25

can anyone tell me what's wrong with this?

local costMultiplier = 0.5
local techThreeArtilleryUnits = {}

--loop through the blueprints and add to techThreeArtilleryUnits
for id,bp in all_bps.Unit do
local fArt = false
local fStrat = false
local fT3 = false
for k,v in bp.Categories do
if v == 'ARTILLERY' then
fArt = true
elseif v == 'STRATEGIC' then
fStrat = true
elseif v == 'TECH3' then
fT3 = true
end
end
if fArt and fStrat and fT3 then
techThreeArtilleryUnits[id] = bp
end
end
--Where the units are altered
for id,bp in techThreeArtilleryUnits do
bp.Economy.BuildCostEnergy = bp.Economy.BuildCostEnergy * costMultiplier
bp.Economy.BuildCostMass = bp.Economy.BuildCostMass * costMultiplier
end
end
Intentions for modification of next season of ladder
viewtopic.php?f=2&t=2030
very minor and feels like a waste.
NotAsian
Crusader
 
Posts: 48
Joined: 10 Sep 2012, 14:33
Has liked: 0 time
Been liked: 0 time
FAF User Name: NotAsian


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest