Frictional Games Forum (read-only)
Primitive plains will not remember a certain set of textures! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Primitive plains will not remember a certain set of textures! (/thread-19831.html)



Primitive plains will not remember a certain set of textures! - jssjr90 - 01-06-2013

Well this is bugging me allot. I have noticed when working with these new set's of textures, when I apply them to a primitive plain, it will load fine. But when I exit and reload the map, the texture disappears completely, luckley still leaving the plane intact to where it was.

- The textures are in 512 x 512 format.
- There is no level cache crated with the corresponding level im working with of these textures.

- I just don't get why the level editor is being a tard. I cant repeatedly re work the textures over and over when loading the level. Besides these are buildings im working with, ya like im going to re-texture all the invisible plains.

Example of how the files are set up in the material editor.

[Image: ExampleoftheMatfilesetup_zpsd6ca73b8.png]

When applied in the level editor, and when I reload the map when I do not exit the level editor, the texture still stays there.

[img][Image: With_Texture_zpsec531c57.png][/img]

But when I exit the level editor and reload the map, the texture just disappears. Relay frustrating.

[Image: Without_Texture_zpse9605092.png]

So does anyone ever stumble upon this problem and know any fix?


RE: Primitive plains will not... - FlawlessHappiness - 01-06-2013

You need to fix a line in your Resources.cfg to make it import stuff from your custom_stories folder. Don't have the line right here, but try search for it


RE: Primitive plains will not remember a certain set of textures! - jssjr90 - 01-06-2013

Fixed it! The original resorces.cfg for the game does not have this line in red bold. So it was confused on remembering on where textures where, oddly enough, it remembered everything else fine. Well that's the fix!

<Resources>
<Directory Path="/custom_stories" AddSubDirs="true" />
<Directory Path="/_temp" AddSubDirs="true" />
<Directory Path="/fonts" AddSubDirs="false" />
<Directory Path="/maps" AddSubDirs="true" />
<Directory Path="/textures" AddSubDirs="true" />
<Directory Path="/models" AddSubDirs="true" />
<Directory Path="/gui" AddSubDirs="true" />
<Directory Path="/static_objects" AddSubDirs="true" />
<Directory Path="/sounds" AddSubDirs="true" />
<Directory Path="/main_menu" AddSubDirs="true" />
<Directory Path="/shaders" AddSubDirs="true" />
<Directory Path="/lights" AddSubDirs="true" />
<Directory Path="/billboards" AddSubDirs="true" />
<Directory Path="/entities" AddSubDirs="true" />
<Directory Path="/graphics" AddSubDirs="true" />
<Directory Path="/viewer" AddSubDirs="true" />
<Directory Path="/particles" AddSubDirs="true" />
<Directory Path="/models" AddSubDirs="true" />
<Directory Path="/music" AddSubDirs="true" />
<Directory Path="/flashbacks" AddSubDirs="true" />
<Directory Path="/textures" AddSubDirs="true" />
<Directory Path="/misc" AddSubDirs="true" />
<Directory Path="/commentary" AddSubDirs="true" />
</Resources>


RE: Primitive plains will not remember a certain set of textures! - FlawlessHappiness - 01-06-2013

Exactly Wink That's the line you needed


RE: Primitive plains will not remember a certain set of textures! - Your Computer - 01-06-2013

I would suggest putting that line at the end of the list, or else the custom story files may end up having higher priority over the original assets.


RE: Primitive plains will not remember a certain set of textures! - jssjr90 - 01-06-2013

Good lookout Your Computer. But it is so odd that the original resources cfg does not have that line with in it when you install the game.


RE: Primitive plains will not remember a certain set of textures! - Your Computer - 01-06-2013

When the game first came out, custom story support didn't exist. But adding that line to the original resources.cfg would be a mistake for purposes other than custom story development. The game today, with custom story support, will load all the custom story assets for the custom story started by the user. If you add that line, you run the risk of two custom stories conflicting with each other with assets that have the same name.