Difference between revisions of "HPL3/Amnesia: Rebirth/Modding/Setup Modding Environment"
(Rewrote some bits to be multi-platform rather than Windows focused.) |
|||
Line 1: | Line 1: | ||
{{shortPageTitle}} | {{shortPageTitle}} | ||
− | In order to have a smooth modding development experience, Amnesia: Rebirth | + | In order to have a smooth modding development experience, Amnesia: Rebirth should be configured to run in a proper development environment. |
− | == Setting up Custom Story Dev Mode == | + | ==Setting up Custom Story Dev Mode== |
− | During development, it is | + | During development, it is extremely helpful to have access to the development options and [[HPL3/Amnesia:_Rebirth/Modding/Developer_Debug_Menu|debug mode]] of the game. To achieve that, you need to start the game with a few extra arguments. It is suggested that you set up a script file for your mod so you can more quickly launch it in development mode. |
− | #In the main folder of the game, create a | + | |
− | #Paste the following text into the file and save, | + | #In the main folder of the game, create a script file with a recognizable name for your mod development. For example: <code>myMod_dev.bat</code> (.sh for Mac/Linux) |
+ | #Paste the following text into the file and save, changing <code>MyModName</code> so it fits your mod <u>folder name</u>. | ||
<pre>AmnesiaRebirth.exe -user Dev -cfg config/main_init_dev.cfg -mod local:MyModName</pre> | <pre>AmnesiaRebirth.exe -user Dev -cfg config/main_init_dev.cfg -mod local:MyModName</pre> | ||
− | You can now launch the | + | '''Non-Windows users''': Substitute <code>AmnesiaRebirth.exe</code> with your platform's executable, for example: <code>./Amnesia2.bin.x86_64</code> |
+ | |||
+ | You can now launch the script file throughout the development of your mod. | ||
− | == Setting up the Editors == | + | ==Setting up the Editors== |
Your mod might have custom assets. In order to make the editors (Level Editor, Model Editor, etc) to load your mod's assets, it needs to be configured into a special mode called "WIP Mod". | Your mod might have custom assets. In order to make the editors (Level Editor, Model Editor, etc) to load your mod's assets, it needs to be configured into a special mode called "WIP Mod". | ||
{{tip|Even if your mod doesn't have any custom assets, it's a good practice to configure the Level Editor anyway, just so you won't have to deal with it in the future should you decide to add custom assets.}} | {{tip|Even if your mod doesn't have any custom assets, it's a good practice to configure the Level Editor anyway, just so you won't have to deal with it in the future should you decide to add custom assets.}} | ||
− | === WIP Mod - Manual Configuration === | + | ===WIP Mod - Manual Configuration=== |
+ | |||
#Navigate to <code>My Documents/HPL3</code>. You need to open one of the editors at least once in order to see the HPL3 folder inside your document folder. | #Navigate to <code>My Documents/HPL3</code>. You need to open one of the editors at least once in order to see the HPL3 folder inside your document folder. | ||
#Inside that folder, create a file called <code>WIPMod.cfg</code>. | #Inside that folder, create a file called <code>WIPMod.cfg</code>. | ||
Line 22: | Line 26: | ||
(Of course, you will have to change the path in order to suit your own location of the mod). | (Of course, you will have to change the path in order to suit your own location of the mod). | ||
− | === Final Step === | + | ===Final Step=== |
If your mod indeed has custom assets, you need to make sure the editors can add them to their look up list. | If your mod indeed has custom assets, you need to make sure the editors can add them to their look up list. | ||
+ | |||
#In your mod's folder, create a new folder and name it <code>editor</code>. | #In your mod's folder, create a new folder and name it <code>editor</code>. | ||
#Inside that folder, create a file called <code>lookupdirs.cfg</code>. | #Inside that folder, create a file called <code>lookupdirs.cfg</code>. |
Revision as of 03:58, 10 November 2020
In order to have a smooth modding development experience, Amnesia: Rebirth should be configured to run in a proper development environment.
Contents
Setting up Custom Story Dev Mode
During development, it is extremely helpful to have access to the development options and debug mode of the game. To achieve that, you need to start the game with a few extra arguments. It is suggested that you set up a script file for your mod so you can more quickly launch it in development mode.
- In the main folder of the game, create a script file with a recognizable name for your mod development. For example:
myMod_dev.bat
(.sh for Mac/Linux) - Paste the following text into the file and save, changing
MyModName
so it fits your mod folder name.
AmnesiaRebirth.exe -user Dev -cfg config/main_init_dev.cfg -mod local:MyModName
Non-Windows users: Substitute AmnesiaRebirth.exe
with your platform's executable, for example: ./Amnesia2.bin.x86_64
You can now launch the script file throughout the development of your mod.
Setting up the Editors
Your mod might have custom assets. In order to make the editors (Level Editor, Model Editor, etc) to load your mod's assets, it needs to be configured into a special mode called "WIP Mod".
WIP Mod - Manual Configuration
- Navigate to
My Documents/HPL3
. You need to open one of the editors at least once in order to see the HPL3 folder inside your document folder. - Inside that folder, create a file called
WIPMod.cfg
. - Paste the following into the file, and save:
<WIPmod Path="Full_Path_To_Mod/entry.hpc" />
(Of course, you will have to change the path in order to suit your own location of the mod).
Final Step
If your mod indeed has custom assets, you need to make sure the editors can add them to their look up list.
- In your mod's folder, create a new folder and name it
editor
. - Inside that folder, create a file called
lookupdirs.cfg
. - Create a new
<Directories>
xml tag inside the file. - Add a list of directories which include your custom assets. The directory has to be associated with a category. The allowed categories are:
StaticObjects
Entities
Billboards
Particles
Sounds
Example file:
<Directories>
<Dir Category="StaticObjects" Path="assets/static_objects" />
<Dir Category="Entities" Path="assets/entities" />
<Dir Category="Billboards" Path="assets/billboards" />
<Dir Category="Particles" Path="assets/particles" />
<Dir Category="Sounds" Path="assets/sounds" />
</Directories>
If all the above is done correctly, a (Working on mod)
text should appear on the title bar of HPL3 editors when run.