Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 9 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create a fully isolated full conversion
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#1
How to create a fully isolated full conversion

Warning: This tutorial assumes you have the Justine patch installed for your Amnesia installation. Also, i'll only help others solve issues caused by this process only for the things i provided (exact) directions for. Note, also, this article should be considered a work-in-progress and may be updated if any issues arise.

Note: Although i provide this tutorial, i do not intend it to imply that everyone should consider making a full conversion simply because they can and have the resources. Changing entities and objects is not a proper justification for choosing to go with a full conversion. Proper justification would be for the sake of changing game mechanics, like night vision, sanity drain, oil drain, etc.

Due to the fact that a lot of full conversion mods out there have a complicated installation, making it difficult to keep your Amnesia installation clean, i have decided to teach people how to create a fully isolated full conversion mod where the user would only need to delete one folder to completely uninstall the full conversion mod. I find complicated installations for full conversions unacceptable for community-based full conversions, and wouldn't you prefer to have a fully isolated full conversion too?



First steps

Create a folder called test_mod under the redist folder (for retail edition) or the amnesia the dark descent folder (for Steam edition). This folder will contain everything our full conversion mod needs.

Inside the test_mod folder, create the following folders:
  • config
  • config/lang
  • entities
  • graphics
  • maps
  • main_menu
  • static_objects
  • textures



Configuration

Go into the config folder of Amnesia and copy over the following files to test_mod/config:
  • default_main_settings.cfg
  • game.cfg (use ptest_game.cfg for female voice)
  • ptest_main_init.cfg
  • ptest_menu.cfg
  • base_english.lang

Under test_mod/config, rename the files so that they don't have the prefix "ptest_". Under test_mod/config/lang create the file english.lang or simply copy the one located at config/lang_ptest.

Be sure to also copy the resources.cfg file into the test_mod folder.

test_mod/config/main_init.cfg

Open the test_mod/config/main_init.cfg file for editing. Every attribute shown in there must remain there, or else the game may crash for failing to parse the configuration. All attributes should have a value, or else the game may crash.

Make sure that the values for the following attributes have a prefix of "test_mod/":

ConfigFiles:
  • Resources
  • Game
  • Menu
  • DefaultMainSettings
Directories:
  • BaseLanguageFolder
  • GameLanguageFolder
StartMap:
  • Folder

Make sure none of the attributes have "ptest_" or "_ptest" in their values. Be sure to also modify Variables::GameName, Directories::MainSaveFolder, StartMap::File and StartMap:Tongueos to match your story.

test_mod/config/menu.cfg

Make sure Main::BGScene has a value like "test_mod/main_menu/menu_bg.map". Make sure Main::MenuLogo points to something like "test_mod/graphics/menu_logo.png". Change the values if you choose to change the file names. The rest i'll leave up to you to modify (if you're courageous enough Tongue).

test_mod/config/default_main_settings.cfg

Add ShowPreMenu="false" to the Main element. Change FullScreen to "false", LimitFPS to "false" and VSync to "true".

test_mod/resources.cfg

Prefix the /main_menu, /commentary, /maps and /flashbacks directories with "/test_mod".

Make sure to add the following directories to the list:
  • /test_mod/entities
  • /test_mod/static_objects
  • /test_mod/music
  • /test_mod/sounds
  • /test_mod/graphics
  • /test_mod/textures
  • /test_mod/gui

For any new directories just add them to the list as you go. Don't worry if the directories listed do not exist, as you can create them later.



Maps

test_mod/main_menu/menu_bg.map

This is the map used for the main menu (as you could guess). For the camera, just make sure to have a PlayerStart area with the name "CameraPos". The direction of the camera is towards the -Z of the local coordinates of the area (i.e. the small arrows of the area).

StartMap::File and StartMap::Folder

Obviously, the starting map when the player starts a new game. It should be obvious how to set this up for those who are used to creating custom stories.



System-dependent scripts

Batch file (Windows)

test_mod.bat (can be named differently, but must end with .bat). Needs to be placed in your full conversion's folder.
cd /d ..
Amnesia.exe test_mod/config/main_init.cfg


Bash file (Linux)

test_mod.sh (can be named differently; doesn't need to end with .sh). Needs to be placed in your full conversion's folder.
#!/bin/bash

FCNAME="test_mod"

# 64-bit operating systems
if [ "$(uname -m)" = "x86_64" ]; then
    ../Amnesia.bin64 "$FCNAME/config/main_init.cfg"

# 32-bit operating systems
else
    ../Amnesia.bin "$FCNAME/config/main_init.cfg"
fi


AppleScript (Mac OS)

test_mod.scpt (can be named differently but should end with .scpt). Could probably be placed anywhere; however, i have no idea (i don't own a Mac).
do shell script "open /Applications/Amnesia.app --args test_mod/config/main_init.cfg"



Other things

Everything else i'm going to leave up to you.

Note: If you don't have Steam or a redist folder, simply assume the directory where all the important files and folders of Amnesia are located in.

[attach]3008[/attach]


Attached Files
.zip   test_mod.zip (Size: 25.57 KB / Downloads: 852)

Tutorials: From Noob to Pro
(This post was last modified: 01-20-2013, 03:35 AM by Your Computer.)
11-01-2011, 11:23 PM
Website Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: How to create a fully isolated full conversion

Alternatively.

11-02-2011, 12:06 AM
Website Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#3
RE: How to create a fully isolated full conversion

For those that own a Mac and the game for the Mac OS and have it installed, could you test this out with the AppleScript code provided?

Nevermind, it seems to work.

Tutorials: From Noob to Pro
(This post was last modified: 12-18-2011, 10:48 PM by Your Computer.)
11-02-2011, 08:55 PM
Website Find
jssjr90 Offline
Member

Posts: 169
Threads: 39
Joined: Jun 2011
Reputation: 0
#4
RE: How to create a fully isolated full conversion

Ok I did every single thing correctly in the tutorial that you presented. I started up the batch file and everything seemed to go ok. I got the launch window with no errors. When I start the game though, it gives me "Something went wrong!!! error"

This happens when I launch the custom story game it self.

Also the Exception Reason is this

"Amnesia.exe caused an EXCEPTION_ACCESS_VIOLATION in module
Amnesia.exe at 0023:005A3D12

Help please!
12-08-2011, 04:06 AM
Find
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#5
RE: How to create a fully isolated full conversion

I would make my mod fully isolatedBig Grin
Great tutorialSmile

I'm reading this with my mobilephone while workingBig Grin
(fixing toyota's exhaust system) ... 1 hour down, 7 to goBig Grin

When Life No Longer Exists
Full-conversion mod
(This post was last modified: 12-08-2011, 08:38 AM by Unearthlybrutal.)
12-08-2011, 08:32 AM
Website Find
7thProductions Offline
Junior Member

Posts: 42
Threads: 17
Joined: Mar 2012
Reputation: 0
#6
RE: How to create a fully isolated full conversion

it won't let me save the main_init.cfg file when I edit it, just tells me that I have it open in another program, which I don't... :/
04-03-2012, 03:49 PM
Find
Strembitsky Offline
Senior Member

Posts: 254
Threads: 37
Joined: Feb 2012
Reputation: 3
#7
RE: How to create a fully isolated full conversion

I cannot make the folder: config/lang. It says that I am not allowed to put special characters in the name.

EDIT: Or am I stupid and config/lang means put lang inside of config? Yep, probably.

The Nightmares v1.0 - Dreadful Fires WIP
(This post was last modified: 04-07-2012, 10:51 PM by Strembitsky.)
04-07-2012, 10:51 PM
Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#8
RE: How to create a fully isolated full conversion

StartMap::File and StartMap::Folder

Obviously, the starting map when the player starts a new game. It should be obvious how to set this up for those who are used to creating custom stories.


what you mean with that ??????


http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 04-14-2012, 06:32 PM by Your Computer.)
04-14-2012, 02:44 PM
Website Find
plutomaniac Offline
Super Moderator

Posts: 6,368
Threads: 45
Joined: May 2011
Reputation: 183
#9
RE: How to create a fully isolated full conversion

Hi Your Computer,

I would like to change EtD from FCM to an IFC as your guide says. However, I have already started working on the mod. Do you think that can be done easily in some way? At first I though I could open every map with the LevelEditor, select every object etc... and point to the new location. But then I thought that maybe that could be done by changing the map configuration files(open with a text editor, find and replace). What do you think I should do?
(This post was last modified: 06-04-2012, 08:24 PM by plutomaniac.)
06-04-2012, 08:23 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#10
RE: How to create a fully isolated full conversion

(06-04-2012, 08:23 PM)plutomaniac Wrote: Hi Your Computer,

I would like to change EtD from FCM to an IFC as your guide says. However, I have already started working on the mod. Do you think that can be done easily in some way? At first I though I could open every map with the LevelEditor, select every object etc... and point to the new location. But then I thought that maybe that could be done by changing the map configuration files. What do you think I should do?
I changed Killings in Alstadt from a FCM to a IFC and it worked great Smile I must say it was a bit tricky but I got it working flawlessly in the end Smile

06-04-2012, 08:25 PM
Find




Users browsing this thread: 2 Guest(s)