Disabling/enabling separate vehicles

Got an idea for a new feature in TTDPatch? Post it here.

Moderator: TTDPatch Moderators

Post Reply
User avatar
Prebral
Traffic Manager
Traffic Manager
Posts: 141
Joined: 20 May 2005 13:22
Location: Prague
Contact:

Disabling/enabling separate vehicles

Post by Prebral »

I am not sure, how this could be done and if it is even possible...however, as sets I use grow in ID usage, this may be handy:

The idea is, that except for enabling and disabling separate sets, the player would be allowed to disable/enable separate IDs in loaded sets via some simple GUI or not-so-simple cfg file. I often want to use some sets (for example CSDSet for locomotives, DBSetXL for wagons and Serbian narrow gauge set for narrow gauge) together, but simply arranging these in a specified order in newgrf.cfg is not enough - some vehicles are more important than the other ones but may be blocked by set with overall greater priority. Also, if I override a an engine set with a wagon set which has not all properties declared, a wagon may gain strange abilities like powered wagons or running cost from the earlier set.

The thing I have in mind should work somehow like this:
1) pre-load new grf
2) check ID usage list/allow user to mark IDs to use for each set
3) load new grf and where ID is not used, ignore this ID for this set
User avatar
The Person
Traffic Manager
Traffic Manager
Posts: 249
Joined: 01 Mar 2005 13:41
Location: Where Norwegians are made

Post by The Person »

I like this idea too. But please don't make it too complicated if it gets added. A simple cfg file with this syntax should do it:

Code: Select all

id1 = set1.grf
id2 = set2.grf
id3 = set3grf
id4...
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

The GRF Resource Management allows all of this to happen automatically, in principle, so that a GRF can only activate those vehicle IDs that aren't used yet.

As for the manual selection, it can possibly be done via grf parameters I guess.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
The Person
Traffic Manager
Traffic Manager
Posts: 249
Joined: 01 Mar 2005 13:41
Location: Where Norwegians are made

Post by The Person »

Patchman wrote:The GRF Resource Management allows all of this to happen automatically, in principle, so that a GRF can only activate those vehicle IDs that aren't used yet.

As for the manual selection, it can possibly be done via grf parameters I guess.
Could you tell me more about this GRF Resource Management (or give me a link)?
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
The Person
Traffic Manager
Traffic Manager
Posts: 249
Joined: 01 Mar 2005 13:41
Location: Where Norwegians are made

Post by The Person »

I was hoping for something which did not involve coding the grf files, but thanks anyway.

I gotta stop procrastinating and learn to code some day...
Post Reply

Return to “Suggestions”

Who is online

Users browsing this forum: No registered users and 9 guests