Forged Alliance Forever Forged Alliance Forever Forums 2018-07-31T12:58:49+02:00 /feed.php?f=41&t=16514 2018-07-31T12:58:49+02:00 2018-07-31T12:58:49+02:00 /viewtopic.php?t=16514&p=166352#p166352 <![CDATA[Re: T1 Point Defence (Shielded)]]>
Your link is a good link to start.

Modding guide https://wiki.faforever.com/index.php?title=Modding
For blueprints: http://supcom.wikia.com/wiki/Blueprint
For weapons: http://supcom.wikia.com/wiki/Blueprint/Weapon
For easy access to .bp files using unit names: http://direct.faforever.com/faf/unitsDB/

I use notepad ++ with visual studio skin that color lua key words

The mod rep is here by defaut :
Code:
C:\Users\yourname\Documents\My Games\Gas Powered Games\Supreme Commander Forged Alliance\Mods

Process step by step. First you need to know how to hook. Download very simple mods close to your needs (that mod 1 unit) to study them (mod name, hook rep...)

Units from faf are in the units.nx2 package from gamedata FAF. Just rename it as zip then unzip it. You will have access to units bp and lua.

If you didn't succeed with reasonable efforts, tell it, i plan a tutorial series on start modding since a long time, maybe it's time to start it.

Statistics: Posted by Franck83 — 31 Jul 2018, 12:58


]]>
2018-07-31T11:59:20+02:00 2018-07-31T11:59:20+02:00 /viewtopic.php?t=16514&p=166351#p166351 <![CDATA[Re: T1 Point Defence (Shielded)]]>
I've never modded before so I have no idea where to even begin if I'm honest. What tool do I use? notepad? and where are the blueprint .bp and script .lua please?

EDIT: Just found this guide and will give it a go. http://supcom.wikia.com/wiki/Unit_Creation

Statistics: Posted by legolash2o — 31 Jul 2018, 11:59


]]>
2018-07-31T01:45:21+02:00 2018-07-31T01:45:21+02:00 /viewtopic.php?t=16514&p=166340#p166340 <![CDATA[Re: T1 Point Defence (Shielded)]]>
uel0303 ( UEF Heavy Assault Bot )
ual0202 ( AEON Heavy Tank )

Statistics: Posted by Uveso — 31 Jul 2018, 01:45


]]>
2018-07-30T23:19:07+02:00 2018-07-30T23:19:07+02:00 /viewtopic.php?t=16514&p=166338#p166338 <![CDATA[Re: T1 Point Defence (Shielded)]]>
You need to edit 2 files (your unit blueprint .bp and your unit script .lua)

You got 2 shields type :

Creating a bubble shield on turret is easy. You can set a small bubble size.

Image


If you don't love bubbles, about personal shield (with shader effect), you can take a look at UEF ACU blueprint (UEL001 unit bp), there are the 2 shield types :

Image

The first one (shield) is personal (the type you want to do) and the second (shieldgeneratorfield) the bubble one.
Logically, the difference is that for the personal shield you need to give the mesh path for the shaders fx (in UEF ACU for example)
Code:
OwnerShieldMesh = '/units/uel0001/UEL0001_PhaseShield_mesh'

Logically again, You have no size and no impact shield hit to give.

Modding the bp is different if your shield is and enhancement (same as UEF) or set at unit creation (you just need to add the shield bp, take a look at mobile shield bp from uef, aeon or sera)


Then, You need to add code script (lua) on your unit :

If the shield is an enhancement, you can add this code to your unit script in the enhancement part (or you need to write the enhancement part):
It's about the toggle icon, the energy consumption and the remove shield script.

Image



If the shield is on unit creation you can add it in the following function in your unit script with your shield bp.

Code:
   OnStopBeingBuilt = function(self, builder, layer)
   -- your shield script
    end,


Ask if you need help, idk your modding skills :)

Statistics: Posted by Franck83 — 30 Jul 2018, 23:19


]]>
2018-07-30T20:07:27+02:00 2018-07-30T20:07:27+02:00 /viewtopic.php?t=16514&p=166336#p166336 <![CDATA[T1 Point Defence (Shielded)]]>
I was wondering how I would go about adding a modified version of an original building?

For example, I want to create a T1 point defence and anti-air with a shield (not a dome shield) with the ability to turn it off and on.

Thank you. :)

Statistics: Posted by legolash2o — 30 Jul 2018, 20:07


]]>