Page 5 of 7

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 30 Jun 2008 09:35
by Zephyris
The callback result for building an articulated vehicle is the vehicle ID or (if over 7F) the 80 plus the vehicle ID you want to add, but reversed. This means only vehicle IDs of under 7F (ie. half of them) cannnot be used for the carriage of articulated vehicles...

*edit* Just to expand on this - whilst all vehicles may be the head of an articulated consist not all may be a trailer, this is very constricting when trying to keep vehicles in some kind of logical order.

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 30 Jun 2008 13:28
by Clovertown
You can always put the trailers first in the GRF file. Unless of course you need more than 127 different trailers...

The callback result would need to use all 15 bits.

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 30 Jun 2008 21:23
by Zephyris
The problem is that every trailer has to be a separate vehicle, atm I am limited to ~200 vechicles when I would ideally want >256 :)

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 30 Jun 2008 21:39
by peter1138
Brings up a question... Should livery overrides be supported for road vehicles?

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 30 Jun 2008 22:00
by Zephyris
I was thinking that, it would be a powerful feature for creating generic trailers.

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 01 Jul 2008 06:05
by DaleStan
Livery overrides can be faked pretty easily with a type 82/86/8A check of var C6.

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 01 Jul 2008 10:27
by Clovertown
Zephyris wrote:The problem is that every trailer has to be a separate vehicle, atm I am limited to ~200 vechicles when I would ideally want >256 :)
Why? Aren't the vehicle IDs supposed to be extended bytes now? Except in the callback result that is.

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 01 Jul 2008 14:49
by Zephyris
I was under the impression there was still a limit of 256 per GRF file...

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 01 Jul 2008 15:20
by DJ Nekkid
peter1138 wrote:
Zephyris wrote:only 256 vehicles may be coded per GRF and articulation cannot be used for most of them...
Actually, not true.
DJ Nekkid wrote:care to enlighten us, or show us some sort of wikipage or something? :)
DaleStan wrote:Please try looking at the wiki before asking for documentation that already exists.
What about actually bringing something new to the conversation, and not just point to some generic page? That wikipage is a somewhat good source for nfo-programming, but i heavent read too much on the question we had. That only the first 127 vehID's can use articulation :)

So, please have some more specific pointers, if you have any, as i think all people who have some remote interest in the question mentioned know where to find the .nfo documentation.

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 02 Jul 2008 04:24
by DaleStan
Try reading the rest of the documentation, which has specified the incantations necessary to set properties for up to 65536 of *absolutely anything* since newsounds was invented (August of two thousand five), and rather more recently was updated to include the incantations for setting graphics for up to 65536 of *absolutely anything* and names for up to 65536 vehicles.

Don't whine to me if you can't be bothered to check the wiki twice a month for updates. It's not like it's that hard to find the list of most-recently updated pages. Or, if you must, whine that you looked at @PAGES and didn't find anything promising.

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 02 Jul 2008 11:06
by Zephyris
So are you saying action 0 and 3s can use extendd bytes for vehicle IDs?

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 03 Jul 2008 02:19
by DaleStan
Well, yes and no. What I'm actually saying is "What do the Action0, Action3, and Action4 wiki pages say?"

As a coder in a rather disturbingly dynamic language, it behooves you to watch the spec and read every single change. Old limitations may disappear or new abilities may appear, and if you don't pay attention, you come out ... well, "smelling like roses" it ain't.

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 04 Jul 2008 13:24
by DJ Nekkid
it seems to me that if you add /b* you use the extended byte thingy for vehID's

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 13 Aug 2008 22:25
by barber16
could anyone tell me where the 'valve supersonic' ships come from in the screenshot

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 13 Aug 2008 23:09
by Digitalfox
barber16 wrote:could anyone tell me where the 'valve supersonic' ships come from in the screenshot
It's from the Mars set :mrgreen:

Where can you get it? Well I don't remember from what topic I got it :(

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 14 Aug 2008 12:39
by Gremnon
Grfcrawler entry
Grfcrawler has most every TTDP and OTTD grfs these days.

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 31 Aug 2008 15:44
by Kumagoro
Clovertown wrote:Using the original vehicle grf posted in this thread makes the vehicles unable to load any cargo. Even if it is the only grf loaded. Newgrf vehicles (including new wagons on original train engines) will still work, but only if their grf was loaded before origengs.grf.

I'm using the latest nightly (13232 as of this post).
Yeah, got that problem too. Wonder what causes that...

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 31 Aug 2008 15:55
by peter1138
*cough* Probably because that GRF set all cargo load amounts to 0...

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 01 Sep 2008 00:13
by DaleStan
That could possibly cause problems.

Re: You can have 65535 types of vehicles to choose since r12924!

Posted: 01 Sep 2008 13:01
by Kumagoro
Now who the hell did that :o