This is a fork of the Amnesia the Dark Descent repository from Frictional Games. Currently mainly working on improving the engine tools.
make
and cmake
installed./dependencies/precompiled/lib/linux/lib64/fix_symlinks.sh
to fix broken symlinks from the .zip filebuild
folder and open a terminal in itcmake -S ../amnesia/src/
- this is called an out-of-source build, which basically means that CMake won't pollute the source code with its files. When there's an issue caused by CMake, you can empty this directory and rerun CMake../build
run make
(or use make -jX
to speed things up, where X is the number of jobs; e.g. make -j4
)../output
.To run the compiled binary, copy it to your Amnesia installation folder.
For example copy the Amnesia.bin.x86_64
to your game folder.
A faster way to test stuff is to copy the game directory to ./output
and run the binaries from there.
Other notes:
You will need to delete CMakeCache.txt
(or all ./build
contents) and add --toolchain XCompileToWindows.toolchain
to
the CMake command, e.g. cmake -S ../amnesia/src/ --toolchain XCompileToWindows.toolchain
.
Then use make
as usual.
Note: VS .sln
files are not actively maintained, you should try compiling on Windows with CMake.
The game is built from two separate solutions: The engine solution named HPL2_2010
and the main game solution named Lux
.
The project also includes all the different editors and additional tools, such as the Level Editor and the Model Editor.
In order to build the game, you will first need to compile and build the HPL2 Engine.
Requirements:
HPL2/
folder and extract dependencies.zip
._HPL2_2010.sln
with Visual Studio 2010.Debug
to Release
.Build -> Build _HPL2_2010
. There won't be any errors, but some warning messages will appear.HPL2/lib
amnesia/src/game
and open Lux.sln
.Debug
to Release
.Build -> Build Lux
. There won't be any errors, but some warning messages will appear.amnesia/redist
.Copy Amnesia.exe
into your Amnesia game folder and launch it. The main menu should appear normally with no errors.
TODO
"When I compile Lux
, I get an error message "fatal error RC1015: cannot open include file 'afxres.h'"."
You need to install the Microsoft Foundation Classes for C++
. If it still doesn't work, change afxres.h
to windows.h
. It should compile then.
"When I compile the level editor, I get error message about vc70 not found."
Try turning the Pre-Link Event off. Go to Project Properties -> Build Events -> Pre-Link Event
, set Use In Build
to No
and build again.