Rise of the Triad-style Message Boxes

Sprites, textures, sounds, code, and other resources belong here. Share and share-alike!
Forum rules
Before posting your Resource, please make sure you can answer YES to any of the following questions:
  • Is the resource ENTIRELY my own work?
  • If no to the previous one, do I have permission from the original author?
  • If no to the previous one, did I put a reasonable amount of work into the resource myself, such that the changes are noticeably different from the source that I could take credit for them?
If you answered no to all three, maybe you should consider taking your stuff somewhere other than the Resources forum.

Consult the Resource/Request Posting Guidelines for more information.

Please don't put requests here! They have their own forum --> here. Thank you!
Post Reply
User avatar
AFADoomer
Posts: 1344
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Rise of the Triad-style Message Boxes

Post by AFADoomer »

Image

This ZScript message box replacement implements Rise of the Triad-style messages that replace the existing on-screen text/prompts.
- Quit messages have matching icons, messages, and exit sounds that play when you select 'yes' (as seen in screenshot)
- Notification messages (e.g, choosing 'Save Game' when you're not in a level) show an exclamation point icon
- Prompt messages (e.g, Do you want to save over this game?) show a question mark icon and the yes/no prompt

All of the resources included here are pulled directly from ROTT... This is mostly a proof of concept, and there are a couple of things that are more hackily done than I'd like, but it works with every IWAD and mod that I tested it with.

Known Issues: The included exit sounds sometimes won't play fully, because the engine is hard-coded to wait for 3 seconds (105 tics) for the sound to play before actually quitting; some of the extracted ROTT sounds in the archive are 4 and 5 seconds long.

You can download the file here (155 KB) or on GitHub.
Last edited by AFADoomer on Sat Sep 20, 2025 9:41 am, edited 1 time in total.
User avatar
ramon.dexter
Posts: 1562
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Rise of the Triad-style Message Boxes

Post by ramon.dexter »

Hi, looks like that something has changed in zscript v3.3, it doesn't work with it anymore.
Drake Raider
Posts: 474
Joined: Fri Jul 18, 2008 12:27 pm

Re: Rise of the Triad-style Message Boxes

Post by Drake Raider »

If this gets fixed in future versions it would be fantastic to see a Doom themed version of these be made. With the doom quit messages and doom graphics/custom graphics
User avatar
ramon.dexter
Posts: 1562
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Rise of the Triad-style Message Boxes

Post by ramon.dexter »

darkRaider: now it works correctly, afadoomer fixed it.
User avatar
LadiesMan217
Posts: 3
Joined: Tue Dec 10, 2024 9:54 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: Not Listed

Re: Rise of the Triad-style Message Boxes

Post by LadiesMan217 »

Is there a way to change the messages and such?
User avatar
AFADoomer
Posts: 1344
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: Rise of the Triad-style Message Boxes

Post by AFADoomer »

Yes, they are defined in the language lump/file.
User avatar
Enjay
 
 
Posts: 27115
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Rise of the Triad-style Message Boxes

Post by Enjay »

Thanks to this thread being bumped, I remembered about this mod and have started using it as a base for my own quit message mod.
There is no way I could have some up with this myself, but changing it to suit my needs is certainly doable.
Thank you.
User avatar
Enjay
 
 
Posts: 27115
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Rise of the Triad-style Message Boxes

Post by Enjay »

With the latest GZDoom git builds (current gzdoom-x64-g4.15pre-566-g65cfb976f) the game cannot start with this mod loaded. It always gives this message:

Code: Select all

GScript error, "QuitMessages.pk7:zscript.txt" line 209:
GToo many arguments in call to CallHandler

Execution could not continue.
1 errors while parsing scripts
Line 209 merely says:

Code: Select all


			if (res) 
			{
				if (!(activatesnd == "")) { S_Sound(activatesnd, CHAN_VOICE | CHAN_UI, snd_menuvolume, ATTN_NONE); }
				CallHandler(Handler);  //it's this one - Enjay
			}
User avatar
AFADoomer
Posts: 1344
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: Rise of the Triad-style Message Boxes

Post by AFADoomer »

Thanks for the note!

I've uploaded a fixed version (CallHandler no longer takes an argument, so just removed 'Handler' on the line you noted) and I've also pushed this as a repo on my GitHub site.
User avatar
Enjay
 
 
Posts: 27115
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Rise of the Triad-style Message Boxes

Post by Enjay »

Cool, thanks for the quick fix.

Just to avoid confusion for anyone downloading this: the fixed version works with the latest Git builds, but it will not work with the latest official release (4.14.2) which still expects the parameter:

Code: Select all

Script error, "QuitMessages.pk3:zscript.zsc" line 209:
Insufficient arguments in call to CallHandler
Post Reply

Return to “Resources”