I posted in the British Trainz forum about a month ago with this issue and no-one got back to me so asking here as well.
I've been having some issues with the Class 91 mk4 carriages by Peter Hicks in TS12 61388.
I've traced the bug to the coach naming script in the FO coach (kuid2:116035:10001:1).
It only occurs when there are more than 3 of them present in one session.
The following lines of code are causing the issue:
I'm clueless as to how to fix it and don't want to break it.
Any help on the matter would be greatly appreciated.
Cheers,
Johan
PS: Mod's move this if it's in the wrong section.
I've been having some issues with the Class 91 mk4 carriages by Peter Hicks in TS12 61388.
I've traced the bug to the coach naming script in the FO coach (kuid2:116035:10001:1).
It only occurs when there are more than 3 of them present in one session.
The following lines of code are causing the issue:
Code:
if (vs[i-1].GetAsset().GetKUID().GetName() == GetAsset().GetKUID().GetName()) {
if (i > 1 and vs[i-2].GetAsset().GetKUID().GetName() == GetAsset().GetKUID().GetName())
I'm clueless as to how to fix it and don't want to break it.
Any help on the matter would be greatly appreciated.
Cheers,
Johan

PS: Mod's move this if it's in the wrong section.