Page 4 of 5

Re: Error in the TBD of Dynamic tracks

Posted: 20 Feb 2023, 20:44
by eolesen
There are a bunch of replacement text editors out there.

ConText is one. I've used Notepad++ and Notepad2 (my current preference). They are all capable of UTF8 encoding, which is important when it comes to MSTS and ORTS.

Re: Error in the TBD of Dynamic tracks

Posted: 22 Feb 2023, 16:03
by ADITYA3191
Hello eolesen,
Thank you so much for everything. We have started to rebuild the route.

Re: Error in the TBD of Dynamic tracks

Posted: 29 Jun 2023, 02:47
by ADITYA3191
Hello everyone, After a long discussion on dynamic tracks, we started building the route again. However, after a certain point, we faced the same issue. So, if we create a new route, is there any way to bring the existing track structure to that new route? Otherwise, sadly, we will be losing all the work we have done so far.

Re: Error in the TBD of Dynamic tracks

Posted: 29 Jun 2023, 05:47
by Garry
Hi
It is a long time since I added extra World files to a route but as I recall I was trying to merge 2 routes.
I tried the "Merge Route" function in RouteRiter without success. You can find this in TSUtils.

My second, but this time successful effort, was to add the tiles one at a time and process them in MSTS Route Editor.
To try out the process I advise you to start a test route placing consisting of a single tile somewhere in the middle of your route.
Then import the terrain form the Tiles folder.
When all looks good import the file from the World folder. I remember I had problems with the dynamic track and had to edit the world file by hand. I did a search for "dyn" and then deleted every entry for dynamic track. I opened the world file in Wordpad to do this.
I cannot remember how I dealt with all the interactives.
Then when I opened the route in Route Editor everything was in place, but the track and roads were not in the database so I had to proceed along the track selecting each piece in turn. I cannot remember why I did not rebuild the tdb in RouteRiter.

A slow process but I thought it quicker than starting the route again

Garry

Re: Error in the TBD of Dynamic tracks

Posted: 14 Dec 2023, 22:12
by Goku
I looked into TSRE code and there is indeed a limit of 65563 sections that can be used iside a trackpath vector. Maybe I changed it from int to short when making an android version.
Source code change is required to fix this issue.

From short to int, Here:
https://github.com/GokuMK/TSRE5/blob/70 ... hape.h#L25
Should be enough. Good luck.

Re: Error in the TBD of Dynamic tracks

Posted: 27 Dec 2023, 15:49
by MichaelD
Hello, Goku. And Merry Christmas.
Thanks for your wonderful program.

I am interested in compiling the Dyntrack fix by myself, but I need the source code of 0.7.012. Is it in one of the branches on Github?

Upd. I've found it. Game.cpp cleared up my confusion. I'm new to the Github.

Re: Error in the TBD of Dynamic tracks

Posted: 16 Jan 2024, 08:40
by eolesen
Thanks to some help within the Trainsim.com community, we've been able to get TSRE running in a compiler.

Making this suggested change will now be possible shortly.

Re: Error in the TBD of Dynamic tracks

Posted: 19 Jan 2024, 02:31
by eolesen
Now available at GitHub:

Re: Error in the TBD of Dynamic tracks

Posted: 09 Feb 2024, 03:21
by MichaelD
eolesen wrote: 19 Jan 2024, 02:31 Now available at GitHub:
I've tested your build - it is still converting 65536 and further to 0 and further in tsection.dat. I've tested many of past builds, and they have the same issue.

Re: Error in the TBD of Dynamic tracks

Posted: 11 Feb 2024, 17:13
by eolesen
The fix Goku suggested is folded into his master. I may have reverted the copy in my fork, so try Goku's.