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

Running this small test scenario I get an error when I run over the trackcontact that executes the event.

See the associated picture and scenario.

Three tracks, a turnout, a track contact (names "Track Contact") and a loco with a keyword (="test") is created.

An event with trigger "Track contact is triggered" is created with one condition "Vehicle is located on Track/Trackcontact".

The condition is true if:

>>VEHICLE<< - Here I select "Variable">"Objectvariable" and select the keyword "TEST" (from the loco)

>>TRACK/TRACKCONTACT<< - Here I select the trackcontact´"Track Contact".

The action associated if "TRUE" is toggling the turnout.

When I run the loco over the Track contact the scenario stops and eventtrace reports "Unknown method or property name isLocatedOn".

Am I doing something wrong os is it supposed to do this

Best Regards

Michael

Beim Ausführen dieses kleinen Testszenarios erhalte ich einen Fehler, wenn ich über den Gleiskontakt fahre, der das Ereignis auslöst.

Siehe zugehöriges Bild und Szenario.

Es werden drei Gleise, eine Weiche, ein Gleiskontakt (mit dem Namen „Gleiskontakt“) und eine Lokomotive mit dem Schlüsselwort „test“ erstellt.

Es wird ein Ereignis mit dem Auslöser „Gleiskontakt wird ausgelöst“ und der Bedingung „Fahrzeug befindet sich auf Gleis/Gleiskontakt“ erstellt.

Die Bedingung ist erfüllt, wenn:

>>FAHRZEUG<< – Hier wähle ich „Variable“ > „Objektvariable“ und das Schlüsselwort „TEST“ (von der Lokomotive).

>>GLEIS/GLEISKONTAKT<< – Hier wähle ich den Gleiskontakt „Gleiskontakt“.

Die zugehörige Aktion bei „WAHR“ ist das Umschalten der Weiche.

Wenn ich die Lokomotive über den Gleiskontakt fahre, stoppt das Szenario und Eventtrace meldet „Unbekannter Methoden- oder Eigenschaftsname isLocatedOn“.

Mache ich etwas falsch oder ist das so beabsichtigt?

Error-isLocatedOne.JPG

test_keyword.mbp

Geschrieben

Hallo,

vor 16 Minuten schrieb mich.chr:

An event with trigger "Track contact is triggered" is created with one condition "Vehicle is located on Track/Trackcontact".

The condition is true if:

>>VEHICLE<< - Here I select "Variable">"Objectvariable" and select the keyword "TEST" (from the loco)

>>TRACK/TRACKCONTACT<< - Here I select the trackcontact´"Track Contact".

The error message occurs because you select the object variable “Test” from the locomotive “OEBB 2048” as the vehicle. The object variable “Test” is a keyword. A keyword cannot be placed on a track contact.

Do you want to check whether the locomotive “OEBB 2048” specifically has the object variable ‘Test’ as a keyword, or generally whether the locomotive entering the track contact has the keyword “Test”?

Die Fehlermeldung entsteht dadurch, daß Du als Fahrzeug die Objektvariable "Test" von der Lok "OEBB 2048" auswählst. Die Objektvariable "Test" ist ein Schlüsselwort. Ein Schlüsselwort kann nicht auf einem Gleiskontakt stehen.

Möchtest Du abfragen ob speziell die Lok "OEBB 2048" die Objektvariable "Test" als Schlüsselwort hat, oder allgemein ob die Lok, die den Gleiskontakt betritt des Schlüsselwort "Test" hat?

EASY

Geschrieben
  • Autor

Hi Easy and thanks for your kind help.

With the condition I want to test if any loco that runs over the trackcontact has a certain keyword and then do actions.

Ich möchte prüfen, ob eine Lokomotive, die über die Gleiskontaktstelle fährt, ein bestimmtes Schlüsselwort aufweist, und dann Aktionen ausführen, wenn sie dieses Schlüsselwortkriterium erfüllt.if they meet this keyword criteria

Geschrieben

Hi,

vor einer Stunde schrieb mich.chr:

With the condition I want to test if any loco that runs over the trackcontact has a certain keyword and then do actions.

the event with the Condition : (Property/Variable has Value)

Bild 006.jpg

Step by step:

Variable -> variable (Extended)

Bild 001.jpg
Object -> Trigger

Bild 002.jpg

... choose -> Vehicle...

Bild 003.jpg

Name -> choose -> Test

Bild 004.jpg

= -> Keyword

Bild 005.jpg

EASY

Bearbeitet von EASY

Geschrieben
  • Autor

Hey Easy

That did the trick. Thanks a lot for your help. I would not have gotten there if you hadn't provided the assist :-)

And I can see the "property/variable has value" condition has a lot of utility build into it that will soon come in handy for me.

Best Regards

Michael

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.