Delete multiple Consists at a time from a Scenario.

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

Moderator: Moderators

User avatar
peterfhayes
Very Active Forum Member
Posts: 2155
Joined: Mon Sep 26, 2011 5:07 am

Delete multiple Consists at a time from a Scenario.

Post by peterfhayes »

Delete multiple Consists at a time from a Scenario.

I have dl a WS scenario that will not load when I choose it as a scenario in the Weardale/Teasdale Route. Yes, I get the dreaded OOM when trying to run this scenario.

I want to try to remove some of the 200+ consists say bout 5 – 10 at a time to see if I can isolate the consist(s) causing the issue. This is for my own edification.

The scenario is 4.5MB in size and takes an age to open in TS-Tools and once in there you can only delete 1 consist at a time – it would take a long, long time to achieve what I want to do!

So, is there any way – method that you can use to remove multiple consists at a time?

Note: I cannot use the TS Editor as you get an OOM as it tries to load the scenario.

This WS scenario has run OK without issues by several WS subscribers – so it may be idiosyncratic to my machine.

This is not a scenario database loading, verifying error, etc.
PeterH
SkylineBoy
Well Established Forum Member
Posts: 825
Joined: Mon Jun 29, 2015 1:26 pm
Location: Crimdon

Re: Delete multiple Consists at a time from a Scenario.

Post by SkylineBoy »

Have you tried reducing the usage on loading the scenario editor by temporarily renaming something such as the route lofts folder so they dont appear? This might reduce the load to allow the editor to load up.
User avatar
peterfhayes
Very Active Forum Member
Posts: 2155
Joined: Mon Sep 26, 2011 5:07 am

Re: Delete multiple Consists at a time from a Scenario.

Post by peterfhayes »

SLB
No, I haven't - how do you do that?

BTW - This scenario runs fine on my second auxiliary PC.

pH
brysonman46
Very Active Forum Member
Posts: 2047
Joined: Sun Jul 21, 2013 10:30 am
Location: Larbert Central Scotland

Re: Delete multiple Consists at a time from a Scenario.

Post by brysonman46 »

Peter

In the route folder, rename the following folders/subfolders by adding something to the names;
Scenery; Networks/LoftTiles; Networks/RoadTiles. When you open up the scenario in the Build/Scenario editor, you will have the bare minimum of tracks and signals on the painted landscape. Should make it easier to spot the consists that you wish to remove. You could even try driving the scenario with the route in this state, to see if it works

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

Re: Delete multiple Consists at a time from a Scenario.

Post by gptech »

Can you post a link to the scenario Peter....would be handy so we can properly test it rather than spend time guessing.
User avatar
peterfhayes
Very Active Forum Member
Posts: 2155
Joined: Mon Sep 26, 2011 5:07 am

Re: Delete multiple Consists at a time from a Scenario.

Post by peterfhayes »

Gary
It is a couple by Not Silent on the workshop just type in N.S500 and/or N.S50 in the search box - both are the same scenario with the 500 "updating" some aspects. As I say it works fine on my other PC so it's a mystery!

Nick
Many thanks for the tip - much appreciated!

pKa
User avatar
peterfhayes
Very Active Forum Member
Posts: 2155
Joined: Mon Sep 26, 2011 5:07 am

Re: Delete multiple Consists at a time from a Scenario.

Post by peterfhayes »

Nick
Just to clarify, the Networks/LoftTiles; Networks/RoadTiles folders are in the MainContent.ap folder for the Weardale/Teasdale Route. If I extract these two folders (only) and rename them, then the next time TS opens (via Build for this route) it will still use those two files/folders in the .ap folder.

So, do I extract the MainContent.ap folder and then rename the Network loft and road tiles, and then rename the MainContent.ap folder to something else? This way the .ap folder is not used or is there another simpler method?
\STEAM\steamapps\common\RailWorks\Content\Routes\00000112-0000-0000-0000-000000000000\MainContent.ap\Networks\

Thanks
pH
brysonman46
Very Active Forum Member
Posts: 2047
Joined: Sun Jul 21, 2013 10:30 am
Location: Larbert Central Scotland

Re: Delete multiple Consists at a time from a Scenario.

Post by brysonman46 »

Peter

Hadn't thought of that. Yes, you could do it the way you suggest. All you would need to extract would be the Mixmap, Terrain, Scenarios (or just the one you are interested in), Networks\TrackTiles and Networks\Tracks.bin. Then rename the .ap archive.
By the way, you DO NOT extract into a folder MainContent.ap\, but straight into the Route folder. That can happen if you use the Windows extract feature, which sets up a folder with the name of the file to be extracted, as default!

Gary is probably sitting there going "tut, tut"!

regards

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

Re: Delete multiple Consists at a time from a Scenario.

Post by gptech »

I have a collection of "bare" routes, produced along the lines you're proposing peter--.ap extracted, folders deleted to leave just the trackwork and the .ap renamed. No scenarios, I merely copy in the single one I'd be working one. I just cut the full version out of the game, paste the bare one in, do the editing, and swap them back over again. The reworked scenario then gets pasted into the full version of the route.
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Delete multiple Consists at a time from a Scenario.

Post by gptech »

I've grabbed a copy of the N.S500 scenario and it loads and runs. I don't have the Thomson B1 so used the F2 trick just to get it going.
When subsequently swapping the B1 for something I do have (7F) I found the Scenario.bin has this reference:

Code: Select all

					<BlueprintID>
						<iBlueprintLibrary-cAbsoluteBlueprintID>
							<BlueprintSetID>
								<iBlueprintLibrary-cBlueprintSetID>
									<Provider d:type="cDeltaString">RSC</Provider>
									<Product d:type="cDeltaString">ThompsonB1Pack01</Product>
								</iBlueprintLibrary-cBlueprintSetID>
							</BlueprintSetID>
							<BlueprintID d:type="cDeltaString">Source.xml</BlueprintID>
						</iBlueprintLibrary-cAbsoluteBlueprintID>
					</BlueprintID>
which would seem to be incorrect--there'd usually be a longer path to the .bin file, as shown in the tender references:

Code: Select all

					<BlueprintID>
						<iBlueprintLibrary-cAbsoluteBlueprintID>
							<BlueprintSetID>
								<iBlueprintLibrary-cBlueprintSetID>
									<Provider d:type="cDeltaString">RSC</Provider>
									<Product d:type="cDeltaString">ThompsonB1Pack01</Product>
								</iBlueprintLibrary-cBlueprintSetID>
							</BlueprintSetID>
							<BlueprintID d:type="cDeltaString">RailVehicles\Steam\Thompson_B1\Default\Tender\B1_Tender.xml</BlueprintID>
						</iBlueprintLibrary-cAbsoluteBlueprintID>
					</BlueprintID>

Once all those were sorted by swapping for the 7F it worked perfectly.
That doesn't explain why it works on one of your PCs but not the other though Peter.
markpullinger
Very Active Forum Member
Posts: 3105
Joined: Sun Jun 08, 2003 6:24 pm

Re: Delete multiple Consists at a time from a Scenario.

Post by markpullinger »

Hi Gary, it is an oddity but this time it is correct. None standard folder arrangement :)
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Delete multiple Consists at a time from a Scenario.

Post by gptech »

Mark, is that Source.bin file, or a similar file with a different name, duplicated in a folder following the usual type of pathing?
User avatar
peterfhayes
Very Active Forum Member
Posts: 2155
Joined: Mon Sep 26, 2011 5:07 am

Re: Delete multiple Consists at a time from a Scenario.

Post by peterfhayes »

Hi Guys
Many thanks for the help on this one - I will try the "fixes" and see how that goes.
pKa
markpullinger
Very Active Forum Member
Posts: 3105
Joined: Sun Jun 08, 2003 6:24 pm

Re: Delete multiple Consists at a time from a Scenario.

Post by markpullinger »

Hi Gary, I don't think so - it's been like that since day one. I think that is the default loco.
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Delete multiple Consists at a time from a Scenario.

Post by gptech »

markpullinger wrote: Mon Oct 26, 2020 5:09 pm I think that is the default loco.
Yeah, but there's been at least one other case where an additional .bin file pointing to he *proper* .GeoPcDx etc but in an odd location *slipped* through the net. Just check, if you would, your RailVehicles folder to see if there's a folder for the B1 with the .Geo and a .bin etc contained within it.
Post Reply

Return to “[TS] General Discussion”