Frictional Games Forum (read-only)
Fix for replacement items (like the flashlight) when doing conversion mods - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Fix for replacement items (like the flashlight) when doing conversion mods (/thread-7733.html)

Pages: 1 2 3


Fix for replacement items (like the flashlight) when doing conversion mods - MrBigzy - 05-01-2011

So I thought of an easy fix that might work and prevent overwriting files. In the main dir of Amnesia, there's a cfg file called resources. It specifies what folders, well, have resources in them. For conversions, you could specify a different folder for, say, the models folder for the flashlight. It's probably possible to specify subdir's too if you want something specific. Anyone working on a conversion mod wanna test this out? (wink wink nudge nudge Tanshaydar)


RE: Fix for replacement items (like the flashlight) when doing conversion mods - Tanshaydar - 05-01-2011

Well, I should explain in depth how I did since winks shows me Big Grin

I created two folders in main directory called wn_config and wn_models. wn stands for White Night.

Then I copied all the cfg files from config folder into wn_config. I also copied resources.cfg into wn_config folder.

I extracted everything from flashlight into wn_models and opened resources.cfg in the wn_config folder and edited the line:

Code:
<Directory Path="/models" AddSubDirs="true" />
to
Code:
<Directory Path="/wn_models" AddSubDirs="true" />

and saved. Then opened main_init.cfg file inside wn_config folder and edited the line:

Code:
<ConfigFiles
    Resources = "resources.cfg"

to

Code:
<ConfigFiles
    Resources = "wn_config/resources.cfg"

Now, open your Amnesia with the main_init.cfg file inside wn_config folder.

Now you have a full conversion without changing any actual game file.

Here's the video: http://www.youtube.com/watch?v=iBtS6l_CtxM


RE: Fix for replacement items (like the flashlight) when doing conversion mods - Mofo - 05-01-2011

I take my hat off to you, good sir. Big Grin


RE: Fix for replacement items (like the flashlight) when doing conversion mods - MrBigzy - 05-01-2011

Oh, you did this before?


RE: Fix for replacement items (like the flashlight) when doing conversion mods - Tanshaydar - 05-01-2011

Me?
Actually I was working on a full conversion because the reaction I took from this was not good and decided to use the flashlight Xiphirx already made despite its bugs.
Since I saw you managed to export animations from Maya and seem to be capable of doing animations, I kept poking you Tongue

You saved a custom story Angel


RE: Fix for replacement items (like the flashlight) when doing conversion mods - xiphirx - 05-01-2011

Your mod looks awesome! Shows that Amnesia isn't just oriented towards 1800 century settings.


RE: Fix for replacement items (like the flashlight) when doing conversion mods - Tanshaydar - 05-01-2011

Well, that's thanks to all of your efforts. A simple flashlight can change a lot and I think this is a milestone for Amnesia modding history.


RE: Fix for replacement items (like the flashlight) when doing conversion mods - MrBigzy - 05-01-2011

Oh no, I meant to ask if you set up the replacement thing that I mentioned before or not, lol. Just curious if you had it set up already before I made this thread.

And I'm honored to have saved your custom story. =D


RE: Fix for replacement items (like the flashlight) when doing conversion mods - ricky horror - 05-02-2011

(05-01-2011, 05:11 PM)Tanshaydar Wrote: Well, I should explain in depth how I did since winks shows me Big Grin

I created two folders in main directory called wn_config and wn_models. wn stands for White Night.

Then I copied all the cfg files from config folder into wn_config. I also copied resources.cfg into wn_config folder.

I extracted everything from flashlight into wn_models and opened resources.cfg in the wn_config folder and edited the line:

Code:
<Directory Path="/models" AddSubDirs="true" />
to
Code:
<Directory Path="/wn_models" AddSubDirs="true" />

and saved. Then opened main_init.cfg file inside wn_config folder and edited the line:

Code:
<ConfigFiles
    Resources = "resources.cfg"

to

Code:
<ConfigFiles
    Resources = "wn_config/resources.cfg"

Now, open your Amnesia with the main_init.cfg file inside wn_config folder.

Now you have a full conversion without changing any actual game file.

Here's the video: http://www.youtube.com/watch?v=iBtS6l_CtxM

Now when you say "main directory", do you mean the actual game's main directory where the original config and models folders are, or the main directory for your custom story? Because I've done both, and neither way gets the flashlight into the custom story. :/


RE: Fix for replacement items (like the flashlight) when doing conversion mods - Tanshaydar - 05-02-2011

Where your Amnesia.exe is, because flashlight won't work in a custom_story.