Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: KiboOst on September 21, 2017, 03:56:59 PM

Title: Network libraries
Post by: KiboOst on September 21, 2017, 03:56:59 PM
Hi,

We have loads of problems managing RailClone libraries on network path for everyone.

- v3.0.9, just download all libraries with update manager
- copy all files to O:\3D\_RailCloneLib\Officials
- all registry settings and interface settings points to O:\3D\_RailCloneLib\

-> each time we load something from the lib we got this message:
Error loading material library:
"O:\matlib\vray.mat"

Why the hell does it search for such path at all ????
It should look into O:\3D\_RailCloneLib\Officials\matlib, or O:\3D\_RailCloneLib\matlib !!!!
Title: Re: Network libraries
Post by: KiboOst on September 21, 2017, 04:58:28 PM
Ok, checking index.xml file, the matlib is specified like this:

<matlib>$(LIBROOTPATH)\..\..\matlib\$(RENDERER).mat</matlib>

So it check the libroot, and get up two folders !!!!!!!!
 >:(  :o

Will write a python script to rewrite all index.xml matlib in entire library !! Totally cumbersome !!
Title: Re: Network libraries
Post by: iToo on September 21, 2017, 05:07:44 PM
Hi, that's correct. In the built-in library, materials are stored in a relative path to the "lib" folder.

But it's not necessary to modify the index.xml. Just keep the same structure level as the default installation.
For example, to move everything to O:\3D\RailClone_Library, copy "lib" and "matlib" in the same level:

O:\3D\RailCloneLibrary\lib
O:\3D\RailCloneLibrary\matlib

In this way, relative paths don't change and the index.xml will work without changes.

The reason to use relative paths, it that actually doesn't exist a "$(LIBMATPATH)" macro in the code.
Although there is a registry key which defines the path of "matlib", currently is used only by Update Manager to copy the files.

Title: Re: Network libraries
Post by: iToo on September 25, 2017, 01:38:28 PM
We just added this FAQ entry (https://forum.itoosoft.com/faq-18/installing-railclone-3-assets-in-a-shared-network-path/), with the procedure to install assets in an network path, using an unique workstation to download them.

I hope you find it useful.
Title: Re: Network libraries
Post by: KiboOst on September 27, 2017, 10:32:15 AM
I have two lines of python that set all of them according to our paths

Anyway you have a bug in matlib/vray.mat

Civil Engineering\Pavements\Curbs looks for a _RC_curbs material but it is named _RC_curb in vraymat. Have renamed it in the mat and all god now.