Frictional Games Forum (read-only)
[SCRIPT] having problems with custom entities - 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: [SCRIPT] having problems with custom entities (/thread-15524.html)



having problems with custom entities - zombiehacker595 - 05-20-2012

So i have custom entities which work fine at first but if i add them then uit the editor and go back in it says "error failed to load some parts of map" and then the custom entities are gone how do i fix this?


RE: having problems with custom entities - Acies - 05-20-2012

The level editor doesn't read objects from your "custom_stories" folder. Create a folder in "static_objects" or "entities" titled <The name of your story>. Place your stuff there. When it's time to release the story copy the folders to:
custom_stories/<The name of your story>/entities
custom_stories/<The name of your story>/static_objects


RE: having problems with custom entities - Statyk - 05-20-2012

Or open the "resources.cfg" in your root folder and add the directory to "custom_stories". Paste this at the bottom of the list of directories:

<Directory Path="/custom_stories" AddSubDirs="true" />

This allows the editors to read anything in the "custom_stories" folder and you should see all of your items just fine. =] Saves disk space and it seems this was your preferred method of mapping.