Dumpclasses Monsters - Script?

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Azagthoth
Posts: 61
Joined: Wed Jan 20, 2021 4:06 pm
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)

Dumpclasses Monsters - Script?

Post by Azagthoth »

Heya. I was wondering why it's possible to "dumpclasses weapon" but not "dumpclasses monsters". Is there some technical reason why this can't be done or has it just not been implemented?

This got me thinking tho. What if I wrote a script to loop through all the classes and check if it has the ISMONSTER flag. Then if it does, print the class name. Doable?
User avatar
phantombeta
Posts: 1981
Joined: Thu May 02, 2013 1:27 am
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Dumpclasses Monsters - Script?

Post by phantombeta »

That's because the parameter in "dumpclasses" is a class name, which makes it only list classes that inherit from that one. "Weapon" is the class all weapons have to inherit from- meanwhile, monsters don't have a specific base class, they can inherit from any actor type.
User avatar
Rachael
Admin
Posts: 12885
Joined: Tue Jan 13, 2004 1:31 pm
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle

Re: Dumpclasses Monsters - Script?

Post by Rachael »

dumpclasses probably could use some extra filtration parameters, like "dumpclass actor monsters" and "dumpclass actor projectiles" where it can sort out by the default flags to determine what's what. I'll move this to Feature Suggestions.
Azagthoth
Posts: 61
Joined: Wed Jan 20, 2021 4:06 pm
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)

Re: Dumpclasses Monsters - Script?

Post by Azagthoth »

Rachael wrote:dumpclasses probably could use some extra filtration parameters, like "dumpclass actor monsters" and "dumpclass actor projectiles" where it can sort out by the default flags to determine what's what. I'll move this to Feature Suggestions.
Yeah, that would be great. I'm working on some stuff with over 10000 classes. It's quite a pain to sift through. :lol:
User avatar
m8f
 
 
Posts: 1392
Joined: Fri Dec 29, 2017 4:15 am
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Other Linux 64-bit
Location: Siberia (UTC+7)

Re: Dumpclasses Monsters - Script?

Post by m8f »

10000 classes - maybe ZDoc would be of interest to you?
Azagthoth
Posts: 61
Joined: Wed Jan 20, 2021 4:06 pm
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)

Re: Dumpclasses Monsters - Script?

Post by Azagthoth »

ZDoc looks promising. I will check it out.

Return to “Feature Suggestions”