Corrupt Routes.xml folder.

General discussion about Rail Simulator that doesn't really fit in to any specific category. A good place to start if you're not sure what category it should fit in to as well.

Moderator: Moderators

User avatar
kieranhardy
Very Active Forum Member
Posts: 3899
Joined: Sun Jan 02, 2005 10:26 am
Location: Clacton On Sea - Essex
Contact:

Corrupt Routes.xml folder.

Post by kieranhardy »

Hi,

I seem to be running into problems all the time now!

I was in the process of downloading and installing things for Llangollen. Not sure what i did wrong, but the installer worked fine until i got to installing the route. The package manager now says it's corrupt and wont install/uninstall anything. The last things i did was overwrite two files in a GWR signal folder, and add a new Class 47 reskin.

I am getting this error in the folder:
The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

End tag 'ShadowType' does not match the start tag 'Record'. Error processing resource 'file:///C:/Program Files/Rail Simula...

wType d:type="cDeltaString">eShadowType_Blobby</ShadowType>
I tried manually removing the two downloads that i had to copy and paste, and seeing if the error still occured and it does, so i assume it isn't these downloads causing it. I have a feeling the last file i installed using the package manager was UKTS_20478_clutter1.rpk. But i have no idea why this would cause a problem.

Package manager mk2 is saying that i must reinstall Rail Simulator, i do hope this isnt the case :(

Cheers,
User avatar
karma99
Very Active Forum Member
Posts: 2329
Joined: Wed Oct 17, 2007 8:21 pm
Location: Portsmouth, UK

Re: Corrupt Routes.xml folder.

Post by karma99 »

You've somehow lost some xml tags.

XML 101 :)

All sections of an xml document have a start and end tag, eg
<myTag>content goes in here</myTag>

The forward slash indicates the end of that specific tag. You can nest tags as well, eg
<myTag>
<myOtherTag>this stuff is in myOtherTag</myOtherTag>
</myTag>

New lines and spaces don't mean anything outside of the tags so they may not always be nicely formatted as above - depending on what you use to view the file.

So, your error is "End tag 'ShadowType' does not match the start tag 'Record'", meaning you have a <Record> tag but no closing </Record> tag (or not where it's expected to be anyway), and you have a </ShadowType> end tag but not a <ShadowType> start tag.

First thing to do is find the </ShadowType> end tag that you do have, and look up from there. Chances are you're missing at least 1 line (and hopefully only 1) which is a <ShadowType> start tag. See if you can see where it should go. Maybe paste a chunk of the XML (from </ShadowType> upwards) and we can take a look.
Image
Links: Shop <> Blog <> Facebook
User avatar
kieranhardy
Very Active Forum Member
Posts: 3899
Joined: Sun Jan 02, 2005 10:26 am
Location: Clacton On Sea - Essex
Contact:

Re: Corrupt Routes.xml folder.

Post by kieranhardy »

Cheers for the reply,

I've just tried to find any terms with shadow in, and the only one it finds is the bit at the end with the error.
User avatar
karma99
Very Active Forum Member
Posts: 2329
Joined: Wed Oct 17, 2007 8:21 pm
Location: Portsmouth, UK

Re: Corrupt Routes.xml folder.

Post by karma99 »

You need to open the xml in notepad.
If you're opening it in anything that expects to read properly formatted xml it's going to fall over due to the missing tag.
Hurl it into notepad, do a Find on </ShadowType> and then paste that line and the previous 10-15 lines or so and I'll take a look :)
Image
Links: Shop <> Blog <> Facebook
User avatar
kieranhardy
Very Active Forum Member
Posts: 3899
Joined: Sun Jan 02, 2005 10:26 am
Location: Clacton On Sea - Essex
Contact:

Re: Corrupt Routes.xml folder.

Post by kieranhardy »

karma99 wrote:You need to open the xml in notepad.
If you're opening it in anything that expects to read properly formatted xml it's going to fall over due to the missing tag.
Hurl it into notepad, do a Find on </ShadowType> and then paste that line and the previous 10-15 lines or so and I'll take a look :)
Cheers, just found it now!
</iBlueprintLibrary-cBlueprintSetID>
<iBlueprintLibrary-cBlueprintSetID d:id="636226832">
<Provider d:type="cDeltaString">MBrinton</Provider>
<Product d:type="cDeltaString">RailNetwork</Product>
</iBlueprintLibrary-cBlueprintSetID>
<iBlueprintLibrary-cBlueprintSetID d:id="636226840">
<Provider d:type="cDeltaString">RScott</Provider>
<Product d:type="cDeltaString">Addon</Product>
</iBlueprintLibrary-cBlueprintSetID>
<iBlueprintLibrary-cBlueprintSetID d:id="636226848">
<Provider d:type="cDeltaString">MDI</Provider>
<Product d:type="cDeltaString">addon</Product>
</iBlueprintLibrary-cBlueprintSetID>
</RBlueprintSetPreLoad>
</cRouteProperties>
wType d:type="cDeltaString">eShadowType_Blobby</ShadowType>
Cheers,
User avatar
karma99
Very Active Forum Member
Posts: 2329
Joined: Wed Oct 17, 2007 8:21 pm
Location: Portsmouth, UK

Re: Corrupt Routes.xml folder.

Post by karma99 »

Ok, I don't have any blueprints here at work to compare to but let's assume that it's only lost that 1 tag.

Add "<ShadowType " before "wType d:type="cDeltaString">eShadowType_Blobby</ShadowType>"

So you should have:

</iBlueprintLibrary-cBlueprintSetID>
<iBlueprintLibrary-cBlueprintSetID d:id="636226832">
<Provider d:type="cDeltaString">MBrinton</Provider>
<Product d:type="cDeltaString">RailNetwork</Product>
</iBlueprintLibrary-cBlueprintSetID>
<iBlueprintLibrary-cBlueprintSetID d:id="636226840">
<Provider d:type="cDeltaString">RScott</Provider>
<Product d:type="cDeltaString">Addon</Product>
</iBlueprintLibrary-cBlueprintSetID>
<iBlueprintLibrary-cBlueprintSetID d:id="636226848">
<Provider d:type="cDeltaString">MDI</Provider>
<Product d:type="cDeltaString">addon</Product>
</iBlueprintLibrary-cBlueprintSetID>
</RBlueprintSetPreLoad>
</cRouteProperties>
<ShadowType wType d:type="cDeltaString">eShadowType_Blobby</ShadowType>

This will at least give a valid tag. Without reference to a blueprint here I can't see if anything else is missing but give that a crack. Failing that, I'll be home by 7.30 :D
Image
Links: Shop <> Blog <> Facebook
User avatar
kieranhardy
Very Active Forum Member
Posts: 3899
Joined: Sun Jan 02, 2005 10:26 am
Location: Clacton On Sea - Essex
Contact:

Re: Corrupt Routes.xml folder.

Post by kieranhardy »

Still no luck im afraid, but the error has changed.
The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Missing equals sign between attribute and attribute value. Error processing resource 'file:///C:/Program Files/Rail Simulat...

<ShadowType wType d:type="cDeltaString">eShadowType_Blobby</ShadowType>
Also when trying to load up the screen, this error occurs:

Image

Then goes back to desktop, however if i remove the <ShadowType at the beginning, the sim will load normally and i can load for example the Isle of Wight route.

Cheers,
User avatar
karma99
Very Active Forum Member
Posts: 2329
Joined: Wed Oct 17, 2007 8:21 pm
Location: Portsmouth, UK

Re: Corrupt Routes.xml folder.

Post by karma99 »

Ok, I'll have to compare it to a working file when I get home and see what's vanished unless someone else jumps in first.
I'm sure we can stich a working file back together and stop any reinstall madness :)
Image
Links: Shop <> Blog <> Facebook
User avatar
karma99
Very Active Forum Member
Posts: 2329
Joined: Wed Oct 17, 2007 8:21 pm
Location: Portsmouth, UK

Re: Corrupt Routes.xml folder.

Post by karma99 »

Ok, I'm a chump! :oops:

<ShadowType d:type="cDeltaString">eShadowType_Blobby</ShadowType>

That's better looking! Teach me to do this while "working" at the same time :wink:

Still not 100% as there might be more missing but THAT is a valid tag. No honest, it is!
Image
Links: Shop <> Blog <> Facebook
User avatar
kieranhardy
Very Active Forum Member
Posts: 3899
Joined: Sun Jan 02, 2005 10:26 am
Location: Clacton On Sea - Essex
Contact:

Re: Corrupt Routes.xml folder.

Post by kieranhardy »

karma99 wrote:Ok, I'm a chump! :oops:

<ShadowType d:type="cDeltaString">eShadowType_Blobby</ShadowType>

That's better looking! Teach me to do this while "working" at the same time :wink:

Still not 100% as there might be more missing but THAT is a valid tag. No honest, it is!
The error has changed once again, this is what i now get:
The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

End tag 'cSceneryRenderBlueprint' does not match the start tag 'Record'. Error processing resource 'file:///C:/Program File...

</cSceneryRenderBlueprint>
------^
IV class="c" STYLE="margin-left:1em;text-indent:-2em">- <iBlueprintLibrary-cBlueprintSetID>
<Provider d:type="cDeltaString">kuju</Provider>
<Product d:type="cDeltaString">railsimulatorcore</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
Cheers,
User avatar
karma99
Very Active Forum Member
Posts: 2329
Joined: Wed Oct 17, 2007 8:21 pm
Location: Portsmouth, UK

Re: Corrupt Routes.xml folder.

Post by karma99 »

Ok, as I suspected the ShadowType tag should be nested in a few others, so it seems there's a few lines missing.
Will take a look later when I get home 8)
Image
Links: Shop <> Blog <> Facebook
User avatar
karma99
Very Active Forum Member
Posts: 2329
Joined: Wed Oct 17, 2007 8:21 pm
Location: Portsmouth, UK

Re: Corrupt Routes.xml folder.

Post by karma99 »

Ok, can you post the next 10 or so lines after the failed one please.

That sequence of iBlueprintLibrary tags is listed for each route and tells the route which other creators assets it needs to load, so it exists in the blueprint for every route. Worst case, I think we'll be able to get a working route file back so you can at least run the uninstaller.
Image
Links: Shop <> Blog <> Facebook
User avatar
kieranhardy
Very Active Forum Member
Posts: 3899
Joined: Sun Jan 02, 2005 10:26 am
Location: Clacton On Sea - Essex
Contact:

Re: Corrupt Routes.xml folder.

Post by kieranhardy »

karma99 wrote:Ok, can you post the next 10 or so lines after the failed one please.

That sequence of iBlueprintLibrary tags is listed for each route and tells the route which other creators assets it needs to load, so it exists in the blueprint for every route. Worst case, I think we'll be able to get a working route file back so you can at least run the uninstaller.
</iBlueprintLibrary-cBlueprintSetID>
</RBlueprintSetPreLoad>
</cRouteProperties>
<ShadowType d:type="cDeltaString">eShadowType_Blobby</ShadowType>
<HeatHaze/>
<TexText/>
<ProjectedLightElement/>
<Instancable d:type="bool">0</Instancable>
<DetailLevelGenerationRange>
<cSceneryRenderBlueprint-sDetailLevelGenerationRange>
<HighestLevel_1isHighest d:type="sInt32">1</HighestLevel_1isHighest>
<LowestLevel_10isLowest d:type="sInt32">10</LowestLevel_10isLowest>
</cSceneryRenderBlueprint-sDetailLevelGenerationRange>
</DetailLevelGenerationRange>
</cSceneryRenderBlueprint>
Cheers,
User avatar
karma99
Very Active Forum Member
Posts: 2329
Joined: Wed Oct 17, 2007 8:21 pm
Location: Portsmouth, UK

Re: Corrupt Routes.xml folder.

Post by karma99 »

Oki.. so much fun! :)

It seems as if some other kind of blueprint has got mixed into the route blueprint!

So everything above these lines is ok...
</iBlueprintLibrary-cBlueprintSetID>
</RBlueprintSetPreLoad>
</cRouteProperties>

Now, look down after these lines and see if there's another set of tags that start
<cRouteProperties d:id="12345678">
<ID>
<cGUID>
<UUID>
where 12345678 is a random number.

If there is, delete everything from the "<ShadowType" line up to the next "<cRouteProperties" tag.
So you should end up with cRouteProperties back to back.
eg
</cRouteProperties>
Deleted stuff was in here
<cRouteProperties d:id="12345678">

Once you've done this, or if there aren't anymore cRouteProperties tags then right at the end of the file after the last </cRouteProperties> tag we need
</Record>
</cRecordSet>

.. just to finish the whole thing off.


Hopefully you can follow what I'm saying here, post if it's all gibberish and I'll try and answer questions :)
Image
Links: Shop <> Blog <> Facebook
User avatar
kieranhardy
Very Active Forum Member
Posts: 3899
Joined: Sun Jan 02, 2005 10:26 am
Location: Clacton On Sea - Essex
Contact:

Re: Corrupt Routes.xml folder.

Post by kieranhardy »

I can't seem to find any of the things you mentioned. :(

This is what comes after the shadow bit:
<ShadowType d:type="cDeltaString">eShadowType_Blobby</ShadowType>
<HeatHaze/>
<TexText/>
<ProjectedLightElement/>
<Instancable d:type="bool">0</Instancable>
<DetailLevelGenerationRange>
<cSceneryRenderBlueprint-sDetailLevelGenerationRange>
<HighestLevel_1isHighest d:type="sInt32">1</HighestLevel_1isHighest>
<LowestLevel_10isLowest d:type="sInt32">10</LowestLevel_10isLowest>
</cSceneryRenderBlueprint-sDetailLevelGenerationRange>
</DetailLevelGenerationRange>
</cSceneryRenderBlueprint>
</RenderComponent>
<PosOriComponent>
<cPosOriBlueprint/>
</PosOriComponent>
<ContainerComponent>
<cEntityContainerBlueprint>
<Children/>
</cEntityContainerBlueprint>
</ContainerComponent>
<CollisionComponent>
<cCollisionComponentBlueprint>
<Boxes/>
<RequiredAtEndOfTrack d:type="bool">0</RequiredAtEndOfTrack>
</cCollisionComponentBlueprint>
</CollisionComponent>
</cSceneryBlueprint>
</Blueprint>
</cBlueprintLoader>
</Record>
</cRecordSet>
Cheers,
Locked

Return to “[RS] General RS Discussion”