Page 1 of 1

articulated trams

Posted: 21 Jul 2008 00:13
by cmoiromain
Hi

Just out of curiosity, I was wondering what the maximum number of wagons is for an articulated tram in either the patch or OpenTTD. I really love those long 4 car trams in eGRVTS, and having even longer ones would be really cool!

Re: articulated trams

Posted: 21 Jul 2008 04:36
by DJ Nekkid
either 255 or 127, not sure weather of thoose, but it's a limit that none probably can or will ever use...

Re: articulated trams

Posted: 21 Jul 2008 04:49
by cmoiromain
Thanks for the reply! And a question to the coders: how difficult would it be to have a, say, 10 car tram in the game? This would allow for trams to replace trains, therefore making networks easier (no signals...) and also to transport in-town passengers when there is no more space for a train station.

Re: articulated trams

Posted: 21 Jul 2008 07:39
by MJS
And what about realism then :)

Re: articulated trams

Posted: 21 Jul 2008 07:53
by FooBar
cmoiromain wrote:And a question to the coders: how difficult would it be to have a, say, 10 car tram in the game?
Aligning the different parts can be a pain in the ***, as it takes a lot of time and patience. But alignment is not difficult. Once you managed to do a three part tram, a ten part is pretty straightforward. Just a bunch of duplicate yet slightly dissimilar code. If you've never coded articulated trams before, that's probably going to be the hardest part of all.

Re: articulated trams

Posted: 21 Jul 2008 10:51
by DJ Nekkid
if it's basicly a 3parter (each "head" and the middle car(s)) it's just a matter of changeing a number 2 places, so a 3car or a 10 car is the same in that matter...

Re: articulated trams

Posted: 21 Jul 2008 16:21
by Roujin
and what about speed then?

Re: articulated trams

Posted: 21 Jul 2008 16:25
by DJ Nekkid
max 127kmh as other RVs... and slow at curves :)

Re: articulated trams

Posted: 21 Jul 2008 18:22
by Zephyris
If you want some code for long trams I can help...

Re: articulated trams

Posted: 22 Jul 2008 00:58
by cmoiromain
I have started learning nfo coding yesterday evening, I am far from reaching those articulated trams. But I hope in a few weeks' time I will succeed (those trams are what motivated me to learn nfo).

BTW, I have a slight problem; could anyone help?