M_DOOM Isn't Displaying

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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!)
Zevalt
Posts: 3
Joined: Tue Apr 14, 2026 8:11 am
Preferred Pronouns: He/Him

M_DOOM Isn't Displaying

Post by Zevalt »

Hello!

I'm working on an original game project, and I can't seem to get it to display the M_DOOM image. I started with Nash Muhandes' blank IPK3 file, which had a blank M_DOOM image and merely displayed text in place of it. I've added an M_DOOM image, but I can't seem to figure out how to make the game actually use it, and every time I try to search for an answer I merely get "replace the M_DOOM image with the one you want."

Could anyone shed some light on this for me?
User avatar
Enjay
 
 
Posts: 27681
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: M_DOOM Isn't Displaying

Post by Enjay »

Obvious things to check:
Is your file correctly named? (Probably, but always worth a check.)
Is it in a supported format? (Doom format, PNG, etc.)
Is it in the Graphics folder of your IPK3?

If none of the above fix it, maybe upload your file somewhere for people to check.

Also, I moved this to a more suitable place.
Zevalt
Posts: 3
Joined: Tue Apr 14, 2026 8:11 am
Preferred Pronouns: He/Him

Re: M_DOOM Isn't Displaying

Post by Zevalt »

Enjay wrote: Tue Apr 14, 2026 9:23 am Obvious things to check:
Is your file correctly named? (Probably, but always worth a check.)
Is it in a supported format? (Doom format, PNG, etc.)
Is it in the Graphics folder of your IPK3?

If none of the above fix it, maybe upload your file somewhere for people to check.

Also, I moved this to a more suitable place.
Apologies for the wrong placement! I thought maybe scripting because I thought it might be an issue that something wasn’t telling the program to use the image - like if there was a specific line in a specific file I was missing.

I have it named M_DOOM, it’s a PNG, and it’s in the graphics folder. Just for a test, I copied over the M_DOOM lump straight from the DOOM iwad, and that isn’t displaying either. So I don’t -thiiiink- it’s the file itself.
User avatar
Enjay
 
 
Posts: 27681
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: M_DOOM Isn't Displaying

Post by Enjay »

I notice that the template includes a MENUDEF lump. That doesn't seem to mention a graphics header for the menu at all, so maybe it is a scripting issue after all. i.e. it defines menus, but makes no mention of M_Doom or any other graphic header that I can see, so it simply doesn't get used.

The default Doom menudef has this:

Code: Select all

LISTMENU "MainMenu"
{
	IfGame(Doom, Chex)
	{
		LineSpacing 16	// This must account for some single-graphic replacements, so it cannot be widened
		StaticPatch 94, 2, "M_DOOM"
		Position 97, 72
		IfOption(ReadThis)
		{
			Position 97, 64
		}
So, you probably need to add something like that to your own menudef.

If that's the case, me moving your thread was an error and I'll put it back where you correctly put it in the first place. :)
Zevalt
Posts: 3
Joined: Tue Apr 14, 2026 8:11 am
Preferred Pronouns: He/Him

Re: M_DOOM Isn't Displaying

Post by Zevalt »

Enjay wrote: Wed Apr 15, 2026 5:15 am I notice that the template includes a MENUDEF lump. That doesn't seem to mention a graphics header for the menu at all, so maybe it is a scripting issue after all. i.e. it defines menus, but makes no mention of M_Doom or any other graphic header that I can see, so it simply doesn't get used.

The default Doom menudef has this:

Code: Select all

LISTMENU "MainMenu"
{
	IfGame(Doom, Chex)
	{
		LineSpacing 16	// This must account for some single-graphic replacements, so it cannot be widened
		StaticPatch 94, 2, "M_DOOM"
		Position 97, 72
		IfOption(ReadThis)
		{
			Position 97, 64
		}
So, you probably need to add something like that to your own menudef.

If that's the case, me moving your thread was an error and I'll put it back where you correctly put it in the first place. :)
You’re an icon, that worked perfectly! That must have been just what I needed, the ‘StaticPatch’ line.

I’m honestly kind of stoked I was right about the scripting part too. I’m still very much a novice, so I see this as good step in my education!
User avatar
Enjay
 
 
Posts: 27681
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: M_DOOM Isn't Displaying

Post by Enjay »

Cool. Glad it worked.

And thread returned to the scripting forum. :)

Return to “Scripting”