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
Prevent vehicle showing in buy menu?
Moderator: Graphics Moderators
- andythenorth
- Tycoon
- Posts: 5705
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Prevent vehicle showing in buy menu?
FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
-
- Tycoon
- Posts: 5954
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Prevent vehicle showing in buy menu?
Just shift them over to Toyland. That´s how it´s usually done with locomotive tenders.andythenorth wrote:[...] I'd like to prevent the trailers appearing in the buy menu. [...]
regards
Michael
- andythenorth
- Tycoon
- Posts: 5705
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Re: Prevent vehicle showing in buy menu?
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.michael blunck wrote:Just shift them over to Toyland. That´s how it´s usually done with locomotive tenders.andythenorth wrote:[...] I'd like to prevent the trailers appearing in the buy menu. [...]
cheers,
Andy
FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Re: Prevent vehicle showing in buy menu?
Can't you disable a Vehicle ID for all climates, including Toyland? GRFMaker got that option, so I guess NFO does too.michael blunck wrote:Just shift them over to Toyland. That´s how it´s usually done with locomotive tenders.andythenorth wrote:[...] I'd like to prevent the trailers appearing in the buy menu. [...]
regards
Michael
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.

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."
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."
-
- Tycoon
- Posts: 5954
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Prevent vehicle showing in buy menu?
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.Purno wrote:Can't you disable a Vehicle ID for all climates, including Toyland? [...]
regards
Michael
Re: Prevent vehicle showing in buy menu?
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.

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."
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."
Who is online
Users browsing this forum: peter1138 and 6 guests