Onlytargetcategory being ignored
Moderator: Moderators
Onlytargetcategory being ignored
I have a hovercraft with the following category entry:
category = "ALL HOVER MOBILE NOTSUB NOWEAPON NOTSHIP NOTAIR",
I have set my torp launcher's weapon set to:
def = "COAX_TORPEDO",
onlytargetcategory = "NOTHOVER",
NOTHOVER is a category I created by adding it to all the non hover's category tags.
Yet the torp launcher still shoots at the hovercraft. What am I missing?
category = "ALL HOVER MOBILE NOTSUB NOWEAPON NOTSHIP NOTAIR",
I have set my torp launcher's weapon set to:
def = "COAX_TORPEDO",
onlytargetcategory = "NOTHOVER",
NOTHOVER is a category I created by adding it to all the non hover's category tags.
Yet the torp launcher still shoots at the hovercraft. What am I missing?
Re: Onlytargetcategory being ignored
How many categories in total?
Re: Onlytargetcategory being ignored
Yup, maximum categories are limited to 32 (32bit = int = used structure), Spring prints a warning into the infolog.txt if you reach/exceed this.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Onlytargetcategory being ignored
Time to drop the silly NOT* categories.
Re: Onlytargetcategory being ignored
But what would you replace that with? It's not like mankind has developed a suitable replacement.CarRepairer wrote:Time to drop the silly NOT* categories.
Re: Onlytargetcategory being ignored
I dont see any warning in infolog
Re: Onlytargetcategory being ignored
I would start looking at what categories are still being used and take this as an opportunity to reduce the category count.Beherith wrote:category = "ALL HOVER MOBILE NOTSUB NOWEAPON NOTSHIP NOTAIR",
- SanadaUjiosan
- Conflict Terra Developer
- Posts: 907
- Joined: 21 Jan 2010, 06:21
Re: Onlytargetcategory being ignored
What Smoth said. ^ ^ ^
Re: Onlytargetcategory being ignored
I'm doing that, but its not helping
Re: Onlytargetcategory being ignored
anyone know of a way to check the total list of categories? does it exist as a table?
Re: Onlytargetcategory being ignored
Where are the category tags taken into effect? Only in targetting and damage? ( just so I know where to search for obsolete ones)
Re: Onlytargetcategory being ignored
http://springrts.com/wiki/Lua_ConstGame#Categoriessmoth wrote:anyone know of a way to check the total list of categories? does it exist as a table?
Re: Onlytargetcategory being ignored
the unit categories are NOT the armor def categories. They are used afaik, only in targeting.Beherith wrote:Where are the category tags taken into effect? Only in targetting and damage? ( just so I know where to search for obsolete ones)
Re: Onlytargetcategory being ignored
Hitting max categories was just a hunch, if there's no error message it may be something else, but I'm not sure what. Anything in {unit,weapons}defs_post.lua tweaking categories?
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Onlytargetcategory being ignored
Well infolog used to warn if too many categories were in use.
Re: Onlytargetcategory being ignored
it is possible that the warning got accidentallied.
Re: Onlytargetcategory being ignored
category = [[BIO LAND A B C D E F G H I J K L AA BB CC DD EE FF GG HH II JJ KK LL MM NN OO ASD WER FGH CVB GHJ ZUI ASDF YXCV HJK ZUI GFH VBN FDFDF HGHG ZTZTZ JHJH IUIU]],smoth wrote:it is possible that the warning got accidentallied.
[f=0000000] Warning: too many unit categories (32), skipping l
[f=0000000] Warning: too many unit categories (33), skipping aa
[f=0000000] Warning: too many unit categories (34), skipping bb
[f=0000000] Warning: too many unit categories (35), skipping cc
...
still there in 85.0
Re: Onlytargetcategory being ignored
Goddamit im retarded. I had a 'backup' folder in /units... Sorry for wasting everyone's time
But there did turn out to be 31 categories, many of which will now be removed because they are unused.
But there did turn out to be 31 categories, many of which will now be removed because they are unused.
Re: Onlytargetcategory being ignored
Did u tested that torpedo, ignores categorys? because ive tested them, and seems like torpedos keeps ignoring the forcing onlytargetcategory, or maybe a missing command in torpedo wich i didnt found on wiki
Re: Onlytargetcategory being ignored
target category is not done on a weapon level it is done on a unit level senna. You need to name the units in question