Author Topic: Linux: game not starting - missing assembly  (Read 4827 times)

Cpt. Charisma

  • Guest
Linux: game not starting - missing assembly
« on: April 07, 2009, 02:05:51 PM »
and I thought noone coded in assembly any more ;)

mono -V
Mono JIT compiler version 1.9.1 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
   TLS:           __thread
   GC:            Included Boehm (with typed GC)
   SIGSEGV:       altstack
   Notifications: epoll
   Architecture:  x86
   Disabled:      none



./run-dyson

** (./Dyson.exe:17985): WARNING **: The following assembly referenced from /home/luke/games/dyson120-linux/Dyson.exe could not be loaded:
     Assembly:   System.Windows.Forms    (assemblyref_index=7)
     Version:    2.0.0.0
     Public Key: b77a5c561934e089
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/luke/games/dyson120-linux/).


** (./Dyson.exe:17985): WARNING **: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.

** (./Dyson.exe:17985): WARNING **: Missing method get_PrimaryScreen in assembly /home/luke/games/dyson120-linux/Dyson.exe, type System.Windows.Forms.Screen

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
  at Dyson.Game.Main () [0x00000]

Cpt. Charisma

  • Guest
Re: Linux: game not starting - missing assembly
« Reply #1 on: April 07, 2009, 02:50:14 PM »
Ok, so under Ubuntu 8.10, installing 'mono' is not enough.  I was able to install some other mono related packages and get it working.

I think this is the important one:
libmono-winforms2.0-cil

I also installed these for good measure:
libmono-system-runtime2.0-cil
libmono-i18n2.0-cil

The previous version worked just fine for me, so I guess some dependencies got added.

Alex

  • Administrator
  • Ent
  • *****
  • Thank You
  • -Given: 3
  • -Receive: 14
  • Posts: 1,035
Re: Linux: game not starting - missing assembly
« Reply #2 on: April 07, 2009, 09:47:29 PM »
I've no idea man, I don't think I added anything that would cause this :(
Ah this is possibly the window movement thing, I centre the window and stuff when the game starts.

Thanks for the heads up!
« Last Edit: April 07, 2009, 09:49:06 PM by Alex »

middlerun

  • Guest
Re: Linux: game not starting - missing assembly
« Reply #3 on: April 10, 2009, 10:26:08 AM »
I was getting the same deal, and those packages seem to have fixed it. But the game still won't start, now I get this:

Quote
./run-dyson

Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: src
  at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:PtrToStructure (intptr,System.Type)
  at SdlDotNet.Graphics.Surface.get_SurfaceStruct () [0x00000]
  at SdlDotNet.Graphics.Surface.get_Width () [0x00000]
  at Wuwei.Drawing.GLSurface.set_Mode2D (Boolean value) [0x00000]
  at Dyson.Game.Go () [0x00000]
  at Dyson.Game.Main () [0x00000]