"Limited" Railtype

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
MinchinWeb
Traffic Manager
Traffic Manager
Posts: 225
Joined: 01 Feb 2011 12:41
Contact:

"Limited" Railtype

Post by MinchinWeb »

Is it possible to define a "limited" railtype, preferably using NML? I.e. one that doesn't support signals? Or doesn't support diagonal rails (just the "straight" ones)? I see that level crossings can be disallowed already. I was thinking about how to implement pipelines, and if one of those two features were available, I'd try to put together a working concept of my idea...
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2852
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: "Limited" Railtype

Post by ChillCore »

Even if what you ask for were possible ... I myself do not know.

- How will you handle bends in your "pipes" without diagonal pieces if 90% turns are disabled by the player?
- Without signals you will only be able to "pump" one batch of liquid at the same time. (Read: The pipe will be reserved from station to station.)
- Without signals how are you going to handle junctions or are you planning on disallowing those too?

IMHO pipelines are boring in regards of gameplay, they make for great eyecandy but once they are build they are pretty much fire and forget.
Don't let me stop you though. ;)
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: "Limited" Railtype

Post by Yexo »

This is not possible.
User avatar
MinchinWeb
Traffic Manager
Traffic Manager
Posts: 225
Joined: 01 Feb 2011 12:41
Contact:

Re: "Limited" Railtype

Post by MinchinWeb »

ChillCore wrote:- How will you handle bends in your "pipes" without diagonal pieces if 90% turns are disabled by the player?
- Without signals you will only be able to "pump" one batch of liquid at the same time. (Read: The pipe will be reserved from station to station.)
- Without signals how are you going to handle junctions or are you planning on disallowing those too?
In a word, pumping (transfer) stations. The goal/thought is to have short point-to-point connections. Disallowing signals would be ideal, but disallowing junctions would achieve the same effect, although be more limited in pipeline paths. Thus to increase capacity, you either upgrade your (one) "vehicle" on the route, increase the number of pumping/transfer stations (thus shortening each segment of the route), or build (another) parallel line.
Yexo wrote:This is not possible.
Is this because no one has implemented it yet? Or is there something fundamental about the game (or NML) that disallows it? (My preference would be to disallow signals construction).
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
User avatar
lawton27
Tycoon
Tycoon
Posts: 1418
Joined: 03 Aug 2009 14:29
Location: Manchester

Re: "Limited" Railtype

Post by lawton27 »

MinchinWeb wrote:(My preference would be to disallow signals construction).
This could be got around by using depots instead (which could prove more efficient on longer lines) you may want this effect and make it some kind of pump plant but things could get messy... Ideally you'd need something to remove depot signals for this type too, limiting a depot to one train (or none is there is a train connected to it) which could be very messy code-wise.

If it where me I'd be tempted to go down the comic style 'trains' are visible bulges in the pipe option and they do obey signals and such.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: "Limited" Railtype

Post by Yexo »

There is currently no spec that allows a grf to disable such parts. When you go into the realm of changing the source code of OpenTTD (nearly) everything is possible.
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 9 guests