Garry's Mod

Garry's Mod

829 ratings
OG Server Loading Screen
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Scenic
File Size
Posted
Updated
33.889 KB
29 Apr, 2021 @ 10:08pm
15 Mar @ 10:20am
17 Change Notes ( view )

Subscribe to download
OG Server Loading Screen

In 3 collections by Xalalau
Brasil - Supremacia
172 items
Depósito
207 items
Bombermano
5 items
Description


What is this?

This is the loading screen that appears when players join your game! It can also be set as your default server loading screen fallback, so you’ll see it while joining servers that don’t have a custom screen set.

I want to emphasize that this addon is for servers only, as the name suggests. This means you won't see it when starting single-player games, EVER. However, other players will see it when they join your listen or dedicated servers. Additionally, it’s possible to set it as your fallback loading screen when joining any server.

My goal with this addon is to recreate this old GMod loading screen in a customizable and slightly expanded way. This style was used in GMod 10, and at the time, it wasn’t possible to have a different experience while loading. Later on, Facepunch changed the screen to this one, but I wasn’t a fan of it.

Since I want to stay true to the original screen, I won't be adding any major updates. Additionally, the link size limit is small, and I’m already near the maximum, so this addon is essentially complete.

How to Use

To get it working, simply subscribe to the addon.

To customize the screen, open the menu by typing the command menu_ogl () in the console.

There’s no need to restart the server after making changes—everything is applied immediately.

Even if you exit the game, your screen settings will be saved and remain as you left them.

The screen is intended to support all gamemodes, but feel free to let me know if you encounter any issues!

[UPDATE] WARNING: There’s a new checkbox in the "Options -> Multiplayer" tab!! The screen will not work on clients who have this disabled.



Set the OG Loading Screen as Default

If you want to use this loading screen as your fallback default, play a map at least once after subscribing to OGL. Then, close the game, navigate to the file "...\garrysmod\lua\menu\menu_addon.lua," and replace its contents with this one[github.com].

You can still customize the screen and see it as you like.

Uninstall

If the loading screen doesn’t disappear after you unsubscribe, enter sv_loadingurl "" in the console!

Live Test

Check it out:

[ogloading.xalalau.com]

I also use this same simulation inside GMod to preview different screens that have been created.

Is This the Only Loading Screen on the Workshop?

It seems so! I couldn’t find any others, at least.

I believe there are no other loading screens available because they require a host and are hard to make customizable. Specifically, part of this addon is written in Lua (here), while the rest uses HTML, CSS, and JS, all hosted on GitHub and accessed through HTTP (no SSL enabled). Previously, I was serving this page on my Google Drive via DriveToWeb[www.drv.tw], but this service became very slow and ultimately broken after an automatic upgrade to TLS 1.2, which is not supported by GMod (We need to use v1.0, since our Awesomium is from 2012).

Anyway, I enjoy restoring and expanding content in this game, so here it is: the OG loading screen for everyone to use!

Big thanks to Ceifa for the idea.

How to Host the Screen Yourself

The screen itself is just a website, so it needs a normal webhost to be usable. The files are here: https://github.com/Xalalau/GMod-OG-Loading-Screen/tree/master/host

GitHub instructions: upload the files above to a repository and enable GitHub Pages in the repository settings. Options: add a custom domain, disable "Enforce HTTPS" and deploy it. The custom domain allow us to disable "Enforce HTTPS", which is the trick to make the loading screen work with the ancient chromium embedded in GMod (although I heard the game is finally getting updated, but not on Linux). That's it.

Unfortunately I don't know where to host it for free, a custom domain costs some money. I don't recommend using web hosts like 000webhost or infinityfree because they limit the amount of unique connections per day around 100 unique IPs. What I didn't try was to use a free subdomain paired with GitHub, maybe https://freedns.afraid.org/ ?

If you already have some sort of GMod server or a personal website, you can (probably) use your own infrastructure to achieve it. In this case, search how to use nginx, reverse proxies etc.

GitHub

For more information, visit the repository[github.com].

Enjoy!
184 Comments
AgoR 2 Sep @ 3:54am 
Man, I always wanted a Loading Screen with buttons, so I could put an URL link to workshop addon collection of the server...
Xalalau  [author] 6 Aug @ 11:36am 
Oh, now I see, you're self-hosting. Please, double check your own configuration, and make sure to disable SSL.
VendettaLMAO 6 Aug @ 5:47am 
he lives in austrailia
VendettaLMAO 2 Aug @ 7:14pm 
aussie
Xalalau  [author] 1 Aug @ 7:33am 
For some reason his game can't connect to the loading screen server, which I don't even know how to deal with. Does he live in Russia or somewhere like that?
VendettaLMAO 31 Jul @ 12:39pm 
and i set it up, im using this loading screen, also heres the screenshot https://images.steamusercontent.com/ugc/10640518196848851702/9E901AB0C05E2BEB724920312508122CF23A9B07/
VendettaLMAO 31 Jul @ 12:33pm 
i can show you the screenshot from my friend
Xalalau  [author] 31 Jul @ 10:05am 
"cloudflare server offline screen" also doesn't tell me much, this is not a real error.
Xalalau  [author] 31 Jul @ 10:04am 
@freddy fazbear
The url setting isn't exposed, so you'll need to do it manually by extracting the addon and chaning the line or just wait for an update. I didn't consider people would want self hosting until recently.

@mac (2008)
If cloudflare is showing an error it means either your friend is having GMod issues or your setup was not properly done. Btw, are you self hosting? As freddy pointed out, there's no way to easily change the base url currently.
freddy fazbear 31 Jul @ 2:37am 
also if i self host it do i change the sv loadingurl to my loading url?