Underrail Forum

Underrail => General => Topic started by: Styg on March 18, 2013, 04:36:52 pm

Title: Will the game ever be available for Mac/Linux?
Post by: Styg on March 18, 2013, 04:36:52 pm
Here's a quick word about possible portability of Underrail because I get asked this a lot.

The reason why Underrail is Windows only is because it's built using C# and .NET, and based on Microsoft's XNA technology.

Now, because Microsoft has since decided to discontinue their XNA development I will also be moving away from it in the development of future games.

One of the possible alternatives is Monogame (http://www.monogame.net/), which as I understand is a cross-platform implementation of XNA based on Mono (the cross-platform .NET implementation). So if I decide to try out this technology in some future development I will test it out by trying to port Underrail to it.

So it's possible that as some point we will see Underrail on Linux and Mac, but that certainly won't be anytime soon and neither can I make any concrete promises regarding that.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: cdoublejj on October 02, 2013, 09:28:25 am
I really do hope you move away from it, it's garbage. i feel like the only thing MS is good for these days is windows 7. I really don't care for DX, XNA or GFWL i'm tired of seeing developers get sucked in to it. maybe its easy to use or something but, it's so constricting because once you build product using it you can't move to another platform with out totally re doing every thing, or at least it seems that way from a non coder.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Elhazzared on October 02, 2013, 10:59:02 am
M$ is really a problem for the industry rather than helping it improve as it once has been many years ago.

The problem with windows is being a more closed platform with each new release. This is why steam is making their own based linux OS. They are tired of windows really.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: cdoublejj on October 03, 2013, 09:35:53 am
It's a walled garden, easy to use dev tool but, only for windows, http://www.youtube.com/watch?v=PhWKRtiIVbk

I really have to ask, why start with a custom engine when there is are already pre build cross platform engines out there, like FIFE?

http://www.fifengine.net/

http://www.fifengine.net/media.html

don't get me wrong if Mono can work, all the better but, why reinvent the wheel?
Title: Re: Will the game ever be available for Mac/Linux?
Post by: cplr on October 27, 2013, 05:52:06 am
So, I got the Underrail demo working just fine under Wine. I used Wineskin, and Wine v 1.7.4 with the following winetricks:
corefonts
msxml3
dotnet40
xna40
dirac
vcrun2008
directmusic
dsound
wmp10
wsh57
allcodecs
xvid
vcrun6

I can provide the wineskin app for mac users.
 
Now that I got the demo up and running I'll probably buy it :).
Title: Re: Will the game ever be available for Mac/Linux?
Post by: cplr on October 27, 2013, 05:58:50 am
System Shock 2 uses Wineskin to distribute the OS X version on steam, so this is a potential way to distribute the game to Mac users, FYI.

edit: I zipped up two different Wineskin apps - one with the demo pre-installed and one without. Currently uploading, I'll provide links when that's done...

OK.. first one is done. This is just an empty Wineskin app bundle with all the necessary winetricks. "Show Package Contents" and open the Wineskin.app there. Use the Install Software button to install your copy. https://dl.dropboxusercontent.com/u/5044101/Underrail%20%28Empty%29.zip

Here's a version with the demo pre-installed, to see if it works for you: https://dl.dropboxusercontent.com/u/5044101/Underrail%20Demo.zip
Title: Re: Will the game ever be available for Mac/Linux?
Post by: cplr on October 29, 2013, 10:35:09 pm
Yeah, that is just a copy of my winetricks log, which definitely could contain a few extraneous items not entirely needed. It would crash on .ogg playback without wmp10 and allcodecs.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Styg on October 30, 2013, 10:07:28 am
Hmm. No idea why I said ogg earlier, but I meant wma. :-X

The music files are WMA 9.2.

They will be .ogg in the next version though.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Jabberwok on July 14, 2014, 09:30:54 am
System Shock 2 uses Wineskin to distribute the OS X version on steam, so this is a potential way to distribute the game to Mac users, FYI.

edit: I zipped up two different Wineskin apps - one with the demo pre-installed and one without. Currently uploading, I'll provide links when that's done...

OK.. first one is done. This is just an empty Wineskin app bundle with all the necessary winetricks. "Show Package Contents" and open the Wineskin.app there. Use the Install Software button to install your copy. https://dl.dropboxusercontent.com/u/5044101/Underrail%20%28Empty%29.zip

Here's a version with the demo pre-installed, to see if it works for you: https://dl.dropboxusercontent.com/u/5044101/Underrail%20Demo.zip

I downloaded the one with the demo pre-installed, and I'm happy to say that it works, but there is this weird stuttering echo with all of the sound effects (but not the music). No idea why, any ideas? It's hard to be more specific. [I'm on a Macbook Pro, OS 10.8.5.]
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Diggfinger on April 02, 2015, 02:32:16 pm
So, I got the Underrail demo working just fine under Wine. I used Wineskin, and Wine v 1.7.4 with the following winetricks:
corefonts
msxml3
dotnet40
xna40
dirac
vcrun2008
directmusic
dsound
wmp10
wsh57
allcodecs
xvid
vcrun6

I can provide the wineskin app for mac users.
 
Now that I got the demo up and running I'll probably buy it :).

Perfect! Thanks a lot for the info! Wine always works wonders...

My second question would be: can I avoid Steam while getting this game? I basically hate steam, so it would be a real deal breaker for me...
If I buy it through Alpha Gate or Gamers Gate, will I get a DRM free version similar to GOG.com?

Thanks!

- Diggfinger
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Greep on April 02, 2015, 02:34:13 pm
Well if you're using C# and .NET, there's always Unity3D :D  It has some... odd quirks when trying to make 2d games, though.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Diggfinger on April 03, 2015, 04:50:58 pm
System Shock 2 uses Wineskin to distribute the OS X version on steam, so this is a potential way to distribute the game to Mac users, FYI.

edit: I zipped up two different Wineskin apps - one with the demo pre-installed and one without. Currently uploading, I'll provide links when that's done...

OK.. first one is done. This is just an empty Wineskin app bundle with all the necessary winetricks. "Show Package Contents" and open the Wineskin.app there. Use the Install Software button to install your copy. https://dl.dropboxusercontent.com/u/5044101/Underrail%20%28Empty%29.zip

Here's a version with the demo pre-installed, to see if it works for you: https://dl.dropboxusercontent.com/u/5044101/Underrail%20Demo.zip

Thanks a lot!
The Alpha Demo didn't work for me when I made my own 1.7.4 Wine. The game kept giving me a critical error while installing.

However, with your "empty" wrapper I managed to get Alpha Demo to work.
Only thing is that sound effects echoes a lot, which is annoying. Did you experience the same issue? Music is fine but for instance when I open a locker it sorta resonates.
(Same as Jabberwork).

Thanks again ;0)

- Digg

Anyway, what a cool game!
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Diggfinger on January 06, 2016, 08:49:01 am
According to WineHQ the game works perfectly in Wine (except cutscenes and auto-save at transition).

https://appdb.winehq.org/objectManager.php?sClass=version&iId=33049

Any experiences?
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Diggfinger on January 06, 2016, 11:52:38 am
So, I got the Underrail demo working just fine under Wine. I used Wineskin, and Wine v 1.7.4 with the following winetricks:
corefonts
msxml3
dotnet40
xna40
dirac
vcrun2008
directmusic
dsound
wmp10
wsh57
allcodecs
xvid
vcrun6

I can provide the wineskin app for mac users.
 
Now that I got the demo up and running I'll probably buy it :).

I managed to get the full version working with your empty wrapper! Thank you so much!!!! !

However, the sound still stutters. I can fix it by turning off the master volume, but that removes all other sound effect as well :-/

Did you encounter this issue as well?

- Digg
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Cala on January 07, 2016, 05:23:00 pm
Hey guys,

I really really want to play this game but I run a Mac, and I'm really really clueless about how wine works.  This looks so complicated!  I'm not really a gamer, or technical, so most of the posts don't make much sense...winetricks?  I managed to get the demo running just by downloading the preloaded one from cplr (thanks!).  For the layman, is there a way to get the full version going?  I don't have steam or anything like that either and would prefer to not get one if possible.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Diggfinger on January 07, 2016, 07:48:02 pm
Hey guys,

I really really want to play this game but I run a Mac, and I'm really really clueless about how wine works.  This looks so complicated!  I'm not really a gamer, or technical, so most of the posts don't make much sense...winetricks?  I managed to get the demo running just by downloading the preloaded one from cplr (thanks!).  For the layman, is there a way to get the full version going?  I don't have steam or anything like that either and would prefer to not get one if possible.

Yeah, as I said above the empty wrapper from CPLR also works for the full version (from GOG.com). It has all the "Winetricks" installed needed. If you dont know how to use Wineskin Wrappers just do a quick Google search.

However, I keep having sound issues. The game is playable but it would be cool to get a solution to that...
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Cala on January 08, 2016, 01:49:15 am
Thank you! I will give it a try. That's too bad about the sound, though. 
Title: Re: Will the game ever be available for Mac/Linux?
Post by: ShadowRun on January 18, 2016, 04:16:21 am
There is another recent report of getting the game working on Linux here on UnderRail forum (http://underrail.com/forums/index.php?topic=1889.msg10590#msg10590) and with a more detailed post on the GOG forum (https://www.gog.com/forum/underrail/working_solution_for_running_under_linux_mint_with_playonlinux_and_gog_version) (looks like the same author).
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Cala on March 20, 2016, 11:28:36 am
So I've got that wineskin wrapper working, and aside from the sound issues, I'm also getting a lot of lag.  Not every click but about 1 out of 5 takes time to process, if I set a character walking, it'll freeze and then they'll be halfway there. Pretty annoying when you're trying to stealth about!  Anyone else have this issue or suggestions?  My MacBook has plenty of space and memory and I don't run a ton of other things, if anything.  Still on 10.9.5 though, I can't see that being an issue as this game is not brand new.   Sorry I'm pretty new to this stuff!
Title: Re: Will the game ever be available for Mac/Linux?
Post by: NoSFeRaTU on September 05, 2016, 04:01:45 pm
Styg, please consider to port the game from xna to fna (https://fna-xna.github.io/). There are not much work required for this, but it will allow to provide binaries for linux/macos.

Currently I'm playing the game through wine without any issues. But it is a bit tricky to setup so I doubt many can do it properly.

Title: Re: Will the game ever be available for Mac/Linux?
Post by: cunningandvalor on September 09, 2016, 06:25:45 pm
Nos, would you be willing to provide a step-by-step wine tutorial for this game? As you're aware, myself and several other players have been begging for Styg and his team to port to Mac/Linux for forever (there are tons of solutions, it's not that hard and most of us are willing to give them money to do it, to no avail) and it's still super unlikely we will ever see it happen. I've offered to pay for someone to just figure out how to make the wineskin work properly and put it up for download or write a detailed tutorial. I backed this game way back in the Desura days and have only played it for maybe an hour or two here and there on my girlfriend's laptop. Hook us up and I'll be happy to Paypal you some cash.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: cunningandvalor on September 10, 2016, 08:16:38 pm
@epeli, I sincerely hope you're right and I still have hope, it's just been so long. The little time I spent with the game was amazing, but I've been feeling lately like it's just never going to happen. I'm willing to pay for it, so there must be other people that want to pay for it, so according to Adam Smith the invisible hand of the market should just make it exist haha. :)
Title: Re: Will the game ever be available for Mac/Linux?
Post by: NoSFeRaTU on September 10, 2016, 10:07:07 pm
Nos, would you be willing to provide a step-by-step wine tutorial for this game? As you're aware, myself and several other players have been begging for Styg and his team to port to Mac/Linux for forever (there are tons of solutions, it's not that hard and most of us are willing to give them money to do it, to no avail) and it's still super unlikely we will ever see it happen. I've offered to pay for someone to just figure out how to make the wineskin work properly and put it up for download or write a detailed tutorial. I backed this game way back in the Desura days and have only played it for maybe an hour or two here and there on my girlfriend's laptop. Hook us up and I'll be happy to Paypal you some cash.
This step-by-step guide is for Gentoo with Xorg and GOG version of underrail.
So commands related to package installing will be different for your destribution.
If you doesn't using X.Org X Server, than separate xsession trick is obviously unavailable to you.

0) you need wine with 32bit support, on gentoo you can install it like this:
echo "app-emulation/wine abi_x86_32" > /etc/portage/package.use/wine
emerge -av wine


On another distribution you must find required steps yourself.

1) We will be using separated wineprefix for this game, so we are making directory for wineprefix and setup environment. In this example wineprefix path is in /home/nosferatu/.wineprefix/underrail, you can choose anything you like instead:
mkdir /home/nosferatu/.wineprefix
export WINEPREFIX="/home/nosferatu/.wineprefix/underrail"
export WINEARCH=win32


2) init this wineprefix:
wine wineboot

3) install dependencies, for simplicity we will be using winetricks script:
wget http://winetricks.org/winetricks -O /tmp/winetricks
chmod +x /tmp/winetricks
/tmp/winetricks corefonts
/tmp/winetricks tahoma
/tmp/winetricks dotnet40
/tmp/winetricks xna40


4) install the game (in this example is GOG version installer of 1.0.1.10):
wine setup_underrail_2.8.0.12.exe

GOG installer can complain at the end of the installation about already installed dotnet and various runtime errors. Just ignore them and after all are finished just exit the installer.

5) configuring wine:
winecfg

On the Graphics page:
 a) Check "Automatically capture the mouse in full-screen windows"
 b) If you want to play the game in window then also check "Emulate a virtual desktop and desired resolution". In the game settings keep fullscreen checkbox enabled.

6) create startup file:
 a) If you want to play in windowed mode (or if your window manager plays nice with fullscreen applications):
Code: [Select]
#!/bin/bash

GAMEPREFIX="/home/nosferatu/.wineprefix/underrail"
GAMEPATH="GOG Games/UnderRail"

cd "${GAMEPREFIX}/drive_c/${GAMEPATH}"
WINEPREFIX="${GAMEPREFIX}" WINEARCH=win32 wine "c:/${GAMEPATH}/underrail.exe"

 b) If you want to play in fullscreen mode with separated xsession:

Code: [Select]
#!/bin/bash

GAMEPREFIX="/home/nosferatu/.wineprefix/underrail"
GAMEPATH="GOG Games/UnderRail"

cd "${GAMEPREFIX}/drive_c/${GAMEPATH}"
WINEPREFIX="${GAMEPREFIX}" WINEARCH=win32 xinit wine "c:/${GAMEPATH}/underrail.exe" -- :1

Also make sure your ~/.xinitrc does not prevent you running wine. For example, if there are you are using case switching then you must include wine switch with "wine $@" command.

P.S. If you receive message like "Could not find a Direct3D device that supports the XNA Framework " then most likely you are using graphics drivers without S3TC support. Most open-source drivers like nouveau doesn't include this (patent issues), so you must to install txc_dxtn (32bit version) to resolve this. On gentoo you can do this with:
echo "media-libs/libtxc_dxtn abi_x86_32" > /etc/portage/package.use/libtxc_dxtn
emerge -av libtxc_dxtn

Title: Re: Will the game ever be available for Mac/Linux?
Post by: NoSFeRaTU on September 12, 2016, 11:37:52 am
cunningandvalor, I updated my previous post with step-by-step process of running underrail under wine. I hope it helps. If you have any questions please ask.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: cunningandvalor on September 12, 2016, 05:32:29 pm
@Nos, you are the man. Thanks!
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Jabberwok on October 13, 2016, 08:50:10 am
Can anyone confirm that Nos's method solves the sound stuttering issue on Mac? Don't really have time to test it right now...
Title: Re: Will the game ever be available for Mac/Linux?
Post by: isimonov on January 03, 2017, 10:19:42 pm
OK.. first one is done. This is just an empty Wineskin app bundle with all the necessary winetricks. "Show Package Contents" and open the Wineskin.app there. Use the Install Software button to install your copy. https://dl.dropboxusercontent.com/u/5044101/Underrail%20%28Empty%29.zip

Here's a version with the demo pre-installed, to see if it works for you: https://dl.dropboxusercontent.com/u/5044101/Underrail%20Demo.zip

I like to try this way, but links is dead :( Can sombody bring it to live again? Great thnx!
Title: Re: Will the game ever be available for Mac/Linux?
Post by: lodhankelly on May 24, 2017, 12:26:21 pm
hello. i love this game. but my brother have mac-pro. is there is availiblity of this game on mac-pro ?  :-\
Title: Re: Will the game ever be available for Mac/Linux?
Post by: lettysevy on June 06, 2017, 06:25:47 am
Hello. This game is Awesome. But i too want to know about its availablity on Mac-pro. Thank You
Title: Re: Will the game ever be available for Mac/Linux?
Post by: aratuk on June 15, 2017, 08:05:58 am
Hello. This game is Awesome. But i too want to know about its availablity on Mac-pro. Thank You

I've found that I'm now able to run Underrail on Mac in a Wineskin (http://"https://sourceforge.net/projects/wineskin/") using engine WS9Wine2.6 (the latest available in a Wineskin as of this posting) and only one winetrick: dotnet462. This is a newer engine and newer version of Microsoft .Net than it appears people in this thread were using previously, which might be why it doesn't need additional winetricks and I'm not having problems with the audio. I'm running macOS 10.12.6.

You may need to click "Update Winetricks" for dotnet462 to be available. Also, in the screen options, I did need to check "Use Mac Driver Instead of X11" for the window to have proper borders.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: DMonin on July 27, 2017, 04:00:34 pm
One of the possible alternatives is Monogame (http://www.monogame.net/)
I think the best solution is port Underrail to Unity. But there a lot of work, cause everything should be rewriting. But in other way Unity will bring less problems instead Monogame.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: isimonov on May 22, 2018, 05:35:01 pm
Holla! I got it!

MacOS 10.13.4

Preferences for wineskin:

Wrapper: Wineskin-2.6.2
Engine: WS9Wine2.22
Winetricks: d3dx9, dotnet46 (i have problems with dotnet462), vcrun2017
Screen Options: disable Auto Detect GPU (important for Hight Sierra)

There is no any graphic or sound problems.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Twiglard on July 13, 2018, 07:11:56 am
There's now FNA. See: <https://github.com/FNA-XNA/FNA (https://github.com/FNA-XNA/FNA)>. It may become binary-compatible enough. There's also the SFML library that's already portable. We might not even need Wine at certain point, or just few parts out of Winelib.

Other than that, some of us are lucky enough to have gallium-nine (no need for opengl translation). Then again, even with the translation layer, Underrail is anything but slow.

One of the possible alternatives is Monogame (http://www.monogame.net/)
I think the best solution is port Underrail to Unity. But there a lot of work, cause everything should be rewriting. But in other way Unity will bring less problems instead Monogame.

This doesn't make sense on many levels. You might've said instead "let's make a game similar to Underrail but portable".
Title: Re: Will the game ever be available for Mac/Linux?
Post by: casquerouge on September 09, 2019, 09:52:40 pm
I managed to make the game work with Crossover.

https://i.imgur.com/vVw9U1f.png

I am testing the game right now, anyone would be interested by a step by step guide?
Title: Re: Will the game ever be available for Mac/Linux?
Post by: Arclight on January 30, 2021, 11:48:24 pm
I managed to make the game work with Crossover.

https://i.imgur.com/vVw9U1f.png

I am testing the game right now, anyone would be interested by a step by step guide?
Always. Good to have avenues for others to enjoy this gem.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: dnemes on May 06, 2021, 09:20:03 am
I managed to make the game work with Crossover.

https://i.imgur.com/vVw9U1f.png

I am testing the game right now, anyone would be interested by a step by step guide?

I would be very much interested. Managed so far with Wine, but it would be nice to be able to run it with other apps in the same bottle : hence crossover.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: isimonov on May 07, 2021, 06:26:00 am
I managed to make the game work with Crossover.

https://i.imgur.com/vVw9U1f.png

I am testing the game right now, anyone would be interested by a step by step guide?

Yep! That's what we need.
Title: Re: Will the game ever be available for Mac/Linux?
Post by: alanwatson on October 27, 2021, 06:23:23 am
Thanx  ;)
Title: Re: Will the game ever be available for Mac/Linux?
Post by: johnaaron on November 21, 2022, 10:33:03 am
In case any zoners are still checking this thread:

Underrail still runs flawlessly at all resolutions (even 4k) on my 2017 Intel Macbook Pro using Parallels to emulate Windows 11 (but do not use coherence mode). I didn't do any special setup, just installed Parallels -> Windows 11 -> Steam -> Underrail and it works.

I'm not sure how Apple's M1 chips perform, but I'm pretty sure it's just as good despite the extra x86_64 emulation layer since my gf has Parallels on her M2 Macbook Air and it smokes my machine.

Cheers :)