Itoo Software Forum

Author Topic: Network libraries  (Read 4205 times)

KiboOst

  • Newbie
  • *
  • Posts: 23
Network libraries
« 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 !!!!

KiboOst

  • Newbie
  • *
  • Posts: 23
Re: Network libraries
« Reply #1 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 !!

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: Network libraries
« Reply #2 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.

« Last Edit: September 21, 2017, 05:13:18 PM by iToo »
Carlos Quintero
iToo Software

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: Network libraries
« Reply #3 on: September 25, 2017, 01:38:28 PM »
We just added this FAQ entry, with the procedure to install assets in an network path, using an unique workstation to download them.

I hope you find it useful.
Carlos Quintero
iToo Software

KiboOst

  • Newbie
  • *
  • Posts: 23
Re: Network libraries
« Reply #4 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.