Christopher824
CDETrainz.com
I am posting this in the beta section, as it is a going forward thing. The summations in this post are my personal observations. This post deals with scripts only.
So what I found is that as Trainz builds increase, and sections of the game engine are being updated, and being fixed correctly. The problem is with assets that have been created in earlier versions were built with an invalid variable array call, which used the number one as a base, when in proper programming, it should have been zero, break.
Each asset with scripts that makes calls to the soup, if the base is offset by one, really wierd things can happen. As Trainz develops, and sections of the engine are updated, and breaks some assets depending on which section of the engine are updated.
So this will require that this is true and verified, then once it's truely identified, asset creators, or repair groups, can easily find and update the assets with scipts that break. There is no sigular build number where you can say this is the cutoff, different assets use calls that may have been updated at different times.
Here are the real life encounters that I have worked through, and identified with the issue, and were discovered during different updates;
ATLS Controller/Slave Track Object
Settings duplicates the first found track object, breaks old routes TRS22 Plus
Decouple DLX
Found the base in script was 1, changed to 0 and problem was fixed for TRS19
Copy and Paste
If a section being copied contains scenery splines with connectors, like a YARN Sidewalk, when pasted, will duplicate some splines under visible splines TRS19
And I am sure there are a lot more..
If I am correct, this could be the cause for many complaints, but as I said, it is the correct way moving forward. So if someone in Trainz programming department can confirm that this is something that they have changed/repaired, it would go along way to further the rapid development of a better Trainz world for developers and users, or at least me.
1. Acknowledgement of issue
2. Want a better Trainz platform
3. Uniformity means Reliability
If I am totally wrong here, or that I should not have posted this here, please feel free to bash me, but I believe this is the cause of a large percentage of scrippted assets that recently have broke.
So what I found is that as Trainz builds increase, and sections of the game engine are being updated, and being fixed correctly. The problem is with assets that have been created in earlier versions were built with an invalid variable array call, which used the number one as a base, when in proper programming, it should have been zero, break.
Each asset with scripts that makes calls to the soup, if the base is offset by one, really wierd things can happen. As Trainz develops, and sections of the engine are updated, and breaks some assets depending on which section of the engine are updated.
So this will require that this is true and verified, then once it's truely identified, asset creators, or repair groups, can easily find and update the assets with scipts that break. There is no sigular build number where you can say this is the cutoff, different assets use calls that may have been updated at different times.
Here are the real life encounters that I have worked through, and identified with the issue, and were discovered during different updates;
ATLS Controller/Slave Track Object
Settings duplicates the first found track object, breaks old routes TRS22 Plus
Decouple DLX
Found the base in script was 1, changed to 0 and problem was fixed for TRS19
Copy and Paste
If a section being copied contains scenery splines with connectors, like a YARN Sidewalk, when pasted, will duplicate some splines under visible splines TRS19
And I am sure there are a lot more..
If I am correct, this could be the cause for many complaints, but as I said, it is the correct way moving forward. So if someone in Trainz programming department can confirm that this is something that they have changed/repaired, it would go along way to further the rapid development of a better Trainz world for developers and users, or at least me.
1. Acknowledgement of issue
2. Want a better Trainz platform
3. Uniformity means Reliability
If I am totally wrong here, or that I should not have posted this here, please feel free to bash me, but I believe this is the cause of a large percentage of scrippted assets that recently have broke.
Last edited: