Garry's Mod

Garry's Mod

SirGibs Map Icons+Categories
V92 27 Oct, 2018 @ 6:44am
Replacing the Faux Gamemode Function with a Menu Function
I have a few similar add-ons of this type on Workshop that use the same method to sort maps. A while back I found out that GMod uses the sorting functions in
garrysmod/garrysmod/lua/menu/getmaps.lua
that effectively does the same thing without the requirements to effectively game the system.

I was wondering if you've considering trying your hand at that one to sort them instead? I didn't personally get it to work, nor did I spend an exceptional amount of time on that method.
< >
Showing 1-3 of 3 comments
Sirgibsalot  [developer] 23 Jun, 2021 @ 5:28pm 
I'm super late on this (haven't kept track of the addon until recently) but I'll finally reply.

As interesting as that method is, it also requires modifying a core file that could be changed through updates, and possibly result in the addon breaking the entirety of Gmod's map lists. That is an unacceptable risk in my eyes.

The good thing about the fake gamemodes is they are unlikely to have any under-the-hood changes that result in a broken addon, and even if that happens all that would result is that the new map categories would fail opposed to the entire map list failing.

Gamemodes may not be the most elegant means, but it's the most reliable I've found.
Last edited by Sirgibsalot; 23 Jun, 2021 @ 5:29pm
V92 23 Jun, 2021 @ 5:30pm 
I took a look into it at the time, and it seems to be standard Lua you could have in an add-on. Would just need to have a different function to add on to the original core to avoid version errors.
Last edited by V92; 23 Jun, 2021 @ 5:30pm
Calypso 23 Jun, 2021 @ 6:30pm 
banana
< >
Showing 1-3 of 3 comments
Per page: 1530 50