Swapping Locos with RW_Tools

Discuss almost anything about RailWorks.

Swapping Locos with RW_Tools

Unread postby mikesimpson » Wed Jan 12, 2011 5:10 pm

Just a warning about another possible cause of SBHH -

Due to a change in the format of ScenarioProperties.xml files built since the introduction of RailWorks 2 - If you use RW_Tools to substitute rolling stock into one of the new format ScenarioProperties.xml files this might cause a 'Something bad has happened' message.

The ScenarioProperties.xml files now includes a <RBlueprintSetPreLoad> section which lists the Provider/Product entries for LOCOMOTIVES used in the Scenario. This did not appear in earlier format files. Thus if you substitute a loco built by person ABCD for one built by one by WXYZ then the file will not include ABCD as a Provider and might cause an error.

On top of this there is a new <LocoName> entry in this file which includes a lot of parameters. I do not believe I can recreate this for the substituted loco, and will have to add code to RW_Tools to advise users attempting to change a new style Scenario that it is one of the new files and might cause problems if.

Of course Career Mode Scenarios can't be altered in any case.

Since this problem was reported to me, I have now carried out a lot of 'substitution' tests using RW2 style scenarios and they all worked OK, so it might be that the person reporting problems had this for another reason, so I have edited this file to tone down the warning somewhat.

Mike
Last edited by mikesimpson on Wed Jan 12, 2011 7:28 pm, edited 1 time in total.
mikesimpson
 
Posts: 364
Joined: Sun Feb 15, 2009 4:49 pm

Re: Swapping Locos with RW_Tools

Unread postby Samwolf » Wed Jan 12, 2011 5:56 pm

Based on your post, this problem only applys to locos and not other rollling stock?
If God had intended for man to fly, He wouldn't have given us the railroads.
User avatar
Samwolf
 
Posts: 762
Joined: Mon Aug 30, 2010 6:57 pm
Location: South Carolina, CSA

Re: Swapping Locos with RW_Tools

Unread postby mikesimpson » Wed Jan 12, 2011 7:30 pm

Samwolf wrote:Based on your post, this problem only applys to locos and not other rollling stock?


Hi Samwolf,

I have changed my message above as I am no longer convinced that this is all that big a problem. I can see how it might happen, but am not 100% convinced the SBHH error was caused by loco swapping.

Mike
mikesimpson
 
Posts: 364
Joined: Sun Feb 15, 2009 4:49 pm

Re: Swapping Locos with RW_Tools

Unread postby GreatNortherner » Wed Jan 12, 2011 8:10 pm

Hi Mike,

Thanks for the heads-up!

I've been using the "Swap" function extensively, before RW2 and after RW2, for engines and wagons. Both on scenarios written before RW2 and on ones written in RW2. So far, I have not had a single "something bad has happened". At least none that wasn't caused by something else. However, I cannot be certain if I did something like in the example you outlined (swapped engine to one from a developer previously not used in this scenario), or if I just luckily always avoided it by chance.

Cheers,
Michael
User avatar
GreatNortherner
 
Posts: 1585
Joined: Sun Feb 15, 2009 11:19 am
Location: Czech Republic

Re: Swapping Locos with RW_Tools

Unread postby Samwolf » Wed Jan 12, 2011 9:04 pm

Thanks Mike, I usually don't swap out engines but do swap out a lot of rolling stock.
If God had intended for man to fly, He wouldn't have given us the railroads.
User avatar
Samwolf
 
Posts: 762
Joined: Mon Aug 30, 2010 6:57 pm
Location: South Carolina, CSA


Return to General Discussion

Who is online

Users browsing this forum: timcook and 3 guests