Help With Imagetool.

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

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!)
Post Reply
hima3009
Posts: 25
Joined: Wed Oct 06, 2021 5:58 pm

Help With Imagetool.

Post by hima3009 »

Does anyone still use ImageTool ?
https://zdoom.org/wiki/ImageTool#:~:tex ... %20images.

i wanted to display Blood splashes using HudMessage in zdaemon but for some reason it always gives me errors like : "Nothing to save" and "glyphs out of range" .
i look into the old post here but i still couldn't manage any progress.

a picture for example
Attachments
RBLD1.png
RBLD1.png (1.9 KiB) Viewed 388 times
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: Help With Imagetool.

Post by Blue Shadow »

I don't see the correlation between wanting to display a graphic via HudMessage and ImageTool. If you want to display a graphic via HudMessage, you do just that.
SanyaWaffles
Posts: 805
Joined: Thu Apr 25, 2013 12:21 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11 for the Motorola Powerstack II
Graphics Processor: nVidia with Vulkan support
Location: The Corn Fields
Contact:

Re: Help With Imagetool.

Post by SanyaWaffles »

you can just display graphics of any sort using HudMessage?

If that doesn't work then ZDaemon might not be able to be used for such a thing. I don't know much about it.
User avatar
Rachael
Posts: 13542
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Help With Imagetool.

Post by Rachael »

With ZDaemon just do a HudMessage with "A" as the message and the image as the font. That's been a ZDoom thing since forever and a decade.
Example:

Code: Select all

script 1 (void)
{
	SetFont("BSPLAT");
	HudMessage(s:"A"; HUDMSG_PLAIN, 0, 0, 0.1, 0.8, 3.7);
}
You may have to ensure that the glyph is either in the "Textures" or "Graphics" namespace - not sure if ZDaemon supports cross-namespacing like ZDoom does.

https://zdoom.org/wiki/HudMessage
hima3009
Posts: 25
Joined: Wed Oct 06, 2021 5:58 pm

Re: Help With Imagetool.

Post by hima3009 »

Using the conventional method only displays "A" instead of the pictures by using HudMessage and converting my picture to doom format by slade then putting them Between FF marker, and according to this post:
https://forums.zdaemon.org/viewtopic.ph ... 48df418d1f
I need to convert my image to FON2 format but i've already mentioned that i couldn't succeed. i thought that maybe someone here have an old knowledge of this!
User avatar
Rachael
Posts: 13542
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Help With Imagetool.

Post by Rachael »

Ah, I thought ZDaemon was at least a little bit more modernized than that. My mistake, then.
User avatar
Enjay
 
 
Posts: 26533
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Help With Imagetool.

Post by Enjay »

I don't know if this will help but before it was possible to just use a graphic directly, it was the case that it needed to be converted to a font. The original Mona Lisa demo file shows how: https://zdoom.org/files/examples/monalisa.zip
hima3009
Posts: 25
Joined: Wed Oct 06, 2021 5:58 pm

Re: Help With Imagetool.

Post by hima3009 »

Awesome! this Actually worked thank you very much.

Edit: here's my results if anyone came across this and in interest of it.
Attachments
bloodsplatter.wad
(3.58 KiB) Downloaded 16 times
Post Reply

Return to “Scripting”