Hi all, Anychance I can get some help as I have created a timetable but it seems I'm randomly getting stack overflow error crash of the editor. DTG Alex DTG Matt anychance one of you are able to reach out internally if this error is something you get as when the error happens I'm having to remake the timetable all again from scratch. Very frustrating and puts at least me off making interesting scenarios.
Stack overflow like this is USUALLY because substitution is set up recursively. I.e. if you have a formation with one vehicle that is set to substitute, and both IT and the vehicle are valid substitutable things, then in theory, it can replace the vehicle inside it, with a copy of itself... and... disappear into a hole. You need to go through the formations and carefully review substitution settings - in particular, any formations with single entries in them - these are often used to allow light locos to support substitution, but the single-entry formation itself must not be marked as a substitutable item (i.e. *it* can't be placed as a substitute). Does that make sense? it's a big confusing until you figure it out Matt.
That is amazing matt I never knew substitution could cause this. When home ill comb through and all being well it solves the issue. Thank you for the help on this
DTG Matt so it seemed to work initially but it seems after two PIE sessions the Stack overflow is coming back to haunt me. I've gone through ensure all my formation assets are using the RVDs rather then an formation asset within a formation asset. And within my formation assets I've ensure allow substitution is not ticked on any of them. something still seems off though and I've checked and cross checked its none of the stuff I'ved added as the issue is still there if I remove my stuff.
"is substitutable unit" i think is the one you need to untick. That's what makes the formation eligible to be used in substitution. Matt.
Hmm, I am pretty sure I did that for them all. What I'm doing however is gradually adding to my new timetable so many at a time to see at what point things go wrong and hopefully it'll narrow down the cause cause I'm certain its something somewhere I'm just missing visually when I look through it all haha
DTG Matt So it seems the stack overflow issue is still happening for me, I thought I solved it but appears not. I've triple checked as well none of my formation assets have the substitution enabled and I'm using the RVD directly rather then Formation data assets from other routes etc. Issue here is when the stack overflow happens I'm unable to PIE at all, it just crashes when going into PIE. Any chance at all this could be looked at internally to see where the cause for stack overflow may be coming from and resolved cause it does push me away from continuing to develop my scenario etc. Please
I have shared my scenario zipped on the Train Sim Discord and tagged Alex as it wouldn't let me put on here. I've also shared a link with them which is google drive to a common library I have which has assets I've made which I use for number of my scenarios. That will be needed also.
so update on this issue, for some reason setting a different scenario as Play in editor and running it and then setting the trouble scenario back as play in editor seems to solve the issue mentioned above. I don't know how or why it solves it but it seems to up to an extent, it would be great though along with cooking fix this one explained above can be solved as well. We could really do with as well the editor stuff being uncooked and the source for the editor not the source code but the stuff uncooked so if errors do happen we can see what they are.