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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cant launch my mod
Demonbrant Offline
Junior Member

Posts: 19
Threads: 3
Joined: Nov 2016
Reputation: 0
#45
RE: Cant launch my mod

(11-10-2016, 10:55 PM)Mudbill Wrote: Let me explain to you how the resources.cfg file works.

The game uses it to load different files within the game. When something asks for a "file.ext" the game starts looking through the directories listed in the resources file. It starts at the top (and with AddSubDirs set to true, any folders inside each folder) and stops when it finds a "file.ext". If there are 2 files with the same name, it will stop after finding the first one.

Because of this it's important that you add your mod's directory to the top of the resources file in case the player has files already with the same names. But you don't need to add more than 1 entry, which is your mod's folder, then set AddSubDirs to true. That will make the game scan your entire mod before moving on to the default assets.

The file starts in the same directory as Amnesia.exe. Keep this in mind when adding directories.
This is your file currently:

Spoiler below!
PHP Code: (Select All)
<Resources>
  <
Directory Path="/billboards" AddSubDirs="true"/>
  <
Directory Path="/Desperation" AddSubDirs="true"/>
  <
Directory Path="/Desperation_entities" AddSubDirs="true"/>
  <
Directory Path="/flashbacks" AddSubDirs="true"/>
  <
Directory Path="/fonts" AddSubDirs="true"/>
  <
Directory Path="/graphics" AddSubDirs="true"/>
  <
Directory Path="/gui" AddSubDirs="true"/>
  <
Directory Path="/lights" AddSubDirs="true"/>
  <
Directory Path="/main_menu" AddSubDirs="true"/>
  <
Directory Path="/maps" AddSubDirs="true"/>
  <
Directory Path="/models" AddSubDirs="true"/>
  <
Directory Path="/music" AddSubDirs="true"/>
  <
Directory Path="/particles" AddSubDirs="true"/>
  <
Directory Path="/shaders" AddSubDirs="true"/>
  <
Directory Path="/sounds" AddSubDirs="true"/>
  <
Directory Path="/static_objects" AddSubDirs="true"/>
  <
Directory Path="/_temp" AddSubDirs="true"/>
  <
Directory Path="/textures" AddSubDirs="true"/>
  <
Directory Path="/viewer" AddSubDirs="true"/>
</
Resources


You seem to have ordered it alphabetically? No need to do that. Just add your mod at the top. Also, unless you left me out of something, then there is no "Desperation_entities" in the root folder for Amnesia (which is where the resources start). You have this folder inside your "Desperation" folder, so either you'd need to fix that path, or better yet, remove this line, since it's already included in the line above.



Next up, your main_init crashes because you left out defining the PreMenu entry. Add that back.

PHP Code: (Select All)
PreMenu "Desperation/config/pre_menu.cfg" 



Your menu fails to load because you defined it in menu.cfg as
PHP Code: (Select All)
BGScene "mod_menu.map" 
But your file within "Desperation/main_menu/Desperation_main_menu" is called menu_bg.map. Also that extra directory is redundant.



I noticed you left out the default entities folder from your resources. Do NOT remove any entries from the resources unless you know what you're doing. Only ADD your directory. That's all you need to do in that file, otherwise leave it alone. I replaced your resources with the original and added your mod. It looks like this now:

Spoiler below!
PHP Code: (Select All)
<Resources>
  <
Directory Path="/Desperation" AddSubDirs="true" />

  <
Directory Path="/_temp" AddSubDirs="true" />
  <
Directory Path="/fonts" AddSubDirs="false" />
  <
Directory Path="/maps" AddSubDirs="true" />
  <
Directory Path="/textures" AddSubDirs="true" />
  <
Directory Path="/models" AddSubDirs="true" />
  <
Directory Path="/gui" AddSubDirs="true" />
  <
Directory Path="/static_objects" AddSubDirs="true" />
  <
Directory Path="/sounds" AddSubDirs="true" />
  <
Directory Path="/main_menu" AddSubDirs="true" />
  <
Directory Path="/shaders" AddSubDirs="true" />
  <
Directory Path="/lights" AddSubDirs="true" />
  <
Directory Path="/billboards" AddSubDirs="true" />
  <
Directory Path="/entities" AddSubDirs="true" />
  <
Directory Path="/graphics" AddSubDirs="true" />
  <
Directory Path="/viewer" AddSubDirs="true" />
  <
Directory Path="/particles" AddSubDirs="true" />
  <
Directory Path="/models" AddSubDirs="true" />
  <
Directory Path="/music" AddSubDirs="true" />
  <
Directory Path="/flashbacks" AddSubDirs="true" />
  <
Directory Path="/textures" AddSubDirs="true" />    
  <
Directory Path="/misc" AddSubDirs="true" />
  <
Directory Path="/commentary" AddSubDirs="true" />
  <
Directory Path="/custom_stories" AddSubDirs="true" />
</
Resources




Something in your menu is still crashing. Not sure what.



You forgot a slash at the end of your maps directory definition, so when it looks for maps, it looks for "mapsYourmap.map" instead of "maps/Yourmap.map". Also, in the config you've set "Residence_MyRoom" as the starting map, but your file is "Residential_MyRoom". Pay attention.

Spoiler below!
PHP Code: (Select All)
<StartMap 
    File 
"Residential_MyRoom.map" 
    
Folder "maps/" 
    
Pos "PlayerStartArea_1" 
/> 




Your map fails to load assets, specifically the textures for the planes. It looks like the pointers refer to files inside both White Night and Necrologue. Do you have those installed? Did you use files from there that aren't included in your mod? After I added Necrologue to the resources, things seemed fine, but this shouldn't be required to do if you include all the files you use.

This is from one of the lines noting the material used for one of the planes inside your .map file:
C:/Program Files (x86)/Steam/SteamApps/common/Amnesia The Dark Descent/Necrologue_eng/static_objects/nec_static_objects/other_static_objects/penumbra0_textures/wall_wallpaper01.mat



So there you go. Lots of things to correct. Better get fixin'.

Ok im still getting some errors this is the hpl.log file:

Version 1.31

-------- THE HPL ENGINE LOG ------------
Creating Engine Modules
--------------------------------------------------------
Creating graphics module
Creating system module
Creating resource module
Creating input module
Creating sound module
Creating physics module
Creating ai module
Creating gui module
Creating generate module
Creating haptic module
Creating scene module
--------------------------------------------------------

Initializing Resources Module
--------------------------------------------------------
Creating loader handlers
Creating resource managers
Adding loaders to handlers
--------------------------------------------------------

Initializing Graphics Module
--------------------------------------------------------
Init lowlevel graphics: 1280x720 disp:0 bpp:32 fs:0 ms:0 gpufmt:2 cap:'Desperation Loading...' pos:(-1x-1)
Setting video mode: 1280 x 720 - 32 bpp
Init Glew...OK
Setting up OpenGL
Vendor: NVIDIA Corporation
Renderer: GeForce GTX 550 Ti/PCIe/SSE2
Version: 4.5.0 NVIDIA 373.06
Max texture image units: 32
Max texture coord units: 8
Max user clip planes: 8
Two sided stencil: 1
Vertex Buffer Object: 1
Anisotropic filtering: 1
Max Anisotropic degree: 16
Multisampling: 1
Texture compression: 1
Texture compression S3TC: 1
Auto generate MipMaps: 1
Render to texture: 1
Max draw buffers: 8
Max color render targets: 8
Packed depth-stencil: 1
Texture float: 1
GLSL Version: 4.50 NVIDIA
ShaderModel 2: 1
ShaderModel 3: 1
ShaderModel 4: 1
OGL ATIFragmentShader: 0
Setting up G-Bugger: type: 0 texturenum: 3
Adding engine materials
Initializing DevIL
Vendor String: Abysmal Software
Version String: Developer's Image Library (DevIL) 1.7.8
Version Number: 178
Adding engine post effects
--------------------------------------------------------

Initializing Sound Module
--------------------------------------------------------
Initializing OpenAL
Available OpenAL devices:
0. Generic Software on Speakers (Logitech G930 Headset)(OpenAL default)
1. Generic Software on Realtek Digital Output (Realtek High Definition Audio)
2. Generic Software on Speakers (Realtek High Definition Audio)
Trying to open device 'Generic Software on Speakers (Logitech G930 Headset)'... Success!
Number of mono sources: 32
Streaming setup: 4 Buffers x 262144 bytes each
--------------------------------------------------------

Initializing Game Module
--------------------------------------------------------
Adding engine updates
Initializing script functions
--------------------------------------------------------

User Initialization
--------------------------------------------------------
WARNING: Could not find language file entry 'InvertGamepadLook'
WARNING: Could not find language file entry 'InvertGamepadLookTip'
WARNING: Could not find language file entry 'GamepadLookSensitivity'
WARNING: Could not find language file entry 'GamepadLookSensitivityTip'
WARNING: Could not find language file entry 'Lean'
-------- Loading map 'menu_bg.map' ---------
ERROR: Could not open binary file 'C:/Program Files (x86)/Steam/SteamApps/common/Amnesia The Dark Descent/Desperation/main_menu/menu_bg.map_cache'
ERROR: Could not map cache file 'C:/Program Files (x86)/Steam/SteamApps/common/Amnesia The Dark Descent/Desperation/main_menu/menu_bg.map'.ERROR: Couldn't find 0-face '../../../../../../_pos_x', for cubemap '../../../../../../' in path: '../../../../../../'
MeshEntity Loading: 351 ms
Primitive Loading: 71 ms
Decal Loading: 17 ms
Object Combining: 0 ms
Compilation: 2 ms
Combining: 186 ms
Sorting: 178 ms
Meshes: 7 ms
Bodies: 1 ms
Static Objects: 628 ms
11-11-2016, 01:52 AM
Find


Messages In This Thread
Cant launch my mod - by Nocturnal - 07-13-2016, 02:53 AM
RE: Cant launch my mod - by Mudbill - 07-13-2016, 03:44 AM
RE: Cant launch my mod - by Nocturnal - 07-13-2016, 05:48 AM
RE: Cant launch my mod - by Romulator - 07-13-2016, 06:15 AM
RE: Cant launch my mod - by Nocturnal - 07-13-2016, 06:43 AM
RE: Cant launch my mod - by Romulator - 07-13-2016, 08:03 AM
RE: Cant launch my mod - by Nocturnal - 07-14-2016, 03:55 AM
RE: Cant launch my mod - by Romulator - 07-14-2016, 04:33 AM
RE: Cant launch my mod - by Nocturnal - 07-14-2016, 04:42 AM
RE: Cant launch my mod - by Mudbill - 07-14-2016, 04:25 PM
RE: Cant launch my mod - by Nocturnal - 07-15-2016, 01:53 AM
RE: Cant launch my mod - by Mudbill - 07-15-2016, 04:15 PM
RE: Cant launch my mod - by Nocturnal - 07-16-2016, 12:39 AM
RE: Cant launch my mod - by Daemian - 07-16-2016, 01:34 AM
RE: Cant launch my mod - by Nocturnal - 07-24-2016, 08:06 AM
RE: Cant launch my mod - by Mudbill - 07-16-2016, 08:34 AM
RE: Cant launch my mod - by Daemian - 07-24-2016, 05:04 PM
RE: Cant launch my mod - by Nocturnal - 07-26-2016, 08:50 PM
RE: Cant launch my mod - by brunoalysson - 07-27-2016, 12:27 AM
RE: Cant launch my mod - by Nocturnal - 07-27-2016, 10:12 PM
RE: Cant launch my mod - by Mudbill - 07-27-2016, 11:16 PM
RE: Cant launch my mod - by Nocturnal - 08-01-2016, 08:43 PM
RE: Cant launch my mod - by Daemian - 08-02-2016, 02:56 AM
RE: Cant launch my mod - by Mudbill - 08-02-2016, 08:52 AM
RE: Cant launch my mod - by Nocturnal - 08-03-2016, 08:24 PM
RE: Cant launch my mod - by Romulator - 08-03-2016, 09:17 PM
RE: Cant launch my mod - by Nocturnal - 08-04-2016, 07:17 PM
RE: Cant launch my mod - by Mudbill - 08-04-2016, 11:30 PM
RE: Cant launch my mod - by Nocturnal - 08-06-2016, 04:34 AM
RE: Cant launch my mod - by Mudbill - 08-06-2016, 04:28 PM
RE: Cant launch my mod - by Nocturnal - 08-08-2016, 01:55 AM
RE: Cant launch my mod - by Romulator - 08-08-2016, 03:04 AM
RE: Cant launch my mod - by Mudbill - 08-08-2016, 09:20 AM
RE: Cant launch my mod - by Nocturnal - 08-09-2016, 12:16 AM
RE: Cant launch my mod - by Nocturnal - 08-21-2016, 01:15 AM
RE: Cant launch my mod - by Mudbill - 08-21-2016, 01:23 PM
RE: Cant launch my mod - by Nocturnal - 08-21-2016, 09:59 PM
RE: Cant launch my mod - by Nocturnal - 10-03-2016, 08:07 PM
RE: Cant launch my mod - by Mudbill - 10-04-2016, 10:19 PM
RE: Cant launch my mod - by Demonbrant - 11-09-2016, 06:46 AM
RE: Cant launch my mod - by Mudbill - 11-09-2016, 08:19 AM
RE: Cant launch my mod - by Demonbrant - 11-10-2016, 04:57 AM
RE: Cant launch my mod - by Mudbill - 11-10-2016, 10:55 PM
RE: Cant launch my mod - by Demonbrant - 11-11-2016, 01:52 AM
RE: Cant launch my mod - by Mudbill - 11-11-2016, 03:40 AM
RE: Cant launch my mod - by Demonbrant - 11-11-2016, 04:34 AM
RE: Cant launch my mod - by Mudbill - 11-11-2016, 09:39 AM
RE: Cant launch my mod - by Demonbrant - 11-12-2016, 11:25 PM
RE: Cant launch my mod - by Mudbill - 11-13-2016, 03:21 AM
RE: Cant launch my mod - by Demonbrant - 11-14-2016, 02:15 AM



Users browsing this thread: 5 Guest(s)