Symulator EU07 (i nie tylko) > Pomoc w tworzeniu
Sygnalizatory na TD
Stele:
Inc file of your semaphore must have events controling warning signals. Take a look at normal td scenery. It uses ss5pcpzby.inc
--- Kod: ---include;ss5pcpzby.inc;stacja1_a;-2;-0.2;236;180;a-12;stacja1_toa;end
--- Koniec kodu ---
where "stacja1_toa" is name of semaphore before it (parameter p7).
Events that set signals on it also send command to the one under p7 for example
--- Kod: ---event (p1)_s1 multiple 0 none (p1)_sem_ligh1 (p1)_sem_info_stop (p7)_os1 endevent
--- Koniec kodu ---
So setting S1 signal on it lights up first set of lights (red one), updates associated memory cell to "stop" and send OS1 signal to p7.
Many semaphores, including your sk1, don't have such entries. It's a problem even in case of repeaters used on normal td. Someone finaly will have to unify all inc files but until that day we have to set those signals manualy by multiple events.
Lelek:
Thanks for answer. Next thing I'm thinking about, is that signal given by entrance semaphore do not depend on exit semaphore. You can see it here: http://eu07.pl/forum/index.php?action=dlattach;topic=17095.0;attach=73847;image (semaphore gives S5, but there is green light in background).
As I have found in "Zaawansowany tutorial tworzenia tras do symulatora Maszyna – EU07-424" by Wasyl, exit semaphores don't know (p7) parameter. Setting switch position as "condition" value in events is also impossible. Must we write events, which will move both switches at same time and set appropriate signals or is there some another way?
Quark-t:
Exit semaphores are not connected to entrance semaphores because on stations with many tracks it is impossible to set appropriate pair of signals. For example: one train is arriving and stops on station, the other leaves from other track. There is (currently) no possibility to check by the switch position which exit signal belongs to the entrance signal. That's why we use event type "multiple" to set switches and semaphores as a route. As I remember, it can contain up to 8 events, so it's enough for easy route (like in TD: two switches and two semaphores - 4 events) and for more complicated - multiple event can call another multiple and so on.
jakubg1:
Mam kolejny problem, mianowicie przypisałem losowe zdarzenie do sygnalizatora "stacja_a" żeby wyświetlało S2 bądź S3 bądź S4. I problem jest następujący: wciskam Shift+8 i po prostu nic się nie dzieje. Załączam kod eventów odpowiedzialnych za losowanie:
--- Kod: ---event keyCtrl08 multiple 0 none losujAAA endevent
node -1 0 memAAA memcell 1.0 1.0 1.0 * 0 0 none endmemcell
event up1AAA updatevalues 0.0 memAAA * 1 1 endevent
event up2AAA updatevalues 0.0 memAAA * 2 2 endevent
event losuj1AAA multiple 0.0 none up1AAA condition propability 2 endevent
event losuj2_1AAA multiple 0.0 none up2AAA condition propability 2 endevent
event losuj2AAA multiple 2.0 memAAA losuj2_1AAA condition memcompare * 0 0 endevent
event losujAAA multiple 0.0 none losuj1AAA losuj2AAA endevent
event mul1AAA multiple 0.0 memAAA AB condition memcompare * 0 0 endevent
event mul2AAA multiple 0.0 memAAA AC condition memcompare * 1 1 endevent
event mul3AAA multiple 0.0 memAAA AD condition memcompare * 2 2 endevent
event AAA multiple 0.0 none mul1AAA mul2AAA mul3AAA endevent
event AB multiple 0 none stacja1_a_s2 endevent
event AC multiple 0 none stacja1_a_s3 endevent
event AD multiple 0 none stacja1_a_s4 endevent
--- Koniec kodu ---
AAA to kod losowania, AB to zdarzenie 1, AC zdarzenie 2, AD zdarzenie 3.
Stele:
A gdzie wyzwolenie AAA? keyCtrl08 tylko wyzwala losowanie. No i masz prawdopodobieństwo >1. Jak się nie sypnie, to zawsze będziesz miał AC.
Nawigacja
[#] Następna strona
Idź do wersji pełnej