francot514 / FreeSims

Open source engine used for The Sims
Other
232 stars 14 forks source link

Can't seem to build or run with Mono in Linux #11

Open ghost opened 4 years ago

ghost commented 4 years ago

Trying to get running in Manjaro, Monodevelop doesn't have a clue what to do with any of your project files, keeps looking for MS libraries. Mono itself doesn't like running the exe and there doesn't seem to be a Linux executable in the release archive. Any chance you could point me in the right direction?

francot514 commented 4 years ago

You need to install Mono develop and Monogame libraries

ghost commented 4 years ago

You need to install Mono develop and Monogame libraries

I made 100% sure this was installed, trying to run the game using mono gets me Unhandled Exception: System.TypeLoadException: Could not load type of field 'FSO.Client.GameStartProxy:Game' (0) due to: Could not load file or assembly 'MonoGame.Framework, Version=3.4.0.459, Culture=neutral, PublicKeyToken=null' or one of its dependencies. [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type of field 'FSO.Client.GameStartProxy:Game' (0) due to: Could not load file or assembly 'MonoGame.Framework, Version=3.4.0.459, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

And trying to load any of the projects in monodevelop gives me The type initializer for 'MonoDevelop.Projects.MSBuild.MSBuildEvaluationContext' threw an exception.

francot514 commented 4 years ago

You getting Monogame version issues, seems you need to use 3.4 for it suppose and Open gl also needed (soft_openal)

coreybruce commented 3 years ago

OS: Manjaro Arm64, Manjaro x64 Same issue, I am using Mono 6.12.0.107, openal, opengl and SDL2. Anything else we need?

Build/setup instruction need to be documented on the Readme

Unhandled Exception:
System.TypeLoadException: Could not load type of field 'FSO.Client.GameStartProxy:Game' (0) due to: Could not load file or assembly 'MonoGame.Framework, Version=3.4.0.459, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type of field 'FSO.Client.GameStartProxy:Game' (0) due to: Could not load file or assembly 'MonoGame.Framework, Version=3.4.0.459, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
coreybruce commented 3 years ago

Any progress on fixing this?

francot514 commented 3 years ago

Is asking to build with Monogame 3.4, try that version

coreybruce commented 3 years ago

Everyone has moved on to newer versions of mono like 6.12 and no longer available unless I download and build it manually, 3.4 came out back in 2015 so maybe you should update it to support 6.12 and newer and not a static version as it result in old code running into complications. I've got other projects using mono 6.12 just fine in Linux.