Pick different vehicle sets per player

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
User avatar
MagicBuzz
Tycoon
Tycoon
Posts: 1235
Joined: 15 Feb 2003 17:32
Location: Villefranche-sur-Saône, France

Pick different vehicle sets per player

Post by MagicBuzz »

Well, ok, I know this isn't so obvious, as the different vehicle sets are very different (some starts in 18xx and others after 1980, etc.)

But when playing with 2CC trainset in NML, I would never activate all regions (too much trains, useless) but it could be nice if there were an option (and corresponding NEWGRF command) that restrict IA or player with some subsets of vehiclesets (different newgrf, or different options in the same newgrf).

That would allow to make huge maps more realistics, with some player designing US trains, other Europe and last one Asia by exemple.

User avatar
jfs
Tycoon
Tycoon
Posts: 1208
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Pick different vehicle sets per player

Post by jfs »

Well, it could be done with with a Game Script, similar to the Technology Advancement one that was posted recently. Just instead make one that only enables certain vehicles for one player and some different vehicles for another player.

Eddi
Tycoon
Tycoon
Posts: 7453
Joined: 17 Jan 2007 00:14

Re: Pick different vehicle sets per player

Post by Eddi »

on the technical side, this shouldn't even be that difficult. the game already has a bitmask for each vehicle, which player havs access to it, just the only way the game currently sets this bitmask is "nobody", "everybody" and "one player (prototype)". the only thing that is missing is some way for a GS to disable the builtin assignments and set a custom bitmask
You might not exactly be interested in Ferion, but if you are, have fun :)

Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Pick different vehicle sets per player

Post by Yexo »

GS can do exactly that already via GSEngine::EnableForCompany and DisableForCompany, see https://docs.openttd.org/gs-api/classGS ... 9a378d71b0.

Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 6 guests