Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
hpl2:amnesia:devenvguide [2012/11/24 23:15] thegreatcthulhu old revision restored (2011/09/08 15:07) |
hpl2:amnesia:devenvguide [2013/10/08 13:57] ian.thomas LoadDebugMenu -> DebugMenu |
||
---|---|---|---|
Line 6: | Line 6: | ||
- Enter the game normally, create a profile name (e.g. MyName) and then exit. | - Enter the game normally, create a profile name (e.g. MyName) and then exit. | ||
- Enter the save directory ("My Documents/Amnesia/Main" in windows by default; "~/.frictionalgames/Amnesia/Main" in Linux) and rename the user name (e.g. MyName) to "dev_user". | - Enter the save directory ("My Documents/Amnesia/Main" in windows by default; "~/.frictionalgames/Amnesia/Main" in Linux) and rename the user name (e.g. MyName) to "dev_user". | ||
- | - Open main_settings.cfg and set **ShowMenu="false"**, **ShowPreMenu="false"**, **ExitMenuDirectly="true"**, **LoadDebugMenu="true"** (also setting **SaveConfig="false"** should be good). | + | - Open main_settings.cfg and set **ShowMenu="false"**, **ShowPreMenu="false"**, **ExitMenuDirectly="true"**, **DebugMenu="true"** (also setting **SaveConfig="false"** should be good). |
- If Amnesia is 1.0.1 or above, you must set **ForceCacheLoadingAndSkipSaving="false"** main_settings.cfg, or else map changes will not show! | - If Amnesia is 1.0.1 or above, you must set **ForceCacheLoadingAndSkipSaving="false"** main_settings.cfg, or else map changes will not show! | ||
- Open user_settings.cfg (in "dev_user" folder), inside the **Debug** element add **AllowQuickSave="true"** (F4=save, F5=load) and change **ScriptDebugOn="true"**. | - Open user_settings.cfg (in "dev_user" folder), inside the **Debug** element add **AllowQuickSave="true"** (F4=save, F5=load) and change **ScriptDebugOn="true"**. | ||
Line 13: | Line 13: | ||
- In order to avoid running into "File index out of bounds" errors when designing your custom story in the level editor, edit the file **resources.cfg** located in the root the directory of Amnesia (i.e. where Amnesia is installed) and add the ''custom_stories'' directory to the list. | - In order to avoid running into "File index out of bounds" errors when designing your custom story in the level editor, edit the file **resources.cfg** located in the root the directory of Amnesia (i.e. where Amnesia is installed) and add the ''custom_stories'' directory to the list. | ||
- | Now you can simply run Amnesia and the map will be loaded directly without any menu. You can now press **F1** to open a debug menu to turn on/off various things and more importantly quick reload the map. This is probably the most important thing to do when editing. When changed a script or added entities to a map, do NOT restart the game, instead simply press "Quick reload". If a mesh or texture has been updated, you need to press "Reload". | + | Now you can simply run Amnesia and the map will be loaded directly without any menu. You can now press **F1** to open a **debug menu** to turn on/off various things and more importantly quick reload the map. This is probably the most important thing to do when editing. When changed a script or added entities to a map, do NOT restart the game, instead simply press "Quick reload". If a mesh or texture has been updated, you need to press "Reload". |
By setting **ScriptDebugOn="true"** you have set the script function ScriptDebugOn() to return true. This is extremly important as you can add in your startup code something like: | By setting **ScriptDebugOn="true"** you have set the script function ScriptDebugOn() to return true. This is extremly important as you can add in your startup code something like: |