Swapping the Route Environment

General discussion about Train Simulator, your thoughts, questions, news and views!

Moderator: Moderators

Locked
User avatar
DescendingSadly
Very Active Forum Member
Posts: 1327
Joined: Mon Feb 13, 2006 11:33 am
Location: Cardiff

Swapping the Route Environment

Post by DescendingSadly »

Hello once again everybody

I am wanting to swap a routes Environment and weather (so sky textures etc) for the AP Wherry Lines stuff. I presume this will change the whole routes lighting.

I thought I could do it in the Check Route option of RWTools but I have realised it is just telling me what the route references and will not let me edit.

How do I access the code for the weather?

Thanks
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Swapping the Route Environment

Post by gptech »

RouteProperties.xml defines the skies and weather blueprints. You may also have to edit the route template.
User avatar
mikesimpson
Very Active Forum Member
Posts: 6361
Joined: Mon Dec 03, 2001 12:00 am
Location: Southern Hemisphere Penal Colonies
Contact:

Re: Swapping the Route Environment

Post by mikesimpson »

RW_Tools does allow you to change the weather for each scenario in the 'Edit Scenario' area. But as Gary says you will need to manually edit the RouteProperties.xml along with the Sky and Weather blueprints in the Template file for the route in question (the template is a .bin file and its location is shown in the RouteProperties.xml file.

Mike
Mike in OZ - Author of TS-Tools & Route-Riter.
http://www.agenetools.com
I'm not arguing (just explaining why I'm right).
User avatar
pjt1974
Very Active Forum Member
Posts: 3800
Joined: Tue Feb 09, 2010 8:30 pm
Location: Ballaugh Isle of Man
Contact:

Re: Swapping the Route Environment

Post by pjt1974 »

In the RouteProperties.xml you are looking for this part

Code: Select all

<iBlueprintLibrary-cBlueprintSetID>
							<Provider d:type="cDeltaString">AP</Provider>
							<Product d:type="cDeltaString">WherryLines</Product>
						</iBlueprintLibrary-cBlueprintSetID>
					</BlueprintSetID>
					<BlueprintID d:type="cDeltaString">TimeOfDay\Spring.xml</BlueprintID>
				</iBlueprintLibrary-cAbsoluteBlueprintID>
			</SpringSkyBlueprint>
			<SummerSkyBlueprint>
				<iBlueprintLibrary-cAbsoluteBlueprintID>
					<BlueprintSetID>
						<iBlueprintLibrary-cBlueprintSetID>
							<Provider d:type="cDeltaString">AP</Provider>
							<Product d:type="cDeltaString">WherryLines</Product>
						</iBlueprintLibrary-cBlueprintSetID>
					</BlueprintSetID>
					<BlueprintID d:type="cDeltaString">TimeOfDay\Summer.xml</BlueprintID>
				</iBlueprintLibrary-cAbsoluteBlueprintID>
			</SummerSkyBlueprint>
			<AutumnSkyBlueprint>
				<iBlueprintLibrary-cAbsoluteBlueprintID>
					<BlueprintSetID>
						<iBlueprintLibrary-cBlueprintSetID>
							<Provider d:type="cDeltaString">AP</Provider>
							<Product d:type="cDeltaString">WherryLines</Product>
						</iBlueprintLibrary-cBlueprintSetID>
					</BlueprintSetID>
					<BlueprintID d:type="cDeltaString">TimeOfDay\Autumn.xml</BlueprintID>
				</iBlueprintLibrary-cAbsoluteBlueprintID>
			</AutumnSkyBlueprint>
			<WinterSkyBlueprint>
				<iBlueprintLibrary-cAbsoluteBlueprintID>
					<BlueprintSetID>
						<iBlueprintLibrary-cBlueprintSetID>
							<Provider d:type="cDeltaString">AP</Provider>
							<Product d:type="cDeltaString">WherryLines</Product>
						</iBlueprintLibrary-cBlueprintSetID>
					</BlueprintSetID>
					<BlueprintID d:type="cDeltaString">TimeOfDay\Winter.xml</BlueprintID>
				</iBlueprintLibrary-cAbsoluteBlueprintID>
			</WinterSkyBlueprint>
		</cRouteBlueprint-sSkies>
	</Skies>
	<WeatherBlueprint>
		<iBlueprintLibrary-cAbsoluteBlueprintID>
			<BlueprintSetID>
				<iBlueprintLibrary-cBlueprintSetID>
					<Provider d:type="cDeltaString">RSC</Provider>
					<Product d:type="cDeltaString">GEML</Product>
				</iBlueprintLibrary-cBlueprintSetID>
			</BlueprintSetID>
			<BlueprintID d:type="cDeltaString">Weather\Cloudy.xml</BlueprintID>
Change each Product and Provider and the filepath/name to the one you want to use. Remember, before you make the change, open the Wherry Lines in the route editor and make sure you tick the Products/Provider and save the route.
For disclosure, I am affiliated with a third party developer however, I do not know anything about any future releases unless I'm working on them and even then, I'd be breaking years worth of built up trust to say anything about it ;-)
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Swapping the Route Environment

Post by gptech »

But he doesn't want to change the Wherry Lines, he wants to use it's files in another route.
User avatar
pjt1974
Very Active Forum Member
Posts: 3800
Joined: Tue Feb 09, 2010 8:30 pm
Location: Ballaugh Isle of Man
Contact:

Re: Swapping the Route Environment

Post by pjt1974 »

I've used text from the RouteProperties.xml from the Wherry Line as an example.

Sure, I said "open the Wherry Lines up in the editor", but I meant to say "open the route he was working on". It was 2 am. I'm sure you don't make typo's.

The original poster never mentioned what route he wants to edit so I can hardly use that as an example.

Even you must agree, the script I've quoted is the script you need to edit in the RouteProperties.xml to change the environment on a route.
For disclosure, I am affiliated with a third party developer however, I do not know anything about any future releases unless I'm working on them and even then, I'd be breaking years worth of built up trust to say anything about it ;-)
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Swapping the Route Environment

Post by gptech »

pjt1974 wrote:It was 2 am. I'm sure you don't make typo's.
It was 2:30am when I read it...and I've been reported to the Monopolies Commission for the amount of typos (no apostrophe in a plural :wink: and really wouldn't it be a grammatical error rather than a typing one?) I've made. Typos are acceptable, though in this case personally I couldn't give a damn as I deciphered that what you wrote wasn't what you meant, but some other poor soul might not, and end up messing up a working route--absolutely nothing needs doing in the Wherry Lines route; no Provider/product boxes to tick.
If I've stood on your toes I profoundly apologise, but I will mutter to myself "why don't you watch where you're sticking your feet?"
User avatar
DescendingSadly
Very Active Forum Member
Posts: 1327
Joined: Mon Feb 13, 2006 11:33 am
Location: Cardiff

Re: Swapping the Route Environment

Post by DescendingSadly »

Thank you for the example pjt, and also gptech.

I opened up the Wherry Lines example just to see what I was looking at (i'm actually wanting to change CR's East Coast Route) and for some reason when I open the .xml file now it's a load of garbage and the route has disappeared in the Check Route option in RWTools.

I'm not sure what i've done but I might leave it alone!
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Swapping the Route Environment

Post by gptech »

Which route has gone AWOL?

Whichever, it looks like you've inadvertently removed something-----deleting a single < would do it!
Did you view the file with RW Tools or just double click it to open in your web browser?
User avatar
DescendingSadly
Very Active Forum Member
Posts: 1327
Joined: Mon Feb 13, 2006 11:33 am
Location: Cardiff

Re: Swapping the Route Environment

Post by DescendingSadly »

Hiya mate,
It was Wherry Lines opened using RWTools. It's no biggie as I can just reinstall it using the .exe. The only issue is if I delete then re-install i've now successfully got CR's route using the weather from it, and I don't want that route corrupting too.
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Swapping the Route Environment

Post by gptech »

See if it works by copying the files into CR's asset folders, even into a folder named "revisions" so you don't lose the originals and then point RouteProperties.xml at that location. That'd protect your changes from any unwanted changes ....if you see what I mean.
Locked

Return to “[TS] General Discussion”