Garry's Mod

Garry's Mod

846 个评价
OG Server Loading Screen
2
2
2
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 快乐, 风景
文件大小
发表于
更新日期
33.889 KB
2021 年 4 月 29 日 下午 10:08
3 月 15 日 上午 10:20
17 项改动说明 ( 查看 )

订阅以下载
OG Server Loading Screen

在 Xalalau 的 3 个合集中
Brasil - Supremacia
172 件物品
Depósito
207 件物品
Bombermano
33 件物品
描述


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 条留言
AgoR 9 月 2 日 上午 3:54 
Man, I always wanted a Loading Screen with buttons, so I could put an URL link to workshop addon collection of the server...
Xalalau  [作者] 8 月 6 日 上午 11:36 
Oh, now I see, you're self-hosting. Please, double check your own configuration, and make sure to disable SSL.
VendettaLMAO 8 月 6 日 上午 5:47 
he lives in austrailia
VendettaLMAO 8 月 2 日 下午 7:14 
aussie
Xalalau  [作者] 8 月 1 日 上午 7:33 
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 7 月 31 日 下午 12:39 
and i set it up, im using this loading screen, also heres the screenshot https://images.steamusercontent.com/ugc/10640518196848851702/9E901AB0C05E2BEB724920312508122CF23A9B07/
VendettaLMAO 7 月 31 日 下午 12:33 
i can show you the screenshot from my friend
Xalalau  [作者] 7 月 31 日 上午 10:05 
"cloudflare server offline screen" also doesn't tell me much, this is not a real error.
Xalalau  [作者] 7 月 31 日 上午 10:04 
@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 7 月 31 日 上午 2:37 
also if i self host it do i change the sv loadingurl to my loading url?