#Game crashes during launch

4 messages · Page 1 of 1 (latest)

obtuse mural
#

This is the error message I recieve:

VERSION
0.0.7 | Mac OS X 14.6.1 | Metal | Steam | 2024-07-25 17:39:43Z

ENVIRONMENT
Prod

STORE
Steam

SAVEGAME DIRECTORY
/Users/tjszewczak/Library/Application Support/tobspr Games/shapez 2/savegames

SUPPORTED VERSIONS
1082 ... 1095

System.TypeInitializationException: The type initializer for 'GameAnalyticsSDK.Net.GameAnalytics' threw an exception. ---> System.TypeInitializationException: The type initializer for 'GameAnalyticsSDK.Net.Device.GADevice' threw an exception. ---> System.UnauthorizedAccessException: Access to the path '/Users/tjszewczak/.local/share/GameAnalytics/Unity Root Domain' is denied. ---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory (System.String fullPath) [0x00191] in <8f2b770c4a1b401a99ba9ed80a5c09b9>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0002c] in <8f2b770c4a1b401a99ba9ed80a5c09b9>:0
at GameAnalyticsSDK.Net.Device.GADevice.GetPersistentPath () [0x00053] in <be6648a0c03c485c852f2e41a9bf0f16>:0
at GameAnalyticsSDK.Net.Device.GADevice..cctor () [0x0002c] in <be6648a0c03c485c852f2e41a9bf0f16>:0
--- End of inner exception stack trace ---
at GameAnalyticsSDK.Net.GameAnalytics..cctor () [0x00006] in <be6648a0c03c485c852f2e41a9bf0f16>:0
--- End of inner exception stack trace ---
at GameAnalyticsSDK.Wrapper.GA_Wrapper.configureSdkGameEngineVersion (System.String unitySdkVersion) [0x00000] in <63f6a4c088c045b4bf46f24c2f724ba6>:0
at GameAnalyticsSDK.Wrapper.GA_Wrapper.SetUnitySdkVersion (System.String unitySdkVersion) [0x00000] in <63f6a4c088c045b4bf46f24c2f724ba6>:0
at GameAnalyticsSDK.GameAnalytics.InternalInitialize () [0x00041] in <63f6a4c088c045b4bf46f24c2f724ba6>:0
at GameAnalyticsSDK.GameAnalytics.Initialize () [0x00000] in <63f6a4c088c045b4bf46f24c2f724ba6>:0
at GameAnalyticsWrapper.Init () [0x00052] in <992395b6e51d4eb1b964ed6bed8fbaf9>:0

foggy river
#

Experiencing the exact same issue, unfortunately

#

@obtuse mural, I found a fix from another post for a Windows user and took the recommendation and adapted it for Mac and it seems to have worked.

  1. Open Finder and navigate to ~/Library/Application Support/tobspr Games/shapez 2 and open settings.json.
    1a. If you don't see settings.json you can try to launch the game with the launch option --reset-all-prefs, but I cannot attest to whether or not this would help since I was able to locate the settings file normally.

  2. In settings.json, find setting.general-settings.telemetry and change the value from "1" to "0" and save the change.

  3. If all goes well, your game should now launch correctly like mine did!

Hope this helps!

quick kestrel
#

Could you try disabling the analytics?
You might have to run the game with --reset-all-prefs once to be able to select it again (this resets all your settings)