Slope aware RVs and curved rails

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
lukasz1985
Route Supervisor
Route Supervisor
Posts: 436
Joined: 27 Mar 2013 08:58
Location: Poland
Contact:

Slope aware RVs and curved rails

Post by lukasz1985 »

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.
ImageImage
User avatar
V453000 :)
President
President
Posts: 946
Joined: 01 Feb 2011 11:22
Location: Beer

Re: Slope aware RVs and curved rails

Post by V453000 :) »

I kind of doubt either of the solutions exist, the curved tracks always ended up just as images only without a function afaik
ImageImageImage
Supercheese
Tycoon
Tycoon
Posts: 1660
Joined: 16 Dec 2007 22:24
Location: Idaho, USA

Re: Slope aware RVs and curved rails

Post by Supercheese »

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
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Slope aware RVs and curved rails

Post by planetmaker »

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
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Slope aware RVs and curved rails

Post by Eddi »

the curved rails are only a concept, it has not been implemented yet.
User avatar
lukasz1985
Route Supervisor
Route Supervisor
Posts: 436
Joined: 27 Mar 2013 08:58
Location: Poland
Contact:

Re: Slope aware RVs and curved rails

Post by lukasz1985 »

Ok then. Thanks for that info. I'll probably fiddle a little with this soon.
ImageImage
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Majestic-12 [Bot], Semrush [Bot] and 12 guests