Content Management

Started by jaf, December 30, 2012, 01:45:46 PM

Previous topic - Next topic

jaf

I recently added a SSD drive and noticed by changing the drive letter for my heightfield load (.ter) files, I would get errors loading those files when loading the scene.  So I thought I could simply do a search and replace on the scene xml file to correct all  instances of the path and that would solve the problem.  However, I then found I still had to go to each load file and re-read it -- the "read from file path/name" was now correct, but the re-read had to be initiated and I haven found an easy way to do this.  The heightfield generate has the handy "Auto generate" check box.

Intuition tells me that in the future I should copy all my objects and terrains to the scene directory, but that seems to be a rather messy technique.   Wastes a lot of storage space, but maybe that's the only option.

Anyone have any content management  techniques they can share?
(04Dec20) Ryzen 1800x, 970 EVO 1TB M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics 457.51 (04Dec20), Win 10 Pro x64, Terragen Pro 4.5.43 Frontier, BenchMark 0:10:02

Tangled-Universe

Hmmm...never heared of that "re-read thing" you mentioned.

I have all my TG2 stuff on my E drive since ages.
Everytime I format my PC I make sure that the E drive will contain my TG2 stuff.
This way I'm always sure it will work without any problem.

I once had a stubborn installtion-session of windows and it re-mapped the drive letters of my data HDD (I have SSD for OS/software and HDD for everything else).
Suddenly my E drive became F, but that was easily fixed using diskmgmt.msc (windows key + R => diskmgmt.msc).

jaf

Maybe it's something I did wrong, but it's easy to test.  Load a scene that uses a heightfield load file and check the path.  Now quit TG2 and move that load file to a different directory.  Re-load TG2 and the scene and see if you get an error message.
(04Dec20) Ryzen 1800x, 970 EVO 1TB M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics 457.51 (04Dec20), Win 10 Pro x64, Terragen Pro 4.5.43 Frontier, BenchMark 0:10:02

Oshyan

TG2 will certainly pop up an error message if you move a file, but if you edit the XML correctly and then load the file (the TGD obviously needs to not be open when you edit it and changes need to be saved), then it should load with the new paths just fine. If you think about it, this has to be true, because TG has no other knowledge of the location of files besides the file path specified in the TGD (with the exception of the "library" content search paths you can specify in Preferences), so if you change those file paths, it should change where TG looks for it.

- Oshyan

jaf

#4
I'll have to recheck this after I finish a long render.  I was getting the feeling that even though the new location was in the xml, the "read" function does not automatically take place when the scene is loaded.

[update]
Thanks Oshyan! -- yes, it worked this time with a small test.  I must have made a mistake in my xml edit the first time.  Glad it was my mistake, because it will make it easier to update all my scenes now.  :)
(04Dec20) Ryzen 1800x, 970 EVO 1TB M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics 457.51 (04Dec20), Win 10 Pro x64, Terragen Pro 4.5.43 Frontier, BenchMark 0:10:02

Oshyan

Glad to hear it, thanks for re-checking. :)

- Oshyan