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
#41
RE: Cant launch my mod

(10-04-2016, 10:19 PM)Mudbill Wrote: I'm still having this issue:

[Image: 6d8bdeef45074c358235c77c8aa3db08.png]

If you compress your mod into 1 zip file before uploading it to Google Drive, perhaps it'll work better.
Also, why do you have a folder named desperation_entities and one named nec_entities? Your naming conversion is a bit off, and the resources.cfg don't seem to include the nec_entities folder.

Also, the biggest issue I see is that your resources.cfg file is in your mod's root folder whereas your main_init.cfg in /config specifies that the resources file is supposed to be in your config folder. That's why it fails to load.

This is my other account i had to made, i got the right specifications, but now the hpl.log just shows this:


-------- 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
--------------------------------------------------------
Failed parsing of XML document in line 1, column 1:
11-09-2016, 06:46 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#42
RE: Cant launch my mod

I'm going to need more than that to go on. As we found out, your mod is incorrectly configured, so that is likely why it fails to load. Most importantly you need to make sure your main_init.cfg and resources.cfg files are in order.

11-09-2016, 08:19 AM
Find
Demonbrant Offline
Junior Member

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

(11-09-2016, 08:19 AM)Mudbill Wrote: I'm going to need more than that to go on. As we found out, your mod is incorrectly configured, so that is likely why it fails to load. Most importantly you need to make sure your main_init.cfg and resources.cfg files are in order.

ok here is a download link: https://drive.google.com/open?id=0Bxnkkv...lo2TzVOOTQ

If you cant figure this out, i dont know what to say.
11-10-2016, 04:57 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#44
RE: Cant launch my mod

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'.

(This post was last modified: 11-10-2016, 11:57 PM by Mudbill.)
11-10-2016, 10:55 PM
Find
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
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#46
RE: Cant launch my mod

Like I said, there are some errors in your menu map that I wasn't able to tell exactly what were, so I just set the menu map to be default while testing. I suggest you open that map and look around for what might be the issue (possibly missing assets). If not, just recreate it. It looked like a simple edit of the default map?

11-11-2016, 03:40 AM
Find
Demonbrant Offline
Junior Member

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

(11-11-2016, 03:40 AM)Mudbill Wrote: Like I said, there are some errors in your menu map that I wasn't able to tell exactly what were, so I just set the menu map to be default while testing. I suggest you open that map and look around for what might be the issue (possibly missing assets). If not, just recreate it. It looked like a simple edit of the default map?

Yeah, it is just temporary, but i think i might just use the default. I will see if this helps, thank you.

EDIT: Looks like that worked, might have been that i deleted the cache file for the main menu, so it just crashed?
(This post was last modified: 11-11-2016, 04:36 AM by Demonbrant.)
11-11-2016, 04:34 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#48
RE: Cant launch my mod

The cache shouldn't be an issue, but something is. You could experiment or just leave it at that.

11-11-2016, 09:39 AM
Find
Demonbrant Offline
Junior Member

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

(11-11-2016, 09:39 AM)Mudbill Wrote: The cache shouldn't be an issue, but something is. You could experiment or just leave it at that.

Yeah, i believe it was the cache file, because as soon as i added it, it was able to launch. Thank you so much, i will be pretty much just asking about scripting from now on. I would like to know how to remove the sanity mechanic. If you could tell me how that would be great Smile
11-12-2016, 11:25 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#50
RE: Cant launch my mod

Look around in the game.cfg file and change the values for Player_Sanity. Alternatively you can use the script SetSanityDrainDisabled(true);

11-13-2016, 03:21 AM
Find




Users browsing this thread: 2 Guest(s)