Frictional Games Forum (read-only)

Full Version: Fix for replacement items (like the flashlight) when doing conversion mods
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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)
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
I take my hat off to you, good sir. Big Grin
Oh, you did this before?
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
Your mod looks awesome! Shows that Amnesia isn't just oriented towards 1800 century settings.
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.
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
(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. :/
Where your Amnesia.exe is, because flashlight won't work in a custom_story.
Pages: 1 2 3