[Question] Mysterious trg1r.grf sprites
Moderator: Graphics Moderators
[Question] Mysterious trg1r.grf sprites
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!
674
675
676
677
678
747
4078
4079
They are grouped with GUI sprites, I just don't know what they are for!
Re: [Question] Mysterious trg1r.grf sprites
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).
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).
Re: [Question] Mysterious trg1r.grf sprites
Awesome, thanks 

Re: [Question] Mysterious trg1r.grf sprites
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
edit2:
found a screenshot
http://www.tt-forums.net/viewtopic.php?f=3&t=2871
edit:
verified, correct.
sprites 675 to 678 look like the toolbar button backgrounds from TTO, i.e. not used

edit2:
found a screenshot
http://www.tt-forums.net/viewtopic.php?f=3&t=2871
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
Re: [Question] Mysterious trg1r.grf sprites
More good info, thanks!
Re: [Question] Mysterious trg1r.grf sprites
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).
Re: [Question] Mysterious trg1r.grf sprites
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?
2353 to 2364
These are grouped with the industries and look like they might be a farm or something from TT... Is that right?
Re: [Question] Mysterious trg1r.grf sprites
It's tropical Lumber Mill
- Attachments
-
- New Monningville Transport, 24th Feb 1980.png (23.17 KiB) Viewed 1899 times
Re: [Question] Mysterious trg1r.grf sprites

Re: [Question] Mysterious trg1r.grf sprites
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.
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.
Re: [Question] Mysterious trg1r.grf sprites
I love tropic climate 
And lumber mill is one of the coolest industries in the game. It actually chops down trees!

And lumber mill is one of the coolest industries in the game. It actually chops down trees!
-
- Tycoon
- Posts: 5954
- Joined: 27 Apr 2005 07:09
- Contact:
Re: [Question] Mysterious trg1r.grf sprites
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.FooBar wrote:Now I have some more free sprites to use for the bridges in the Transrapid Track set without deploying GRM.
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
Re: [Question] Mysterious trg1r.grf sprites
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.
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.
Who is online
Users browsing this forum: No registered users and 9 guests