//$Category not working.

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Graaicko
Posts: 531
Joined: Tue Jun 17, 2014 11:22 pm
Graphics Processor: nVidia (Legacy GZDoom)

//$Category not working.

Post by Graaicko »

I'm trying to categorize everything I made for my mod for easy access in GZDB. But this piece of code is broken af. No matter how many times I change the category name or load it in GZDB the little prick does not want to show the actor. This is seriously stressing me out. The code we are focusing on is //$Category SEnemies.
Don't know if its slade being stupid or if it is GZDB.
Spoiler:
Last edited by Graaicko on Sun May 03, 2020 7:00 pm, edited 1 time in total.
User avatar
Ozymandias81
Posts: 2063
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: //$Category not working. Simple as that.

Post by Ozymandias81 »

1) Did you include properly your custom wad inside resources when loading the map on GZDB? Click the "Add resource" button while opening your map, select desired file (wad/folder structure/pk3) and load it.

OTHERWISE

2) Are you using .wad or .pk3 format?
3) Did you include the actor lump inside a DECORATE text file in case you are using .pk3 and an external file (for example enemies.txt nested inside a folder called actors)?
Last edited by Ozymandias81 on Sun Apr 22, 2018 5:23 pm, edited 1 time in total.
User avatar
Graaicko
Posts: 531
Joined: Tue Jun 17, 2014 11:22 pm
Graphics Processor: nVidia (Legacy GZDoom)

Re: //$Category not working. Simple as that.

Post by Graaicko »

Yes, of course. I am using .pk3. I have another decorate file outside the directories. It contains #include "actors/enemies.txt". enemies.txt contain all the enemy actors, including the rat enemy posted above.
User avatar
Ozymandias81
Posts: 2063
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: //$Category not working. Simple as that.

Post by Ozymandias81 »

Which version of GZDB do you have? Also try using a different DeNum, such as 22181... Maybe you have something somewhere with same DEnum
User avatar
Graaicko
Posts: 531
Joined: Tue Jun 17, 2014 11:22 pm
Graphics Processor: nVidia (Legacy GZDoom)

Re: //$Category not working. Simple as that.

Post by Graaicko »

Yeah it does not matter the doom ed numbers. It still won't work. I'm using the R2787 version of GZDB. Don't know if thats what you're looking for but I think something is overwriting something in the .pk3, can't figure out what it is.
User avatar
Ozymandias81
Posts: 2063
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: //$Category not working. Simple as that.

Post by Ozymandias81 »

Then build up an example wad and post it here, it is too weird what's going on. Afaik your build of GZDB is old, but I am sure that such version had custom entries for GZDB.
Also try the .pk3 alone and check exactly which wads are autoloaded when you test the map from GZDB (open console and use PGUP until you find the start).

SUGGESTION: As for a clean .pk3 project I suggest to move ALL DoomEdNums inside MAPINFO
User avatar
Graaicko
Posts: 531
Joined: Tue Jun 17, 2014 11:22 pm
Graphics Processor: nVidia (Legacy GZDoom)

Re: //$Category not working. Simple as that.

Post by Graaicko »

I resolved the problem. It was being double defined. I renamed on of the actors and that cleared it all up. Thanks for the help.
User avatar
Graaicko
Posts: 531
Joined: Tue Jun 17, 2014 11:22 pm
Graphics Processor: nVidia (Legacy GZDoom)

Re: //$Category not working. Simple as that.

Post by Graaicko »

Ozymandias81 wrote:SUGGESTION: As for a clean .pk3 project I suggest to move ALL DoomEdNums inside MAPINFO
Hey, this problem is occuring again. What would putting these into the MAPINFO look like? Do I just directly paste it from the decorate files into it? Would like an code example.
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: //$Category not working. Simple as that.

Post by Gez »

[wiki=Editor_number_definition]If only we had some place with documentation and examples...[/wiki]
Last edited by Gez on Sun May 03, 2020 4:58 pm, edited 1 time in total.
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm
Location: Somewhere off Kanagawa

Re: //$Category not working. Simple as that.

Post by Mikk- »

There are plenty of examples on the wiki page,

Code: Select all

DoomEdNums
  {
  12345 = MyCoolMonster
  12346 = MyCoolDecoration
  //[edNum] = [class name]
  }
MAPINFO/Editor number defintion
(weird how the wiki link to this page doesn't work...?)
User avatar
Graaicko
Posts: 531
Joined: Tue Jun 17, 2014 11:22 pm
Graphics Processor: nVidia (Legacy GZDoom)

Re: //$Category not working. Simple as that.

Post by Graaicko »

Gez wrote:[wiki=Editor_number_definition]If only we had some place with documentation and examples...[/wiki]
I've relied on it before, and have been deceived.
User avatar
Graaicko
Posts: 531
Joined: Tue Jun 17, 2014 11:22 pm
Graphics Processor: nVidia (Legacy GZDoom)

Re: //$Category not working. Simple as that.

Post by Graaicko »

Thanks Mikk
Post Reply

Return to “Scripting”