(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:
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.
PreMenu = "Desperation/config/pre_menu.cfg"
Your menu fails to load because you defined it in menu.cfg as 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:
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.
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