Missing textures from Kuju Double Stack cars - Redux

Post your problems and installation issues here!

Missing textures from Kuju Double Stack cars - Redux

Unread postby Griphos » Tue Dec 13, 2011 7:27 pm

I'm starting this thread again because Kali offered some incredible information and then the forum hack/backup erased it all. Luckily he still has a copy of what he wrote.

I lost the picture I posted, but basically, quite a few of my Kuju Double Stack cars are missing textures. They were fine a few weeks ago, when I made a couple of scenarios for VORA sessions, (28th and 30th of November), but when I opened the scenarios earlier this week, they were all funky (showing some container textures, but not others).

I tried a verify cache, but no luck. I tried installing the Double Stack folder from a backup I made before the late November sessions (so it should be fine) but no luck. That's when Kali posted his suggestions for how to track down the errant textures, which I believe he will do again now for the edification of all (or at least me).

Phil
User avatar
Griphos
 
Posts: 880
Joined: Wed Oct 12, 2011 8:18 pm

Re: Missing textures from Kuju Double Stack cars - Redux

Unread postby Hawk » Tue Dec 13, 2011 7:58 pm

Griphos wrote:the forum hack/backup erased it all.

Again, let me reiterate, It was not a forum hack. It was a server hack that affected the entire server, and all 13 of the sites I host, as well as the email server, which got the worst beating. It still doesn't work.
Hawk
 

Re: Missing textures from Kuju Double Stack cars - Redux

Unread postby Kali » Tue Dec 13, 2011 7:59 pm

Being awesome & all, I dragged up a copy of my post:

---8(-----8<-----8=-----8(--------

Yeah, this is where it starts getting a little technical, but all you need is RWTools. I will tell you it all, whether you'll manage it yet is something else :)

* Start a new scenario - make sure it's not in winter
* Plop the cars in there and find the ones with missing textures
* Remove everything else

Now you can get a list of stock in that scenario with RWTools, so save that somewhere.

* Open each .bin file from the list of stock you just saved, in RWTools
* Scroll down to/search for "CargoBlueprintID"
* You'll see a line that looks something like this: <BlueprintID d:type="cDeltaString">RailNetwork\Interactive\Conti_2x20ft-Tank_001.xml</BlueprintID>
* Make a note of each of those too: those are the blueprints for the actual containers, rather than the wagons.

They all live in Assets\Kuju\Railsimulator\Railnetwork\Interactive - there will probably be an awful lot of entries there, but you're only looking for a few.

So:

* Open each of the container blueprints you noted earlier in RWTools
* The line in each of these you're looking for will look roughly like this:
<GeometryID d:type="cDeltaString">Kuju\RailSimulator\RailNetwork\Interactive\[00]Conti_1x_20ft_001</GeometryID>
which is probably something resembling what the blueprint is called. This is the GeoPcDx file, which is the actual container model itself.
* Make a note of all of those lines.
* The actual filename for the shape for the line above would be
Assets\Kuju\RailSimulator\RailNetwork\Interactive\Conti_1x_20ft_001.GeoPcDx

Now it gets a bit tricky - we're going to look in the Materials section for each container shape. I'm going to have to make a few educated guesses here because I'm not looking inside each container shape I have, I'll be here all night!

* Open each shape file ( the GeoPcDx file you noted above ) up in RWTools.
* Search for "TrainLightMapWithDiffuse.fx" - that will hopefully find us the main material that the shape is painted with, they're pretty simple models.
* This will have a <TextureByName> section; the one for the container I pointed out above looks like this:

Code: Select all
             <TextureByName>
                <e d:type="cDeltaString">textures\[08]wp26-01_cont20ft_001</e>
                <e d:type="cDeltaString">textures\[00]wp26-02_cont40ft_sm</e>
             </TextureByName>



These are the names of the textures it looks for: the full path to the top one would be this:
Assets\Kuju\Railsimulator\RailNetwork\Interactive\Textures\wp26-01_cont20ft_001.TgPcDx

This particular one - like most containers I've seen - also has a winter texture; you can tell because a) there's an [08] in front of the filename in the TextureByName entry, and b) there should be a wp26-01_cont20ft_001_WI.TgPcDx texture as well. If your scenario is in winter and you're getting missing textures, then it might just be that the winter ones are the only ones not there - which is why I said to create a new scenario that is not in winter.

* Note down all the texture filenames, and that means both lines.

Now, in Explorer go into the Assets\Kuju\Railsimulator\RailNetwork\Interactive\Textures folder and check to see if all the files on your list are there.

If some are not there, then perhaps post a list of ones you're missing and I will crosscheck to try and work out where they come from.

----

If anyone else is reading this - I did just notice that it appears we can have seasonal *geometry*, rather than just textures? has anyone actually tried that?
Kali
 
Posts: 1600
Joined: Mon Mar 14, 2011 1:00 am
Location: England-by-Sea

Re: Missing textures from Kuju Double Stack cars - Redux

Unread postby Griphos » Tue Dec 13, 2011 8:36 pm

Hey Kali. Thanks for posting this again. You ARE awesome...and all.

So, following your instructions, I went through the process for the first container car that was missing textures. I found everything as you describe, and it led me to my \Kuju\RailSimulator\RailNetwork\Interactive\textures folder where low and behold, the first .TcPcDx file I was looking for was missing. I opened up my backup and there are 108 files in that folder. There are only 74 in my current game's folder. Now how would those files go missing?!?!

I'm going to just copy over all the texture files from the backup and open the scenario I made with all the missing texture cars and see if they are all fixed. If not, I'll remove the ones that work now and do the above process with the ones still missing textures. Keep your fingers crossed.

Phil
User avatar
Griphos
 
Posts: 880
Joined: Wed Oct 12, 2011 8:18 pm

Re: Missing textures from Kuju Double Stack cars - Redux

Unread postby Griphos » Tue Dec 13, 2011 8:43 pm

YEAH!!! Textures all back! How would those files get deleted? Steam verify screwup? I tell you, Steam is a weird animal. I'm sure glad I made a backup. I think I'll do that regularly!

Thanks for all the help, Kali. I made a copy of this post and will keep it, and use it to delve into the mysteries of RW file structures a little further sometime.

Phil
User avatar
Griphos
 
Posts: 880
Joined: Wed Oct 12, 2011 8:18 pm

Re: Missing textures from Kuju Double Stack cars - Redux

Unread postby Kali » Tue Dec 13, 2011 8:51 pm

Worth making an online & offline copy, and switching between them using symbolic links.
Kali
 
Posts: 1600
Joined: Mon Mar 14, 2011 1:00 am
Location: England-by-Sea

Re: Missing textures from Kuju Double Stack cars - Redux

Unread postby PapaXpress » Tue Dec 13, 2011 8:55 pm

Kali wrote:If anyone else is reading this - I did just notice that it appears we can have seasonal *geometry*, rather than just textures? has anyone actually tried that?


It doesn't seem to be working. Tried a few different ways to add it in, but I either getting SBHH or some odd message about getting chunks failed.
Image
"Just post some random unrelated text. We have members here who can help you with that." ~ Chacal
"When all else fails, read the instructions... if that doesn't work either, try following them." ~ Old Prof
Image
The Grade Crossing - Atlanta North Project - Virtual Rail Creations
User avatar
PapaXpress
 
Posts: 5147
Joined: Sat Oct 23, 2010 10:30 pm
Location: that "other" timezone


Return to Problems and Peculiarities

Who is online

Users browsing this forum: No registered users and 2 guests