1. Hey! Guest! The 31st GMC Jam will take place between Nov 16th, 12:00 UTC (Friday noon) and Nov 26th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

Linux users?

Discussion in 'Programming' started by obscene, Nov 8, 2018.

  1. obscene

    obscene Member

    Joined:
    Jun 21, 2016
    Posts:
    2,163
    I have been a linux user for approx 1 hour lol. I have a build. Got ourselves a runner file and in the folder of assets there is a game.unx file. Thought it might be cool to run it or something. Enabled "run this as an executable." And then now I have no idea what to do next.

    upload_2018-11-8_10-29-38.png
     
  2. Binsk

    Binsk Member

    Joined:
    Jun 22, 2016
    Posts:
    455
    Code:
    cd ~/Downloads/Orphan
    ls
    
    ls will list the files in the folder. See if Runner shows up as green (aka, can be executed) . If not,
    Code:
    chmod +x Runner
    
    If it did show green or you had to run the above then the following should execute it:

    Code:
    ./Runner
    
    If it is saying permission denied then it may be owned by root and you have to use:
    Code:
    sudo ./Runner
    
    Followed by the root password.
     
  3. YellowAfterlife

    YellowAfterlife ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ Forum Staff Moderator

    Joined:
    Apr 21, 2016
    Posts:
    1,957
    bonus: if the binary is built for different architecture (e.g. your VM is x86 but binary is x64 from GMS2) there's a tendency of throwing "no such file" instead of an actual error
     
    Binsk likes this.
  4. Binsk

    Binsk Member

    Joined:
    Jun 22, 2016
    Posts:
    455
    Good note, I didn't know about that one.
     
  5. obscene

    obscene Member

    Joined:
    Jun 21, 2016
    Posts:
    2,163
    Thank you guys very much, that did the trick. It's running about 1fps in Virtualbox but now I'll try to get it running on a real install and see what happens. :)
     
  6. obscene

    obscene Member

    Joined:
    Jun 21, 2016
    Posts:
    2,163
    Can you guys guide me on how to use connect GM to a virtual machine in Virtualbox? (I have it on a real machine but it's not stable). On the physical machine, I simply put the IP address from Linux into GM and it connected successfully. In Virtualbox, I do the same but the connection request times out. Not 100% sure I have it set up correctly.
     
    Last edited: Nov 9, 2018
  7. Steevo

    Steevo Member

    Joined:
    Nov 6, 2018
    Posts:
    57
    obscene likes this.
  8. obscene

    obscene Member

    Joined:
    Jun 21, 2016
    Posts:
    2,163
    That did it!
     
    Steevo likes this.
  9. Steevo

    Steevo Member

    Joined:
    Nov 6, 2018
    Posts:
    57
    Nice! :cool:
     
  10. obscene

    obscene Member

    Joined:
    Jun 21, 2016
    Posts:
    2,163
    Edit: never mind. Slowly figuring this out...
     
    Last edited: Nov 9, 2018
  11. obscene

    obscene Member

    Joined:
    Jun 21, 2016
    Posts:
    2,163
    Ok, new questions...

    How can I stop the Terminal from closing after the game returns an error? As soon as I touch it and try to read debug messages, it closes. Only way to actually get to read the debug is to create a build, transfer it over to the machine, repeat all the above instructions above (chmod) and then run it which takes much longer to debug stuff rather than just hitting play.

    Also, can you not disable the GameMaker splash screen in Linux?
     
    Last edited: Nov 15, 2018 at 2:43 AM
  12. Samuel Venable

    Samuel Venable Time Killer

    Joined:
    Sep 13, 2016
    Posts:
    919
    Run the game from the terminal after GM sends the runner and game assets to your VM (or actual machine, either one) which is what you are doing so yeah

    You can only disable the splash screen in GMS2
     
  13. obscene

    obscene Member

    Joined:
    Jun 21, 2016
    Posts:
    2,163
    Thank you very much. Got a few issues to work out looks like. Some shaders are not working properly.

    What is your opinion on this? Should I remove settings for display_set_windows_vertex_buffer_method as well as the Vsync alternate method that are supposedly Windows only?
     

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