roadtypes/tramtypes (formerly referred to as NRT)
Moderator: Graphics Moderators
roadtypes/tramtypes (formerly referred to as NRT)
Roadtypes and Tramtypes have been available in OpenTTD-master for a while now, but NewGRF NFO and NML documentation are rather sparse.
There are at least two GRFs available: ratt-roads and unspooled.
They are coded in NML.
I am trying to cobble together something in NFO, so I will have an occasional question.
Considering that the NRT topic is largely out of date with the exception of the most recent posts, If others have Roadtypes or Tramtypes NewGRF coding questions (NML and/or NFO), perhaps they could post them below.
I will try to add relevant links here as they become available.
There are at least two GRFs available: ratt-roads and unspooled.
They are coded in NML.
I am trying to cobble together something in NFO, so I will have an occasional question.
Considering that the NRT topic is largely out of date with the exception of the most recent posts, If others have Roadtypes or Tramtypes NewGRF coding questions (NML and/or NFO), perhaps they could post them below.
I will try to add relevant links here as they become available.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: roadtypes/tramtypes (formerly referred to as NRT)
My first question is about NFO Action 1.
The NewGRF specifications show:
// BASIC <sprite-number> * <length> 01 <feature> <num-sets> <num-ent>
// EXTENDED <sprite-number> * <length> 01 <feature> 00 <first-set> <num-sets> <num-ent>
but roadtypes seem to be a bit different.
<sprite-number> * <length> 01 <feature> <num-sets> FF <num-ent> <first-set>
A bit self explanatory with the exception of FF.
In the EXTENDED format 00 is an indicator that the Action 1 is indeed extended.
Does the FF in the roadtype Action 1 also act as an indicator, this one for roadtypes/tramtypes, or does it refer to something else?
The NewGRF specifications show:
// BASIC <sprite-number> * <length> 01 <feature> <num-sets> <num-ent>
// EXTENDED <sprite-number> * <length> 01 <feature> 00 <first-set> <num-sets> <num-ent>
but roadtypes seem to be a bit different.
<sprite-number> * <length> 01 <feature> <num-sets> FF <num-ent> <first-set>
A bit self explanatory with the exception of FF.
In the EXTENDED format 00 is an indicator that the Action 1 is indeed extended.
Does the FF in the roadtype Action 1 also act as an indicator, this one for roadtypes/tramtypes, or does it refer to something else?
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: roadtypes/tramtypes (formerly referred to as NRT)
No, the roadtype syntax for action 1 is not any different.
The FF syntax is "extended byte". The FF indicates that instead of a single-byte value, read two more bytes that form the actual value as a word-sized value. Described here.
Extended bytes only work for values that are defined to accept them, and the num-ent value is one of those.
The FF syntax is "extended byte". The FF indicates that instead of a single-byte value, read two more bytes that form the actual value as a word-sized value. Described here.
Extended bytes only work for values that are defined to accept them, and the num-ent value is one of those.
Re: roadtypes/tramtypes (formerly referred to as NRT)
So, in
13 00 (19d) would be <num-ent> and there is no <first-set>?
and in
we have two <num-ent> of 19 real sprites each?
Code: Select all
6 * 6 01 12 01 FF 13 00
and in
Code: Select all
6 * 6 01 12 02 FF 13 00
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: roadtypes/tramtypes (formerly referred to as NRT)
Thanks.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- andythenorth
- Tycoon
- Posts: 5667
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Re: roadtypes/tramtypes (formerly referred to as NRT)
There's now an nml nightly (2019-10-07) including NRT http://bundles.openttdcoop.org/nml/nightlies/LATEST/
Sorry, no Windows build of that yet.
Sorry, no Windows build of that yet.
FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Re: roadtypes/tramtypes (formerly referred to as NRT)
Treasure trove.
Treasure map to the Windows trove would be handy when its available. Thanks.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- andythenorth
- Tycoon
- Posts: 5667
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Re: roadtypes/tramtypes (formerly referred to as NRT)
There are roadtypes examples included with NML also btw.
FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Re: roadtypes/tramtypes (formerly referred to as NRT)
So I noticed. Colourful stuff no less.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- andythenorth
- Tycoon
- Posts: 5667
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Re: roadtypes/tramtypes (formerly referred to as NRT)
FYI I'm working on the nml docs and improved examples for roadtypes/tramtypes:
https://github.com/OpenTTD/nml/issues/47
https://github.com/OpenTTD/nml/issues/46
Assistance would be valuable
https://github.com/OpenTTD/nml/issues/47
https://github.com/OpenTTD/nml/issues/46
Assistance would be valuable
FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Re: roadtypes/tramtypes (formerly referred to as NRT)
Indeed.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Who is online
Users browsing this forum: No registered users and 5 guests