rfht / fnaify

Run FNA/XNA games on OpenBSD - DEPRECATED! Check out the successor: https://github.com/IndieRunner/IndieRunner
https://www.PlayOnBSD.com
ISC License
36 stars 2 forks source link

chasm from GOG #37

Closed rapenne-s closed 4 years ago

rapenne-s commented 4 years ago

I bought chasm on GOG, used innoextract on it and run fnaify and when running run_game.sh I get this error.

This is with latest fnaify.

Started
Arguments [0]
Game Intialize
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'Galaxy.Api.GalaxyInstancePINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: GalaxyCSharpGlue assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Galaxy.Api.GalaxyInstancePINVOKE+SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_GalaxyInstance(Galaxy.Api.GalaxyInstancePINVOKE/SWIGExceptionHelper/ExceptionDelegate,Galaxy.Api.GalaxyInstancePINVOKE/SWIGExceptionHelper/ExceptionDelegate,Galaxy.Api.GalaxyInstancePINVOKE/SWIGExceptionHelper/ExceptionDelegate,Galaxy.Api.GalaxyInstancePINVOKE/SWIGExceptionHelper/ExceptionDelegate,Galaxy.Api.GalaxyInstancePINVOKE/SWIGExceptionHelper/ExceptionDelegate,Galaxy.Api.GalaxyInstancePINVOKE/SWIGExceptionHelper/ExceptionDelegate,Galaxy.Api.GalaxyInstancePINVOKE/SWIGExceptionHelper/ExceptionDelegate,Galaxy.Api.GalaxyInstancePINVOKE/SWIGExceptionHelper/ExceptionDelegate,Galaxy.Api.GalaxyInstancePINVOKE/SWIGExceptionHelper/ExceptionDelegate,Galaxy.Api.GalaxyInstancePINVOKE/SWIGExceptionHelper/ExceptionDelegate,Galaxy.Api.GalaxyInstancePINVOKE/SWIGExceptionHelper/ExceptionDelegate)
  at Galaxy.Api.GalaxyInstancePINVOKE+SWIGExceptionHelper..cctor () [0x000ee] in <a51950d6b84c43bf9511c824fadceb3e>:0 
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at Galaxy.Api.GalaxyInstancePINVOKE..cctor () [0x00000] in <a51950d6b84c43bf9511c824fadceb3e>:0 
   --- End of inner exception stack trace ---
  at Galaxy.Api.InitParams..ctor (System.String _clientID, System.String _clientSecret) [0x00000] in <a51950d6b84c43bf9511c824fadceb3e>:0 
  at Chasm.Platforms.GOG.GogPlatform.Initialize (Microsoft.Xna.Framework.GraphicsDeviceManager graphics) [0x0005b] in <c296f0d771584322ba5b8bd1a101933a>:0 
  at Chasm.ChasmGame.StartupInit () [0x0001f] in <c296f0d771584322ba5b8bd1a101933a>:0 
  at Chasm.ChasmGame.Initialize () [0x00005] in <c296f0d771584322ba5b8bd1a101933a>:0 
  at Microsoft.Xna.Framework.Game.DoInitialize () [0x00039] in <d34726d5aed645fba8d57652c37aa996>:0 
  at Microsoft.Xna.Framework.Game.Run () [0x0000e] in <d34726d5aed645fba8d57652c37aa996>:0 
  at Chasm.Program.Main (System.String[] args) [0x00115] in <c296f0d771584322ba5b8bd1a101933a>:0 
rfht commented 4 years ago

I don't have the GOG version. The Steam version still runs as of 2020-06-20. Could you please check if there may be a flag to disable galaxy?

$ ikdasm Chasm.exe | grep -i "\\-.*galaxy"

and if that doesn't yield anything, maybe check broader and post what's in there:

$ ikdasm Chasm.exe | grep -i "\\-[A-Za-z]"
rapenne-s commented 4 years ago

Nothing with the first command checking for galaxy pattern. Here is the output of the second command

  .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00 24 64 34 63 31 34 33 66 38 2D 65 33 63 36   // ..$d4c143f8-e3c6
                                                                                                  2D 34 33 36 62 2D 62 64 37 61 2D 62 63 30 32 63   // -436b-bd7a-bc02c
// MVID: {C296F0D7-7158-4322-BA5B-8BD1A101933A}
    IL_000a:  ldstr      "audio/bg/magma/ulak-rock-impact2"
    IL_0014:  ldstr      "audio/bg/magma/ulak-rumblerox1"
    IL_01ae:  ldstr      "audio/enemy/catacombs/catakiller-dash-attack"
    IL_01b8:  ldstr      "audio/enemy/catacombs/catakiller-exit-screen"
    IL_01c2:  ldstr      "audio/enemy/catacombs/catakiller-groundbust"
    IL_01cc:  ldstr      "audio/enemy/catacombs/catakiller-projectile-hit"
    IL_01d6:  ldstr      "audio/enemy/catacombs/catakiller-rumble-tell"
    IL_01e0:  ldstr      "audio/enemy/catacombs/catakiller-spit-goop"
    IL_0384:  ldstr      "audio/enemy/gardens/golum-ground-pound"
    IL_038e:  ldstr      "audio/enemy/gardens/golum-head-ground-pound"
    IL_0398:  ldstr      "audio/enemy/gardens/golum-head-impact"
    IL_03a2:  ldstr      "audio/enemy/gardens/golum-head-swoop"
    IL_0de8:  ldstr      "audio/player/fireball-hit"
    IL_1180:  ldstr      "audio/prop/magma/watcher-glow"
    IL_0021:  ldstr      "textures/tiles/cloud-tile"
    IL_00f8:  ldstr      "textures/tiles/cloud-tile"
    IL_012f:  ldstr      "textures/tiles/cloud-tile"
    IL_0072:  ldstr      "textures/tiles/cloud-bump"
    IL_0021:  ldstr      "1 -To TOP"
    IL_002f:  ldstr      "2 -To READY"
    IL_003f:  ldstr      "3 -GOGOGO"
    IL_004f:  ldstr      "4 -To EXIT"
    IL_0342:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x60009fd-1'
    IL_03b1:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x60009fd-1'
    IL_03b8:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x60009fd-1'
    IL_0000:  ldstr      "Basden-Injured"
    IL_003b:  ldstr      "ArenaMgr-Fight"
    IL_0008:  ldtoken    field valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=60' '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001e26-1'
    IL_0021:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6000e51-1'
    IL_0078:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6000e51-1'
    IL_007f:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6000e51-1'
    IL_0160:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6000fea-1'
    IL_01f9:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6000fea-1'
    IL_0200:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6000fea-1'
    IL_0253:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x60011cc-1'
    IL_02b6:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x60011cc-1'
    IL_02bd:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x60011cc-1'
    IL_0050:  ldtoken    field valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=16' '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001373-1'
    IL_0066:  ldtoken    field int64 '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001373-2'
    IL_0021:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001486-1'
    IL_0078:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001486-1'
    IL_007f:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001486-1'
    IL_0019:  ldstr      "Pre-launch Access"
    IL_000a:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x60017b3-1'
    IL_006d:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x60017b3-1'
    IL_0074:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x60017b3-1'
    IL_000a:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x60017bb-1'
    IL_006d:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x60017bb-1'
    IL_0074:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x60017bb-1'
    IL_0060:  ldstr      "sub-area count"
    IL_0015:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001807-1'
    IL_0078:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001807-1'
    IL_007f:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001807-1'
    IL_0014:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001845-1'
    IL_0083:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001845-1'
    IL_008a:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001845-1'
    IL_0014:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001846-1'
    IL_0083:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001846-1'
    IL_008a:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001846-1'
    IL_007d:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001848-1'
    IL_00ec:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001848-1'
    IL_00f3:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001848-1'
    IL_001d:  ldstr      "UI/statarrow-up"
    IL_0028:  ldstr      "UI/stat-triangle"
    IL_0025:  ldstr      "UI/stat-triangle"
    IL_0025:  ldstr      "UI/stat-triangle"
    IL_003b:  ldstr      "UI/stat-triangle"
    IL_006a:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001ccd-1'
    IL_0103:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001ccd-1'
    IL_010a:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001ccd-1'
    IL_0008:  ldtoken    field valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=6' '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001cfb-1'
    IL_001f:  ldtoken    field valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=6' '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001cfb-2'
    IL_0036:  ldtoken    field valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=6' '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001cfb-3'
    IL_004d:  ldtoken    field valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=12' '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001cfb-4'
    IL_0064:  ldtoken    field valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=6' '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001cfb-5'
    IL_007b:  ldtoken    field valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=6' '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001cfb-6'
    IL_0092:  ldtoken    field valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=6' '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001cfb-7'
      IL_0280:  ldstr      "MMddyy-hhmmss"
    IL_000a:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001d8d-1'
    IL_0079:  stsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001d8d-1'
    IL_0080:  ldsfld     [mscorlib]System.Collections.Generic.Dictionary`2<string,int32> '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'::'$$method0x6001d8d-1'
.class private auto ansi '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'
  .field static assembly valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=60' '$$method0x6001e26-1' at I_00081468
  .field static assembly valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=16' '$$method0x6001373-1' at I_000A1B20
  .field static assembly valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=6' '$$method0x6001cfb-1' at I_000F88C8
  .field static assembly valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=6' '$$method0x6001cfb-2' at I_000F88D0
  .field static assembly valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=6' '$$method0x6001cfb-3' at I_000F88D8
  .field static assembly valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=12' '$$method0x6001cfb-4' at I_000F88E0
  .field static assembly valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=6' '$$method0x6001cfb-5' at I_000F88F0
  .field static assembly valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=6' '$$method0x6001cfb-6' at I_000F88F8
  .field static assembly valuetype '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'/'__StaticArrayInitTypeSize=6' '$$method0x6001cfb-7' at I_000F8900
} // end of class '<PrivateImplementationDetails>{C296F0D7-7158-4322-BA5B-8BD1A101933A}'
rfht commented 4 years ago

@rapenne-s reported this was fixed by using the Linux version from GOG.com.