Frictional Games Forum (read-only)
Mod crashes while starting up the bat.file! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Mod crashes while starting up the bat.file! (/thread-25257.html)



Mod crashes while starting up the bat.file! - Radical Batz - 05-10-2014

So when I start up my mod by double clicking on the bat.file it keeps getting an error saying "Could not load main init file: Lifeless_The Abandon/config/main_init.cfg" Now I don't know why this is happening. This is my main_init file if you wanna take a look at it and help me out.

Code:
<ConfigFiles
    Resources = "Lifeless_The Abandon/config/resources.cfg"
    Materials = "materials.cfg"
    
    Game = "Lifeless_The Abandon/config/game.cfg"
    Menu = "Lifeless_The Abandon/config/menu.cfg"
    PreMenu = "Lifeless_The Abandon/config/pre_menu.cfg"
    Demo = "config/demo.cfg"
    
    DefaultMainSettings = "config/default_main_settings.cfg"

    DefaultMainSettingsLow = "launcher/default_main_settings_low.cfg"
    DefaultMainSettingsMedium = "launcher/default_main_settings_medium.cfg"
    DefaultMainSettingsHigh = "launcher/default_main_settings_high.cfg"


    DefaultUserSettings = "config/default_user_settings.cfg"
    DefaultUserKeys        = "config/default_user_keys.cfg"
    
    DefaultBaseLanguage = "base_english.lang"
    DefaultGameLanguage = "english.lang"
/>

<Directories  
    MainSaveFolder = "Lifeless_The Abandon"
    
    BaseLanguageFolder = "Lifeless_The Abandon/config/"        
    GameLanguageFolder = "Lifeless_The Abandon/config/lang_main/"
    
    CustomStoryPath = "custom_stories"
/>

<Variables
    GameName = "Amnesia - Lifeless_The Abandon -"
/>

<StartMap
    File = "01_Lifeless_The Abandon.map"
    Folder = "Lifeless_The Abandon/maps/"
    Pos = "PlayerStartArea_1"
/>

Yeah, I don't see exactly what's the problem, since it's my first time working with a mod.


RE: Mod crashes while starting up the bat.file! - Neelke - 05-10-2014

From what I can see, you got all your files together in one folder like in The Trapdoor when I first downloaded it (didnt work first). Try naming it like yourmod_resources, yourmod_menu etc. Check other conversion mods to see how they do it.


RE: Mod crashes while starting up the bat.file! - Mudbill - 05-10-2014

If it's named "Lifeless The Abandon," why do you only have an underscore for one of the spaces? You should use that for both. Personally, I'd name it "lifeless_the_abandon" or something short like "lta" or so. The folder name is not gonna be the name of the story for the player, only on the technical side. Therefore you should NEVER use spaces in these names, because the internal engine can confuse that as different operations.

You can see that the folder "static_objects" has an underscore instead of being named "Static Objects" which may be prettier for someone looking through the files, but will cause problems in running the program.