Page 1 of 1

Prevent vehicle showing in buy menu?

Posted: 11 Nov 2008 21:41
by andythenorth
So, I'm coding articulated road vehicles. These have a tractor and one or more trailers.

I'd like to prevent the trailers appearing in the buy menu. I know it's possible because Zephyris coded the original grf for me and the trailers he provided don't appear in the buy menu. The ones I have added *do* appear.

I have been over the action 0, action and action 3 code for both vehicles several times, and I can't see what's different, apart from capacity and refittable classes. I've also read the TTDPatch wiki documentation for those actions several times tonight to see if I've missed a property, or a value of a property that should be set.

I am off to look over my code yet again, but can anyone hit me with a clue stick as to where I should be looking?

cheers,

Andy

Re: Prevent vehicle showing in buy menu?

Posted: 11 Nov 2008 21:52
by michael blunck
andythenorth wrote:[...] I'd like to prevent the trailers appearing in the buy menu. [...]
Just shift them over to Toyland. That´s how it´s usually done with locomotive tenders.

regards
Michael

Re: Prevent vehicle showing in buy menu?

Posted: 11 Nov 2008 21:59
by andythenorth
michael blunck wrote:
andythenorth wrote:[...] I'd like to prevent the trailers appearing in the buy menu. [...]
Just shift them over to Toyland. That´s how it´s usually done with locomotive tenders.
Thanks for the tip. I looked at property 06 (climate) in Zephyris's code and found that he'd set it 00. That seems to work well.

cheers,

Andy

Re: Prevent vehicle showing in buy menu?

Posted: 12 Nov 2008 19:32
by Purno
michael blunck wrote:
andythenorth wrote:[...] I'd like to prevent the trailers appearing in the buy menu. [...]
Just shift them over to Toyland. That´s how it´s usually done with locomotive tenders.

regards
Michael
Can't you disable a Vehicle ID for all climates, including Toyland? GRFMaker got that option, so I guess NFO does too.

Re: Prevent vehicle showing in buy menu?

Posted: 12 Nov 2008 20:19
by michael blunck
Purno wrote:Can't you disable a Vehicle ID for all climates, including Toyland? [...]
Yes, by setting the climate bits (prop 06) to zero, i.e. "06 00". However, every other value does the trick as well, only in case you´re testing for a "wrong" climate.

regards
Michael

Re: Prevent vehicle showing in buy menu?

Posted: 14 Nov 2008 07:45
by Purno
With very little effort you can make it work correct in Toyland too ;)