I have two questions. Sometime ago (as far as I remember right and ) there was some grfs that introduced vehicles that had different graphics when they were on slopes, so that they could be drawn accordingly to the slope on which they were. Can anybody explain how this could be achieved with NML and/or post a link to the grf (again if Im correct about that it was OpenTTD)?
Second question is related to curved rails tracks. This, I guess I saw in some Western themed set thread on this forum.
I mean curved tracks, so they could appear like they join not in 45 degrees angle. Could anybody point me to the correct solution?
Thank you in advice.
Slope aware RVs and curved rails
Moderator: Graphics Moderators
- lukasz1985
- Route Supervisor
- Posts: 436
- Joined: 27 Mar 2013 08:58
- Location: Poland
- Contact:
- V453000 :)
- President
- Posts: 946
- Joined: 01 Feb 2011 11:22
- Location: Beer
Re: Slope aware RVs and curved rails
I kind of doubt either of the solutions exist, the curved tracks always ended up just as images only without a function afaik
-
- Tycoon
- Posts: 1660
- Joined: 16 Dec 2007 22:24
- Location: Idaho, USA
Re: Slope aware RVs and curved rails
I don't think NML has a vehicle variable for current slope.
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Slope aware RVs and curved rails
Tracks currently don't allow being drawn with curvature.
The vehicles can query the curvature they drive along, there's also the in-built function vehicle_curv_info and there are several curv_XXX variables for vehicles.
http://newgrf-specs.tt-wiki.net/wiki/NM ... _parameter
http://newgrf-specs.tt-wiki.net/wiki/NM ... _functions
The height difference can only be accessed by direct variable access of var. 0x62
http://newgrf-specs.tt-wiki.net/wiki/Va ... 2/Vehicles
http://newgrf-specs.tt-wiki.net/wiki/NM ... ted_syntax
The vehicles can query the curvature they drive along, there's also the in-built function vehicle_curv_info and there are several curv_XXX variables for vehicles.
http://newgrf-specs.tt-wiki.net/wiki/NM ... _parameter
http://newgrf-specs.tt-wiki.net/wiki/NM ... _functions
The height difference can only be accessed by direct variable access of var. 0x62
http://newgrf-specs.tt-wiki.net/wiki/Va ... 2/Vehicles
http://newgrf-specs.tt-wiki.net/wiki/NM ... ted_syntax
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Slope aware RVs and curved rails
the curved rails are only a concept, it has not been implemented yet.
- lukasz1985
- Route Supervisor
- Posts: 436
- Joined: 27 Mar 2013 08:58
- Location: Poland
- Contact:
Re: Slope aware RVs and curved rails
Ok then. Thanks for that info. I'll probably fiddle a little with this soon.
Who is online
Users browsing this forum: Majestic-12 [Bot], Semrush [Bot] and 12 guests