1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

GMCL on Linux: Bugs, Nuances, and Important Information

Discussion in 'General Discussion' started by Sophie-bear, Mar 14, 2018.

  1. Sophie-bear

    Sophie-bear 3D Modeler Staff Member Developer

    Joined:
    Dec 29, 2015
    Messages:
    334
    Likes Received:
    217
    This thread exists to provide support to those on Linux distributions who may want to play GMod Cruise Line. As with most other GMod experiences, Linux is not generally the most pleasant way to play, but since I play on Ubuntu sometimes, I can provide some insight and advice to those who also want to play on Linux operating systems.

    Common Bugs, and How to Avoid or Fix Them


    BASS/MP3 Support
    :
    Status: Fix using third party module available below.

    Bug Description: The libbass.so module intended to provide support for MP3 playback on Garry's Mod requires your operating system to have proper MP3 decoders available for it to hook into. You will not have this by default, and I've yet to find one which works. I thought mpg123 was the way to go but it did not work for me. Instead, you can replace the libbass.so included with Garry's Mod with the one found here.

    Do note that this is a workaround that just happens to work for now and I will work to find a proper solution in the future.

    Rainbow Reflections:
    Status: Fixed!

    Bug Description: Reflections are sometimes rendered as a rainbow-y cube. I have a feeling this is because cubemaps have not been properly built for the ship map yet and should hopefully be fixed once they are. In the meantime, if this bug really bothers you, you can disable specular mapping (essentially disabling reflections on map brushes) using the console command "mat_specular 0" while in the game. This command will have to be run every time you join the game to work properly, unless you add it to your autoexec.cfg.

    In-Game Settings Not Saving:
    Status: Identified. Will keep updated.

    Bug Description: Settings may not save when you quit the game while connected to the server; to prevent this, disconnect from the server before clicking "Quit" in the Garry's Mod menu. This seems to happen because Garry's Mod on Linux might crash when quitting the game while connected; leaving the server first seems to prevent this from happening.

    Fonts Not Displaying Correctly:
    Status: Fix using manually installed fonts. Explanation below.

    Bug Description: This is not a GMCL problem, but a problem with how Linux handles fonts in general. All fonts must be manually installed to properly display in game. To fix this download "fonts.zip" and extract it to your Downloads directory, then open a Terminal window using CTRL+ALT+T and run the following commands to install the fonts and rebuild the font cache. We use mv (move) to install the fonts so we won't have to delete leftover files later.
    Code:
    sudo mv ~/Downloads/*.ttf /usr/share/fonts/truetype
    Code:
     sudo fc-cache
    Code:
    sudo dpkg-reconfigure fontconfig
    fonts.zip will be updated when new fonts are added to GMCL.

    Black Line in the Horizon:
    Status: Identified. Will keep updated.

    Bug Description: I'm unsure of what causes this bug currently. I will report back with more information when it's available.

    Miscolored Water/Water Reflections:
    Status: Identified. Will keep updated.

    Bug Description: I'm unsure of what causes this bug currently. I will report back with more information when it's available.

    Lua-based Particles Duplicating Infinitely:
    Status: Identified. Will keep updated.

    Update Jul, 2018: Snow particles no longer rendered via Lua code and thus are no long affected by this bug.

    Bug Description: Lua code will need to be updated at some point to prevent this. The currently affected particles are the Cubes particles.

    If you find any problems I have missed, please report them in the proper Bug Report section of the forums and I will see if there is any way to fix them. I am also willing to help resolve problems with my fixes provided above. Thank you for reading. This will be updated as time goes on and new bugs, features, and fixes are discovered or released. Stay tuned.
     
    Last edited: Jul 14, 2018
    Brents and AkitaPlays like this.
  2. Sophie-bear

    Sophie-bear 3D Modeler Staff Member Developer

    Joined:
    Dec 29, 2015
    Messages:
    334
    Likes Received:
    217
    I've now updated the thread and am happy to announce the Rainbow Reflections bug is no longer applicable! This was fixed in the new version of the Ship map since cubemaps were properly built before the map shipped.