FreeSO on Linux!

Discussion in 'Announcements' started by RHY3756547, Feb 8, 2016.

  1. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    With some extensive changes to the path resolutions in the game, it now works on Linux! Here are some screenshots of Blade running the game on his Linux Distro:


    [​IMG] [​IMG]

    This isn't without it's problems, as you can see from the terrain view. Currently, the game has a tendancy to randomly crash (and has no music), but otherwise works correctly in lots. There will be more information about running the game like this in the future!

    You need these things for the game to work (ubuntu):
    Code:
    sudo apt-get install mono-complete mono-vbnc libopenal1
    (I have tried MacOS, but it doesn't seem to work correctly at the moment. I need to compile from a Mac, probably)
    Last edited: Feb 8, 2016
  2. Simhrique0990

    Simhrique0990 Active Member

    Cool, there is the possibility of porting it to run on tablet?! Or so will be Linux?
    ultra_herickvvb likes this.
  3. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    Tablet is a whole other problem, specifically how to get the game files onto it... Android will likely be possible.
    pisarz1958 and Simhrique0990 like this.
  4. pisarz1958

    pisarz1958 Administrator Staff Member Moderator

    ^ and touch support, which is a mess in MonoGame/XNA, AFAIK. (I'm not an expert though)
    ultra_herickvvb likes this.
  5. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    Hello from ubuntu! Running nice and smooth over here.
    [​IMG]
    The playtest lot was running at a cool 60 fps, 1080p. Would have taken a screenshot, but my Live USB nuked itself immediately.
    zc456, pisarz1958 and AquilaSim like this.
  6. zc456

    zc456 Well-Known Member

    Booya! Sims finally comes to Linux.
    LetsRaceBwoi likes this.
  7. francot514

    francot514 Well-Known Member

    The most important is how do you get install TSO client into linux..
    You will need different build for running on linux?? Which ubuntu versions supported??
  8. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    Same build seems to work fine. There are a few issues with graphics drivers. The game will be downloaded with a custom installer.

    upload_2016-2-9_21-38-10.png
    IDE works but I get this on creating the TREE editor.
  9. francot514

    francot514 Well-Known Member

    What do you mean custom installer, used for which files???
  10. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    For downloading and installing TSO from the FTP, cross platform so it works on linux too. Will also install FreeSO + OpenAL.
  11. camjam1995

    camjam1995 Member

    Windows Tablets are a piece of cake. The problem is touch input.
  12. francot514

    francot514 Well-Known Member

    This means FreeSO will install all game files when you create this installer??
  13. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    Yes, still retrieved from the EA FTP though.
  14. Linuxer

    Linuxer New Member

    Which version are you running? I tried to download dist-251.zip and run mono FSO.debug.exe but it complains that C:\Program Files\Maxis\The Sims Online\TSOClient\/tuning.dat isn't a valid path. That is certainly true on Linux. How can I tell the client where to fine my equivalent to the C:-drive?

    Here the output:
    Code:
    ~/TheSimsOnline/drive_c/Program Files/FreeSO$ mono FSO.Debug.exe
    Unhandled Exception:
    System.Exception: Tuning.cs: Invalid path: C:\Program Files\Maxis\The Sims Online\TSOClient\/tuning.dat
      at FSO.Files.Tuning..ctor (System.String Path) [0x00000] in <filename unknown>:0
      at FSO.Content.Content..ctor (System.String basePath, Microsoft.Xna.Framework.Graphics.GraphicsDevice device) [0x00000] in <filename unknown>:0
      at FSO.Content.Content.Init (System.String basepath, Microsoft.Xna.Framework.Graphics.GraphicsDevice device) [0x00000] in <filename unknown>:0
      at FSO.Debug.Form1..ctor () [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) FSO.Debug.Form1:.ctor ()
      at FSO.Debug.Program.Main () [0x00000] in <filename unknown>:0
    [ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: Tuning.cs: Invalid path: C:\Program Files\Maxis\The Sims Online\TSOClient\/tuning.dat
      at FSO.Files.Tuning..ctor (System.String Path) [0x00000] in <filename unknown>:0
      at FSO.Content.Content..ctor (System.String basePath, Microsoft.Xna.Framework.Graphics.GraphicsDevice device) [0x00000] in <filename unknown>:0
      at FSO.Content.Content.Init (System.String basepath, Microsoft.Xna.Framework.Graphics.GraphicsDevice device) [0x00000] in <filename unknown>:0
      at FSO.Debug.Form1..ctor () [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) FSO.Debug.Form1:.ctor ()
      at FSO.Debug.Program.Main () [0x00000] in <filename unknown>:0
  15. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    It should be looking in the "game/" relative folder, if your mono is correctly identifying as linux. Are yoi running through some sort of hybrid environment?
  16. Linuxer

    Linuxer New Member

    I'm just running mono from the Ubuntu/ElementaryOS-repositories. I installed The Sims Online using the EA-installer (running in wine), unzipped the current FreeSO-build to TSOClient and started to run FreeSO.exe and FSO.Debug.exe in wine mono (Sorry. I got that wrong. I was running the Installer in wine but the actual FreeSO-Binaries in Linux-Mono). The latter complains about not being able to access C:\-paths, the other one complains about some input issues (or something like that).
    Last edited: Mar 11, 2016
  17. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    You shouldn't be running the game in Wine - it expects registry information. The linux support works by just running "mono FreeSO.exe" in terminal in the game folder, with your TSOClient folder in friends being relative to the executable in "game/". This is going to be cleaned up in a while.
  18. Linuxer

    Linuxer New Member

    Oops. I explained that wrong. I ran the game directly in Mono and only the EA-Installer was ran in wine:

    Code:
    ~/TheSimsOnline/drive_c/Program Files/Maxis/The Sims Online/TSOClient$ mono FSO.Debug.exe
    Unhandled Exception:
    System.Exception: Tuning.cs: Invalid path: C:\Program Files\Maxis\The Sims Online\TSOClient\/tuning.dat
      at FSO.Files.Tuning..ctor (System.String Path) [0x00000] in <filename unknown>:0
      at FSO.Content.Content..ctor (System.String basePath, Microsoft.Xna.Framework.Graphics.GraphicsDevice device) [0x00000] in <filename unknown>:0
      at FSO.Content.Content.Init (System.String basepath, Microsoft.Xna.Framework.Graphics.GraphicsDevice device) [0x00000] in <filename unknown>:0
      at FSO.Debug.Form1..ctor () [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) FSO.Debug.Form1:.ctor ()
      at FSO.Debug.Program.Main () [0x00000] in <filename unknown>:0
    [ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: Tuning.cs: Invalid path: C:\Program Files\Maxis\The Sims Online\TSOClient\/tuning.dat
      at FSO.Files.Tuning..ctor (System.String Path) [0x00000] in <filename unknown>:0
      at FSO.Content.Content..ctor (System.String basePath, Microsoft.Xna.Framework.Graphics.GraphicsDevice device) [0x00000] in <filename unknown>:0
      at FSO.Content.Content.Init (System.String basepath, Microsoft.Xna.Framework.Graphics.GraphicsDevice device) [0x00000] in <filename unknown>:0
      at FSO.Debug.Form1..ctor () [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) FSO.Debug.Form1:.ctor ()
      at FSO.Debug.Program.Main () [0x00000] in <filename unknown>:0
    
    ~/TheSimsOnline/drive_c/Program Files/Maxis/The Sims Online/TSOClient$ mono FSO.IDE.exe
    [ERROR] FATAL UNHANDLED EXCEPTION: System.EntryPointNotFoundException: RegisterRawInputDevices
      at (wrapper managed-to-native) SharpDX.RawInput.RawInputFunctions:RegisterRawInputDevices_ (void*,int,int)
      at SharpDX.RawInput.RawInputFunctions.RegisterRawInputDevices (SharpDX.RawInput.RawInputDevice[] rawInputDevicesRef, Int32 uiNumDevices, Int32 cbSize) [0x00000] in <filename unknown>:0
      at SharpDX.RawInput.Device.RegisterDevice (UsagePage usagePage, UsageId usageId, DeviceFlags flags, IntPtr target, RegisterDeviceOptions options) [0x00000] in <filename unknown>:0
      at SharpDX.RawInput.Device.RegisterDevice (UsagePage usagePage, UsageId usageId, DeviceFlags flags) [0x00000] in <filename unknown>:0
      at MonoGame.Framework.WinFormsGameWindow..ctor (MonoGame.Framework.WinFormsGamePlatform platform) [0x00000] in <filename unknown>:0
      at MonoGame.Framework.WinFormsGamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00000] in <filename unknown>:0
      at Microsoft.Xna.Framework.GamePlatform.Create (Microsoft.Xna.Framework.Game game) [0x00000] in <filename unknown>:0
      at Microsoft.Xna.Framework.Game..ctor () [0x00000] in <filename unknown>:0
      at FSO.Common.Rendering.Framework.Game..ctor () [0x00000] in <filename unknown>:0
      at FSO.Client.TSOGame..ctor () [0x00000] in <filename unknown>:0
      at FSO.Client.GameStartProxy.Start (Boolean useDX) [0x00000] in <filename unknown>:0
      at FSO.IDE.VolcanicStartProxy.Start () [0x00000] in <filename unknown>:0
      at FSO.IDE.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
    
    ~/TheSimsOnline/drive_c/Program Files/Maxis/The Sims Online/TSOClient$ mono
    FreeSO.exe
    [ERROR] FATAL UNHANDLED EXCEPTION: System.EntryPointNotFoundException: RegisterRawInputDevices
      at (wrapper managed-to-native) SharpDX.RawInput.RawInputFunctions:RegisterRawInputDevices_ (void*,int,int)
      at SharpDX.RawInput.RawInputFunctions.RegisterRawInputDevices (SharpDX.RawInput.RawInputDevice[] rawInputDevicesRef, Int32 uiNumDevices, Int32 cbSize) [0x00000] in <filename unknown>:0
      at SharpDX.RawInput.Device.RegisterDevice (UsagePage usagePage, UsageId usageId, DeviceFlags flags, IntPtr target, RegisterDeviceOptions options) [0x00000] in <filename unknown>:0
      at SharpDX.RawInput.Device.RegisterDevice (UsagePage usagePage, UsageId usageId, DeviceFlags flags) [0x00000] in <filename unknown>:0
      at MonoGame.Framework.WinFormsGameWindow..ctor (MonoGame.Framework.WinFormsGamePlatform platform) [0x00000] in <filename unknown>:0
      at MonoGame.Framework.WinFormsGamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00000] in <filename unknown>:0
      at Microsoft.Xna.Framework.GamePlatform.Create (Microsoft.Xna.Framework.Game game) [0x00000] in <filename unknown>:0
      at Microsoft.Xna.Framework.Game..ctor () [0x00000] in <filename unknown>:0
      at FSO.Common.Rendering.Framework.Game..ctor () [0x00000] in <filename unknown>:0
      at FSO.Client.TSOGame..ctor () [0x00000] in <filename unknown>:0
      at FSO.Client.GameStartProxy.Start (Boolean useDX) [0x00000] in <filename unknown>:0
      at FSO.Client.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
    
    FSO.Debug.exe → System.Exception: Tuning.cs: Invalid path: C:\Program Files\Maxis\The Sims Online\TSOClient\/tuning.dat
    FreeSO.exe / FSO.IDE.exe → System.EntryPointNotFoundException: RegisterRawInputDevices
  19. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    I have no idea why it's running like it's on linux. Only the windows game locator falls back to that directory...
  20. Linuxer

    Linuxer New Member

    Maybe I put those files in the wrong directory? I extracted the .zip to The Sims Online\TSOClient\ and ran the Mono binaries from there. Was that right?

    Furthermore, I don't understand the exception "System.EntryPointNotFoundException: RegisterRawInputDevices"

Share This Page