Jump to content
Zum Start hinzufügen

Weitere Informationen

3D-Modellbahn Studio

Eine Vollbild-App auf Ihrem Startbildschirm mit Push-Benachrichtigungen und mehr.

So installieren Sie diese App auf iOS und iPadOS
  1. Tippen Sie auf das Teilen-Symbol in Safari
  2. Scrollen Sie durch das Menü und tippen Sie auf Zum Startbildschirm hinzufügen.
  3. Tippen Sie oben rechts auf Hinzufügen.
So installieren Sie diese App auf Android
  1. Tippen Sie auf das 3-Punkte-Menü (⋮) in der oberen rechten Ecke des Browsers.
  2. Tippen Sie auf Zum Startbildschirm hinzufügen oder App installieren.
  3. Bestätigen Sie durch Tippen auf Installieren.

Empfohlene Beiträge

Geschrieben

I can change the train destination indicator (online catalog -> Browse-> Infrastructure -> rail traffic ->platforms)

in the events when a trackcontact is triggerd  with the next LUA lines:

local t= $("Eindhoven destination indicator") 
  t.labels["Zuglauf"].text  = "geleen"
  t.labels["Zielbahnhof"].text  = "Sittard"
  t.labels["Abfahrtszeit"].text  =layout.time 

 

Updating the scoreboard(modular) in the same map gives an error "attempt to index a nil value (field 'Zuglauf')"

local t4= $("Eindhoven(modular)2") !!
t4.labels["Zuglauf"].text  = "geleen"

setting the properties for both objects in the layout look so much simular , but in the the eventscreen i cann't access the fields of the scoreboard(modular)

somebody who nows the right syntaxis?? 

Thanks

Heinrich

Geschrieben
vor 6 Stunden schrieb hb.resing:

somebody who nows the right syntaxis?

Hello Heinrich,

The message "attempt to index a nil value" tells you that the particular object has no field named 'Zuglauf'.
The proper name of the textfield of this particular model is '03 Zuglauf'

Kind regards
Goetz

Geschrieben

And it must also be called:

"Zielbahnhof" "04 Zugziel"
"01 Abfahrtszeit"

What I do not understand, however, is why the current time should be permanently entered for the departure time?

HG
Brummi

Bearbeitet von Roter Brummer

Geschrieben
  • Autor
vor einer Stunde schrieb Roter Brummer:

And it must also be called:

"Zielbahnhof" "04 Zugziel"
"01 Abfahrtszeit"

What I do not understand, however, is why the current time should be permanently entered for the departure time?

HG
Brummi

I was just testing . I am absolutly new to Lua and this game . Is it possible to create an array with  schedules for all stations?

So , I have a question also for you. I think you are de designer of this nice  object.  ?! why uses the train destination indicator  no numbers in the label , and the scoreboard (modular) numbers in the label ?   :) have a nice day 

vor 1 Stunde schrieb Goetz:

Hello Heinrich,

The message "attempt to index a nil value" tells you that the particular object has no field named 'Zuglauf'.
The proper name of the textfield of this particular model is '03 Zuglauf'

Kind regards
Goetz

Indeed , I missed the 03 . My stupid fault. I didn't  write the full labelname. 

The destination sign, the object with different station names that "moves out"....... can I also change the names ?

 

Thanks to both .

Greetz ,

Heinrich

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Push-Benachrichtigungen konfigurieren

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.