Bug with Class 91 Coach renaming Script

General Trainz discussion and questions.
Post Reply
althrofirebird
New Starter
Posts: 2
Joined: Tue Jun 02, 2015 1:25 pm
Trainz Version: 12
Trainz Build: 61388
Author KUID: 460492
Location: Scotland

Bug with Class 91 Coach renaming Script

Post by althrofirebird »

Hey folks,

Been having some issues with the Class 91 mk4 carriages in 61388. It's something to do with the coach renaming script.

Only the FO coach (kuid2:116035:10001:1) script gives the bug and only if there are more 3 of them.

Having looked at the script I've traced it to the following line:

Code: Select all

if (i>1 and vs[i-2].getasset().GetKuid().GetName() == GetAsset().GetKuid().GetName()) 
Given I've done some coding in the past, but not for trainz, I can sort of work out what it is doing. I don't really want to touch it without knowing what I'm doing however, as I may break something in the process :?

I would be grateful if someone who knows how to fix could inform me of how to fix it. Having checked other threads and forums, I've been unable to find out what to do.

I can post the whole code if necessary.

Cheers,

Johan :)

PS: Mod's move this if it's in the wrong place.
Post Reply