FS#4399 - New var 60-x for vehicles

Attached to Project: OpenTTD
Opened by George (George) - Tuesday, 11 January 2011, 23:38 GMT
Last edited by Michael Lutz (michi_cc) - Friday, 11 November 2011, 22:55 GMT
Type Feature Request
Category Vehicles → Articulated
Status Closed
Assigned To No-one
Operating System All
Severity High
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No



The new 60-x var is required for development of xUSSR set - get vehicle ID at offset. Parameter - offset from the current vehicle (0-7f forward, 80-ff backward)
This task depends upon

Closed by  Michael Lutz (michi_cc)
Friday, 11 November 2011, 22:55 GMT
Reason for closing:  Implemented
Additional comments about closing:  Can be done with var 61.
Comment by frosch (frosch) - Tuesday, 11 January 2011, 23:58 GMT
[00:42] <frosch123> can you post some examples what stuff can be archieved with that?
[00:50] <George> The reson to do that is that when I create ARV I can use only first 128 IDs
[00:53] <George> bit 7 would mean flip
[00:54] <George> So, when I ran out of 128 IDs I had to use IDs below 128 to represent the graphics of several vehicles
[00:55] <George> But I can't get information what graphics to use, because I do not know the ID of the previous part
[00:55] <George> because it is a wagon, the ID of the train is useless
[00:57] <frosch123> so you are basically heading for the first articulated part
Comment by George (George) - Wednesday, 12 January 2011, 11:36 GMT
Not only. There are also wagon sections (for example 5 wagon 16-3000 refrigerated section) - a group of wagons that should always go together, but can be assembled in several ways. So I have to check IDs of the 5 previous/ 5 next articulated wagons too.