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


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: 1 Guest(s)