The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Critical bug breaking FC mods on Mac (+fix)
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#1
Not Solved Critical bug breaking FC mods on Mac (+fix)

Edit: This has been fixed and the game now prompts a warning and continues rather than crashing.


I've discovered a critical bug on the Mac version of Amnesia which prevents the launch of existing full conversion mods. This occurs on both Steam and retail from what I have tested.

This bug has been around for a while (possibly since 1.3), but I only just went to test and find the cause. And the cause is... *drumroll*

The SDL2 configs. Specifically the:
  • default_main_settings_sdl2.cfg
  • default_user_keys_sdl2.cfg

It looks like these files are used for controller support? They were added in 1.3 I believe, as they weren't present before.

Now, the files themselves aren't the issue; the absence of them IS. Pretty much every single mod out there does NOT include these files. They also do NOT include these lines from "main_init.cfg":

DefaultMainSettingsSDL2 = "config/default_main_settings_sdl2.cfg"
DefaultUserKeysSDL2    = "config/default_user_keys_sdl2.cfg"

Because of this, the config file fails to load. These two lines must be included, even if they just point to the default ones in /config. This is also not required on Windows which is probably why it slipped your attention. For whatever reason they must be included on Mac.
Could you perhaps push out an update to add the default ones if the lines are absent OR do it like it's done on Windows (if it differs)?

This is a pretty big deal for any Mac user wanting to play mods.

Here's a temp fix to play mods

Go to the mod's config folder. Find main_init.cfg and open it with TextEdit. Add the two lines above under the ConfigFiles tag. Here's an example:

Spoiler below!
PHP Code: (Select All)
<ConfigFiles 
    Resources 
"mods/example/config/resources.cfg" 
    
Materials "mods/example/config/materials.cfg" 
    
    
Game "mods/example/config/game.cfg" 
    
Menu "mods/example/config/menu.cfg"
    
PreMenu "mods/example/config/pre_menu.cfg"
    
Demo "config/demo.cfg"
    
    
DefaultMainSettings "mods/example/config/default_main_settings.cfg"
    
DefaultMainSettingsSDL2 "config/default_main_settings_sdl2.cfg" //Add this line

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

    
DefaultUserSettings "mods/example/config/default_user_settings.cfg"
    
DefaultUserKeys        "config/default_user_keys.cfg"
    
DefaultUserKeysSDL2    "config/default_user_keys_sdl2.cfg" //Add this line
    
    
DefaultBaseLanguage "base_english.lang"
    
DefaultGameLanguage "english.lang"
/> 


Edit:
It seems this might be required on Windows after all. I've had different results so I'm not sure.

(This post was last modified: 01-25-2018, 09:16 PM by Mudbill.)
04-07-2016, 12:51 AM
Find


Messages In This Thread
Critical bug breaking FC mods on Mac (+fix) - by Mudbill - 04-07-2016, 12:51 AM



Users browsing this thread: 1 Guest(s)