taylormorris Posted June 2, 2016 Posted June 2, 2016 We have been experiencing some very strange behavior when saving file/path references from the editor. What happens is that when an artist adds or updates any file path references in the editor that are contained in an external data path, that reference will be read and saved badly and won't load in the exe. For example, if the path to a texture is "World\Textures\Tree.dds" and the artist changes or adds this path through the editor, it shows in the editor and saves out as "world\Textures\Tree.dds" and any node containing this file path will stop loading as soon as it reaches this reference. I have created a small sample project to reproduce this behavior and while I was able to get the editor to convert the first letter of all references to lowercase, it was not causing any problems with loading that asset. Very frustrating! I can still upload so you can at least see the behavior, if not the huge problem that it is causing us. --- There is another related bug where for Grass Masks, the path capitalization is correct, but it tries to incorrectly build a relative path to the grass mask in the external data-path. For example, if the path was World\Textures\GrassMask.dds, the editor would save that out as ..\..\World\Textures\GrassMask.dds and even if that relative path was correct, it still produces an error and that node stops loading. This was stopping all of our vegetation to not load, as those references were included in the same layer node as the grass mask. I don't have a sample project for this bug yet, but I hope it provides some clue on the overall problem. It's also possible that it is a separate issue and the first character would have changed case if it was a letter character.
paralyzah Posted June 3, 2016 Posted June 3, 2016 I have successfully reproduced the first caseReally, always first upcase-symbol in path is converted to lowcaseIt's a bug and it was added to our bugtrackerI did not understand the second case: you use the same texture for material of grass and for grass-mask?Can you give me more details about this case: the paths to the location of the texture and etcThanks
taylormorris Posted June 6, 2016 Author Posted June 6, 2016 Hi, The second case is that the editor is inserting a relative path to the extern data path when this isn't necessary, a behavior we have only noticed for GrassMask textures. For some reason, this relative path is causing the GrassMask to not load and the problem can be fixed simply by removing the relative path ("..\..\..\..\World\Textures\GrassMask.dds" does not work but "World\Textures\GrassMask.dds" does). It's possible that this issue could be fixed by the same bug. Could you please post the code to fix once that's been solved? We would like to test on our end before the next release Thanks, Taylor
paralyzah Posted June 7, 2016 Posted June 7, 2016 Hello Taylor1. I have project in path: C:\Users\<user>\Documents\Unigine projects\unigine_project (default for project created with sdk-browser)2. I put texture in path C:\1234\World\Textures\mark_d.dds (it's textures from samples)3. I started project with next command line (it's a simple change launch_editor.bat): start bin\editor_x64.exe -data_path "../" -data_path "C:\1234" -console_command "world_load \"unigine_project/unigine_project\"" 4. I added ObjectGrass on the scene5. I opened file-dialog for grass / mask image and click to extern_path_1 button-link (for path C:/1234)6. I chose the texture mark_d.dds and click OK7. Texture was added correctly with absolute path: c:/1234/World/Textures/mark_d.dds 8. Save world & restart editor = situation don't change: texture correctly applied with absolute path What i doing wrong?
Recommended Posts