32bpp toolbar / openttd.grf replacements

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Post by athanasios »

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.
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.
joed
Engineer
Engineer
Posts: 90
Joined: 30 Jan 2005 11:10
Location: Melbourne AU

Post by joed »

athanasios wrote: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.
Sure. What do you mean "pack them"? Like ZIP and post them here? And are PNG's with alpha channel the best format?

Thanks.
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Post by athanasios »

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. :D

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.
joed
Engineer
Engineer
Posts: 90
Joined: 30 Jan 2005 11:10
Location: Melbourne AU

Post by joed »

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. :D

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 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).

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
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Post by athanasios »

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.
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.
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Post by athanasios »

Working!
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
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.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

athanasios wrote:Missing sprite for "fast_forward". (I don't know how to code this sprite. Help needed.)
You have to poke the powers that be until they document the appropriate magic number(s).
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
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

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. Ignore the warning, it will work ok. ;)
Image
joed
Engineer
Engineer
Posts: 90
Joined: 30 Jan 2005 11:10
Location: Melbourne AU

Post by joed »

athanasios wrote:Working!
Thanks for your help. I gather those numbers are referencing a placeholder, which in turn references an image.

So why are these needed to be in 32bpp only? Does that mean we might see them in 0.5? :?
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

joed wrote:
athanasios wrote:Working!
Thanks for your help. I gather those numbers are referencing a placeholder, which in turn references an image.

So why are these needed to be in 32bpp only? Does that mean we might see them in 0.5? :?
they're for 32bpp only because the images are 32 bpp, which 0.5 does not support.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

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.
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): ..."

I'd read the source myself, but the presence of

Code: Select all

	OPENTTD_SPRITES_COUNT = 116, // number of gfx-sprites in openttd.grf
is rather confusing, since openttd.grf clearly contains 171 sprites, not 116.
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
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Post by athanasios »

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?
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.
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1795
Joined: 30 Mar 2005 09:43

Post by peter1138 »

DaleStan wrote:I'd read the source myself, but the presence of

Code: Select all

	OPENTTD_SPRITES_COUNT = 116, // number of gfx-sprites in openttd.grf
is rather confusing, since openttd.grf clearly contains 171 sprites, not 116.
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.
He's like, some kind of OpenTTD developer.
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

DaleStan wrote:Any chance of getting documentation on the number of extra sprites added by Open?
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.
athanasios wrote:For 'fastforward' 5948 (hex 173C) doesn't seem to work.
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.

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
It works fine in 0.5.0 RC3 - see screenshot.
Attachments
OpenTTD_Sprites.txt
(9.82 KiB) Downloaded 606 times
Sprite Test.png
Sprite Test.png (2.64 KiB) Viewed 16914 times
Image
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Post by athanasios »

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.
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.
QtanJ
Engineer
Engineer
Posts: 21
Joined: 27 Jun 2006 11:52
Location: Europe, Norway

Post by QtanJ »

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

Code: Select all

5948	nfo fastforward22+ 0 0 0 22 22 -1 -1
not

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
joed
Engineer
Engineer
Posts: 90
Joined: 30 Jan 2005 11:10
Location: Melbourne AU

Post by joed »

Thanks guys for helping out :) what happens with the 32 x 32px icon implementation?
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Post by athanasios »

Thanks QtanJ :D . 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 :cry:. Any comments?
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.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

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?
Probably. Especially if one of the auto-loaded .grf files is different in Quark's build than in the nightlies.
athanasios wrote:Last ver. of the toolbar was downloaded only 7 times :cry:. Any comments?
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?
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
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Post by athanasios »

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.)
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.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Bing [Bot] and 6 guests