Dumpclasses Monsters - Script?

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

Moderator: GZDoom Developers

Dumpclasses Monsters - Script?

Postby Azagthoth » Tue May 10, 2022 12:16 pm

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?
Azagthoth
 
Joined: 20 Jan 2021
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)

Re: Dumpclasses Monsters - Script?

Postby phantombeta » Tue May 10, 2022 2:49 pm

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
phantombeta
Tired of being treated like trash by control freaks
 
Joined: 02 May 2013

Re: Dumpclasses Monsters - Script?

Postby Rachael » Wed May 11, 2022 6:11 am

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.
User avatar
Rachael
^ walking stack of unfinished projects ^
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle

Re: Dumpclasses Monsters - Script?

Postby Azagthoth » Wed May 11, 2022 9:56 am

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:
Azagthoth
 
Joined: 20 Jan 2021
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)

Re: Dumpclasses Monsters - Script?

Postby m8f » Wed May 11, 2022 10:18 am

10000 classes - maybe ZDoc would be of interest to you?
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Other Linux 64-bit

Re: Dumpclasses Monsters - Script?

Postby Azagthoth » Sat May 14, 2022 3:09 am

ZDoc looks promising. I will check it out.
Azagthoth
 
Joined: 20 Jan 2021
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests