Page 1 of 1

Slope aware RVs and curved rails

Posted: 06 Jun 2014 07:08
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.

Re: Slope aware RVs and curved rails

Posted: 06 Jun 2014 07:18
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

Re: Slope aware RVs and curved rails

Posted: 06 Jun 2014 07:21
by Supercheese
I don't think NML has a vehicle variable for current slope.

Re: Slope aware RVs and curved rails

Posted: 06 Jun 2014 07:39
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

Re: Slope aware RVs and curved rails

Posted: 06 Jun 2014 12:16
by Eddi
the curved rails are only a concept, it has not been implemented yet.

Re: Slope aware RVs and curved rails

Posted: 06 Jun 2014 14:30
by lukasz1985
Ok then. Thanks for that info. I'll probably fiddle a little with this soon.