[Mono-list] Porting FreeTrain to Mono

Free Gamer freegamerblog at gmail.com
Tue Feb 26 01:49:34 EST 2008

Wow!  Amazing!  I haven't tried it but that's so quick!

I've cc'd the patch to freetrain-devel at lists.sourceforge.net but I
suggest you also join it for further discussion there since so the
rest of the dev team will also be able to see.


 - C

---------- Forwarded message ----------
From: Atsushi Eno <atsushi at ximian.com>
Date: Tue, Feb 26, 2008 at 6:39 AM
Subject: Re: [Mono-list] Porting FreeTrain to Mono
To: Free Gamer <freegamerblog at gmail.com>
Cc: mono-list at lists.ximian.com


 So I've created a patch to make it build with mono (from FreeTrain.sln,
 built with MonoDevelop). Though I
 could not get it run fine on mono due to some SDL_Image_Load()
 behavioral difference that returns null.

 atsushi at linux-tx2c:/svn/FreeTrainSDL/bin/Debug> MONO_IOMAP=all mono
 --debug FreeTrainSDL.exe
 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 SDL.net.Surface..ctor (System.String filename) [0x00052] in
  at FreeTrainSDL.SDLGUI.initGUI (Int32 width, Int32 height, IntPtr pf)
 [0x00067] in /svn/FreeTrainSDL/SDLGUI.cs:61
  at FreeTrainSDL.FreeTrainSDL.Go () [0x0011b] in
  at FreeTrainSDL.FreeTrainSDL.Main () [0x00006] in

 It would be nice if someone who is familiar with Tao/SDL could try it.

 Atsushi Eno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ft-mono-build.patch
Type: text/x-patch
Size: 16885 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20080226/bf906ce6/attachment-0001.bin 

More information about the Mono-list mailing list