Signals & Track Editor Crashes At Selecting Signals (+ No Way To Delete Them)

Discussion in 'PC Editor Discussion' started by RobertSchulz, Jan 4, 2024.

  1. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,617
    So, I have a problem regarding the signals currently.

    I think it could be due to that I somehow "incorrectly" placed some signals in "Attach linkable objects to track" mode, but as far I'm aware I just followed the guide to place signals after the masterclass, one signal after the other and no track changes thereafter.

    I placed 4 Formsignal Hp0 signals, but there seem to be an error with how they have linked or recognized with each other. Only 2 of them show their appearance as a red signal on the route map. These are the two which I think are technically "okay" and not malfunctional:
    Screenshot (9612).png
    Screenshot (9621).png

    The other two signals do not show off at the route map. And now the main problem:

    Selecting any of the 4 signals in "Attach linkable object to track" mode (which is the only mode where I even be able to select the assets in any way - they turn from greyed out to white), when I just try to click/select any of it, my Editor crashes and omits the following error:

    Error log:
    Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:F:\DEV\ND23-BuildPublicEditor-EpicRelease\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 674] Array index out of bounds: 0 from an array of size 0

    TrainSimWorldPublicEditor_Core
    TrainSimWorldPublicEditor_Core
    TrainSimWorldPublicEditor_ComponentVisualizers
    TrainSimWorldPublicEditor_ComponentVisualizers
    TrainSimWorldPublicEditor_ComponentVisualizers
    TrainSimWorldPublicEditor_ComponentVisualizers
    TrainSimWorldPublicEditor_ComponentVisualizers
    TrainSimWorldPublicEditor_UnrealEd
    TrainSimWorldPublicEditor_UnrealEd
    TrainSimWorldPublicEditor_Renderer
    TrainSimWorldPublicEditor_Renderer
    TrainSimWorldPublicEditor_Renderer
    TrainSimWorldPublicEditor_Renderer
    TrainSimWorldPublicEditor_UnrealEd
    TrainSimWorldPublicEditor_Engine
    TrainSimWorldPublicEditor_UnrealEd
    TrainSimWorldPublicEditor_UnrealEd
    TrainSimWorldPublicEditor_UnrealEd
    TrainSimWorldPublicEditor_TS2PrototypeEditor
    TrainSimWorldPublicEditor
    TrainSimWorldPublicEditor
    TrainSimWorldPublicEditor
    TrainSimWorldPublicEditor
    TrainSimWorldPublicEditor
    kernel32
    ntdll


    So, for example if I click at any of entries in World Outliner you see here, the Editor crashes. Happened 20 times the last half hour and does so every time I try it again. What is going on and what did I do wrong?

    Screenshot (9616).png

    You can see there even show no division in the track sections:
    Screenshot (9624).png

    The very bad thing is that - without being able to select them - I can't even delete them out of my project anymore and my last back up is a while ago. I didn't thought I would encounter such big issues.

    Reverting the backup would cost a lot of progress of mine.

    I'm beginning to lose my nerves with the malfunctions of the Editor. :(
     
    Last edited: Jan 4, 2024
  2. MRFS

    MRFS Staff Member

    Joined:
    Sep 20, 2020
    Messages:
    165
    Likes Received:
    216
    Have you got a track type and track rule selected? Go to the white arrow at the top left and make sure you have appropriate Ribbon Loft Descriptor and Track Rule selected for your project.

    They need to be present before you can delete anything.

    Always used to throw me - "why can't I get rid of that signal". Ohhhhh, look at your settings.
     

    Attached Files:

  3. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,617
    For all of the rails I placed, I used the "DRA_TrackMain_01" asset and the "DresdenRiesaTrackRule" from DRA:
    Screenshot (9626).png

    I had problems with something like "ghost tracks" aka laid tracks which can't be selected/deleted before, but this problem was way less severe than this because they actually didn't affected the gameplay.

    For anyone interested here is the thread for it:
    https://forums.dovetailgames.com/th...p-and-laying-track-selection-lose-nodes.76100

    Luckily, Dovetail solved the issue related to the autosave function I think altough I still got some ghost tracks due to a save related error again. Not sure if it all has been fixed by now. I didn't laid tracks for more than a month.
     
    Last edited: Jan 5, 2024
  4. MRFS

    MRFS Staff Member

    Joined:
    Sep 20, 2020
    Messages:
    165
    Likes Received:
    216
    Are they present when you try to delete the assets - those boxes need to be filled, then you go back to link mode to delete.
     
  5. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,617
    Yes, they are. I do not lose these values. The boxes for Ribbon Loft Descriptor and Track Rule always are filled with the entries.
     
  6. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,617
    And everytime I click on the signal assets, the Editor crashes and I get the Assertion failed error. There is not even a way to get to the point where I can toggle, edit or delete them:
    Screenshot (9627)_2.png
     
    Last edited: Jan 4, 2024
  7. pilot21

    pilot21 Well-Known Member

    Joined:
    Feb 28, 2023
    Messages:
    106
    Likes Received:
    479
    I assume you used the Niddertalbahn Signals. I had the same problem with my Main weser bahn and I fixed it by unpacking the Niddertalbahn pak file and a different route pak file with the same signals like Linke Rheinstrecke and then copy the Signals folder in the rail network folder from the other route over to the Niddertalbahn folder and overwrite everything and then you need to pack the Niddertalbahn folder with the new signals and move the created pak file to your DLC folder. There seems to be an issue with the Niddertalbahn signals which the same signals from Linke Rheinstrrecke dont have. Now you should be able to select the Signals and delete them. And use different signals for your route in the future.
     
    Last edited: Jan 4, 2024
    • Helpful Helpful x 1
  8. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,617
    Wow, thank you very much for your input and knowledge, pilot21! Luckily I own Linke Rheinstrecke as well and I will try your solution out tomorrow when I have the time to and be back in the project.

    How do you even come to that solution? That's brillant!

    The funny thing is that I used the Formsignale coming as templates in the EuropeanContentPack folder, not actually the ones in the Niddertalbahn DLC, but which indeed need to have been used from the Niddertalbahn DLC (the indication "NID" in their names shows it).

    Screenshot (9631).png

    Hmmm, I wonder what causes the issue especially for the Niddertalbahn version of the signals?

    I had a problem with a similar issue where I couldn't select any tracks before and tracks laid as unselecebtle and undeletable tracks just around, mainly caused by an issue with saving the game. But this problem here is more problematic as it immediately affects the railway path and without solving I guess I wouldn't have any other choice than loading my backup and recreating everything what I did so far (which on the other lucky side - isn't that much for now - I didn't created whole cities yet - , but still would be very annoying and take at least 4 to 5 hours to recreate all of this from scratch).
     
    Last edited: Jan 5, 2024
  9. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,617
    So, now I tried your way. I never had experience with unpacking and packing TSW's .pak files before. So I did a bit of reseach and found Watto's Game Extractor to extract the relative Formsignale from the Linke Rheinstrecke pak file. This worked worked well so far. No problem.

    Screenshot (9633).png

    I also found the respective issuing Formsignal files within the European Content pak file, originating from Niddertalbahn:

    Screenshot (9635).png


    However, my problem is that Game Extractor says that it can't modify the pak archive for EuropeanContent (you can the message atthe second picture at the right bottom).

    Can I ask, how with how or with what tools you do did thes process to copy the Formsignale from Linke Rheinstrecke to Niddertalbahn and then paked the Niddertalbahn content again?
     
    Last edited: Jan 5, 2024
  10. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,617
    I've also found this thread here in the forum from TSW2 days, how to edit .pak files from then:


    This tutorial is a bit different because it relies on the real Unreal Engine and not the PC Editor installation folders, but I found UnrealPak.exe nonetheless in "C:\Program Files\Epic Games\TrainSimWorld4MOD\Engine\Binaries\Win64" and executed it via the powershell.

    I already came that far to extract the files I need from Linke Rheinstrecke.

    The problem is how do I deal with modifying the European Content pak archive and replacing the Formsignale with the ones from Linke Rheinstrecke and thereafter pak everything well together, this is what missing in this tutorial and OP left out for part 2 of his tutorial. But I can't find this part 2 here in the forum. I guess he didn't had the time anymore to explain it.
     
    Last edited: Jan 5, 2024
  11. pilot21

    pilot21 Well-Known Member

    Joined:
    Feb 28, 2023
    Messages:
    106
    Likes Received:
    479
    I managed to unpack the european content pak with the unrealpak file.

    U can use this tutorial for unpacking it: https://tsweditor.github.io/docs/extractGame and later this tutorial for packing it again: https://tsweditor.github.io/docs/cookingPackaging

    In the unpacked folder of LFR go to: TS2Prototype\Plugins\DLC\LeftRhine\Content\RailNetwork\Signals and copy all folders and files inside of it to the unpacked folder of the european content pack: TS2Prototype\Plugins\DLC\EuropeanContentPack\Content\RailNetwork\Signals and overwrite all. After that pack the file again and replace the old EuropeanContentPack with the new pak file inside the game folder.
    Hope this helps
     
    • Helpful Helpful x 1
  12. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,617
    So, I've digged myself into the inofficial TSW2 Editor and unpacking and packing pak files with UnrealPak.exe for the last 4 hours and after some decent trouble I finally can say:
    It worked!

    Screenshot (9649).png

    Everything worked! Although I ended up with a bit of different outcome. So, I noticed when using the new packed EuropeanContentPack pak archive with the signals of LFR as a replacement for the old (real) one, that the Editor didn't want to validate the european content pack (you can see it at the error message at the bottom right corner):

    Screenshot (9653).png

    However, I tried the packing several times and I got the paked version with the new LFR to display in the Editor bu lastly I decided to do a quite different way because I wanted to keep the old and original EuropeanContent pak as it was so that I do not get any incompatibility errors when working with it later on.

    What I did was, replacing the European pak just for a single moment, then I was able to delete the old reference to the Niddertalbahn signals, saved my project, backed it up and thereafter reinstated the old original EuropeanContent pak folder.

    But your solution made it!!! I'm so thankful. :)

    But that's not enough! I was so happy that I just replaced all of the Formsignale with the ones in Linke Rheinstrecke and even made it to be able to drive for the very first time on my route! Wohoo!

    One qeustion: Do you have a clue why the Formsignale do not show the correct state at stop?

     
    Last edited: Jan 5, 2024
  13. pilot21

    pilot21 Well-Known Member

    Joined:
    Feb 28, 2023
    Messages:
    106
    Likes Received:
    479
    I'm glad everything worked well for you!
    I sadly haven't figured out yet how to configure the Formsignale yet. When I try to use them, they are inverted.
     
    • Like Like x 1

Share This Page