New Rail Types

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1794
Joined: 30 Mar 2005 09:43

Re: New Rail Types

Post by peter1138 »

Zephyris wrote:It would be nice to be able to randomise rail sprites on a tile-by-tile basis to add variety to the tracks, would it be possible to add a varaction2 variable for position in the tile loop (or similar) to allow this?
Yup, trying to come up with a good algorithm ;-)
He's like, some kind of OpenTTD developer.
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: New Rail Types

Post by Zephyris »

Awesome :) That'll be fun!
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: New Rail Types

Post by FooBar »

planetmaker wrote:You need the varaction2 in order to differentiate between open and closed state of the level crossing.
Ah, good to know. Saves me from having to figure that out myself :)
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: New Rail Types

Post by maquinista »

Two preview filew with high speed tracks and Spain set. The depots are not drawn, and I don't know how to use the default maglev depots. The crossings and tunnels are fixed. The crossings only have the base sprite and doesn't have signals.

NOTE: Spain set wont support railtypes.
Attachments
preview.zip
Preview.
(473.07 KiB) Downloaded 127 times
Last edited by maquinista on 03 Mar 2010 19:20, edited 1 time in total.
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
Timmaexx
Transport Coordinator
Transport Coordinator
Posts: 301
Joined: 03 Jan 2009 17:55

Re: New Rail Types

Post by Timmaexx »

Found a big bug!
If one train is outside, the next one will only start if the other train is in its depot.
Bu they are on diffrent Rail Types...
Using Nightly from yesterday evening!
Attachments
Grein am Brenner Transport, 16. Sep 1999.png
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: New Rail Types

Post by planetmaker »

Timmaexx wrote:Found a big bug!
If one train is outside, the next one will only start if the other train is in its depot.
Bu they are on diffrent Rail Types...
It's not a bug but a feature.

It has been this way ever since. Or a signal on an electrical rail tile would not stop a train on a non-electrical branch track to crash into the nice shiny ICE travelling on the electrified track.
joshua peli
Engineer
Engineer
Posts: 60
Joined: 11 Jan 2010 15:34

Re: New Rail Types

Post by joshua peli »

How can I get all these new type of rails??? ?( :mrgreen:
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: New Rail Types

Post by planetmaker »

You cannot. There might be some already in this thread, but if so, not many. It's so bleeding edge that those grfs are not released. Even though Nekomaster asked the very same question just a few postings before you did.
Timmaexx
Transport Coordinator
Transport Coordinator
Posts: 301
Joined: 03 Jan 2009 17:55

Re: New Rail Types

Post by Timmaexx »

planetmaker wrote:
Timmaexx wrote:Found a big bug!
If one train is outside, the next one will only start if the other train is in its depot.
Bu they are on diffrent Rail Types...
It's not a bug but a feature.

It has been this way ever since. Or a signal on an electrical rail tile would not stop a train on a non-electrical branch track to crash into the nice shiny ICE travelling on the electrified track.
Thank you! Did not know that! Nice feature...
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: New Rail Types

Post by michael blunck »

Now with even more track types available in a game, something to be able to tell them apart (in the mini map) should be implemented, e.g. something like this:

IMO, best thing would be to handle this by an additional property in railtypes action0, like it´s done with industry prop19 (map colour).

Peter, what do you think?

regards
Michael
Image
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: New Rail Types

Post by Zephyris »

Another pestering question :)
Is there any chance for CC support for track graphics/catenarys? Things like a CC 3rd rail would be nice...
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: New Rail Types

Post by maquinista »

Zephyris wrote:Another pestering question :)
Is there any chance for CC support for track graphics/catenarys? Things like a CC 3rd rail would be nice...
And catenary pylons.

Also, It would be nice to allow to overlay the new sprites over the default railway graphics instead of grass tiles.
EDIT: Opss... I suggested it before.
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: New Rail Types

Post by NekoMaster »

and pie :3
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: New Rail Types

Post by frosch »

Just to throw in a suggestion:

Some action 0 property with 4 values:
0: no recolouring (as now)
1: CC
2: 2CC
3: ask some callback for a recolour sprite from action A or so (with special results for CC and 2CC)

So in most cases you would not need to call an expensive callback, simple rail could use no recolouring, depots could use 2CC, and other fancy stuff could use the expensive callback.

PBS reservation overlay would likely use greyscale recolouring in any case.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
el koeno
Route Supervisor
Route Supervisor
Posts: 454
Joined: 24 Sep 2004 15:47

Re: New Rail Types

Post by el koeno »

maquinista wrote:Two preview filew with high speed tracks and Spain set. The depots are not drawn, and I don't know how to use the default maglev depots. The crossings and tunnels are fixed. The crossings only have the base sprite and doesn't have signals.
Gave this a very brief try, and these are my observations:
  • High speed track and electrified track can not occupy the same square (e.g. when building diagonally).
  • High speed trains can not enter regular electrified track, but slow diesels can enter high speed track.
Are these just quirks of this preview, or how this is intended to work?

Anyway, I am definitely liking the looks of this feature. Good job petern!
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: New Rail Types

Post by planetmaker »

el koeno wrote:High speed track and electrified track can not occupy the same square (e.g. when building diagonally).
That's default behaviour to have only one track type per tile. That's also very unlikely to change.
el koeno
Route Supervisor
Route Supervisor
Posts: 454
Joined: 24 Sep 2004 15:47

Re: New Rail Types

Post by el koeno »

planetmaker wrote:
el koeno wrote:High speed track and electrified track can not occupy the same square (e.g. when building diagonally).
That's default behaviour to have only one track type per tile. That's also very unlikely to change.
Yeah, I was thinking that you can have electric / non-electric side by side. But that is probably not the case... It´s almost never a big issue anyway.
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: New Rail Types

Post by Roujin »

el koeno wrote:
planetmaker wrote:
el koeno wrote:High speed track and electrified track can not occupy the same square (e.g. when building diagonally).
That's default behaviour to have only one track type per tile. That's also very unlikely to change.
Yeah, I was thinking that you can have electric / non-electric side by side. But that is probably not the case... It´s almost never a big issue anyway.
Nope. In this case the bits of normal rail occupying the same tile as a bit of electrified rail are electrified as well. There might only be some measure to display it as if it weren't.
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: New Rail Types

Post by maquinista »

el koeno wrote:
maquinista wrote:Two preview filew with high speed tracks and Spain set. The depots are not drawn, and I don't know how to use the default maglev depots. The crossings and tunnels are fixed. The crossings only have the base sprite and doesn't have signals.
Gave this a very brief try, and these are my observations:
  • High speed track and electrified track can not occupy the same square (e.g. when building diagonally).
  • High speed trains can not enter regular electrified track, but slow diesels can enter high speed track.
Are these just quirks of this preview, or how this is intended to work?

Anyway, I am definitely liking the looks of this feature. Good job petern!
This set is based on Spanish trains. In Spain and Portugal We have a different gauge than Europe (It's a bit wider). There are plans to reform the railway network and replace the iberian gauge with UIC gauge in the future, but It's very difficult. At the moment, the new high speed lines are being built with UIC gauge. This means that high speed trains can't enter in iberian gauge, and conventional trains can't enter in UIC gauge. There are dual gauge trains (and some of them can change the gauge), but They can't be coded at the moment.

The problem is that this feature makes more difficult to play Spain set combined with other sets.

The first Talgo trains (I, II and III) are wrong coded, because they should run only in normal tracks. Maybe, I can change it in the next release.

A interesting idea (but difficult to code is this): A tropical scenario, with the tropical grass tiles replaced with temperate grass tiles, and the dessert grass tiles replaced with tropical grass tiles.
The scenario is based on the south-west of Europe. Spain and Portugal (Iberian peninsula) only have desert tiles, and the other lands only tropical tiles.
There are a new railtype: Iberian gauge railway. You only are allowed to build Iberian gauge in the desert tiles (in the Iberian peninsula). In the other European countries You can build UIC gauge rails.This would make the scenario more difficult to play, because You need to transfer the loads, for example, fruits between Valencia and Paris, or passengers. The first passengers trains (~1965) that allow to use two gauges will make easier this. The high speed lines can be will everywhere.
This could be based in other countries, like Russia that uses a different gauge than UIC.

But these ideas are only wishful thinking. This game would need something to allow or disallow a train to run in two different gauges or change their gauge. Also, It's needed something to disallow the construction of certain types of railways in certain landscape areas and years.
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: New Rail Types

Post by FooBar »

maquinista wrote:This game would need something to allow or disallow a train to run in two different gauges or change their gauge.
With a bit of trickery you can already do that:

- Create a new dual-gauge track type and trains for that track type
- Allow dual-gauge trains on standard gauge track (by changing standard gauge track property 0E/0F).
- Allow dual-gauge trains on broad gauge track (by changing broad gauge track property 0E/0F).

That way, dual-gauge trains can go on all three aforementionned track types.
Standard gauge trains go on standard or dual gauge track.
Broad gauge trains go on broad or dual gauge track.

Similar trickery has to be used to allow high speed trains on normal electrified track.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Bing [Bot] and 11 guests