Change faction color of a unit to another faction's color

Everything about mods can be found here.

Change faction color of a unit to another faction's color

Postby bofhlusr » 15 Mar 2019, 07:31

Hi,

I'm new to modding (hacking?) FAF. I want to 'borrow' a unit from one faction and place it into another faction (UEF). I know how to borrow by copying the 'bp' and it's associated files from a unit into another unit but how do I change the unit's color to UEF (blue).

What kind of tool(s) do I need for FAF?

This is for offline play against an AI only.

Thank you.

Bofhlusr
bofhlusr
Crusader
 
Posts: 19
Joined: 02 Feb 2013, 06:43
Has liked: 4 times
Been liked: 1 time
FAF User Name: faforever

Re: Change faction color of a unit to another faction's colo

Postby Franck83 » 15 Mar 2019, 10:55

All you need is to create a mod :

For example if you want to add cybran SCAU to Uef units :

1. Go to C:\ProgramData\FAForever\gamedata, take the units.nx2 file.
Rename it to zip. Unpack it.

2. Create your mod files


3. Take the unit bp you want from your zip file and put it in your unit hook rep.
\Mods\YourMod\Hook\units\URL0301

4. Replace the faction name CYBRAN to UEF in the bp files :
Code: Select all
Categories = {
        'PRODUCTSC1',
        'SELECTABLE',
        'UEF', -- from CYBRAN
        'MOBILE',
        'LAND',
        'TECH3',
        'ENGINEER',
        'CONSTRUCTION',
        'REPAIR',
        'RECLAIM',
        'BUILTBYQUANTUMGATE',
        'CAPTURE',
        'VISIBLETORECON',
        'SUBCOMMANDER',
        'PATROLHELPER',
        'SHOWQUEUE',
        'OVERLAYOMNI',
        'OVERLAYDIRECTFIRE',
        'USEBUILDPRESETS',
    },



Code: Select all
Economy = {
        BuildCostEnergy = 26400,
        BuildCostMass = 2000,
        BuildRate = 56,
        BuildTime = 14400,
        BuildableCategory = {
            'BUILTBYTIER3ENGINEER UEF', -- from CYBRAN
        },
        MaintenanceConsumptionPerSecondEnergy = 0,


Code: Select all
        ConstructionBar = true,
        FactionName = 'Uef', -- From cybran
        Icon = 'amph',
        SelectionPriority = 3,
        TechLevel = 'RULEUTL_Secret',
        UnitWeight = 1,


4. Enjoy !

Image
Alliance of Heroes Mod is out ! Try it ! It's in the Mod Vault !
User avatar
Franck83
Evaluator
 
Posts: 514
Joined: 30 Dec 2016, 11:59
Location: France
Has liked: 97 times
Been liked: 117 times
FAF User Name: Franck83

Re: Change faction color of a unit to another faction's colo

Postby Anihilnine » 15 Mar 2019, 14:14

"how do I change the unit's color to UEF (blue)"

A unit has
1. a texture graphic - you can edit it in photoshop
2. team colour overlay - it gets the colour from the team. You could change the colour of the team (map script?) or change the team of the unit

I think you mean #2 but it's not that clear. You could explain what you are trying to do more.
Anihilnine
Moderator
 
Posts: 2264
Joined: 16 Apr 2013, 10:10
Has liked: 265 times
Been liked: 398 times
FAF User Name: Anihilnine

Re: Change faction color of a unit to another faction's colo

Postby Franck83 » 15 Mar 2019, 15:34

It seems i answered the wrong question :o :lol:
Alliance of Heroes Mod is out ! Try it ! It's in the Mod Vault !
User avatar
Franck83
Evaluator
 
Posts: 514
Joined: 30 Dec 2016, 11:59
Location: France
Has liked: 97 times
Been liked: 117 times
FAF User Name: Franck83


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest