1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

Linux Run the GMS2 IDE on Ubuntu 19.04

Discussion in 'Tutorials' started by Tthecreator, Jun 14, 2019.

Tags:
  1. benway

    benway Member

    Joined:
    Jun 21, 2016
    Posts:
    10
    Thank you for your answer :)

    I was using Xorg, but I've obtained the same result using Wayland (BTW, it took me a while until I found the grub.conf nvidia drm switch trick to turn Wayland work xD)

    When I move the mouse on GMS app, I can see a lot of messages of this kind on the terminal window:

    Code:
    0009:fixme:win:GetMouseMovePointsEx (24 0x52df28 0x52d900 64 1) stub
    0009:fixme:win:GetMouseMovePointsEx (24 0x52df28 0x52d900 64 1) stub
    0009:fixme:win:GetMouseMovePointsEx (24 0x52df28 0x52d900 64 1) stub
    0009:fixme:win:GetMouseMovePointsEx (24 0x52df28 0x52d900 64 1) stub
    
    But there isn't any of them when I move the mouse wheel.

    I've tried again with any other app (f.i. firefox installer, and the wheel works fine).

    I'm using Ubuntu 19.04, and my mouse is a Rapoo MT750 (with the same results both bluetooth connected and wireless connected)...
     
  2. benway

    benway Member

    Joined:
    Jun 21, 2016
    Posts:
    10
    Another issue I've found: I cannot uninstall GMS (in order to update the IDE). At the start of uninstallation process, it stops, saying that it can't uninstall GMS because GMS is running (although is not running at all) :(
     
  3. Yal

    Yal GMC Memer GMC Elder

    Joined:
    Jun 20, 2016
    Posts:
    3,881
    If you try running ps aux | grep <name of GMS2 executable>, does it show up there as a zombie process or something? Did you have it running normally before engaging the update? Does it work if you reboot and then try updating it?
     
  4. Samuel Venable

    Samuel Venable Time Killer

    Joined:
    Sep 13, 2016
    Posts:
    1,291
  5. Tthecreator

    Tthecreator Your Creator!

    Joined:
    Jun 20, 2016
    Posts:
    757
    How did you check the process isn't running. You can use Q4Wine to see which processes are running.
     
  6. benway

    benway Member

    Joined:
    Jun 21, 2016
    Posts:
    10
    There isn't any process running related to GMS (ps aux only returns the grep command, and without the grep and checking one by one every process, there isn't anything related to GMS but the uninstaller itself).

    @Tthecreator : The Q4Wine list of processes doesn't show "gamemaker.exe" at all:

    uninstaller.png
    I can remove gms2 prefix, create it again, and install the current version... but it should work! :)
     
  7. Yal

    Yal GMC Memer GMC Elder

    Joined:
    Jun 20, 2016
    Posts:
    3,881
    Maybe the GMS2 installer detects the wine launcher it's being run in, and assumes it's a GMS2 process since it's got some GMS2 modifier in its data, and isn't the installer process, "so what else should it be"?
     
  8. Tthecreator

    Tthecreator Your Creator!

    Joined:
    Jun 20, 2016
    Posts:
    757
    Yup this is a real issue... I don't have a solution right now, but I've added it to the original post with credits to you @benway

    I'm not sure, I think it actively looks for "GameMakerStudio.exe". Could it be that it's looking for some temp file? I think a very small subset of windows users also have had issues like this: https://forum.yoyogames.com/index.php?threads/gamemakerstudio-exe-is-running.61753/
     
  9. Pir Jacques

    Pir Jacques Member

    Joined:
    Nov 29, 2018
    Posts:
    32
    I followed these instructions to get GMS:2 running on the most recent version of Linux using Wine 4.18- thank you very much for figuring this out for all of us! However, I noticed that the shortcut GameMaker automatically adds to the Unity Launcher [the lower-left pop-up menu] will not let GameMaker compile games for testing, and that the only way to let it do so was to run the command you provided. I did not like this extra step, so I figured out a way to fix the default .desktop file that the Unity Launcher shortcut works off of to run the command automatically!

    1] Create a new, blank document on the Desktop [or anywhere you wish, really].
    2] Copy and paste this into it:

    WINEPREFIX=~/gms2 WINEARCH="win64" wine64 "/home/<YOUR USERNAME>/gms2/drive_c/Program Files/GameMaker Studio 2/GameMakerStudio.exe"

    3] Save the file as "GameMaker Studio 2.sh".
    4] Open Nautilus [Files], press CTRL-L, and copy-paste into the address bar:

    ~/.local/share/applications/wine/Programs/GameMaker Studio 2

    5] Open "GameMaker Studio 2.desktop", and replace everything in it with this:

    [Desktop Entry]
    Name=GameMaker Studio 2
    Type=Application
    Exec="/home/<YOUR USERNAME>/Desktop/GameMaker Studio 2.sh"
    Icon=470F_GameMakerStudio.0
    Terminal=true
    Categories=Programming;Application;

    6] Repeat step 5 for "GameMaker Studio 2 License.desktop".
    7] Click the GameMaker Studio 2 icon in Unity Launcher. A Terminal window should open, followed by GameMaker, and you should be able to compile games as well as export them with no issue!
     
    Yal and Tthecreator like this.
  10. Pir Jacques

    Pir Jacques Member

    Joined:
    Nov 29, 2018
    Posts:
    32
    That said, I am having a problem that I cannot seem to resolve, that being that the fonts in the GameMaker IDE are not showing up correctly. I followed the instructions in the post to install all of Windows' fonts using WineTricks, making sure that I installed them to the correct Wine prefix, and even finding them in the directory to ensure that they are indeed there, but GameMaker will not use them for whatever reason. The Font Editor within the IDE can and will select from the installed Windows fonts, indicating that it can find them, and the IDE Environment Variables window shows as having the correct path to the Fonts folder, but the IDE will not use them. Any ideas?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice