View topic - Onlytargetcategory being ignored



All times are UTC + 1 hour


Post new topic Reply to topic  [ 54 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: 05 Feb 2012, 21:10 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
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?


Top
 Offline Profile  
 
PostPosted: 05 Feb 2012, 21:40 
MC: Legacy & Spring 1944 Developer
User avatar

Joined: 29 Apr 2005, 00:14
Location: #moddev - join it!
How many categories in total?


Top
 Online Profile  
 
PostPosted: 05 Feb 2012, 21:48 
Spring Developer
User avatar

Joined: 28 Jun 2007, 06:30
Yup, maximum categories are limited to 32 (32bit = int = used structure), Spring prints a warning into the infolog.txt if you reach/exceed this.


Top
 Offline Profile  
 
PostPosted: 05 Feb 2012, 21:52 
Cursed Zero-K Developer
User avatar

Joined: 07 Nov 2007, 21:48
Location: Horse
Time to drop the silly NOT* categories.


Top
 Offline Profile  
 
PostPosted: 05 Feb 2012, 22:10 
Moderator

Joined: 05 Aug 2009, 19:42
CarRepairer wrote:
Time to drop the silly NOT* categories.

But what would you replace that with? It's not like mankind has developed a suitable replacement.


Top
 Offline Profile  
 
PostPosted: 05 Feb 2012, 22:18 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
I dont see any warning in infolog :(


Top
 Offline Profile  
 
PostPosted: 05 Feb 2012, 22:33 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
Location: You are going to die anyway, hurry up and do it.
Beherith wrote:
category = "ALL HOVER MOBILE NOTSUB NOWEAPON NOTSHIP NOTAIR",

I would start looking at what categories are still being used and take this as an opportunity to reduce the category count.


Top
 Offline Profile  
 
PostPosted: 05 Feb 2012, 23:19 
Conflict Terra Developer
User avatar

Joined: 21 Jan 2010, 06:21
Location: Tucson
What Smoth said. ^ ^ ^


Top
 Offline Profile  
 
PostPosted: 05 Feb 2012, 23:24 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
I'm doing that, but its not helping :(


Top
 Offline Profile  
 
PostPosted: 05 Feb 2012, 23:27 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
Location: You are going to die anyway, hurry up and do it.
anyone know of a way to check the total list of categories? does it exist as a table?


Top
 Offline Profile  
 
PostPosted: 05 Feb 2012, 23:41 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
Where are the category tags taken into effect? Only in targetting and damage? ( just so I know where to search for obsolete ones)


Top
 Offline Profile  
 
PostPosted: 05 Feb 2012, 23:50 
Spring Developer
User avatar

Joined: 28 Jun 2007, 06:30
smoth wrote:
anyone know of a way to check the total list of categories? does it exist as a table?

http://springrts.com/wiki/Lua_ConstGame#Categories


Top
 Offline Profile  
 
PostPosted: 05 Feb 2012, 23:53 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
Location: You are going to die anyway, hurry up and do it.
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)

the unit categories are NOT the armor def categories. They are used afaik, only in targeting.


Top
 Offline Profile  
 
PostPosted: 06 Feb 2012, 00:12 
MC: Legacy & Spring 1944 Developer
User avatar

Joined: 29 Apr 2005, 00:14
Location: #moddev - join it!
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?


Top
 Online Profile  
 
PostPosted: 06 Feb 2012, 05:33 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring since 04/24/12
Well infolog used to warn if too many categories were in use.


Top
 Offline Profile  
 
PostPosted: 06 Feb 2012, 05:51 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
Location: You are going to die anyway, hurry up and do it.
it is possible that the warning got accidentallied.


Top
 Offline Profile  
 
PostPosted: 06 Feb 2012, 10:26 
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
smoth wrote:
it is possible that the warning got accidentallied.
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]],
:arrow:
[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


Top
 Offline Profile  
 
PostPosted: 06 Feb 2012, 11:24 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
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.


Top
 Offline Profile  
 
PostPosted: 06 Feb 2012, 14:56 

Joined: 17 Mar 2009, 00:20
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


Top
 Offline Profile  
 
PostPosted: 06 Feb 2012, 16:10 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
Location: You are going to die anyway, hurry up and do it.
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


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 54 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.