Modern Waypoints
Moderator: Graphics Moderators
Re: Modern Waypoints
Your source does not look like source, but decompiled-GRF instead. No comments...
Edit: Remove bit 15 of the ground sprite for each layout as it is not valid there.
Edit: Remove bit 15 of the ground sprite for each layout as it is not valid there.
He's like, some kind of OpenTTD developer.
Re: Modern Waypoints
Like many NewGRFs from years gone by, there is no more commented original source. It was never posted here and has since been lost by the original author.petern wrote:Your source does not look like source, but decompiled-GRF instead. No comments...
Thank you, I'll take a look at it when I get a chance.petern wrote:Edit: Remove bit 15 of the ground sprite for each layout as it is not valid there.
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
-
- Chief Executive
- Posts: 675
- Joined: 03 Apr 2016 20:19
Re: Modern Waypoints
Did you never get the chance? If I'm going to learn any NFO at all, I suppose this would be a good start. What exactly would "bit 15 be in...kamnet wrote:Like many NewGRFs from years gone by, there is no more commented original source. It was never posted here and has since been lost by the original author.petern wrote:Your source does not look like source, but decompiled-GRF instead. No comments...
Thank you, I'll take a look at it when I get a chance.petern wrote:Edit: Remove bit 15 of the ground sprite for each layout as it is not valid there.
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Escapes: 2+ 2- 2< 2> 2u< 2u> 2/ 2% 2u/ 2u% 2* 2& 2| 2^ 2sto = 2s 2rst = 2r 2psto 2ror = 2rot 2cmp 2ucmp 2<< 2u>> 2>>
// Escapes: 71 70 7= 7! 7< 7> 7G 7g 7gG 7GG 7gg 7c 7C
// Escapes: D= = DR D+ = DF D- = DC Du* = DM D* = DnF Du<< = DnC D<< = DO D& D| Du/ D/ Du% D%
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 0A 00 00 00
1 * 211 08 06 "AW" 01 02 "Modern Waypoint" 00 "Modern-style "
"gantry waypoint modeled after OpenTTD's "
"tubular bridge. Graphics by Amadeus "
"Wieczorek (MeusH), code by Alan "
"Blanchflower (Prof. Frink). Released "
"under GNU Public License v2. ." 00
2 * 76 00 04 04 01 00 08 "WAYP" 0C FE 0D FE 09 04 F4 83 00 00 80 F3 83 00 00 80 F4 83 00 00 00 00
00 10 05 17 2D 84 00 00 00 0B 00 10 05 17 2E 84 00 00 80 F3 83 00 00 00 00 00 05 10 17 2F 84 00
00 0B 00 00 05 10 17 30 84 00 00 80
3 * 4 01 04 01 04
4 modern_waypoint2/modern_waypoint2.png 82 8 09 27 29 -27 -11
5 modern_waypoint2/modern_waypoint2.png 130 8 09 34 26 -22 -22
6 modern_waypoint2/modern_waypoint2.png 162 8 09 34 26 -25 -11
7 modern_waypoint2/modern_waypoint2.png 194 8 09 28 28 22 -22
8 * 7 02 04 00 00 01 00 00
9 * 7 03 04 01 00 00 00 00
10 * 22 04 04 9F 01 00 "┼Modern Waypoint" 00
Code: Select all
00 10 05 17 2D 84 00 00 00 0B 00 10 05 17 2E 84 00 00 80 F3 83 00 00 00 00 00 05 10 17 2F 84 00
Code: Select all
2 * 76 00 04 04 01 00 08 "WAYP" 0C FE 0D FE 09 04 F4 83 !?00?! ?!00!? 80 F3 83 00 00 80 F4 83 00 00 00 00
00 10 05 17 2D 84 00 00 00 0B 00 10 05 17 !?2E?! ?!84!? 00 00 80 F3 83 00 00 00 00 00 05 10 17 2F 84 00
?!xx!? = Is this "13" (first bit is 1) or bit "14" (first bit is 0)?
Or am way off and none of the above is relevant? I'm basing this only on what I know about base 16 (hexadecimal).
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.
Re: Modern Waypoints
No, I never did get back to fixing it. Unfortunately I never really learned station code and I'd have to dig back in. I suspect Quast65 or Michael Blunck could be of help here.SimYouLater wrote:Did you never get the chance? If I'm going to learn any NFO at all, I suppose this would be a good start. What exactly would "bit 15 be in...kamnet wrote:Like many NewGRFs from years gone by, there is no more commented original source. It was never posted here and has since been lost by the original author.petern wrote:Your source does not look like source, but decompiled-GRF instead. No comments...
Thank you, I'll take a look at it when I get a chance.petern wrote:Edit: Remove bit 15 of the ground sprite for each layout as it is not valid there.
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
-
- Chief Executive
- Posts: 675
- Joined: 03 Apr 2016 20:19
Re: Modern Waypoints
So I suspect that if a bit needs to be "removed" that means changing it to "00" since actually removing it isn't how that kind of code works? Screw it, I'll try every possible fix and test compile them all.kamnet wrote:No, I never did get back to fixing it. Unfortunately I never really learned station code and I'd have to dig back in. I suspect Quast65 or Michael Blunck could be of help here.SimYouLater wrote:Did you never get the chance? If I'm going to learn any NFO at all, I suppose this would be a good start. What exactly would "bit 15 be in...kamnet wrote: Like many NewGRFs from years gone by, there is no more commented original source. It was never posted here and has since been lost by the original author.
Thank you, I'll take a look at it when I get a chance.
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.
-
- Tycoon
- Posts: 5948
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Modern Waypoints
SimYouLater wrote:So I suspect that if a bit needs to be "removed" that means changing it to "00" since actually removing it isn't how that kind of code works?petern wrote: Edit: Remove bit 15 of the ground sprite for each layout as it is not valid there.
Code: Select all
2 * 76 00 04 04 01 00 08 "WAYP" 0C FE 0D FE 09 04 F4 83 00 00 80 F3 83 00 00 80 F4 83 00 00 00 00
00 10 05 17 2D 84 00 00 00 0B 00 10 05 17 2E 84 00 00 80 F3 83 00 00 00 00 00 05 10 17 2F 84 00
00 0B 00 00 05 10 17 30 84 00 00 80
Code: Select all
2 * 76 00 04 04 01 00
08 "WAYP"
0C FE
0D FE
09 04
<F4 83 00 00> 80 // ground sprite
<F3 83 00 00> 80 // ground sprite
<F4 83 00 00> // ground sprite
<00 00 00> <10 05 17> <2D 84 00 00> // building sprite
<00 0B 00> <10 05 17> <2E 84 00 00> 80 // building sprite
<F3 83 00 00> // ground sprite
<00 00 00> <05 10 17> <2F 84 00 00> // building sprite
<0B 00 00> <05 10 17> <30 84 00 00> 80 // building sprite
Bit 15 in a sprite number sets "company colour" translation.
As can be seen, ground sprites above have bits 15 set: <F4 83 00 00>/<F3 83 00 00>. This should be changed to <F4 03 00 00>/<F3 03 00 00>, i.e. with bits 15 not being set.
HTH
Michael
Re: Modern Waypoints
Yes, this fixed the issue exactly. Can you point me to where these bits are documented? I can't seem to locate them on the wiki.michael blunck wrote: Property "09" sets the station´s layout. It is defined by a number of tiles, each composed by a number of sprites. A literal "80" ends the list of sprites for each tile. Each tile must consist at least of one ground sprite.
Bit 15 in a sprite number sets "company colour" translation.
As can be seen, ground sprites above have bits 15 set: <F4 83 00 00>/<F3 83 00 00>. This should be changed to <F4 03 00 00>/<F3 03 00 00>, i.e. with bits 15 not being set.
HTH
Michael
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
-
- Tycoon
- Posts: 5948
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Modern Waypoints
@kamnet
https://newgrf-specs.tt-wiki.net/wiki/A ... t_.2809.29
Please note that only bit31 (TTD/custom) for ground sprites has a special meaning, and thus is mentioned.
regards
Michael
https://newgrf-specs.tt-wiki.net/wiki/A ... t_.2809.29
Please note that only bit31 (TTD/custom) for ground sprites has a special meaning, and thus is mentioned.
regards
Michael
Re: Modern Waypoints
I'm assuming then I'd need to pull up the base graphics spritesheet and track down the sprite number intended for use?michael blunck wrote:@kamnet
https://newgrf-specs.tt-wiki.net/wiki/A ... t_.2809.29
Please note that only bit31 (TTD/custom) for ground sprites has a special meaning, and thus is mentioned.
regards
Michael
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
-
- Tycoon
- Posts: 5948
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Modern Waypoints
Sorry? You´re talking about those ground sprites?kamnet wrote: I'm assuming then I'd need to pull up the base graphics spritesheet and track down the sprite number intended for use?
For rails, they´re always 1012/1011 (x/y), resp 0x3F4/0x3F3. In case a track set is used, they´re automagically replaced by those of said track set.
regards
Michael
Re: Modern Waypoints
Thank you! I'll have to scribble some notes away someplace. (where I'll likely forget them )michael blunck wrote:Sorry? You´re talking about those ground sprites?kamnet wrote: I'm assuming then I'd need to pull up the base graphics spritesheet and track down the sprite number intended for use?
For rails, they´re always 1012/1011 (x/y), resp 0x3F4/0x3F3. In case a track set is used, they´re automagically replaced by those of said track set.
regards
Michael
OK I'm gonna clean up the source code a little and push an update. Thank you for your help!
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Modern Waypoints
Compiled .grf, all source code and documentation attached.
- Attachments
-
- modern_waypoint3.tar
- (48 KiB) Downloaded 85 times
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Modern Waypoints
Michael already helped you regarding the tracks, but in case you ever want to make non-track stationtiles and want to use base-graphics for those as groundtiles you need to do this:kamnet wrote:I'm assuming then I'd need to pull up the base graphics spritesheet and track down the sprite number intended for use?
- Indeed, track down the spritenumber of that base-graphic (not sure if they are shown in the source files, otherwise just decompile the Opengfx-base GRF), for example basic grass tile is number: 3981
- Convert that number into Hexadecimals, this is a handy webpage: http://www.statman.info/conversions/hexadecimal.html, 3981 becomes F8D (so, 0F 8D)
- Finally you have to reverse the two bits for the code, so 0F 8D becomes 8D 0F
This way you can for example give non-track tiles roadsprites, those will automagically be replaced by those of a roadset. (handy if you for example want to make parkingspots for a station, but you want the road to look like that of the roadset)
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604
Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604
Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
-
- Tycoon
- Posts: 5948
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Modern Waypoints
This is exactly the same thing I already explained above. There´s no difference between station tiles with track and station tiles without (trains will happily drive over gras). In fact, you can use any TTD (or custom) sprite for ground tiles (or building tiles). Whether for stations or for houses, industry tiles, or objects.Quast65 wrote: Michael already helped you regarding the tracks, but in case you ever want to make non-track stationtiles and want to use base-graphics for those as groundtiles you need to do this:
- Indeed, track down the spritenumber of that base-graphic (not sure if they are shown in the source files, otherwise just decompile the Opengfx-base GRF), for example basic grass tile is number: 3981
- Convert that number into Hexadecimals, this is a handy webpage: http://www.statman.info/conversions/hexadecimal.html, 3981 becomes F8D (so, 0F 8D)
- Finally you have to reverse the two bits for the code, so 0F 8D becomes 8D 0F
You may even use decimal numbers, no need for hex conversion.
regards
Michael
Re: Modern Waypoints
Get out of my head!Quast65 wrote:This way you can for example give non-track tiles roadsprites, those will automagically be replaced by those of a roadset. (handy if you for example want to make parkingspots for a station, but you want the road to look like that of the roadset)
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
-
- Traffic Manager
- Posts: 146
- Joined: 27 Dec 2004 19:37
- Location: Home of the Big Cat
Re: Modern Waypoints
Found a Graphics Glitch with modern waypoints.
- Attachments
-
- CGJ0001.PNG (29.25 KiB) Viewed 2585 times
Re: Modern Waypoints
Thank you for noticing! I will have to look into how to fix that little glitch. No sure when I'll get that done. If somebody wants to take a crack at it, be my guest
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Modern Waypoints
For direction-2 the sprites are built up the wrong way around.
The first one should be the back-of-track graphic, the second the front-of-track graphic.
Either, switch the graphics around in the graphicsfile (and adjust the graphicsproperties accordingly in the Action-1 in the NFO-file).
Or, switch these around:
\dx3F3 // Ground sprite set to F3 03 00 00
00 00 00 05 10 17 \dx842F // Building sprite
0B 00 00 05 10 17 \dx8430 // Building sprite
80
The first one should be the back-of-track graphic, the second the front-of-track graphic.
Either, switch the graphics around in the graphicsfile (and adjust the graphicsproperties accordingly in the Action-1 in the NFO-file).
Or, switch these around:
\dx3F3 // Ground sprite set to F3 03 00 00
00 00 00 05 10 17 \dx842F // Building sprite
0B 00 00 05 10 17 \dx8430 // Building sprite
80
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604
Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604
Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
Who is online
Users browsing this forum: No registered users and 77 guests