Prevent vehicle showing in buy menu?

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
andythenorth
Tycoon
Tycoon
Posts: 5705
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Prevent vehicle showing in buy menu?

Post 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
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: Prevent vehicle showing in buy menu?

Post 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
Image
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5705
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: Prevent vehicle showing in buy menu?

Post 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
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Re: Prevent vehicle showing in buy menu?

Post 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.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: Prevent vehicle showing in buy menu?

Post 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
Image
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Re: Prevent vehicle showing in buy menu?

Post by Purno »

With very little effort you can make it work correct in Toyland too ;)
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: peter1138 and 6 guests