add extra item in a buildings list

Everything about mods can be found here.

Moderator: Morax

add extra item in a buildings list

Postby warpie » 14 Aug 2015, 00:51

Hello there,

I have a question, i like put a T3 engineer in the build list of the quantum gateway
what for file must i change?

Greetings
Warpie
User avatar
warpie
Crusader
 
Posts: 37
Joined: 08 Aug 2015, 17:33
Has liked: 2 times
Been liked: 2 times
FAF User Name: warpie

Re: add extra item in a buildings list

Postby nine2 » 14 Aug 2015, 01:23

add the category BUILTBYQUANTUMGATE to each t3 engineer blueprints: ual0309, url0309, xsl0309, uel0309
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: add extra item in a buildings list

Postby warpie » 14 Aug 2015, 01:58

Edit
:D nice
Its working thx

Than the next step, i like to add all sort of T3's in the Quantum gate...
it you give some tips plz do it in a spoiler text xD
User avatar
warpie
Crusader
 
Posts: 37
Joined: 08 Aug 2015, 17:33
Has liked: 2 times
Been liked: 2 times
FAF User Name: warpie

Re: add extra item in a buildings list

Postby nine2 » 14 Aug 2015, 02:31

Spoiler: show
well you have to add BUILTBYQUANTUMGATE to all of the 19x t3 land units

get the ids by finding them in the unit db.
the id is in the url, and on the page itself

t3 mobile AA is missing from unit db so here you go

"dalk003", -- Redeemer
"drlk001", -- Bouncer
"dslk004", -- Uyanah
"delk002", -- Cougar
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: add extra item in a buildings list

Postby warpie » 14 Aug 2015, 03:29

Ahh sorry my bad, i like to T3 engineer of the 4 faction

What i now trying, goos little bad, becous the land air sea factorys can build them also and thats not what i want
only the quantum gate of the 4 factions can make the T3 engineers

so that is the code at the moment

Code: Select all
  BuildIconSortPriority = 10,
    Categories = {
        'PRODUCTFA',
        'SELECTABLE',
      'BUILTBYQUANTUMGATE',
        'CYBRAN',
      'BUILTBYQUANTUMGATE',
        'UEF',
      'BUILTBYQUANTUMGATE',
        'AEON',
      'BUILTBYTIER3FACTORY',
      'BUILTBYQUANTUMGATE',
        'SERAPHIM',
        'MOBILE',
        'LAND',
        'TECH3',
        'CONSTRUCTION',
        'ENGINEER',
        'REPAIR',
        'RECLAIM',
        'CAPTURE',
        'HOVER',
        'VISIBLETORECON',
        'RECLAIMABLE',
        'PATROLHELPER',
        'SHOWQUEUE',
    },
User avatar
warpie
Crusader
 
Posts: 37
Joined: 08 Aug 2015, 17:33
Has liked: 2 times
Been liked: 2 times
FAF User Name: warpie

Re: add extra item in a buildings list

Postby nine2 » 14 Aug 2015, 03:40

I understand now. I don't know how to do that... you might have to edit code.

The order of categories makes no difference so you have the same category in there 4x.

What you had:

Code: Select all
   
'BUILTBYQUANTUMGATE',
'CYBRAN',
'BUILTBYQUANTUMGATE',
'UEF',
'BUILTBYQUANTUMGATE',
'AEON',
'BUILTBYTIER3FACTORY',
'BUILTBYQUANTUMGATE',


is the same as

Code: Select all
   
'BUILTBYQUANTUMGATE',
'BUILTBYTIER3FACTORY',
'CYBRAN',
'UEF',
'AEON',


they both allow all factions to build the unit from quantum gate and t3 fac.

maybe you could try putting all factions on the Gateway blueprint itself. Perhaps that would allow it to build all t3 engies and all scus.

In fact now I see what you are trying to do, maybe it is more balanced to forget about t3 engies and just allow gateways to summon other factions scus. That would make it expensive, but totally possible, to unlock all tech.
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: add extra item in a buildings list

Postby warpie » 14 Aug 2015, 04:04

indeed, i like have all t3 engies in the gateway
i am new here but, i don't give up, and try it every time.
and I like coding :p

I have seen some site, it was a big list of all var's of Supcom FA. but, I dont find it anymore
like 'BUILTBYQUANTUMGATE' and the other stuff
User avatar
warpie
Crusader
 
Posts: 37
Joined: 08 Aug 2015, 17:33
Has liked: 2 times
Been liked: 2 times
FAF User Name: warpie

Re: add extra item in a buildings list

Postby nine2 » 14 Aug 2015, 04:21

Here is the full list

Spoiler: show
ABILITYBUTTON
AEON
AIR
AIRSTAGINGPLATFORM
ANTIAIR
ANTIMISSILE
ANTINAVY
ANTISUB
ARTILLERY
BATTLESHIP
BENIGN
BOMBER
BOT
BUBBLESHIELDSPILLOVERCHECK
BUILTBYAIRTIER2FACTORY
BUILTBYAIRTIER3FACTORY
BUILTBYCOMMANDER
BUILTBYEXPERIMENTALSUB
BUILTBYLANDTIER2FACTORY
BUILTBYLANDTIER3FACTORY
BUILTBYNAVALTIER2FACTORY
BUILTBYNAVALTIER3FACTORY
BUILTBYQUANTUMGATE
BUILTBYTIER1ENGINEER
BUILTBYTIER1FACTORY
BUILTBYTIER2COMMANDER
BUILTBYTIER2ENGINEER
BUILTBYTIER2FACTORY
BUILTBYTIER2SUPPORTFACTORY
BUILTBYTIER3COMMANDER
BUILTBYTIER3ENGINEER
BUILTBYTIER3FACTORY
CANNOTUSEAIRSTAGING
CANTRANSPORTCOMMANDER
CAPTURE
CARRIER
CIVILIAN
CIVILLIAN
COMMAND
CONSTRUCTION
CONSTRUCTIONSORTDOWN
COUNTERINTELLIGENCE
CRUISER
Cybran
CYBRAN
DEFENSE
DEFENSIVEBOAT
DESTROYER
DIRECTFIRE
DRAGBUILD
ECONOMIC
ENERGYPRODUCTION
ENERGYSTORAGE
ENGINEER
ENGINEERSTATION
EXPERIMENTAL
FACTORY
FAVORSWATER
FERRYBEACON
FIELDENGINEER
FRIGATE
GATE
GROUNDATTACK
HIGHALTAIR
HIGHPRIAIR
HOVER
HYDROCARBON
INDIRECTFIRE
INSIGNIFICANTUNIT
INTELLIGENCE
INVULNERABLE
LAND
LIGHTBOAT
MASSEXTRACTION
MASSFABRICATION
MASSPRODUCTION
MASSSTORAGE
MOBILE
MOBILESONAR
NAVAL
NAVALCARRIER
NEEDMOBILEBUILD
NOFORMATION
NUKE
NUKESUB
OMNI
OPERATION
OPTICS
ORBITALSYSTEM
OVERLAYANTIAIR
OVERLAYANTINAVY
OVERLAYCOUNTERINTEL
OVERLAYDEFENSE
OVERLAYDIRECTFIRE
OVERLAYINDIRECTFIRE
OVERLAYMISC
OVERLAYOMNI
OVERLAYRADAR
OVERLAYSONAR
PATROLHELPER
POD
PODSTAGINGPLATFORM
PRODUCTDL
PRODUCTFA
PRODUCTSC1
RADAR
RALLYPOINT
REBUILDER
RECLAIM
RECLAIMABLE
RECLAIMFRIENDLY
REPAIR
RESEARCH
SATELLITE
SCOUT
SELECTABLE
SERAPHIM
SHIELD
SHOWATTACKRETICLE
SHOWQUEUE
SILO
SIZE12
SIZE16
SIZE20
SIZE4
SIZE8
SONAR
SORTCONSTRUCTION
SORTDEFENSE
SORTECONOMY
SORTINTEL
SORTSTRATEGIC
SPECIALHIGHPRI
SPECIALLOWPRI
STATIONASSISTPOD
STRATEGIC
STRUCTURE
SUBCOMMANDER
SUBMERSIBLE
SUPPORTFACTORY
T1SUBMARINE
T2SUBMARINE
TACTICALMISSILEPLATFORM
TANK
TARGETCHASER
TECH1
TECH2
TECH3
TELEPORTBEACON
TRANSPORTATION
TRANSPORTBUILTBYTIER1FACTORY
TRANSPORTBUILTBYTIER2FACTORY
TRANSPORTBUILTBYTIER3FACTORY
TRANSPORTFOCUS
UEF
UNSELECTABLE
UNTARGETABLE
USEBUILDPRESETS
VERIFYMISSILEUI
VISIBLETORECON
WALL


The way I see it if you add all factions to all gates, they will all be able to build all sacus and all t3 engies. Which is good right?

However if you don't want the SACUS to be shared as well, then you have a problem that you can not solve by tweaking categories. You want to say "allow my unit to be built by this factory by all factions" and there is no inbuilt mechanism to do that, so you will have to edit code to do it, and I can't help you there but someone else could point you in the right direction.
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: add extra item in a buildings list

Postby warpie » 14 Aug 2015, 04:48

Anihilnine wrote:Here is the full list.

Thx

Anihilnine wrote:The way I see it if you add all factions to all gates, they will all be able to build all sacus and all t3 engies. Which is good right?

Yes, uhhm sacus are land-air-sea factory?

Anihilnine wrote:However if you don't want the SACUS to be shared as well, then you have a problem that you can not solve by tweaking categories. You want to say "allow my unit to be built by this factory by all factions" and there is no inbuilt mechanism to do that, so you will have to edit code to do it, and I can't help you there but someone else could point you in the right direction.


Ok then, there is work to do!
thank you, for letting me use you as a guide for right direction. :)
User avatar
warpie
Crusader
 
Posts: 37
Joined: 08 Aug 2015, 17:33
Has liked: 2 times
Been liked: 2 times
FAF User Name: warpie

Re: add extra item in a buildings list

Postby nine2 » 14 Aug 2015, 05:01

Yes, uhhm sacus are land-air-sea factory?

sacu = Support Armored Command Unit
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Next

Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest