View topic - Categories



All times are UTC + 1 hour


Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Categories
PostPosted: 01 Apr 2012, 10:49 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
While we're on the subject of improving things, would someone be interested in fixing up the category tags?

I.E. Category, OnlyTargetCategory, BadTargetCategory, etc?

It would be nice to have proper subtables for these items, like:

Category = {
Air,
Ground,
}

Any takers?

Currently there are a lot of inconsistencies. For example, badtargetcategory only pays attention to the first item, so badtargetcategory = "AIR GROUND", will only take effect for "AIR", not "GROUND".

Other silly things.


Last edited by Forboding Angel on 03 Apr 2012, 05:52, edited 1 time in total.

Top
 Offline Profile  
 
 Post subject: Re: Categories
PostPosted: 01 Apr 2012, 17:25 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
Location: ModalitÃ
change your unitdef luas and you can have that.


Top
 Offline Profile  
 
 Post subject: Re: Categories
PostPosted: 01 Apr 2012, 22:47 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
Forboding Angel wrote:
Currently there are a lot of inconsistencies. For example, badtargetcategory only pays attention to the first item, so badtargetcategory = "AIR GROUND", will only take effect for "AIR", not "Ground".

Other silly things.


Top
 Offline Profile  
 
 Post subject: Re: Categories
PostPosted: 02 Apr 2012, 07:49 
Moderator
User avatar

Joined: 29 Apr 2005, 00:14
Location: #moddev - join it!
mantis it with links to mod and maybe even a replay :P


Top
 Offline Profile  
 
 Post subject: Re: Categories
PostPosted: 02 Apr 2012, 08:37 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
So I should break the game, so someone can do some bugtesting. Yeah no.


Top
 Offline Profile  
 
 Post subject: Re: Categories
PostPosted: 02 Apr 2012, 09:16 
Moderator
User avatar

Joined: 29 Apr 2005, 00:14
Location: #moddev - join it!
Just tell them what changes to make then or make a teeny tiny mutator


Top
 Offline Profile  
 
 Post subject: Re: Categories
PostPosted: 02 Apr 2012, 22:05 
Moderator
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
Quote:
For example, badtargetcategory only pays attention to the first item, so badtargetcategory = "AIR GROUND", will only take effect for "AIR", not "Ground".
Do you mean that
a) "GROUND" != "Ground" (case sensitive) or
b) that only the first category is ever used, even with correct spelling?

a) with a few lines of lua it is possible to warn about misspelled categories/correct them
b) would be a bug (imo, if its true) and belongs on mantis.

Or do you mean
c) that "AIR GROUND" is less nice than "AIR", "GROUND"?


Top
 Offline Profile  
 
 Post subject: Re: Categories
PostPosted: 03 Apr 2012, 05:55 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
You can safely take all of your scenarios and chuck them out the window.

The C one makes a good point for it though, even though it's obvious that

category = "AIR GROUND",

is much less nice than

category = {
"AIR",
"GROUND",
}

I have corrected the non capitalized Ground. That was a typed up example, not a copy pasted one.

Try to set two categories as a badtargetcategory. Only the first one will be obeyed.

Edit: re-read your post (It's kind of confusing) and yes: "b) that only the first category is ever used, even with correct spelling?"


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Jools 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.