Kuju Folder Size - Help Required Please

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

Moderator: Moderators

User avatar
antonyperks
Very Active Forum Member
Posts: 1631
Joined: Wed Aug 26, 2009 8:14 pm
Location: Charfield DGL

Re: Kuju Folder Size - Help Required Please

Post by antonyperks »

There could be something in this, my Normal Railworks/Kuju Folder is 13.9GB and I get frequent Crashes, no on my Clean RW Install the file is only 4.3GB and i rarely get any crashes.
AMD A8-7650K, 64Bit win 10, 240GB SSD-TS2016,Nvidia GTX 960 2GB, 1TB HD,750W Psu, 19" AOC Monitor.
BobLatimer
Very Active Forum Member
Posts: 2765
Joined: Mon Jan 07, 2002 12:00 am
Location: Auckland, New Zealand

Re: Kuju Folder Size - Help Required Please

Post by BobLatimer »

@gptech. Sorry, forgot to say that I definitely agee with Mike Simpson. In fact, he and I worked on it together.

Bob.
BobLatimer
Very Active Forum Member
Posts: 2765
Joined: Mon Jan 07, 2002 12:00 am
Location: Auckland, New Zealand

Re: Kuju Folder Size - Help Required Please

Post by BobLatimer »

@antonyperks There definitely is something to it. Check out the "Is TS2013 more "Fragile" than TS2012?" and "Problems with 3rd party routes in TS2013 with SBHH." threads.

Bob.
User avatar
JustRight
Well Established Forum Member
Posts: 725
Joined: Mon Nov 21, 2011 7:06 am
Location: Adelaide, South Australia

Re: Kuju Folder Size - Help Required Please

Post by JustRight »

BobLatimer wrote:If anyone else has a total Kuju folder of more than, say 12Gb and doesn't get SBHHs after running the RW_Tools "Fix Prov/Prod" on the route involved, would you please post here the sizes of your Kuju\RailSimulator and Kuju\RailSimulatorUS folders. This will help either prove or disprove the theory.

Bob.
Hey Bob,

Just where did Mike hide the "Fix Provider/Product" button? I must be suffering selective blindness as I'll be damned if I can find it. (I'm using v4.0.47 of RW_Tools)

Cheers,
Trevor
markpullinger
Very Active Forum Member
Posts: 3105
Joined: Sun Jun 08, 2003 6:24 pm

Re: Kuju Folder Size - Help Required Please

Post by markpullinger »

Hi, I suspect that it has a lot to do with the size of the blueprints.pak files for the providers increasing with the number of assets in the folders. I can't see the folders themselves being loaded into RAM - my KUJU folder is bigger than the 8GB of RAM in my system. I am assuming that lots of cache files in memory reduces the amount available to the main programme & causes issues. Just my opinion anyway! :)

Edit Check route - view shapes- then button becomes available
User avatar
ashgray
Wafflus Maximus
Posts: 12235
Joined: Sun Jan 09, 2005 3:25 pm
Location: GWR, Nailsea, Somerset

Re: Kuju Folder Size - Help Required Please

Post by ashgray »

JustRight wrote:Just where did Mike hide the "Fix Provider/Product" button? I must be suffering selective blindness as I'll be damned if I can find it. (I'm using v4.0.47 of RW_Tools)

Cheers,
Trevor
Hi Trevor

Just run through all of the various options in the Check Route section - fix providers is on one of those screens. Most people (like me for a while) don't find it because they exit the Check Route function after the first set of tests.

EDIT - Mark beat me to it! :)

Ash
Ashley Gray

Intel Core i7-7700K @ 4.2Ghz Quad Core, Gigabyte Gaming Motherboard, 2 x 512Gb SSDs + 1TB SATA drives,
16 Gb DDR-4 Corsair RAM, Nvidia GeForce GTX1060 6Gb RAM, ASUS Xonar D2X/XDT Soundcard, Windows 10 64 bit
User avatar
Iluka
Very Active Forum Member
Posts: 2077
Joined: Tue Jan 13, 2004 12:38 pm
Location: Western Australia

Re: Kuju Folder Size - Help Required Please

Post by Iluka »

Hi All

I thought I should give you a progress Report.

With tremendous assistance from Bob (Latimer) and utilising RW_Tools I have commenced the "Marathon" effort as I have 69 Routes Installed and just about every available Scenario for these Routes from UKTS and Steam Workshop.

My orignal Kuju Folder comprised :-
11.7GB
41,242 Files
5,040 Folders

Currently my New Kuju Folder comprises (after I have checked out 11 of the 69 Routes) :-
4.34GB
18,194 Files
1,357 Folders

Once I have completed checking out all the 69 Routes I will then run each Route again through RW_Tools and Fix the Route Properties.xml Files

Regards

Mike
nobkins
Very Active Forum Member
Posts: 4421
Joined: Fri Jun 12, 2009 11:51 pm
Location: Leeds

Re: Kuju Folder Size - Help Required Please

Post by nobkins »

I am not sure if everyone has realised that it is not a bloated kuju folder that is the cause. A large kuju folder is certainly a contributing factor. It is the total number of assets available (and therefore indexed) to a route that if it exceeds an internal game limit will cause the route to SBHH upon loading.

As the Kuju folder is one of the largest it contributes more to the number of indexed assets (if the developer filter is enabled for Kuju) more than most other developer folders. However, I believe the what triggers the SBHH is the number of assets available to a route (and therefore indexed) and NOT any single folder in particular.

For those people struggling with SBHH when a route loads then the best place to start when trying to fix the issue is to rename your kuju folder to something like kuju_old. Then do a verify cache in steam to make the kuju folder re-download and therefore be 100% default content only. Once you have done this try to load the route that was SBHH'ing. If it loads then you have probably fixed it by reducing the number of assets that route has access to (by using a 100% default kuju folder).

Hope that clarifies.
jevon wrote:Jim, your use of the term "mystery limit" suggests that RSC has still not published specs relevant to the issue.
I am not aware of them publishing specs on this issue.
jevon wrote:Is it that they simply don't know?
I don't know as I do not work for RSC.
jevon wrote:Were the programming changes that created this problem botched in some way and they're looking for a fix?
I had experienced the issue first in TS2012 so it was not introduced with TS2013. I suspect (but do not know) that it is an issue that has always been there but did not reveal it's existence until the amount of freeware content installed to the Kuju folder has grown. The freeware packs install a lot of content to the Kuju folder so they are probably a contributing factor also.
jevon wrote:Has RSC even acknowledged this as a problem? Does anyone have hard information on this?
I have reported it and that report was acknowledged. Not sure if that is the hard information you require.

Thanks

Jim
TrainSimDev.com The community dedicated to those who create content for any Train Simulator.
Includes: Free downloads via torrent or browser, forum browsable by all, membership by invitation (any member can invite someone)
User avatar
Fudgie81
Getting the hang of things now
Posts: 59
Joined: Fri May 18, 2012 12:58 pm

Re: Kuju Folder Size - Help Required Please

Post by Fudgie81 »

nobkins wrote:For those people struggling with SBHH when a route loads then the best place to start when trying to fix the issue is to rename your kuju folder to something like kuju_old. Then do a verify cache in steam to make the kuju folder re-download and therefore be 100% default content only. Once you have done this try to load the route that was SBHH'ing. If it loads then you have probably fixed it by reducing the number of assets that route has access to (by using a 100% default kuju folder).

Hope that clarifies.
Excellent and timely advice as I've been having a few problems recently and my kuju folder has grown pretty large so I'll give your advice a try.

Thanks.
nobkins
Very Active Forum Member
Posts: 4421
Joined: Fri Jun 12, 2009 11:51 pm
Location: Leeds

Re: Kuju Folder Size - Help Required Please

Post by nobkins »

It could take a fair bit of downloading so if you don't have unlimited bandwidth then this could use approx 3Gb of bandwidth. Also any content that was installed into the kuju folder that is not distributed using steam (mostly freeware re-skins) will be lost and will require re-installing.

Just FYI.
TrainSimDev.com The community dedicated to those who create content for any Train Simulator.
Includes: Free downloads via torrent or browser, forum browsable by all, membership by invitation (any member can invite someone)
User avatar
alanch
Very Active Forum Member
Posts: 4907
Joined: Mon Feb 27, 2006 6:07 pm
Location: Leeds, England
Contact:

Re: Kuju Folder Size - Help Required Please

Post by alanch »

JustRight wrote:Just where did Mike hide the "Fix Provider/Product" button? I must be suffering selective blindness as I'll be damned if I can find it. (I'm using v4.0.47 of RW_Tools)
Run Check Route - when the first stage completes and the missing shapes report shows up, exit and choose to view the list of shapes. Then click on List Providers & Products Used - this gives you a button to Fix Prov/Prod.
Alan

My railway photos are now on Google + - links to the albums are in this thread http://forums.uktrainsim.com/viewtopic. ... 9&t=149558

Lots of steam and early diesels from 1959 to 1963.
User avatar
JustRight
Well Established Forum Member
Posts: 725
Joined: Mon Nov 21, 2011 7:06 am
Location: Adelaide, South Australia

Re: Kuju Folder Size - Help Required Please

Post by JustRight »

Yo!! Found it!!

Thanks Mark, Ash and Alan :D

Just as an aside, I believe that RSC would have to know just what this 'limit' actually is. They have access to and control of the core program. You can bet it will be some fixed size Data Area, Array, or Memory Table that they either cannot, or will not, increase in size. As Jim has said, this is more a function of the sheer number of assets that the program has to 'index' when it loads a Route/Scenario combination.

This problem certainly existed in TS2012. I had started a personal project whereby I had moved ALL of the KUJU rolling stock out of the 'Railvehicles' folder and into separate Provider/Product directories. I was editing all the associated BIN files modifying the relative path references, including the GeoPcDx files. All this was going swimmingly, until I got to the much larger GeoPcDx files contained in the locomotive directories. It was then that I discovered that the version of SERZ.exe that RSC provide cannot re-pack these larger GeoPcDx files. You can unpack them and edit them, but not regenerate the GeoPcDx file.

None the less, I had quite some success with doing all the Freight items, and fixed many of my SBHH errors. But then TS2013 was coming along, and I foolishly hoped that RSC, being aware of this problem, might implement a code fix. But it was not to be.

What we have now is that RSC are using the same workaround I tried to implement for the KUJU folders. That is, separate Provider/Product directories for each 'Pack'. In fact they have been doing this for ages. This minimises the number of assets that the program has to load or 'index' for a given Route/Scenario. I would bet though that if you created a Scenario and ticked a fair number of the RSC Provider/Product check boxes that you could crash the program with an SBHH just the same as having a large number of assets in the KUJU directory tree.

The fact that RSC have not repaired this flaw suggests that it is a real problem in the core code that cannot be simply 'increased' in size. Some fundamental limitation in the design that they have found it simpler to work around rather than rectify.

Cheers,
Trevor
User avatar
Fudgie81
Getting the hang of things now
Posts: 59
Joined: Fri May 18, 2012 12:58 pm

Re: Kuju Folder Size - Help Required Please

Post by Fudgie81 »

nobkins wrote:It could take a fair bit of downloading so if you don't have unlimited bandwidth then this could use approx 3Gb of bandwidth. Also any content that was installed into the kuju folder that is not distributed using steam (mostly freeware re-skins) will be lost and will require re-installing.

Just FYI.
I have a fast connection and no problem with bandwidth so I'll give it a try soon. I went a bit crazy downloading freeware stuff after paying my money to join here so it's needing a clear out anyway :oops:
TransportSteve
Very Active Forum Member
Posts: 4645
Joined: Sat Dec 12, 2009 12:43 am
Location: Nottingham, England.

Re: Kuju Folder Size - Help Required Please

Post by TransportSteve »

nobkins wrote:I am not sure if everyone has realised that it is not a bloated kuju folder that is the cause. A large kuju folder is certainly a contributing factor. It is the total number of assets available (and therefore indexed) to a route that if it exceeds an internal game limit will cause the route to SBHH upon loading.
As the Kuju folder is one of the largest it contributes more to the number of indexed assets (if the developer filter is enabled for Kuju) more than most other developer folders. However, I believe the what triggers the SBHH is the number of assets available to a route (and therefore indexed) and NOT any single folder in particular.

Hope that clarifies.

Jim
Yes, but, I've got some big freeware routes installed from Britain, Europe and America that have maybe 30-40 different asset folders ticked, and don't have any problems with SBHH's.
I don't dispute your theory, but, as we all have different OS and CPU/RAM/Graphic card specs, surely, someone playing on a medium/high end computer won't have half as many problems as someone playing the game on a little girl's laptop, because we have capable machines to cope with the heavy graphical detail, etc.

The other thing that has already been mentioned over the years before on this forum is that in the scenery assets packs that accompany routes they are full of content complete with .cost and .tgt files, baks and blueprints files that undoubtedly get installed because everyone makes use of the package manager for simplicity, instead of looking inside every asset folder, utilising 7-zip, or, a similar tool, to extract all the ''rubbish'' inside 'em beforehand. For example, in 12 freeware routes I've obtained they all contained different assets created by Ice, every one of his folders contained ''fluff'', and I had to manually go through about 95 of them before I installed the clean folders onto my hard-drive, and I've currently got 170 folders of content from Iceman, as he's a prolific asset creator of high quality content. If folks have between say 350 - 500 asset folders on their hard-drives, have they cleaned them all out of the unwanted rubbish, I bet they haven't, if folks did some housecleaning of ALL folders and then defragged their systems accordingly, so, all folders/files are clean and together maybe the SBHH's might decrease if their system is only looking for a couple of files instead of the hundreds of rubbish ones also present in individual folders, this is where a lot of the bloatware also comes from, I'm sure, and if folks haven't cleaned their folders and never done a defrag in years, no wonder they're having problems, keep your installations clean and tidy and free from rubbish, time consuming yes, but, worth it.

Cheerz. Transport Steve.
i5 4690 3.5GHz Quad Core CPU, Gigabyte Z97-HD3, 16GB RAM, nVidia GTX1060 6GB, WIN 7 PRO 64-bit.
Visit my flickr account - http://www.flickr.com/photos/59849121@N08/
User avatar
Griphos
Established Forum Member
Posts: 413
Joined: Sun Sep 25, 2011 3:26 am

Re: Kuju Folder Size - Help Required Please

Post by Griphos »

I guess I wouldn't mind the time to do the cleaning, but I have no idea what is rubbish and what isn't.

It is possible that I don't have many SBHHs because I am running a high end system. That really can't be ruled out as a factor, I don't think, particularly given my experience with FSX.
Locked

Return to “[TS] General Discussion”