Traffic lights (r17455)

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

User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: Traffic lights (r17455)

Post by Zuu »

Kosov_1986 wrote:hello,

sorry, but will you put this into trunk in the future?
That is not really in decision of Roujin. Sure while depending on how much he polish on the patch it may be more or less suitable for inclusion, it is still up to the OpenTTD devs to decide if and when they want to include it or not.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: Traffic lights (r17455)

Post by maquinista »

I tried this patch some time ago. I don't know if my problem was fixed or not.

The problem is that sometimes the city builds trafficlights in my motorways.

It would be interesting not allow the city build traffic lights in roads built by a player, Only allow build them by the city in roads owned by the city.
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
User avatar
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Traffic lights (r17455)

Post by Sensation Lover »

I think the city shouldnt build traffic lights...only the player
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Traffic lights (r17455)

Post by Roujin »

maquinista wrote:I tried this patch some time ago. I don't know if my problem was fixed or not.

The problem is that sometimes the city builds trafficlights in my motorways.

It would be interesting not allow the city build traffic lights in roads built by a player, Only allow build them by the city in roads owned by the city.
No, this problem was not "fixed" (in quotes because it's not really a bug, but game logic existing in OpenTTD I did not change). The problem is that a town may grow quite a bit into player owned roads, without taking ownership of them.
So if I would fix your problem, by making road works only appear on town owned roads, it would spawn a new problem: there might exist towns (late in the game) with only a little bit of road in their own possession, and the others are player owned (even the ones with sidewalks). Then no road works will ever appear on those roads...

Hmm, I could do it as YAAS (yet another advanced setting) though...
But I wouldn't really be happy with it.. it solves a problem while creating a new one.. :(

One question: which one would you prefer: forbid towns to do roadworks on player owned roads, or don't create traffic lights while doing roadworks on player owned roads?


---
@Sensation Lover: great that you're thinking that, because it's already completely optional with my patch :roll: - there's a switch in the advanced settings you can use to allow/forbid towns to build traffic lights.
* @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
User avatar
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Traffic lights (r17455)

Post by Sensation Lover »

lol sorry... :mrgreen:
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: Traffic lights (r17455)

Post by maquinista »

Roujin wrote:
maquinista wrote:I tried this patch some time ago. I don't know if my problem was fixed or not.

The problem is that sometimes the city builds trafficlights in my motorways.

It would be interesting not allow the city build traffic lights in roads built by a player, Only allow build them by the city in roads owned by the city.
No, this problem was not "fixed" (in quotes because it's not really a bug, but game logic existing in OpenTTD I did not change). The problem is that a town may grow quite a bit into player owned roads, without taking ownership of them.
So if I would fix your problem, by making road works only appear on town owned roads, it would spawn a new problem: there might exist towns (late in the game) with only a little bit of road in their own possession, and the others are player owned (even the ones with sidewalks). Then no road works will ever appear on those roads...

Hmm, I could do it as YAAS (yet another advanced setting) though...
But I wouldn't really be happy with it.. it solves a problem while creating a new one.. :(

One question: which one would you prefer: forbid towns to do roadworks on player owned roads, or don't create traffic lights while doing roadworks on player owned roads?


---
@Sensation Lover: great that you're thinking that, because it's already completely optional with my patch :roll: - there's a switch in the advanced settings you can use to allow/forbid towns to build traffic lights.
Ok, The problem is that some cities think that They owns my roads. These problems could be fixed in other patch.

About traffic lights: I think that It is a interesting patch.
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Traffic lights (r17455)

Post by Gremnon »

Roujin,
do you mind if we put a copy of the trafficlights.grf with the precompiled builds of the Community Integrated Version?
(And if not, does it matter which one? I think there's three)
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Traffic lights (r17455)

Post by Roujin »

Please go ahead and include it/them.
Yes, there's three, and IIRC the light ones are well visible with the default roads, I'd use that file and maybe include the others and write a note that there are alternatives (and how to use them), if the traffic lights have bad visibility on the player's preferred road set.
* @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
User avatar
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Traffic lights (r17455)

Post by Sensation Lover »

Trafic Lights is very nice feature. Adding realism and eyecandy to the game. I play Ottd with the Gremnons Patch Pack (because of the very nice, well implemendet and carefully choosen patches). and befor the last release it was included, and many people like me were happy :D . But now there is no more cuz it's a little bit outdated. Could you please bring it up to date with the trunk? maybe gremnon will included it back again and make us (me and many many others who like it) a very nice Christmas Present :D . It would be very appreciated if you could do this.

Thanks however for your work!
Cheers
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Traffic lights (r17455)

Post by Gremnon »

...
I said maybe you could help bring it up to date...
Roujin might not be interested in maintaining it any longer, or not have the time to do it in time.
User avatar
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Traffic lights (r17455)

Post by Sensation Lover »

I asked him nicely. That's all. i've not obligated him... after all, sooner or later he will up date the patch. I don't think he will abandon such greate work. I think a lot of people don't know about the marvelous features this patch gives. for example, in my games, i give a lot of importance to public transport in a city. and with this patch is possible to have very nice and realistic trafic. even when behind the trafic light formes queues, it s so nice (sometimes). can you immagine all that tiny people in the cars honking and yelling :lol: .
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
Anon
Engineer
Engineer
Posts: 16
Joined: 20 Jun 2010 19:20

Re: Traffic lights (r17455)

Post by Anon »

Against the stable version.
Attachments
trafficlignts_1.0.3.diff
(54.67 KiB) Downloaded 265 times
User avatar
Comm Cody
Tycoon
Tycoon
Posts: 1062
Joined: 07 Mar 2008 22:21
Location: In a galaxy far far away.

Re: Traffic lights (r17455)

Post by Comm Cody »

Word of Advice. I think merging a patch against the stable causes it to still display that it is a stable on online games when in reality it's not.
Something goes here, hell if I know.
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Traffic lights (r17455)

Post by Roujin »

Comm Cody wrote:Word of Advice. I think merging a patch against the stable causes it to still display that it is a stable on online games when in reality it's not.
Nope, except if you specifically tell the compiler to do so on compiling.
* @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
Anon
Engineer
Engineer
Posts: 16
Joined: 20 Jun 2010 19:20

Re: Traffic lights (r17455)

Post by Anon »

Intended use of the patch against stable — patchpacks. I don't think that in such case it is crucial to change the OpenTTD version in the rev.cpp.in.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Traffic lights (r17455)

Post by planetmaker »

It is especially in that case important to change it. This patch makes the game incompatible as it changes the game behaviour. So saying that it is the same as one of the stable versions is lying into your own pocket and will produce unuseful bug reports where devs waste their time on for no good reason instead of bringing us real bug reports or other new features (for example by reviewing patches).

That said: a patch needs not change the version itself as it *should* be done automatically by the version detection upon compiling - unless that is tempered with.
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Traffic lights (r17455)

Post by Roujin »

planetmaker wrote: That said: a patch needs not change the version itself as it *should* be done automatically by the version detection upon compiling - unless that is tempered with.
... which is exactly what I meant with my last post, only in better words :)
* @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
eliberatorM
Engineer
Engineer
Posts: 28
Joined: 28 Apr 2010 18:47
Location: Hungary

Re: Traffic lights (r17455)

Post by eliberatorM »

I think its a great patch, and whats the problem of towns building traffic lights on player owned roads?
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: Traffic lights (r17455)

Post by maquinista »

eliberatorM wrote:I think its a great patch, and whats the problem of towns building traffic lights on player owned roads?
The problem is that sometimes these roads are motorways and They can't have traffic lights. It's a detail that should be fixed.

It like this patch.
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
rileyper
Engineer
Engineer
Posts: 1
Joined: 14 Aug 2010 20:29

Re: Traffic lights (r17455)

Post by rileyper »

this is great, hope to see more improvements in the future, and i'll report any bugs if any when i see them thanks
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Baidu [Spider] and 7 guests