32bpp toolbar / openttd.grf replacements
Moderator: Graphics Moderators
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
joed: Can you resize the icons please to original size, and pack them to use right now?
Also some bigger sizes (32x32) for those who use high resolution.
Also some bigger sizes (32x32) for those who use high resolution.
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
joed: I was meaning to tar them (in original TTD size) with info file included so we can use them in 32bpp OpenTTD, because they are very cool.
I tried the current size, and I noticed that there is a flaw: The pressed 'disk' is not displayed, the original is displayed instead.

I tried the current size, and I noticed that there is a flaw: The pressed 'disk' is not displayed, the original is displayed instead.
Code: Select all
726 nfo pause+ 0 0 0 28 28 0 0
5639 nfo fastforward+ 0 0 0 28 28 0 0
751 nfo cog+ 0 0 0 28 28 0 0
724 nfo disk+ 0 0 0 28 28 0 0
708 nfo compass+ 0 0 0 28 28 0 0
4077 nfo direction_sign+ 0 0 0 28 28 0 0
679 nfo parthenon+ 0 0 0 28 28 0 0
1299 nfo underground+ 0 0 0 28 28 0 0
737 nfo vault+ 0 0 0 28 28 0 0
743 nfo briefcase+ 0 0 0 28 28 0 0
745 nfo graph+ 0 0 0 28 28 0 0
684 nfo first_prize+ 0 0 0 28 28 0 0
741 nfo factory+ 0 0 0 28 28 0 0
731 nfo locomotive+ 0 0 0 28 28 0 0
732 nfo truck+ 0 0 0 28 28 0 0
733 nfo oceanliner+ 0 0 0 28 28 0 0
734 nfo plane+ 0 0 0 28 28 0 0
735 nfo zoom_in+ 0 0 0 28 28 0 0
736 nfo zoom_out+ 0 0 0 28 28 0 0
727 nfo rail+ 0 0 0 28 28 0 0
728 nfo road+ 0 0 0 28 28 0 0
729 nfo waterway+ 0 0 0 28 28 0 0
730 nfo runway+ 0 0 0 28 28 0 0
4083 nfo mountain+ 0 0 0 28 28 0 0
713 nfo music+ 0 0 0 28 28 0 0
680 nfo newspaper+ 0 0 0 28 28 0 0
723 nfo info+ 0 0 0 28 28 -5 -5
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
I don't really understand all that code, but have exported the images into 22 pixel images (orignal size) and new 32 pixel images (which I prefer).athanasios wrote:joed: I was meaning to tar them (in original TTD size) with info file included so we can use them in 32bpp OpenTTD, because they are very cool.![]()
I tried the current size, and I noticed that there is a flaw: The pressed 'disk' is not displayed, the original is displayed instead.
Attached are 2 zips. Are you able to do the code? Please?

Thanks.
- Attachments
-
- proposed 32px.zip
- (41.72 KiB) Downloaded 749 times
-
- proposed 22px.zip
- (33.62 KiB) Downloaded 548 times
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
I am not a coder either and I do not understand the code too!
I 've seen the Russian Guys are using the same set, but there is no grf available for download in their web page, and the sprites are not properly aligned. I posted them for these issues, but I do not think they understand so well english... (I hope they will get offended with what I say here. Actually I would like to work with them, but language barrier seems to be a problem.
)
I 'll have to give it a try, if no one else does.

I 've seen the Russian Guys are using the same set, but there is no grf available for download in their web page, and the sprites are not properly aligned. I posted them for these issues, but I do not think they understand so well english... (I hope they will get offended with what I say here. Actually I would like to work with them, but language barrier seems to be a problem.

I 'll have to give it a try, if no one else does.
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
Working!
Just treat it like a grf file:
Put in in 'data' folder and
Notes
Missing sprite for "disk_pressed".
Missing sprite for "fast_forward". (I don't know how to code this sprite. Help needed.)
Please, whoever worked on this, treat 'info' file appropriatelly (for the credits).
Warning
For 32bpp OpenTTD only.
Just treat it like a grf file:
Put in in 'data' folder and
Code: Select all
[newgrf]
toolbar.tar
Notes
Missing sprite for "disk_pressed".
Missing sprite for "fast_forward". (I don't know how to code this sprite. Help needed.)
Please, whoever worked on this, treat 'info' file appropriatelly (for the credits).
Warning
For 32bpp OpenTTD only.
- Attachments
-
- toolbar.tar
- (43.5 KiB) Downloaded 864 times
-
- 32bpp_toolbar.png (6.23 KiB) Viewed 16858 times
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
You have to poke the powers that be until they document the appropriate magic number(s).athanasios wrote:Missing sprite for "fast_forward". (I don't know how to code this sprite. Help needed.)
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
they're for 32bpp only because the images are 32 bpp, which 0.5 does not support.joed wrote:Thanks for your help. I gather those numbers are referencing a placeholder, which in turn references an image.athanasios wrote:Working!
So why are these needed to be in 32bpp only? Does that mean we might see them in 0.5?
Creator of the Openttd Challenge Spinoff, Town Demand patch
After action reports: The path to riches, A dream of skyscrapers
After action reports: The path to riches, A dream of skyscrapers
Any chance of getting documentation on the number of extra sprites added by Open? Or at least "Equal to the number of sprites found in the following file(s): ..."mart3p wrote:The sprite number for the fast-forward button is 5948 (hex 173C). NFO Renum will complain that this sprite number is outside the range allowed by TTDPatch.
I'd read the source myself, but the presence of
Code: Select all
OPENTTD_SPRITES_COUNT = 116, // number of gfx-sprites in openttd.grf
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
Added sprite for pressed disk.
For 'fastforward' 5948 (hex 173C) doesn't seem to work. How can we get the number(s) from 'openttd.grf'? I though DaleStan could help (thanks for the reply though). But as I see: No documentation available?
For 'fastforward' 5948 (hex 173C) doesn't seem to work. How can we get the number(s) from 'openttd.grf'? I though DaleStan could help (thanks for the reply though). But as I see: No documentation available?
- Attachments
-
- toolbar.tar
- (45.5 KiB) Downloaded 498 times
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
That is correct. openttd.grf is a bit of an odd one, with sprite additions and replacements in the source. The 116 only counts the additions.DaleStan wrote:I'd read the source myself, but the presence ofis rather confusing, since openttd.grf clearly contains 171 sprites, not 116.Code: Select all
OPENTTD_SPRITES_COUNT = 116, // number of gfx-sprites in openttd.grf
He's like, some kind of OpenTTD developer.
Attached is a text file with documentation of sprites in openttd.grf. I extracted this information from the source code, I can't guarantee that it's 100% correct. Display the file with a fixed width font for correct alignment.DaleStan wrote:Any chance of getting documentation on the number of extra sprites added by Open?
It should work, I have recently been working on a grf that successfully replaces other OpenTTD specific sprites, using action A, with sprite numbers from the attached file.athanasios wrote:For 'fastforward' 5948 (hex 173C) doesn't seem to work.
Edit: Just to prove to myself that sprite 173C does work, I made a quick test grf.
Code: Select all
0 * 4 03 00 00 00
1 * 43 08 06 "MP" 00 24 "Replace fast-forward symbol" 00 "Test grf" 00
2 * 5 0A 01 01 3C 17
3 sprites/red_ff.pcx 66 8 09 18 18 1 1
- Attachments
-
- OpenTTD_Sprites.txt
- (9.82 KiB) Downloaded 606 times
-
- Sprite Test.png (2.64 KiB) Viewed 16914 times
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
So I suppose you can help = fix info file in the toolbar.tar?
As you can see I do not understand how info files work for 32bpp and png graphics. These are not grf files.
As you can see I do not understand how info files work for 32bpp and png graphics. These are not grf files.
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
This works for me. The only thing I did was to replace 5639 with 5948. No extension wasn't allowed so i gave it one.
Line two
not
Line two
Code: Select all
5948 nfo fastforward22+ 0 0 0 22 22 -1 -1
Code: Select all
5639 nfo fastforward22+ 0 0 0 22 22 -1 -1
- Attachments
-
- info.txt
- the fixed info file
- (1008 Bytes) Downloaded 441 times
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
Thanks QtanJ
. Maybe we can add some more stuff now.
(You found this by chance? Or you had a list with OpenTTD sprite numbering or way to count you can share with us?)
If anyone knows what we should do with other grf files (especially trgtr.grf) his help will be veeery welcome.
I noticed that the fastforward still does not appear under Quark's Build r7245M (Both compilations). Quark is there a different counting of the sprites?
(Attached the fixed toolbar for those lazy to repair by hand.)
Last ver. of the toolbar was downloaded only 7 times
. Any comments?

(You found this by chance? Or you had a list with OpenTTD sprite numbering or way to count you can share with us?)
If anyone knows what we should do with other grf files (especially trgtr.grf) his help will be veeery welcome.
I noticed that the fastforward still does not appear under Quark's Build r7245M (Both compilations). Quark is there a different counting of the sprites?
(Attached the fixed toolbar for those lazy to repair by hand.)
Last ver. of the toolbar was downloaded only 7 times

- Attachments
-
- toolbar.tar
- (45.5 KiB) Downloaded 467 times
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
Probably. Especially if one of the auto-loaded .grf files is different in Quark's build than in the nightlies.athanasios wrote:I noticed that the fastforward still does not appear under Quark's Build r7245M (Both compilations). Quark is there a different counting of the sprites?
You realize that you're releasing a toolbar that can only be used by the 32bpp branch and Quark's rather broken and now rather old build, right?athanasios wrote:Last ver. of the toolbar was downloaded only 7 times. Any comments?
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
I noticed that I am mentioned as author of this thread. I suppose credit should be given to joed who asked about using the toolbar icons. So this thread actually started from him. I don't want us to make him unhappy. Let it be him the author of the thread. I have my own thread posting replacement graphics (modified original). I though of combining the two threads to one. But maybe it is better to keep this separate for other stuff similar to toolbar and different sprite toolbar replacements.
POINT OF VIEW: The Russian guy supplying sprites from other games was blocked (Personally I do not care what he is doing in his own web page, but not post grf links and photos in the forum please. His web page link is enough), but still we are using the original graphics. (And don't tell all playing OpenTTD have a legal copy of original game. Not that it would be possible though.) Again I request more to assist in drawing and coding something that can be used right now.
joed: You requested 32x32 toolbar buttons. It is easy to replace sprites with new ones of same size, but different sizes do not work simply like this. I tried and game could not load them. Needs some coding I do not know how to do. Possibly something like a grf with code for the new sizes? Even my similar size sprites for (toyland) buildings (see my thread) do not display properly. (They are displayed half top only.)
Attached a newer toolbar tar with a mouse pointer added. (Not big deal. Just to replace the original, as I mentioned before.)
POINT OF VIEW: The Russian guy supplying sprites from other games was blocked (Personally I do not care what he is doing in his own web page, but not post grf links and photos in the forum please. His web page link is enough), but still we are using the original graphics. (And don't tell all playing OpenTTD have a legal copy of original game. Not that it would be possible though.) Again I request more to assist in drawing and coding something that can be used right now.
joed: You requested 32x32 toolbar buttons. It is easy to replace sprites with new ones of same size, but different sizes do not work simply like this. I tried and game could not load them. Needs some coding I do not know how to do. Possibly something like a grf with code for the new sizes? Even my similar size sprites for (toyland) buildings (see my thread) do not display properly. (They are displayed half top only.)
Attached a newer toolbar tar with a mouse pointer added. (Not big deal. Just to replace the original, as I mentioned before.)
- Attachments
-
- toolbar.tar
- (47.5 KiB) Downloaded 540 times
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
Who is online
Users browsing this forum: Bing [Bot] and 6 guests