Tram Id discussion [Split from UK Tram set]
Moderator: Graphics Moderators
- SuperTycoon
- Chief Executive
- Posts: 733
- Joined: 24 Jun 2004 20:05
Can anyone give me a really quick explanation of how the tram ID system works? How many Tram IDs are there? Where do they come from?
(Are they recycled road vehicle IDs, or are they new ones created with the tram system)
Then maybe we could think about compatibility between tram sets over the use of IDs (depending on how many there are) since non of the tam sets I've seen so far are planning to create all that many trams, and if there are as many tram IDs as road vehicles or trains then surely some co-operation between the sets would be useful? If successful a similar system could potentially be used for small road-sets.
Equally, could a patch developer tell me how impossible extending the number of IDs available to each vehicle type is? Is it majorly hard-coded, or is it something that might be feasible two or three years down the line?
(Are they recycled road vehicle IDs, or are they new ones created with the tram system)
Then maybe we could think about compatibility between tram sets over the use of IDs (depending on how many there are) since non of the tam sets I've seen so far are planning to create all that many trams, and if there are as many tram IDs as road vehicles or trains then surely some co-operation between the sets would be useful? If successful a similar system could potentially be used for small road-sets.
Equally, could a patch developer tell me how impossible extending the number of IDs available to each vehicle type is? Is it majorly hard-coded, or is it something that might be feasible two or three years down the line?
1. Quite simply, a tram is a road vehicle with a flag set, this means they use the same ids as road vehicles, thus if you have trams you cannot have as many truck / bus types.
2. It is hard coded, both in TTD and in functions in TTDpatch, changing that would require a lot of work.
~ Lakie
2. It is hard coded, both in TTD and in functions in TTDpatch, changing that would require a lot of work.
~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
- SuperTycoon
- Chief Executive
- Posts: 733
- Joined: 24 Jun 2004 20:05
Indeed, which makes sence really, bit like trying to use a maglev train set which uses the same ids as a normal train set. 
~ Lakie

~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
- George
- Tycoon
- Posts: 4364
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Yes. that's why all trams sets use IDs 30-47. It makes all sets more compatibleSuperTycoon wrote:Does this mean tram sets would be incompatible with existing road vehicle sets which use the same IDs?Lakie wrote:1. Quite simply, a tram is a road vehicle with a flag set, this means they use the same ids as road vehicles, thus if you have trams you cannot have as many truck / bus types.
~ Lakie

Please don't act like we should all know this, George. The attitude I took from your posting made me think that you thought SuperTycoon was a fool for not knowing. Don't stir up trouble.George wrote:Yes. that's why all trams sets use IDs 30-47. It makes all sets more compatibleSuperTycoon wrote:Does this mean tram sets would be incompatible with existing road vehicle sets which use the same IDs?Lakie wrote:1. Quite simply, a tram is a road vehicle with a flag set, this means they use the same ids as road vehicles, thus if you have trams you cannot have as many truck / bus types.
~ Lakie
Gavin - MORE trams please.
EDIT: Gavin has just blasted me for posting this, but I would be "backing down" by removing it. So I ask that any response comes to me via private message. Thank you.
Official TT-Dave Fan Club
Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr
Why be a song when you can be a symphony? r is a...
Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr
Why be a song when you can be a symphony? r is a...
Not only should you not be expected to know that, but it's not even true. Those are merely the IDs that George has chosen to reserve for trams in his LV sets; there is absolutely no compulsion for "all trams sets" to use them.Dave Worley wrote:Please don't act like we should all know this, George.
Just as a note, whether you use George's scheme or not, if you want your trams to be compatible with the default vehicles in all three standard climates (ie, except for toyland), then you should use toyland IDs only. This means you should avoid IDs below 3A.
Indeed, there is no exact id range for trams, they can use all the road vehicle ids if you wished.
Pikka: you could always shuffle ids to allow you to use all the other climate ids, even if it is messy code wise...
[Or atleast I think you can using an action6 and splitting down action0's to major climate blocks...]
~ Lakie
Pikka: you could always shuffle ids to allow you to use all the other climate ids, even if it is messy code wise...

[Or atleast I think you can using an action6 and splitting down action0's to major climate blocks...]
~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
- George
- Tycoon
- Posts: 4364
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
I did not mean that. I was only afraid that it was forgotten, because it was discussed a year agoDave Worley wrote:The attitude I took from your posting made me think that you thought SuperTycoon was a fool for not knowing.
German trams do, Serbian trams do. So, why is it NOT true?PikkaBird wrote:Not only should you not be expected to know that, but it's not even true.
Mistaked. LV does not have trams and does not plan to. There was a discussion, where I suggest the range and it was accepted (nobody suggested any other schema). BTW, as I wrote a year ago, I can change LVs IDs schema in a GRF file in about 30 minutes. Players would spend hours to replace all the RVs in their savegames. Remember itPikkaBird wrote:Those are merely the IDs that George has chosen to reserve for trams in his LV sets;

There is a agreement. You are free to start a new discussion to change this rangePikkaBird wrote:there is absolutely no compulsion for "all trams sets" to use them.
Then why didn't you suggested this schema last year? It could be accepted the same way. BTW, it sounds better, why didn't you suggest it before?PikkaBird wrote:Just as a note, whether you use George's scheme or not, if you want your trams to be compatible with the default vehicles in all three standard climates (ie, except for toyland), then you should use toyland IDs only. This means you should avoid IDs below 3A.
P.S. Every time when I suggest some way to make sets collaboration easier, there appears a group of fighters who do their best to create as much chaos as possible. Instead of taking part in discussions, these fighter shout "Do not listen George" instead of suggesting anything! What a hell for?
drived me up the wall! BORED!

I ask developers to pass their opinion! Do we need some "suggested" solutions or is it better when everyone invents his OWN solution?
While I agree there should be an agreed range of IDs, you appear to be pushing YOUR way of thinking on to everyone else.
There was an agreement last year? Who did you make the agreement with? Where is it? I see no public display of this.
There was an agreement last year? Who did you make the agreement with? Where is it? I see no public display of this.
Official TT-Dave Fan Club
Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr
Why be a song when you can be a symphony? r is a...
Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr
Why be a song when you can be a symphony? r is a...
Split so that it doesn't clog the UK Tram set thread.
~ Lakie
~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
- George
- Tycoon
- Posts: 4364
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
When Michael said that my suggestion was a rule because nobody disagreed (in may award discussion), everybody accepted that fine, but when I make the same statement everybody disagrees. Is that Ok?PikkaBird wrote:I'm not saying there's anything wrong with cross-set collaboration. I'm just saying don't say it's a universally agreed convention when it isn't.
Are there arguments against? Unless there are any, my suggestions are the only solutionsDave Worley wrote:While I agree there should be an agreed range of IDs, you appear to be pushing YOUR way of thinking on to everyone else.

http://www.tt-forums.net/viewtopic.php?t=22572Dave Worley wrote:There was an agreement last year? Who did you make the agreement with? Where is it? I see no public display of this.
Dated December 2005. Enough?
I became very bored. I'll stop writing to the forums for at least one month. I'll contact only developers and artists directly via e-mail. If nothing will change (me doubts that there would be any changes), I'll follow SAC.
I'm tired to fight for player happiness - seems nobody needs it. When sets would become incompatible... Well, it cares nobody, why should it care me?
Got questions? E-mail me (do not use PMs, I'll check them rare)
P.S. for Oz and Lifeblood (I do not mean I'll stop my work. I've almost finished the first-row task and shall start the second task soon)
A sad day for the forums. Can I offer my view?
George means well, but English is not his first languge. In the past, and even now I think a lot of the content of his posts come from a translator service, or do not articulate enough. Therefore, well meaning, helpful posts sound like edicts sometimes. I don't take them to be literal; I guess others do.
"People, I just want to say, you know, can't we all just get along?"
-Rodney King
George means well, but English is not his first languge. In the past, and even now I think a lot of the content of his posts come from a translator service, or do not articulate enough. Therefore, well meaning, helpful posts sound like edicts sometimes. I don't take them to be literal; I guess others do.
"People, I just want to say, you know, can't we all just get along?"
-Rodney King
As much as Michael is as well respected as anyone (and probably more), he doesn't speak for everyone (although yes - I agreed with him in that particular case).George wrote:When Michael said that my suggestion was a rule because nobody disagreed (in may award discussion), everybody accepted that fine, but when I make the same statement everybody disagrees. Is that Ok?PikkaBird wrote:I'm not saying there's anything wrong with cross-set collaboration. I'm just saying don't say it's a universally agreed convention when it isn't.
Other people make their own schemes as they go along, and then you enter, putting across your way.Are there arguments against? Unless there are any, my suggestions are the only solutionsDave Worley wrote:While I agree there should be an agreed range of IDs, you appear to be pushing YOUR way of thinking on to everyone else.
I'm all for standardised stuff, but what if someone wanted 20 trams, and we only had 17 IDs? Such things shouldn't be fixed.
Thank you for that, but it should be stickied - what's the point in making agreements if they're not there for public viewing with ease? Anything like this should be made readily available to .grf authors.http://www.tt-forums.net/viewtopic.php?t=22572Dave Worley wrote:There was an agreement last year? Who did you make the agreement with? Where is it? I see no public display of this.
Dated December 2005. Enough?
Official TT-Dave Fan Club
Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr
Why be a song when you can be a symphony? r is a...
Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr
Why be a song when you can be a symphony? r is a...
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
Don't feel like this. We all care. And your vehicle set is considered as somewhat a standard in new GRFs.George wrote:... I'll follow SAC.
I'm tired to fight for player happiness - seems nobody needs it. When sets would become incompatible... Well, it cares nobody, why should it care me?
If a GRF set is incompatible with your set generally I NEVER USE it and so does the rest 99%.
For me it doesn't even make sense to develop a different road vehicle set apart from yours. Additions and new liveries are welcome of course. I suggest you arrange for a team to take care of LVs set, if you don't have enough time due to other projects (remember we had a pm discussion on this). Switches can be used for enabling/disabling specific vehicles if we want to have a special schema, like Eastern Europe, Germany, Britain, US, etc (like AV set.)
I side with your opinion about IDs.
And I am fed up with all those different tram sets poping up with only a few trams. (Please don't get offended. I admire artists' and coders' work): Couldn't there be one complete tram set only and stop arguing "we don't want cargo here" or this or that?
IDs aren't enough? You are right Dave, but there is only one solution: new code. Current limits, both in TTDPatch and OpenTTD is a big problem that has to be dealt with, no matter how hard it is.
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
Your always welcome to come patch (extend) the limits for us athanasios, but if it was easy it would have been done by now... 
~ Lakie

~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
I 100% totally agree with you, and I really care about compatible.athanasios wrote:Don't feel like this. We all care. And your vehicle set is considered as somewhat a standard in new GRFs.George wrote:... I'll follow SAC.
I'm tired to fight for player happiness - seems nobody needs it. When sets would become incompatible... Well, it cares nobody, why should it care me?
If a GRF set is incompatible with your set generally I NEVER USE it and so does the rest 99%.
For me it doesn't even make sense to develop a different road vehicle set apart from yours. Additions and new liveries are welcome of course. I suggest you arrange for a team to take care of LVs set, if you don't have enough time due to other projects (remember we had a pm discussion on this). Switches can be used for enabling/disabling specific vehicles if we want to have a special schema, like Eastern Europe, Germany, Britain, US, etc (like AV set.)
I side with your opinion about IDs.
And I am fed up with all those different tram sets poping up with only a few trams. (Please don't get offended. I admire artists' and coders' work): Couldn't there be one complete tram set only and stop arguing "we don't want cargo here" or this or that?
IDs aren't enough? You are right Dave, but there is only one solution: new code. Current limits, both in TTDPatch and OpenTTD is a big problem that has to be dealt with, no matter how hard it is.
I use many different sets. If none of these sets where compatible, it would spoil the pleasure of TTD (For me). It's the ability to choose which GRF's I like/want, that makes this game so great. And if the dev. of the UK trams set, choose not to make it compatible with George LV, I'm not sure i would use it. And wouldn't it be a pity to all those artist, and coders on the UK trams set, if I prefer George LV.

(P.s. Only my thoughts)
Projects Currently Working On | the Danish Transport set topic
The website
http://moonstone.classicgaming.gamespy.com
here is a pic of the game http://moonstone.classicgaming.gamespy. ... nt1big.jpg
The website
http://moonstone.classicgaming.gamespy.com
here is a pic of the game http://moonstone.classicgaming.gamespy. ... nt1big.jpg
- Wile E. Coyote
- Tycoon
- Posts: 8515
- Joined: 08 Jul 2004 22:14
- Skype: wile.e.coyote2
- Location: Belgrade, Serbia
- Contact:
George wrote:Mistaked. LV does not have trams and does not plan to. There was a discussion, where I suggest the range and it was accepted (nobody suggested any other schema). BTW, as I wrote a year ago, I can change LVs IDs schema in a GRF file in about 30 minutes. Players would spend hours to replace all the RVs in their savegames. Remember it
Well, it seems that Serbian tram set will need more free IDs in future, because I plan to add more trams soon...Dave Worley wrote:I'm all for standardised stuff, but what if someone wanted 20 trams, and we only had 17 IDs? Such things shouldn't be fixed.
Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.
Runner-up in "Best avatar Forums award" for years 2006 and 2010!
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.
Runner-up in "Best avatar Forums award" for years 2006 and 2010!
From the internal design it wouldn't make much sense to actually enlarge the id range arrays but generally do a totally different system to have private internal id ranges much like newstations/newobjects per set. (So you can mix sets and generally have no more limit or sets overwriteing half stats problems) However the action0 system we now have with the complicate callbacks and cache (which is very important) would need to be changed quite much. And the AI would go nuts...
And I have to agree with George that there was atleast a guideline everyone should follow. While I don't force people to use an certain style, the devs (or better say atleast me) won't support systems that don't make sense... If there is a better alternative id wise or good reason to not use the agreed ids, there will be surely no problem.
And I have to agree with George that there was atleast a guideline everyone should follow. While I don't force people to use an certain style, the devs (or better say atleast me) won't support systems that don't make sense... If there is a better alternative id wise or good reason to not use the agreed ids, there will be surely no problem.
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...


Who is online
Users browsing this forum: Bing [Bot] and 35 guests