Creation Sharing Custom Scenario And Complex Coupling Instruction Compile Issue

Discussion in 'PC Editor Discussion' started by barcnal#4912, Jan 25, 2025.

  1. barcnal#4912

    barcnal#4912 New Member

    Joined:
    Dec 23, 2024
    Messages:
    5
    Likes Received:
    0
    Hi,

    I am making some custom scenarios via the PC Editor and would like some help with a complex shunting move I am trying to write out as part of timetable.

    Scene (hopefully this makes sense):
    1. Player runs 2 locos to track a and couples to the back of formation a (3 locos and 50 wagons).
    2. Player uncouples from formation leaving the 2 locos and 9 wagons as part of player service
    3. Player runs to track b and couples to back of formation b (20 empty wagons).
    4. Player uncouples leaving 2 locos and 7 wagons as part of service
    5. Player runs to track c and stops and uncouples 3 wagons from service (creating formation c) leaving 2 locos and 4 wagons as part of player service
    6. Player runs to track b and couples to formation b (now 22 wagons)
    7. Player uncouples 2 wagons leaving 2 locos and 2 wagons as part of player service
    8. Player runs to track c to couple to formation c (3 wagons)
    9. Player uncouples 1 wagon leaving 2 locos and 1 wagon as part of player service
    10. Player runs to track b to couple to formation b (24 wagons)
    11. Player uncouples 1 wagon leaving 2 locos as part of service
    12. Player runs to track c and couples to formation c (4 wagons)
    13. Player runs to track d and couple to formation d (5 wagons)
    14. Player runs to track a and couple to formation a (3 locos and 41 wagons)
    15. Player uncouples all wagons leaving 2 locos as part of player service. Formation a is now 3 locos and 50 wagons

    Not really complex but maybe in terms of coding this :)
    So, my issue is that I was able to get the couple / uncouple instructions ok up until instruction 7 above. When I connect the couple instruction 6 to the previous uncouple instruction 4, that works ok. I then create the uncouple instruction, however, when I try to compile the timetable I get the following error:
    Compilation Error: Mismatching uncoupled range lengths for SP_SC04_PlayerService2 at instruction 4 expected 64102.93 got 59441.53 in F:/DEV/ND24-BuildPublicEditor-EpicRelease/TS2Prototype/Source/TS2Prototype/Private/Scheduling/RouteTimetableDefinition.cpp line 3334

    When I look at the formation/service rail vehicles for the instructions I have created, they look correct (corect number of locos/wagons etc).

    Am what I am trying to do too complex? Do I need to break it up into smaller scenarios? Can I even do what am I trying to do, that is perform multiple couples/uncouples on the same formation/s?
    I obviously can just have go via instructions and text pop ups explaining what to do instead of couple/uncouple instructions but not really the same.

    Any idea appreciated.
    Thx
     

    Attached Files:

    Last edited: Jan 25, 2025

Share This Page