Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity 4 Linux Games!

Discussion in 'Developer Preview Archive' started by SevenBits, Aug 23, 2012.

  1. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    Although I don't have the 4.0 beta, I would love to see how good Unity's Linux export is. For this reason, I will try out Unity games that have been released for Linux in this thread. Just zip it up and I'll give it a go on a spare Linux computer I've got.

    If any bugs are found, I'll post them here. My distro of choice, by the way, is Linux Mint 13 Cinnamon, though I will try other distros if I can to test compatibility.

    Looking forward to seeing some great projects!

    EDIT: For this thread that all those OMGUbuntu people are coming from, look here:

    http://www.omgubuntu.co.uk/2012/08/2-unity-for-linux-games-made-available-for-demo
     
    Last edited: Aug 29, 2012
  2. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    I guess the first candidate is Angry Bots... ;)
     
  3. Nanity

    Nanity

    Joined:
    Jul 6, 2012
    Posts:
    148
    Count me in as well! I'll make my Ubuntu kernel spin round n' round :D
     
  4. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    Hey, if anybody's got a native Linux (not native client) Angry Bots build, then I guess that'll be the first game we'll try!

    Great! The more the merrier. Just tell me what your distro is so I can keep track for troubleshooting reasons.
     
  5. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    Bump. Is anyone interested?
     
  6. vivi90

    vivi90

    Joined:
    Jul 28, 2010
    Posts:
    78
    And the first candidate is AngryBots. ;)
    Can't test it myself , so hopefully it works
    AngryBots.zip(EDIT: Sorry, too much traffic on my dropbox, an article on a linux website naively links to a dropbox, really? check some mirrors by other users on page 2 :))
     
    Last edited: Aug 29, 2012
  7. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    Great! I'll give it a try.
     
  8. Nanity

    Nanity

    Joined:
    Jul 6, 2012
    Posts:
    148
    Ubuntu Version 12.04 (precise) (32-Bit)
    Kernel Linux 3.2.0-29-generic-pae
    GNOME 3.4.2

    Unzipped, double click, runs with AAA graphics :D

    Controls: The character keeps walking to the top left corner without any input as if the "W" and "A" buttons were pressed constantly. Could be partically compensated by pressing in the opposing direction, so I was able to continue through the scene.

    Touchscreen: Working without any bugs (didn't expect that, really)

    Fullscreen: No maximize option on the window frame as usual, only close and minimize.

    Unity user interface (not the game): No icon in the left navigation bar, looks a bit boring with the default questionmark...

    Sidenotes: compiz crashed once, not sure if this was caused by AngryBots. Required 40% of my CPU and 104 MiB of my 3,9 GiB RAM. Guess this is ok.

    All in all a very good result for a 4.0 beta. Considering the incorrect move axis input it was a decent gaming experience but great success concerning linux support ;)
     
    Last edited: Aug 26, 2012
  9. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    @Nanity: Okay, I'm to try it and see if I get similar results in Linux Mint. It's based on Ubuntu, but they do things differently, so who really knows?
     
  10. Nanity

    Nanity

    Joined:
    Jul 6, 2012
    Posts:
    148
    @SevenBitsNinja: I use a very uncommon hardware combination, so there's a realistic chance you get a proper input. If Mint isn't using the unity interface (I feared the day I have to specify engine and interface each time I use it btw), you may be able to maximize as well...
     
  11. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    SevenBitsNinja!? I never knew that I was a ninja... I thought my mad karate skills were a result of my being bitten by a radioactive Kung-fu master. My life is forever altered now...

    Okay, more seriously, I use the standard Linux Mint distribution. Although I do have a customized Linux distro (my own for in-house use), it is not suitable for gaming and so therefore I will expect good performance. Will play and post ASAP.

    As for specifying desktop, etc, I prefer to say "I use Linux Mint" instead of "I use GNU/Linux with the MATE desktop, GTK+ widget toolkit, X11 windowing system, GRUB 2, etc." Saying the operating system you use usually gives people a good impression of your default software.
     
  12. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    One thing I do with new Unity versions is load in an old Asteroids clone I made as a test, to see what breaks (if anything). With Unity 4 I had to change a bunch of GameObject.active stuff, otherwise it seemed to upgrade without issues. So here's a Linux build.

    --Eric
     
  13. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    Okay, so on the queue is AngryBots and then Unitroids. I'll get right to it!
     
  14. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    Okay, here are the results. First, AngryBots:

    No issues whatsoever. In fact, the game looked better than on Windows. The sound was vivider, and the colors brighter and more intense. There were no performance issues, the application window was open in less than a second, game instants later. Control was 100% mine; no issues like "pressed keys" or anything. Overall a 5/5!

    And for the Asteroids clone... as soon as I figured out how to actually play the game, everything worked out well. Like AngryBots, there were no performance or control issues, and startup time was nearly instant. Overall a 5/5!

    However, there were issues with the integration. None of the applications had icons in Linux Mint; just the default executable icon. There were also no window icons in the taskbar. Also, no quality or control customization screen (although, I don't know if that was left out by settings in the Project Dialog). Overall, desktop integration is 2/5... :(

    A very good start so far, however. Let's see Unity reach to yet another platform!

    Also, UT - please consider putting those games in the repositories so that normal Linux users can download the software in a traditional Linux way.
     
  15. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    I had indeed neglected to add the icon in the player settings. So I did that, and re-uploaded; you might want to see if that changes anything. The display resolution dialog, however, was enabled, so I assume that's not implemented in Linux yet.

    --Eric
     
  16. Nanity

    Nanity

    Joined:
    Jul 6, 2012
    Posts:
    148
    Uhh forgot about the control customization, wasn't present for me either. Were you able to maximize / fullscreen btw?

    +1 Otherwise we have an abnormal high security leak in linux scales
     
  17. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    Alright, I'll try it again.
     
  18. imgxx

    imgxx

    Joined:
    Aug 6, 2012
    Posts:
    1
    Last edited: Aug 28, 2012
  19. closethipster

    closethipster

    Joined:
    Aug 28, 2012
    Posts:
    4
    No joy with Fedora 17. I get the following error trying to execute either game:

    error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory
     
  20. Ofen

    Ofen

    Joined:
    Aug 28, 2012
    Posts:
    1
    Ubuntu 12.04
    Unitroids

    Unity (desktop environment) is responding when pressing a keys (alt key for example) while game window is active

    Edit: when the game is over I can't confirm my name (can only type it)

    Edit2: can somebody reupload Angry Bots to mediafire or somewhere else (dropbox is temporarily disabled)
     
    Last edited: Aug 28, 2012
  21. mentar

    mentar

    Joined:
    Aug 28, 2012
    Posts:
    1
    Was really looking forward to this.
    Same issues as Ofen in 12.04 x86
    If anyone can share the file as a torrent or something would be great!
     
  22. JamesMakesGamesLtd

    JamesMakesGamesLtd

    Joined:
    Aug 22, 2012
    Posts:
    34
    Unitroids crashed my Ubuntu 12.04 as soon as i managed to get the coin in the slot :) Total lockup.
     
  23. Dukat863

    Dukat863

    Joined:
    Aug 28, 2012
    Posts:
    2
    Angry Bots link is broken (Dropbox 509), so i could only test Asteroids.



    Apparently, it tried to maximize, but failed.
    Missing title bar is caused by one of GNOME Shell extensions (this one).
    The application is also missing a name and icon. This could cause the Ubuntu's Unity problems above.

    OS: Fedora 17, 3.5.2-3.fc17.i686
    DE: GNOME Shell, 3.4.2
    CPU: Pentium P6100, 2 GHz
    GPU: Intel HD Graphics (Ironlake)
     
  24. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    I believe both of your issues are related to OpenGL. If you look in the PasteBin you linked to, the game crashes shortly after the graphics are initiated. And apparently Fedora can't even find one of the OpenGL library files ( I'll search for this file to ensure this is the cause).

    Ubuntu seems to be having problems. Funny, because that's the distro UT supports. Post your computer configuration, including video card.

    Fedora as well.
     
  25. Maarten Baert

    Maarten Baert

    Joined:
    Aug 28, 2012
    Posts:
    1
    I registered just to reply to this topic (got here from omgubuntu). I tested both games, both worked perfectly, even with my less-than-ideal drivers (I use the open-source radeon driver, because the proprietary one causes crashes on my computer). Neither games were fullscreen, I assume that's intentional.

    I didn't see any graphical artifacts:


    Distro: Linux Mint 13 - 64-bit (based on ubuntu 12.04)
    Desktop environment: GNOME Classic without effects (it's fast :))
    CPU: Intel Core i5 M 540
    GPU: ATI Mobility Radeon HD 5650

    PS: The game is 32-bit, so those who have a 64-bit machine like me should install the 32-bit libraries to make this work. If you have WINE, they should be installed already, otherwise you have to install the packages from the repositories. I think the right package is ia32-libs-multiarch (for Ubuntu).

    PPS: One of the readers at omgubuntu mirrored Angry Bots, so for those who can't download it (like me), try this link:
    https://dl.dropbox.com/s/p4qm7jo27rl0r1b/AngryBots.zip?dl=1
    If that one fails too, try this torrent:
    Code (csharp):
    1. magnet:?xt=urn:btih:b9814e27be01ffd3498a41d792ff535de33daa2f&dn=AngryBots.zip&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80
    Edit: I just attached an external monitor (1920x1080) and tried Unitroids again, and now it is fullscreen. I disabled the monitor (laptop screen: 1600x900), and it's windowed again. I assume it depends on the resolution or something like that?

    xrandr output:
    Screen 0: minimum 320 x 200, current 1920 x 1980, maximum 8192 x 8192
    LVDS connected 1600x900+160+1080 (normal left inverted right x axis y axis) 0mm x 0mm
    1600x900 60.1*+
    1440x900 59.9
    1280x854 59.9
    1280x800 59.8
    1280x720 59.9
    1152x768 59.8
    1024x768 59.9
    800x600 59.9
    848x480 59.7
    720x480 59.7
    640x480 59.4
    DisplayPort-0 disconnected (normal left inverted right x axis y axis)
    HDMI-0 disconnected (normal left inverted right x axis y axis)
    VGA-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm
    1920x1080 60.0*+
    1600x1200 60.0
    1680x1050 60.0
    1400x1050 60.0
    1280x1024 75.0 60.0
    1440x900 75.0 59.9
    1280x960 60.0
    1152x864 75.0
    1024x768 75.1 70.1 60.0
    832x624 74.6
    800x600 72.2 75.0 60.3 56.2
    640x480 72.8 75.0 66.7 60.0
    720x400 70.1
     
    Last edited: Aug 28, 2012
  26. steego

    steego

    Joined:
    Jul 15, 2010
    Posts:
    969
    Try installing the package mesa-libGL from the repositories
     
  27. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    In Unity, I've set "default is full screen" in the player settings. The display resolution dialog is set to enabled, but apparently that doesn't show up when using Linux. For "supported aspect ratios", everything is enabled.

    --Eric
     
  28. hakermania

    hakermania

    Joined:
    Aug 27, 2012
    Posts:
    9
    As I see the dropbox links above don't work, so here's a Mediafire Link: http://www.mediafire.com/?tv28y0ra8am6hax

    That's how it went under Ubuntu 12.04 32-bit for me:

    Graphics: Wow!
    I didn't have any problem with the controls!

    The difference I saw with the windows version is that I don't get that pop-up allowing me to choose the resolution, the keys, etc....

    Good job, a 4.9/5 from me :D
     
  29. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    One of my threads was mentioned in an article? On, like, a real website! I'm supremely impressed and surprised.

    I'm slightly bewildered by why so many people are doing fine while others are having issues. It genuinely shocks me. I know this is Linux we're talking about, but still. Anyway, here's a picture of AngryBots running in Ubuntu:

    View attachment 37856 $Screenshot from 2012-08-28 21:29:51.jpg
     
  30. closethipster

    closethipster

    Joined:
    Aug 28, 2012
    Posts:
    4
    Thanks for looking into that, steego. I have both mesa-libGL and mesa-libGLU installed, and can see /usr/lib64/libGLU.so.1 in the filesystem. Not sure where these games are looking for it.

    Seems to be working in Fedora 17 for Dukat863, so maybe something broke when I switched from Nouveau to proprietary NVIDIA drivers?

    (My GPU is a GeForce GTX 560M.)
     
  31. MarcusM

    MarcusM

    Joined:
    Aug 29, 2012
    Posts:
    1
    Created an account just to give you a heads up: Angry Bots works out beautifully in Arch Linux.
    Didn't encounter any errors and resizing the game window went smooth.

    $test.jpg
     
  32. Nemoder

    Nemoder

    Joined:
    Aug 29, 2012
    Posts:
    1
    Hi, I just tried the two programs on Debian-Testing amd64 and they both run great with only a couple minor problems:
    Unitroids:
    I can't confirm entering my name on the score chart.
    I couldn't figure out how to exit without tabbing out and closing it.
    Angry Bots:
    It picked up my joystick and the axis works but the buttons don't respond.
    I can't find any way to make it fullscreen.
    The game loads in under a second which is impressive for how good it looks!
     
  33. Dukat863

    Dukat863

    Joined:
    Aug 28, 2012
    Posts:
    2
    You're missing 32-bit libraries.

    The game searches them in /usr/lib, not in /usr/lib64.

    Try installing mesa-libGL.i686 and mesa-libGLU.i686 (including the .i686)
     
  34. KameZero

    KameZero

    Joined:
    Aug 29, 2012
    Posts:
    4
    Or use this handy 64-bit build! (Linked by the dev in the OMG Ubuntu discussion but not in this thread :p)

    http://starscenesoftware.com/stuff/unity/Unitroids_Linux64.zip

    Also, my results: Both work pretty flawlessly on my 64 bit ubuntu setup except for the same issues others are having. Specifically being unable to input my name at the end of a game in Unitroids, and not having any options come up before the games start.

    Still, these are minor things and considering neither of the people who built these appear to have actually had a Linux install, I think this is pretty good for a beta/preview. Thanks to the two of you for exporting these for testing!
     
    Last edited: Aug 29, 2012
  35. lapega

    lapega

    Joined:
    Aug 29, 2012
    Posts:
    1
    Can somebody upload a 64bit version of AngryBots?

    Thanks!
     
  36. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    Glad to hear it. Never gamed before in Arch; how did it work out?

    EDIT: Saw from your little Archie printout there in the terminal. Never mind.

    On my 64-bit machine the game runs fine in both Mint and Ubuntu.
     
  37. vivi90

    vivi90

    Joined:
    Jul 28, 2010
    Posts:
    78
  38. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    Great, I'll try and put those on the main page so people can see it.
     
  39. closethipster

    closethipster

    Joined:
    Aug 28, 2012
    Posts:
    4
    Oh you're right. Rookie mistake! That did the trick. Thank you.
     
  40. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    You don't have a 64-bit Linux distro installed on your PC?
     
  41. Nanity

    Nanity

    Joined:
    Jul 6, 2012
    Posts:
    148
    These plus the coin insertion is very laggy...
     
  42. closethipster

    closethipster

    Joined:
    Aug 28, 2012
    Posts:
    4
    I do. Fedora 17 64-bit. I guess the two games I downloaded were 32-bit. All is good now. They look incredible!
     
  43. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    You can just press the Alt key.

    Good to hear! Mind posting a screenshot?
     
  44. Wurmphlegm

    Wurmphlegm

    Joined:
    Sep 2, 2012
    Posts:
    8
    It's running flawlessly and beautifully on 64 Bit Peppermint OS Three. Actually like any Native linux client, runs faster than the windows version. I cant wait for the final release!.

    Great Job guys!

    -Wurm-

    PC specs:
    AMD Phenom 2 six core
    16 gigs DDR3 PC 1600 Ram
    ATI Radeon 4670 1gig

    Desktop environment: Lxde
    Video Drivers: Installed from jockey-gtk (Bad experiences with drivers from ATI's website)
     
    Last edited: Sep 2, 2012
  45. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    Cool - I'm glad it's working for you. Would you mind posting a screenshot?
     
  46. Wurmphlegm

    Wurmphlegm

    Joined:
    Sep 2, 2012
    Posts:
    8
  47. taumel

    taumel

    Joined:
    Jun 9, 2005
    Posts:
    5,292
    I gave it a short try via a VM and audio worked, rendering looked good but was insanely slow and after a few secs it boomed. Maybe it was too demanding. I'll try something less intensive when i have some further time. drivers/memory/etc, shouldn't be an issue as other things work as well.
     
    Last edited: Sep 3, 2012
  48. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    Instead of using a VM, try it via a LiveCD.
     
  49. taumel

    taumel

    Joined:
    Jun 9, 2005
    Posts:
    5,292
    Yep, of course it's not ideal but as other stuff (other 3d hw accelerated games) was running, i thought i give it a try this way.
     
  50. runningbird

    runningbird

    Joined:
    Sep 3, 2009
    Posts:
    382
    I'm a big supporter of Unity and linux so I've uploaded the 3 game demos to my hosting which has unlimited bandwith etc.

    AngryBots32Bit
    AngryBots 64Bit
    Unitroids

    If anyone else would like me to host their linux ports just inbox me I'll host them for free for as long as you want me to.

    I urge everyone to support Unity and linux.

    Thanks,
    Jason