Page 1 of 2

got problem about traffic lights (semaphores)

Posted: 14 Jun 2018 18:38
by bendol212
well since im newbie to this one....pls take a look on the pic and give me the solution...ty
Image

Re: got problem about traffic lights (semaphores)

Posted: 14 Jun 2018 18:50
by Nathan_A_RF
Well, those are the default traffic light model, and they are designed for countries that drive on the right. Since this is a left hand drive prefab, the traffic lights are rotated.

Re: got problem about traffic lights (semaphores)

Posted: 14 Jun 2018 19:14
by bendol212
can i rotate it to another direction?

Re: got problem about traffic lights (semaphores)

Posted: 14 Jun 2018 19:16
by MandelSoft
You can't, but if the correct country is assigned to it, the traffic lights will be oriented correctly. Currently, only the UK traffic lights are compatible with left hand traffic intersections.

Re: got problem about traffic lights (semaphores)

Posted: 14 Jun 2018 19:18
by bendol212
MandelSoft wrote:
14 Jun 2018 19:16
You can't, but if the correct country is assigned to it, the traffic lights will be oriented correctly. Currently, only the UK traffic lights are compatible with left hand traffic intersections.
aw tooo bad.... :o well ty for ur time guys....

Re: got problem about traffic lights (semaphores)

Posted: 14 Jun 2018 22:07
by bendol212
check it guys....in file

Code: Select all

..\def\world\semaphore_profile.sii
u can see something like this

Code: Select all

tr_semaphore_profile : tr_sem_prof.cr_1x2.gb {

	name: "crossroad 1x2 uk"

	inherited: tr_sem_prof.cr_1x1.gb
}
inherited: tr_sem_prof.cr_1x1.gb
and UK.sii

Code: Select all

country_data: country.data.uk
{
	country_id: 10

	name: "@@uk@@"
	country_code: "GB"

	pos:(-42290, 0, -14150)

	fuel_price: 1.354

	lights_mandatory: false
	imperial_units: true
	leftside_traffic: true
	trailer_standalone: false
	driving_tired_offence: true

	time_zone: 60		# +1 hours in minutes
	time_zone_name: "BST"
}
country_code: "GB"

is that the code about the traffic light?

Re: got problem about traffic lights (semaphores)

Posted: 15 Jun 2018 03:54
by ScuL
You shouldn't seek an answer in correcting the country for the semaphores, instead you should allocate a country border node to your map so that it displays in the correct country (that is left hand drive)

Re: got problem about traffic lights (semaphores)

Posted: 20 Jun 2018 02:31
by bendol212
hello everyone i managed to edit the semaphore (for right hand to left hand) with blender.....but i got a problem about the traffic light on the road (the semaphore on the center one or maybe left if its right hand traffic)
what i know is the default of the traffic light is "single.pmd" and "city.pmd" (../model/traffic_light)
my question is what the file name on the center of the road
1. city.pmd
2.single.pmd
3. .........????
Image
i tried to edit "single_left.pmd" but no progress at all
ty very much...and sorry about my english hahaha damn :D :D

Re: got problem about traffic lights (semaphores)

Posted: 20 Jun 2018 04:59
by ScuL
Wow, you shouldn't edit the model.. the road nodes simply do not have the correct country assigned!

Re: got problem about traffic lights (semaphores)

Posted: 20 Jun 2018 05:24
by bendol212
ScuL wrote:
20 Jun 2018 04:59
Wow, you shouldn't edit the model.. the road nodes simply do not have the correct country assigned!
well hungary have the same model with the default one....and its work for me btw....what i do only change the direction of the light as u can see on pic