Question about traffic lights (semaphores)

Modding school: Learn it from the masters
Post Reply
Xaos
Posts: 1
Joined: 29 Jun 2016 13:07
Donation rank:

29 Jun 2016 13:09

Hello, I'm new on editing ETS2 and i want to know how to add semaphore?
When I put on the road the light are white :?
Someone, can help me ? :D

Jakov1522
Posts: 136
Joined: 03 Mar 2015 14:11
Location: Somewhere in Continental Croatia

31 Jul 2016 06:34

Xaos wrote:Hello, I'm new on editing ETS2 and i want to know how to add semaphore?
When I put on the road the light are white :?
Someone, can help me ? :D
Its easy,just click on red node of prefab (with item properties ON )Check use semaphores,and,u are done! ;)
Developing an addon for ProMods! Find it here: viewtopic.php?f=37&t=28921

User avatar
EG0611
Moderator
Posts: 1410
Joined: 27 Apr 2016 08:53

09 Aug 2016 20:41

I have a more deep question. How I can change the signal type?
Image
Image
Image

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

09 Aug 2016 21:38

What type do you mean? Country or setup?
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
EG0611
Moderator
Posts: 1410
Joined: 27 Apr 2016 08:53

09 Aug 2016 21:49

MandelSoft wrote:What type do you mean? Country or setup?
Both. As you can see https://i.hizliresim.com/6mRZ1k.png when I activate semaphore, I only see this type of signal.
Image
Image
Image

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

09 Aug 2016 22:52

That's the default signal model. Traffic lights are directly assigned to countries, so if the prefab nodes are assigned to i.e. Germany, it will get German signals, if available. If not, it will keep on using the default signals. The signal models are defined in "/def/world/semaphore_model.sii". The item name is structured in such a way that you have the item type first, then the signal type and then the country code it is used for. Example, this is the definition for Slovenia (slo):

Code: Select all

tr_semaphore_model : tr_sem_mdl.city.slo {

	name: "city-slo"
	
	model_desc: "/model/traffic_light/slovenia/city_slo.pmd"
	model_coll: "/model/traffic_light/slovenia/city_slo.pmc"

	dynamic: false
}

tr_semaphore_model : tr_sem_mdl.single.slo {

	name: "single-slo"
	
	model_desc: "/model/traffic_light/slovenia/single_slo.pmd"
	model_coll: "/model/traffic_light/slovenia/single_slo.pmc"

	dynamic: false
}
So you need to model those, but this can be a bit tricky if you don't know how the traffic light lamp overlays work. They use some very specific UV system, so stick to that.

If you want to change the setup itself, you have to change the prefab, which is a whole lot more complicated and I'm not going to explain it, since it requires you to know how to model in ZModeler first...
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
EG0611
Moderator
Posts: 1410
Joined: 27 Apr 2016 08:53

10 Aug 2016 05:05

O.O

Thanks Mandelsoft and yes this is a bit hardcore to me. I will just go back mapping.

Thank you anyway :)
Image
Image
Image

User avatar
EG0611
Moderator
Posts: 1410
Joined: 27 Apr 2016 08:53

04 Jun 2018 18:19

More than 2 years ago. This topic saved me while I was working on my own South Bulgaria-Turkey project. Now, 2 years later it again saved me on a completely different project. Thank you Mandelsoft and Promods :) and thank you SCS for not changing its file structure :P
Image
Image
Image

ONL1NE
Posts: 17
Joined: 24 Aug 2017 22:09

11 Nov 2018 11:37

Hello, how can i add semaphores on the road? Thanks.

User avatar
EG0611
Moderator
Posts: 1410
Joined: 27 Apr 2016 08:53

12 Nov 2018 06:43

You cannot add semaphores to the roads. You can only add them to the prefabs.
Image
Image
Image



Post Reply

Return to “ProMods Academy”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests