Is possible to set the desired number to ARN locos?

Hi,

I downloaded some AWVR locos from Blawnox. They are great and I would like to make my own session based on "Unstoppable" movie. I can set the number used in movie in editor, but in Drive Mode loco has another (random number). Is any way (command) to set the number to locomotive in session (Drive Mode)?
 
Not unless you clone the loco, name it so you know which 1 it is.
Then open for edit using explorer and alter the arn numbering to just the number you want. So instead of #747 to #757 you'll have #749 to #749. Might work unless cm throws a fit because there's only 1 number.
 
Unfortunately fran1 was correct in saying that changing the high and low number entries in the config files to the same number might cause problems. It will generate an array out of bounds error in arn_lib.gse in the game and the loco will not have a number. You can manually set the number to the one you want in Surveyor using the Edit Properties (?) button and just ignore the script error. The locomotive will keep the number you set for that session but you will have to set the number in each session where you use the loco.

An alternative is to edit the arn_sfx_loco.gs file. The following block of code is near the top of the file:

for (n = 0; n < (high - low); n++) {
CarNums[n + 2] = (string)(low + n);
}

Replace it with the following, changing the 9999 to the number you want for the locomotive:

CarNums[2] = (string)9999;

This is a crude solution, but it eliminates the script error and the need to manually set the running number. I have done this for several locomotives in TS2010 and TS12 and haven’t experienced any problems. Hopefully someone else will post the “proper” was to go about this.
 
Two quicker easier ways to get a specific number:

In the config 'extensions' container find the 'number_low' and 'number_high' entries and edit the number_low to the number you want and the number_high to (number-you-want + 1), that is if you want 5467 set the values to 5467 and 5468. You will always get 5467.

Second way works with JR locos, but no guarantee on others: simply right-click the loco in Surveyor and give it the number required. JR locos will always retain that number in that session including return trips through portals, re-saving edited sessions, restarts etc...

Andy
 
Last edited:
I used Andy's way and it works. Fortunately I read his message first, because I thought I that's enough to set the same number. In this case I wanted 7375, so I set values to 7375 and 7376. Thank you very much!
 
Back
Top