How I can create a category for only aircraft carrier

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

How I can create a category for only aircraft carrier

Postby vongratz » 18 May 2013, 02:09

How I can create a category for only aircraft carrier buids sometype of new planes?
Is it necessary tocreate a call in some Lua archive?
Ive tried to create a category: NAVYPLANE and put it the plane category and, without any sucess.Ive put in the carrier also NAVYPLANE in the buildable category, but nothing happened.What I forgot?Otherwise weird things happened.
A note!Ive utilized as base for modifs, a file mod_units.bp.
User avatar
vongratz
Avatar-of-War
 
Posts: 192
Joined: 08 May 2012, 15:03
Has liked: 165 times
Been liked: 9 times

Re: How I can create a category for only aircraft carrier

Postby The Mak » 18 May 2013, 18:27

Show us your full Categories for your plane and air craft carrier. Also show us the full BuildableCategory for the aircraft carrier.
User avatar
The Mak
Contributor
 
Posts: 342
Joined: 03 Mar 2012, 21:09
Location: New York, NY, USA
Has liked: 5 times
Been liked: 39 times
FAF User Name: The_Mak

Re: How I can create a category for only aircraft carrier

Postby FunkOff » 18 May 2013, 22:27

You create a category by pulling a name out of your ass and assigning that to a unit's list of categories: "UNITCATEGORYFROMMYBUTTOX" is a completely valid category. If you list 'UNITCATEGORYFROMMYBUTTOX' in the categories list of a unit in their blueprint file, then congrats, that unit is officially in the UNITCATEGORYFROMMYBUTTOX category, and can be determined as such. EntityCategoryContains(unit,categories.UNITCATEGORYFROMMYBUTTOX) will return true for that unit.
FunkOff
Supreme Commander
 
Posts: 1863
Joined: 26 Aug 2011, 17:27
Has liked: 14 times
Been liked: 43 times
FAF User Name: FakeOff

Re: How I can create a category for only aircraft carrier

Postby vongratz » 19 May 2013, 01:34

:lol: :lol: :lol: :lol:
Many Thanks for the answers, I will try to do the suggestion , not exactly with this name :lol: :lol: :lol: :lol: :lol: ...I will publish also all category.
Another trouble is to avoid that these navy planes would be built be air factories, that is the core of the question.
User avatar
vongratz
Avatar-of-War
 
Posts: 192
Joined: 08 May 2012, 15:03
Has liked: 165 times
Been liked: 9 times

Re: How I can create a category for only aircraft carrier

Postby Veta » 19 May 2013, 02:36

remove tech3 air factory from the plane's categories?
FA is a game of economic micromanagement (what StarCraft players mistakenly call 'macro') and tactical trumping (e.g. T2 PD countering T1 Spam).
Veta
Avatar-of-War
 
Posts: 282
Joined: 05 May 2012, 19:08
Has liked: 0 time
Been liked: 0 time

Re: How I can create a category for only aircraft carrier

Postby vongratz » 19 May 2013, 19:58

OG MY GOD my english isnt good enough to translate the idea...but lets try again.

1 - Carriers only will produce some planes
example of CYBRAN
She (the carrier) will produce only
T2 fighter-bomber Corsair (original from SCFA)
T2 torpedo-bomber Cormorant (original from SCFA)
T1 heavy interceptor (To be built only by carrier, NOT by any air factory)
T3 Fighter-bomber (To be built only by carrier, NOT by any air factory)
T3 Stealth-bomber (To be built only by carrier, NOT by any air factory)
Unfortunatelly I think we dont have any "exclusio"n category like DONTBUILT" UNITFROMYOURBUTT"
What I can do?
User avatar
vongratz
Avatar-of-War
 
Posts: 192
Joined: 08 May 2012, 15:03
Has liked: 165 times
Been liked: 9 times

Re: How I can create a category for only aircraft carrier

Postby FunkOff » 20 May 2013, 04:21

lol this is so easy: Give every carrier plane the category BUILTBYCARRIER. Then allow carriers to make BUILTYBYCARRIER + CYBRAN categories.
FunkOff
Supreme Commander
 
Posts: 1863
Joined: 26 Aug 2011, 17:27
Has liked: 14 times
Been liked: 43 times
FAF User Name: FakeOff

Re: How I can create a category for only aircraft carrier

Postby vongratz » 20 May 2013, 04:42

Yes, but the second part, the categories that allow the planes to be built also by air factories?
User avatar
vongratz
Avatar-of-War
 
Posts: 192
Joined: 08 May 2012, 15:03
Has liked: 165 times
Been liked: 9 times

Re: How I can create a category for only aircraft carrier

Postby FunkOff » 20 May 2013, 05:14

vongratz wrote:Yes, but the second part, the categories that allow the planes to be built also by air factories?


Right now, air factories can build units that mean two categories: "FACTION" - "AIR". Make them FACTION + AIR - CARRIERONLY and they will not be able to make any units that are CARRIERONLY category.
FunkOff
Supreme Commander
 
Posts: 1863
Joined: 26 Aug 2011, 17:27
Has liked: 14 times
Been liked: 43 times
FAF User Name: FakeOff

Re: How I can create a category for only aircraft carrier

Postby vongratz » 29 May 2013, 15:38

Thanks, I will try it.
User avatar
vongratz
Avatar-of-War
 
Posts: 192
Joined: 08 May 2012, 15:03
Has liked: 165 times
Been liked: 9 times


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest