[Question] Mysterious trg1r.grf sprites

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
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

[Question] Mysterious trg1r.grf sprites

Post by Zephyris »

What are the following sprites for, I can't work it out! trg1r.grf sprites:
674
675
676
677
678
747
4078
4079

They are grouped with GUI sprites, I just don't know what they are for!
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: [Question] Mysterious trg1r.grf sprites

Post by Roujin »

Digging in the code a bit...

747 aka SPR_PLAYER_ICON is the little square in company color used in various places in the game, e.g. in the Players dropdown in the toolbar. See DrawPlayerIcon.

4078 aka SPR_DOT_SMALL is used for HT_POINT selection mode in zoom levels that are too low for displaying details. see src/viewport.cpp:901

4079 aka SPR_WHITE_POINT is the scedit landscaping toolbar size indicator. see src/terraform_gui.cpp:596

The others are not listed in src/table/sprites.h, so either they aren't used, or they are used as magic numbers somewhere and have never been documented.
I'll look if I find something on them still...

edit: no luck. grepped through the source and didn't find any relevant mention of those numbers (also in hex). This means that they're not used (if I haven't made a mistake).
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: [Question] Mysterious trg1r.grf sprites

Post by Zephyris »

Awesome, thanks :D
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: [Question] Mysterious trg1r.grf sprites

Post by frosch »

IIRC 674 are the text colors. Now in _string_colormap, i.e. no longer used.

edit:
verified, correct.
sprites 675 to 678 look like the toolbar button backgrounds from TTO, i.e. not used :p

edit2:
found a screenshot
http://www.tt-forums.net/viewtopic.php?f=3&t=2871
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: [Question] Mysterious trg1r.grf sprites

Post by Zephyris »

More good info, thanks!
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: [Question] Mysterious trg1r.grf sprites

Post by FooBar »

Nice! Now I have some more free sprites to use for the bridges in the Transrapid Track set without deploying GRM. Recoding the bridges already free'd twelve sprite IDs (due to duplicates in the original spriteset).
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: [Question] Mysterious trg1r.grf sprites

Post by Zephyris »

and another set of mysterious trg1r.grf sprites:
2353 to 2364

These are grouped with the industries and look like they might be a farm or something from TT... Is that right?
Mchl
Director
Director
Posts: 611
Joined: 05 Jan 2007 15:50
Location: Poland
Contact:

Re: [Question] Mysterious trg1r.grf sprites

Post by Mchl »

It's tropical Lumber Mill
Attachments
New Monningville Transport, 24th Feb 1980.png
New Monningville Transport, 24th Feb 1980.png (23.17 KiB) Viewed 1899 times
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: [Question] Mysterious trg1r.grf sprites

Post by Zephyris »

:oops: lol, guess who doesnt play sub-tropical
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: [Question] Mysterious trg1r.grf sprites

Post by Gremnon »

Who does though?
I try it, and sub-arctic once in a while, but never really got used to it, so I stick to temperate.
And toyland... is just... toyland... and it left alone. By me, anyway.
Mchl
Director
Director
Posts: 611
Joined: 05 Jan 2007 15:50
Location: Poland
Contact:

Re: [Question] Mysterious trg1r.grf sprites

Post by Mchl »

I love tropic climate :P
And lumber mill is one of the coolest industries in the game. It actually chops down trees!
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: [Question] Mysterious trg1r.grf sprites

Post by michael blunck »

FooBar wrote:Now I have some more free sprites to use for the bridges in the Transrapid Track set without deploying GRM.
Don´t do that. Ever, ever use GRM to allocate new sprites if in need of. There will be other people having the same "clever idea" re-using TTD sprites and the result will be a big mess.

It immediately happened to me when I did so for the first time (before GRM), re-using a toyland sprite, and someone else released a bridge set (!) which also used a bunch of toyland sprites (incl mine), resulting in a clash with NewStations.

regards
Michael
Image
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: [Question] Mysterious trg1r.grf sprites

Post by FooBar »

It turned out that I didn't have to 'borrow' other sprites for the bridges in the TransRapid Track Set, but what you just said is indeed something to keep in mind for the future. Better safe than sorry and spend some extra time figuring out how the GRM system works. It didn't look that complicated at a first glance.

For the afforementionned set I only redefined the sprites of the bridges I was replacing. That shouldn't lead to problems, right? I have to redo that part of the set anyways as soon as 'newbridges' are invented.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 9 guests