Jump to content

Herman

Mitglieder
  • Gesamte Inhalte

    973
  • Benutzer seit

  • Letzter Besuch

Beiträge erstellt von Herman

  1. ME 08 Block Signal Generic is found in the catalog
    As you can see it is contributed
    by Roter Brummer and the script is from Goetz.

     

    1006110826_ME08.thumb.jpg.564949c589f9bd3667b504be91cc9805.jpg

    The signal has a variable, type table, you can set another speed as value in the second entry. (now 80)
    The 0 and 1 in the name will later in the code correspond with the state of the Signal. Do not change them.

    Geschwindigkeiten.jpg.6792e0a21fb9d353aa108b447dfffebb.jpg

    A suggestion is to make it “all purpose” so it can handle trains with negative speed, and even vehicles pushing their wagons.

    Neo worked out a solution, it is for a signle signal named “Form signal1”

    1179056461_solutionneo.jpg.2579301e4ae8c65ecfce68df2ddb0635.jpg

    With a little change in the script we can make it generic. I kept the original code but set it not activ.

    One can say : another generic signal, but I, and maybe other members can benefit from studying this approach.

    Regards, Herman

    A tested version of the generic signal is included, also an oval with signals to test it.

     

     

    ME 08 TEST.mbp ME 08 Block Signal generic V6 v01a.mbp

  2. Hello,

    Something strange ? Or my mistake ?
    When a track contact is triggered, I cannot find the object for a switch to toggle. See attachment. (*)
    It worked fine in V5. But if the code exists before, it stays working.
    Take for example ME09 Run of Hill ( by Roter Brummer ).  The toggle switch with random effect works nice.
    And it uses an object.

    But in a copy of that layout, when an own fresh track contact is used, the same problem occcurs.
    If a use that track contact and try to add a new event ( but the same code ), the same problem occurs.

    Kind regards, 
    Herman

    (*) If we use name in stead of object, it works, but that's not wanted

    Toggle Switch 01.jpg

    Toggle Switch 02.jpg

    Toggle Switch Problem.mbp

  3. Hello Thomas,

    Very pleased with your reaction.

    Very useful , we are coming to the point.
    v.targetspeedabs = contact.variables["StreckenGeschwindigkeid"] 

    I have the English version of 3D Studio, and mean that StreckenGeschwindigkeid indeed is set by the signal.
    But is it a own made variable set in the signal, that's where I'm looking for.

    But many thanks,

    Kind regards,

    Herman

  4. Hello,

    I appreciate your answer. I do not want to discuss, but I do not agree.

    Gleiskontakt Blocksignal 1 werd beim betreten ausgelöst

    The event says : the track contact from the corresponding signal is triggered. And that's a track contact not a signal.

    If you do not agree : you can easily give variables to a Signal. Try to do that with a track contact associated with that signal. Impossible not ?Really no offence, but when reading some forum topics, there is a confusion what is the signal, and what is that's signals track contact.
    The two are not the same at all.

  5.  

    Hello, Thomas,

    Thanks for the reply.
    More specific The expanded variable version is known very well, and also contact in the script is known by me, and certain the use of contact.state.
    But I'm looking for something like contact.signalsobjectname ( or simular ) to use it and adress the signals variable. 
    Something like contact.variables["#TRR OpenSignal"] == $("") but in this example the contact. is a triangular track contact, and it has variables.

    Hoping the question is clear enough.

    KInd regards

    Herman 

  6. Hello,

    I want to reopen a part of the topic, because my first question remains unsolved. 

    A track contact from a Signal is triggered.
    Is there ( or not ) a possibility  to find in that event the "object Signal itself" associated with that track contact ?
    If so, we can adress variables of the object signal.

    A solution is to place a triangular track contact near the signal with variable, type object, "MySignal", so please do not give that as an answer.

    Back to the question possible - please how ? Or not possible.

    Many thanks for a reply

    Greetings,

    Herman

  7. @HaNNoveraNer 

    Hello,

    Always thanks for a reply,

    Ok i did use your suggestions before. I saved ( even in 5 ) the name of the vehicle in a variable from the signal. ( * attachment )

    But Conditions to find the loc's name before the signal with something like 

      local vehicles = layout:getVehiclesOn(signal)
      for _, vehicle in pairs(vehicles) do
    ... and so on. 

    do not work with vehicles where there are wagons in front of the vehicle. Because the loc itself is not before the signal ?

    Another solution : put the signal in the beginning of a track, a vehicle that triggers this track will cause the vehicle to stop. Even with wagons in front, that works.
    The track before that track is stretched as long as the whole train ( wagons + vehicle ) fits on that stretched track.

    Kind regards,

    Herman

    HP V6 Signals V01b.mbp

  8. I started with 3D train Studio in march 2020, and bought V6.

    Can anybody give some help please. It is quite specific. 

    Relation between the track contact caused by a signal on that track, and the signal itself.
    In an event "track contact is triggered" how can i find the object name of that corresponding signal ? 
    If so we can use the variables of that signal. 


    A vehicle ( = wagons + locomotive ) hits the track contact of a signal. The wagons are in front of the Locomotive.
    How can I find the name of the object of the hitting Locomotive ? 
    I tried ( even in version 5 )   local vehicles = layout:getVehiclesOn(signal) , but in this case it is not working, beause the locomotive is not on that Signal's trackcontact.

    Thanks if someone can give an answer.

    Kind Regards

    Herman

×
×
  • Neu erstellen...