Career Scenario, 2d Map Signals - True Or False

Discussion in 'General Discussion' started by g2.gehringer, Mar 15, 2023.

  1. g2.gehringer

    g2.gehringer New Member

    Joined:
    Feb 15, 2023
    Messages:
    4
    Likes Received:
    0
    I am just ask for a conformation or perhaps a workaround...

    I noticed that in a "Career Scenario", that while the F3/F4 track display shows an upcoming signal, the 2D Map does not show the trackside signals at all.
    Using the same trackage on a "Standard Scenario" the signals will appear on the 2D Map.

    The problem...
    I am using the Call("GetNextRestrictiveSignal"), to control/light a physical signal, but it only seems to work on Standard Scenario's.
    Is this because the Call("GetNextRestrictiveSignal") references the 2D Map to get its information and since there are no 2D Map signals on a Career Scenario, the call returns bogus data ?
    Is there a way to read the F3/F4 signal data ?

    Thank You all in advance for all that reply.
    --Gary
     
  2. torfmeister

    torfmeister Guest

    Indeed signals are hidden from the 2D map in Career mode for gameplay reasons - the driver should not "cheat" by checking the map but drive following the signal aspects he encounters as in RL.

    But there has to be a way to achieve want you want. Problem is all LZB scripts are compiled as binary .out files and hide their secrets...

    Have you tried GetNextSignalState()?

    If there's one person who knows it would be Maik Goltz . He's very busy, but sometimes he's dropping in here giving some useful advice.
     
    Last edited by a moderator: Mar 16, 2023
  3. g2.gehringer

    g2.gehringer New Member

    Joined:
    Feb 15, 2023
    Messages:
    4
    Likes Received:
    0
    torfmeister, thank you very much for the reply.

    As for calling GetNextSignalState(), I am not...

    I am using the Engine Script to gather up the information I need.
    I do not think that GetNextSignalState() is available for engine lua scripting.
    Am I correct that I can not call GetNextSignalState() from an Engine Script, I did not see it listed as an available function call.
    I did find it when referencing "Signal Scripting" development though.

    So, If I call my "signal script" first and then call the original signal script, just like I am doing with the Engine Scipt, would that be a valid approach?
    This means that I would have to find out what signal script the scenario is using to be able to frontend my script in first, correct ?

    Thank you again for you help and any pointer that you might deem helpful.

    --Gary
     
  4. g2.gehringer

    g2.gehringer New Member

    Joined:
    Feb 15, 2023
    Messages:
    4
    Likes Received:
    0
    Another thought...
    Would changing the Career Scenario to a Standard Scenario bring back the 2DMap signals ?
    Is RW Tools the thing to use in making this conversion ? ( I have never used this program).

    Thanks,
    --Gary
     
  5. Peter Hayes

    Peter Hayes Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    818
    Likes Received:
    329
    Gary
    Yes, it does work with RWTools now TSTools, ie you can convert career to standard scenarios at the click of a button.
    You can also open the appropriate scenarioproperties.xml file and change all "Career" mentions to "Standard".
     
  6. g2.gehringer

    g2.gehringer New Member

    Joined:
    Feb 15, 2023
    Messages:
    4
    Likes Received:
    0
    THANK You so much, you just gave me today's project. : )
    --Gary
     

Share This Page