Disable rail types other than modded local railway?

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
Superjoeyman
Engineer
Engineer
Posts: 4
Joined: 27 Dec 2017 11:19

Disable rail types other than modded local railway?

Post by Superjoeyman »

Hi, I'm trying to make a scenario about small 2ft gauge railroading, is there any way to disable all standard gauge/electric/monorail/maglev track, without getting a replacement grf? If possible, also something to tweak up the price of road, air, and sea travel would be nice. Many thanks, everyone.
User avatar
kamnet
Moderator
Moderator
Posts: 8582
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Disable rail types other than modded local railway?

Post by kamnet »

Nope, you'll need newgrfs. A base cost mod will take care of the latter, I'm not aware of any 2 ft gauge train sets though. You've got a few regional NG sets and the 600mm set.
Eddi
Tycoon
Tycoon
Posts: 8267
Joined: 17 Jan 2007 00:14

Re: Disable rail types other than modded local railway?

Post by Eddi »

you cannot disable the builtin railtypes, but NewGRFs can change their properties (look, costs, compatible vehicles, etc.)

also, a NewGRF can disable the default vehicles (and introduce new ones), and all railtypes which have no vehicles available will stay hidden.
Superjoeyman
Engineer
Engineer
Posts: 4
Joined: 27 Dec 2017 11:19

Re: Disable rail types other than modded local railway?

Post by Superjoeyman »

Sorry, when I said 2ft it was interchangeably with 600mm, which was the set I was thinking of, considering they're basically the same guage. I understand I need newgrfs, but are there any that just remove, or remove + add with a really late intro date? Again, thanks everyone.
Eddi
Tycoon
Tycoon
Posts: 8267
Joined: 17 Jan 2007 00:14

Re: Disable rail types other than modded local railway?

Post by Eddi »

you can make a NewGRF which disables the default trains, it's basically just one line (besides all the general NewGRF setup)
User avatar
Kevo00
Tycoon
Tycoon
Posts: 5646
Joined: 07 Feb 2004 01:51
Location: East Coast MainLine

Re: Disable rail types other than modded local railway?

Post by Kevo00 »

Just make the 600mm gauge set the only train newgrf available in the scenario and you should not get standard gauge rail as there will be no trains to run on it.
User avatar
Gwyd
Chief Executive
Chief Executive
Posts: 721
Joined: 17 Apr 2017 16:52
Location: Western Ile-de-France Region

Re: Disable rail types other than modded local railway?

Post by Gwyd »

A quick grf that allows you to disable features (vehicles, houses, cargoes, industries and airports) that are either in the base set or in grfs above this grf in the list. This can crash the game if you don't load grfs after it. Please don't complain about that. Also attached are the strings. If you could translate those, then I'd happily add the translations into the grf, so it can be more easily used.
Also added the source code. Sorry about any inconsistencies. GPL v2.
Attachments
feature_disabler.grf
Actual GRF
(2.05 KiB) Downloaded 56 times
english strings.txt
For translators
(1.09 KiB) Downloaded 49 times
gwzz.nml
Source
(1.96 KiB) Downloaded 63 times
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 24 guests