Need help : simple SCU mod with side effect on support fact

Everything about mods can be found here.

Moderator: Morax

Need help : simple SCU mod with side effect on support fact

Postby Paul Kauphart » 30 Jun 2014, 22:01

Hello,

I've been making a very simple mod, mainly for use in the FA campaign scenario, which allows quantum gates from any faction in the alliance to summon SCU of all three factions (they're allied, so why the heck not).
It works, but has the strange and annoying side effect that Cybran and UEF SCU can't build support factories, but Aeon can.

I've been trying to find if there was a meaningfull difference between the SCUs .bp, between the support factories .bp, but could not really find anything. My knowledge of FA code being very limited, I've kind of hit a wall.

Here is the mod code (just one file named mod_SCU.bp), basically for each SCU I added the other two factions in the Categories field :

Code: Select all
UnitBlueprint {
   Merge = true,
   BlueprintId="ual0301",
   
   Categories = {
        'PRODUCTSC1',
        'SELECTABLE',
        'AEON',
        'CYBRAN',
        'UEF',
        'MOBILE',
        'LAND',
        'TECH3',
        'ENGINEER',
        'CONSTRUCTION',
        'REPAIR',
        'RECLAIM',
        'REBUILDER',
        'BUILTBYQUANTUMGATE',
        'CAPTURE',
        'VISIBLETORECON',
        'SUBCOMMANDER',
        'PATROLHELPER',
        'SHOWQUEUE',
        'OVERLAYDIRECTFIRE',
        'OVERLAYOMNI',
        'USEBUILDPRESETS',
    },
}
UnitBlueprint {
   Merge = true,
   BlueprintId="uel0301",
   
    Categories = {
        'PRODUCTSC1',
        'SELECTABLE',
        'UEF',
        'AEON',
        'CYBRAN',
        'MOBILE',
        'LAND',
        'TECH3',
        'CONSTRUCTION',
        'REPAIR',
        'RECLAIM',
        'REBUILDER',
        'BUILTBYQUANTUMGATE',
        'PODSTAGINGPLATFORM',
        'ENGINEER',
        'MASSPRODUCTION',
        'MASSFABRICATION',
        'ENERGYPRODUCTION',
        'CAPTURE',
        'VISIBLETORECON',
        'SUBCOMMANDER',
        'PATROLHELPER',
        'SHOWQUEUE',
        'OVERLAYOMNI',
        'OVERLAYDIRECTFIRE',
        'OVERLAYCOUNTERINTEL',
        'USEBUILDPRESETS',
        'BUBBLESHIELDSPILLOVERCHECK',
    },
}
UnitBlueprint {
   Merge = true,
   BlueprintId="url0301",
   
    Categories = {
        'PRODUCTSC1',
        'SELECTABLE',
        'CYBRAN',
        'AEON',
        'UEF',
        'MOBILE',
        'LAND',
        'TECH3',
        'ENGINEER',
        'CONSTRUCTION',
        'REPAIR',
        'RECLAIM',
        'REBUILDER',
        'BUILTBYQUANTUMGATE',
        'CAPTURE',
        'VISIBLETORECON',
        'SUBCOMMANDER',
        'PATROLHELPER',
        'SHOWQUEUE',
        'OVERLAYOMNI',
        'OVERLAYDIRECTFIRE',
        'USEBUILDPRESETS',
    },
}
User avatar
Paul Kauphart
Crusader
 
Posts: 42
Joined: 23 Apr 2014, 01:27
Has liked: 5 times
Been liked: 3 times
FAF User Name: Paul_Kauphart

Re: Need help : simple SCU mod with side effect on support f

Postby Vault54 » 30 Jun 2014, 23:37

Can you post a picture of working and non-working scu so its easier to understand the situation.
"Don't Hate The Player, Don't Hate The Game" - The Diamond Standard
User avatar
Vault54
Avatar-of-War
 
Posts: 109
Joined: 17 Feb 2012, 07:58
Has liked: 5 times
Been liked: 5 times
FAF User Name: Vault54

Re: Need help : simple SCU mod with side effect on support f

Postby Paul Kauphart » 01 Jul 2014, 02:50

Don't have time to do so today, need to go to bed, might do it tomorrow. In the meantime, a more detailed explanation :

Normally, once you have a T3 HQ (let's say land for example), a T3 engineer, or a ACU with T3 upgrade or an SCU can build T3 support land factory.

With my mod activated, the UEF and Cybran SCU can't build any support factory. I have a T3 UEF Land HQ, a T3 engi can build the associated T3 land support factory, the SCU can't (it does not appear in the UI). Same for Cybran. However, if I get a T3 Aeon HQ, the Aeon SCU can build the support factory.

So Aeon SCU is working as expected, but not the two others
User avatar
Paul Kauphart
Crusader
 
Posts: 42
Joined: 23 Apr 2014, 01:27
Has liked: 5 times
Been liked: 3 times
FAF User Name: Paul_Kauphart

Re: Need help : simple SCU mod with side effect on support f

Postby Vault54 » 01 Jul 2014, 09:02

My guess would be that you builded that Aeon t3 HQ manually and spawned UEF and Cybran T3 HQs via cheat menu and those SCUs existed before the HQ spawning. If not then i need pictures and more info.
"Don't Hate The Player, Don't Hate The Game" - The Diamond Standard
User avatar
Vault54
Avatar-of-War
 
Posts: 109
Joined: 17 Feb 2012, 07:58
Has liked: 5 times
Been liked: 5 times
FAF User Name: Vault54

Re: Need help : simple SCU mod with side effect on support f

Postby Paul Kauphart » 01 Jul 2014, 15:59

Nope, I started as UEF, upgraded the ACU to T3, built a quantum gate, built an Aeon SCU, a UEF SCU and a Cybran SCU, build land factories and upgraded them to T3 HQ (both Air and Land of the three factions).

I'll get you the screenshot when I get back home tonight.

Would you need anything else ? Replay, game log...
User avatar
Paul Kauphart
Crusader
 
Posts: 42
Joined: 23 Apr 2014, 01:27
Has liked: 5 times
Been liked: 3 times
FAF User Name: Paul_Kauphart


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest