[OTTD] Trains Of Europe (TOE) Development

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

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

Re: [OTTD] Trains Of Europe (TOE) Development

Post by Eddi »

Emperor Jake wrote:
Transportman wrote: Ok. Would be nice if all trains (also the ones without 25kV AC) would be available if the track set is not detected, but if there is still a playable set with only the 25kV AC it is not that bad.
OK, I'll admit I don't know how to code that yet. :oops: Of course, I will try it, and implement it wen I figure it out :P
there was an example somewhere, but i can't find it. it basically goes like:

<Action 0> Install Railtype Translation Table: "RAIL" "25AC" "15AC" [...]
<Action 7> If Railtype available: "15AC" => Skip 1 Sprite
<Action 0> Install Railtype Translation Table: "RAIL" "ELRL" "ELRL" [...]

Then, all engines which use "25AC" or "15AC" railtype will be remapped to "ELRL"
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: [OTTD] Trains Of Europe (TOE) Development

Post by NekoMaster »

The Mutli rail type could be used for non-railtype train sets
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!
User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: [OTTD] Trains Of Europe (TOE) Development

Post by DJ Nekkid »

eddi:
isnt it better to do that on a engine-basis and not on a grf-wide basis? Then he dont have to have multiple RTT's, depending on what trackset is loaded.

say:
railtable with i.e.:
0: ELRL (std elrl)
1: EMED (a nutracks railtype)
2: 25AC (a TOE railtype)

<Action0> with property 05 (tracktype) set to 00
<Action9> skips to XX unless EMED is active
<action0> with property 05 set to 01
<Action9> skips to XX unless 25AC is active
<action0> with property 05 set to 02
<action10> XX
Member of the
ImageImage
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: [OTTD] Trains Of Europe (TOE) Development

Post by Eddi »

if you could explain to me how duplicating the same check for each engine is an advantage over setting it once for all engines?
User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: [OTTD] Trains Of Europe (TOE) Development

Post by DJ Nekkid »

Because if there are more then one trackset loaded at once, it could potentially have multiple railtables as well, and who knows what happens then...

<small text> Most likely is the last one gonna be the one that counts </small text>
Member of the
ImageImage
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: [OTTD] Trains Of Europe (TOE) Development

Post by Eddi »

a) only the last RTT will be active within a train set
b) you check for railtypes, not for track sets.
c) the question was about having the trains fall back to the default track types, not about supporting both nutracks and TOE-tracks...
d) supporting nutracks as well is probably more difficult, because the track types are totally differently distinguished. and it's not necessary, because nutracks is downward compatible with non-supporting train sets
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: [OTTD] Trains Of Europe (TOE) Development

Post by PikkaBird »

I'm not sure about the validity of a translation table that includes the same label more than once, Eddi...
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: [OTTD] Trains Of Europe (TOE) Development

Post by Yexo »

PikkaBird wrote:I'm not sure about the validity of a translation table that includes the same label more than once, Eddi...
That is perfectly valid.
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: [OTTD] Trains Of Europe (TOE) Development

Post by NekoMaster »

Another thing that could be done for non-railtype compatible train sets could be adding regular electricifed rail and make all TOE engines use the railtypes of TOE tracks
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!
User avatar
Snail
Tycoon
Tycoon
Posts: 1287
Joined: 28 Apr 2003 18:52
Contact:

Re: [OTTD] Trains Of Europe (TOE) Development

Post by Snail »

Emperor Jake wrote:
Snail wrote: I made some graphics for a NG track with rackrail a while ago, as I was thinking about including it in the French set. Would you be interested? ;)
...Yes, very much so :)
Ok! I'll send you the graphics through PM.
I also drew new catenary poles for electrified NG as the "La Mure" railway in south-eastern France, if you're interested.

By the way, have you already thought about how to implement rackrail engines in TTD? I had a few discussions with Michael Blunck lately, as to how to implement them in the French Set, but it seems a very tricky issue...
Emperor Jake wrote:
Snail wrote:Also, threephase catenary will be a must for the forthcoming Italian set, but I haven't started it yet
At that rate, I'll have TOE-Italy finished before you start :lol: (Did you download the tri-phase test set, BTW? What do you think of the catenary graphics?)
Tried them out, I like the catenary! Both the wires and the poles :)
The thing with threephase catenary is that it got very complicated where there were the switches, but I guess we can't have *that* much realism in TTD.

So you added the E554, do you have any other threephase engines in mind? I will draw just 3 for my Italian set ;)
The French Narrow Gauge Train Set is now released! Get it here
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3442
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: [OTTD] Trains Of Europe (TOE) Development

Post by Emperor Jake »

Snail wrote:By the way, have you already thought about how to implement rackrail engines in TTD?
I think that should be simple. I would just add a "rack" railtype, that is fully compatible with regular narrow gauge track, and rack engines would get a boost in tractive effort (via callback) when they are on that railtype.
Snail wrote:So you added the E554, do you have any other threephase engines in mind?
I was thinking of adding a few more, yes. Especially the e432, the e430 and some others I couldn't remember...
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: [OTTD] Trains Of Europe (TOE) Development

Post by PikkaBird »

Yexo wrote:
PikkaBird wrote:I'm not sure about the validity of a translation table that includes the same label more than once, Eddi...
That is perfectly valid.
What does rr of variable 4A contain in that case? The first matching entry?
Michi_cc
OpenTTD Developer
OpenTTD Developer
Posts: 619
Joined: 14 Jun 2004 23:27
Location: Berlin, Germany
Contact:

Re: [OTTD] Trains Of Europe (TOE) Development

Post by Michi_cc »

PikkaBird wrote: What does rr of variable 4A contain in that case? The first matching entry?
Yes, it does a linear search from the table start.

-- Michael Lutz
User avatar
lawton27
Tycoon
Tycoon
Posts: 1418
Joined: 03 Aug 2009 14:29
Location: Manchester

Re: [OTTD] Trains Of Europe (TOE) Development

Post by lawton27 »

Hi there, Jake you posted in my SNCF set topic earlier about adding compatibility for the TOE rail set, I've started coding now and I'm still up for adding compatibility, if you don't mind could you give me a full list of all the rail types (and rail type labels) that will be in the final version and what GRF id's I'll need to check for please?

Thanks,

Lawton27
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3442
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: [OTTD] Trains Of Europe (TOE) Development

Post by Emperor Jake »

lawton27 wrote:Hi there, Jake you posted in my SNCF set topic earlier about adding compatibility for the TOE rail set, I've started coding now and I'm still up for adding compatibility, if you don't mind could you give me a full list of all the rail types (and rail type labels) that will be in the final version and what GRF id's I'll need to check for please?

Thanks,

Lawton27
Sure, here you go :D

Code: Select all

RAIL	Normal rail
ELRL	Electrified rail (25kV AC)
ELAC	Electrified rail (15kV AC)
DC15	Electrified rail (1500V DC)
DC30	Electrified rail (3000V DC)
MULT	For Multi-system locomotives etc. It's not entirely possible to code properly yet, [url=http://bugs.openttd.org/task/4582]so vote for this[/url] :wink: 
TOE-Tracks GRF ID: 4A44EA01
Toe-Generic GRF ID: 4A440202

The only ones you'll really need are the ones used in France (ie 25kV AC and 1500V DC) If you're planning to add narrow gauge or something else "special", those tracktypes will be in separate modular sets.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: [OTTD] Trains Of Europe (TOE) Development

Post by Eddi »

just a side note: it might be useful to have the "MULT" railtype available for building, e.g. on border stations it's not uncommon that platforms may be switched from one voltage to another. just make it awfully expensive so it won't be abused.
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3442
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: [OTTD] Trains Of Europe (TOE) Development

Post by Emperor Jake »

Eddi wrote:just a side note: it might be useful to have the "MULT" railtype available for building, e.g. on border stations it's not uncommon that platforms may be switched from one voltage to another. just make it awfully expensive so it won't be abused.
That is a great idea :D I will try that
However, even if it's about as pricey as the vacuum tube track, some ultra rich player could still build entire lines/networks with it... but then why even use the tracks set?
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3442
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: [OTTD] Trains Of Europe (TOE) Development

Post by Emperor Jake »

OK, so coding is making great progress... I'm so proud of myself :]
Attachments
cab car.png
cab car.png (155.99 KiB) Viewed 740 times
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: [OTTD] Trains Of Europe (TOE) Development

Post by Eddi »

... except that the engine wouldn't have front lights on if it was pushing a train.
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: [OTTD] Trains Of Europe (TOE) Development

Post by NekoMaster »

Nice! I can't wiat to have a European train set with railtypes support for european electrification.

Will you be accepting sprites for trains you may or may not do your self?
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!
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 37 guests