Page 1 of 1
How to display a popup message at game startup in GRFMaker?
Posted: 08 Dec 2007 15:35
by Purno
How can I display those red error boxes with the text I want, at game startup (either in the main menu, or when the game actually started (or both)), in GRFMaker? (A piece of NFO code which I can just enter in GRFMaker would do too, I guess).
Re: How to display a popup message at game startup in GRFMaker?
Posted: 08 Dec 2007 15:42
by Maedhros
Re: How to display a popup message at game startup in GRFMaker?
Posted: 08 Dec 2007 15:43
by PikkaBird
Re: How to display a popup message at game startup in GRFMaker?
Posted: 08 Dec 2007 16:00
by Purno
Damn, GRFMaker won't allow me to fill in a text message in non-hexidecimal characters it seems...
Thanks for your help, but I'm afraid I need to do this without NFO code...
Re: How to display a popup message at game startup in GRFMaker?
Posted: 08 Dec 2007 19:43
by Hyronymus
Purno, can you condense your questions to a single topic with coding questions? Or check the TTDPatch Wiki.
Re: How to display a popup message at game startup in GRFMaker?
Posted: 08 Dec 2007 20:22
by Purno
Why should totally different questions be in the same topic? Makes no sense, they're different subjects after all...
Re: How to display a popup message at game startup in GRFMaker?
Posted: 08 Dec 2007 20:36
by Hyronymus
They all have to do with coding, that's how I "value" them. But really, you van find your answers on the TTDPatch Wiki, in the GRF Specs section.
Re: How to display a popup message at game startup in GRFMaker?
Posted: 08 Dec 2007 20:46
by Purno
Hyronymus wrote:you van find your answers on the TTDPatch Wiki, in the GRF Specs section.
Last time I checked the TTDPatch Wiki did not cover GRFMaker.
EDIT: And btw, the whole Graphics forum has to do with 'coding'...
Re: How to display a popup message at game startup in GRFMaker?
Posted: 08 Dec 2007 21:01
by AndersI
I agree with purno here. It is much easier to find something again when there's only one question in the thread, with a matching title.
Re: How to display a popup message at game startup in GRFMaker?
Posted: 08 Dec 2007 22:58
by orudge
Purno wrote:Last time I checked the TTDPatch Wiki did not cover GRFMaker.
But you said in your first post:
Purno wrote:(A piece of NFO code which I can just enter in GRFMaker would do too, I guess).
If you take a look at the actual wiki entry you were linked to, you can see that it's really very straightforward to display a popup. For instance:
<sprite-num> * <length> 0B 01 7F FF "This is my warning messaage!"
would display that warning message, prefixed by "Warning:" (the 01). If GRFMaker requires you to have the text written in hexadecimal, use something like this:
http://www.dolcevie.com/js/converter.html
and replace the colons with spaces, as so:
<sprite-num> * <length> 0B 01 7F FF 54 68 69 73 20 69 73 20 6D 79 20 77 61 72 6E 69 6E 67 20 6D 65 73 73 61 61 67 65 21
(I'm not sure if you have to fill in sprite num or length yourself in GRFMaker).
Anyway, don't be frightened just because it's hex, if you look at the docs, you see it's really quite simple.

Re: How to display a popup message at game startup in GRFMaker?
Posted: 08 Dec 2007 23:21
by jvassie
orudge wrote:Purno wrote:Last time I checked the TTDPatch Wiki did not cover GRFMaker.
But you said in your first post:
Purno wrote:(A piece of NFO code which I can just enter in GRFMaker would do too, I guess).
If you take a look at the actual wiki entry you were linked to, you can see that it's really very straightforward to display a popup. For instance:
<sprite-num> * <length> 0B 01 7F FF "This is my warning messaage!"
would display that warning message, prefixed by "Warning:" (the 01). If GRFMaker requires you to have the text written in hexadecimal, use something like this:
http://www.dolcevie.com/js/converter.html
and replace the colons with spaces, as so:
<sprite-num> * <length> 0B 01 7F FF 54 68 69 73 20 69 73 20 6D 79 20 77 61 72 6E 69 6E 67 20 6D 65 73 73 61 61 67 65 21
(I'm not sure if you have to fill in sprite num or length yourself in GRFMaker).
Anyway, don't be frightened just because it's hex, if you look at the docs, you see it's really quite simple.

Gentle Owen, Meek and Mild
A hex converter is probably the best way to go id say.
Re: How to display a popup message at game startup in GRFMaker?
Posted: 09 Dec 2007 11:27
by AndersI
Purno wrote:Damn, GRFMaker won't allow me to fill in a text message in non-hexidecimal characters it seems...
Huh? What am I not understanding in your question? (New block --> Message block ...)
Re: How to display a popup message at game startup in GRFMaker?
Posted: 09 Dec 2007 17:19
by Purno
Owen, I'm looking for a clear way to put it in my GRFMaker code. Hexidecimal code isn't really clear.
AndersI, I tried that, but it just didn't work. (Message did not appear). Do I need to trigger it somehow or something?
Re: How to display a popup message at game startup in GRFMaker?
Posted: 09 Dec 2007 17:34
by Maedhros
The red message box will only appear with severity 03, which will also stop the grf from loading (and it'll only appear in TTDPatch, too).
Re: How to display a popup message at game startup in GRFMaker?
Posted: 09 Dec 2007 20:19
by Purno
So, how can I display a message in both TTDPatch and OpenTTD that'll still continue to load the GRF, in GRFMaker?
Re: How to display a popup message at game startup in GRFMaker?
Posted: 09 Dec 2007 20:54
by Maedhros
As far as I know, you can't.
Re: How to display a popup message at game startup in GRFMaker?
Posted: 09 Dec 2007 22:00
by Purno
Thank you
