Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Doomkid

Calling specific lumps (playpal, dehacked) for certain maps only in ZDoom?

Recommended Posts

Hey there, I'm just wondering if it's possible for certain lumps to be called only for certain maps in a ZDoom megawad?

For example, Map01 uses the standard playpal, but Map02 calls playpal2. Map03 calls the behavior from DEHACKED1, and Map04 calls the behavior from DEHACKED2, etc etc etc.

If such a thing is not possible, consider this a feature request - It would simplify many aspects of modding tenfold to be able to recolor things from map to map via playpal lumps and change behavior from map to map with dehacked lumps, and so on.

I understand that color restrictions can be overcome by using PNG format however it would be nice to do so without hours and hours of fucking around and unnecessarily bloated filesize. Same goes for adding all kinds of new actors just for subtle differences in monster and weapon behavior.

Can it be done currently?

Share this post


Link to post

Yeah there's no way this is going to fly. ZDoom handles a bunch, if not all, of this stuff at load-time. You'd basically be asking it to load someting for one map, then unload everything and do the whole reload process on the next.

Though what you want to do with the second part of this question is actually entirely possible. Not with DeHackEd, but you can certainly make a bunch of actors in DECORATE that are only used in one map and do that for many maps. It can even do translations naturally, so while you'd be limited to one palette, you could still have, say, a bunch of different colors of imps without making different sprite sets for each one.

Share this post


Link to post

There's at least one good reason to have multiple palettes: color filters! I'd even allow switching them with a script: fake HDR!

Share this post


Link to post
Doomkid said:

I understand that color restrictions can be overcome by using PNG format

Actually they can't. Software renderer still needs to convert PNGs to the game's palette before displaying them - it doesn't display them as truecolor. And as mentioned before, palette cannot be changed during runtime. Only ports with OpenGL rendering can overcome color restrictions of the game's palette.

Share this post


Link to post
scifista42 said:

Only ports with OpenGL rendering can overcome color restrictions of the game's palette.

Some ports support "truecolor" (24 bit RGB) software rendering.

Share this post


Link to post

Crispy-doom has a high-colour branch. I'm not sure what bit depth it is.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×