Garry's Mod

Garry's Mod

Monster Mash
 This topic has been pinned, so it's probably important
Buu342  [developer] 18 Oct, 2018 @ 1:48pm
Post bugs here
Found an error? Post it here so I can find it easier than having to look through the comment section.
< >
Showing 1-15 of 20 comments
BuzZoiD 4 Jul, 2019 @ 2:34am 
Hey, it's me again. :) I told you about the problem about the gamemode not working, when my friends didn't subscribe to it.

I tried again to host the gamemode on a dedicated server. But even if the client downloads the gamemode through workshop DL scripts, it doesn't work on clients. This time, I can provide you some infos from the server log though:


[BuzZoiD|2|STEAM_0:1:126289] Lua Error:
[ERROR] gamemodes/monstermash/gamemode/music/cl_music.lua:137: attempt to call global 'GetGlobalVariable' (a nil value)
1. MusicThink - gamemodes/monstermash/gamemode/music/cl_music.lua:137
2. fn - gamemodes/monstermash/gamemode/cl_init.lua:33
3. unknown - lua/ulib/shared/hook.lua:109
[BuzZoiD|2|STEAM_0:1:126289] Lua Error:
[ERROR] gamemodes/monstermash/gamemode/hud/cl_hud.lua:878: attempt to call global 'GetGlobalVariable' (a nil value)
1. fn - gamemodes/monstermash/gamemode/hud/cl_hud.lua:878
2. unknown - lua/ulib/shared/hook.lua:109
[BuzZoiD|2|STEAM_0:1:126289] Lua Error:
[ERROR] gamemodes/monstermash/gamemode/music/cl_music.lua:137: attempt to call global 'GetGlobalVariable' (a nil value)
1. MusicThink - gamemodes/monstermash/gamemode/music/cl_music.lua:137
2. fn - gamemodes/monstermash/gamemode/cl_init.lua:33
3. unknown - lua/ulib/shared/hook.lua:109
[BuzZoiD|2|STEAM_0:1:126289] Lua Error:
[ERROR] gamemodes/monstermash/gamemode/hud/cl_hud.lua:878: attempt to call global 'GetGlobalVariable' (a nil value)
1. fn - gamemodes/monstermash/gamemode/hud/cl_hud.lua:878
2. unknown - lua/ulib/shared/hook.lua:109
[BuzZoiD|2|STEAM_0:1:126289] Lua Error:
[ERROR] gamemodes/monstermash/gamemode/music/cl_music.lua:137: attempt to call global 'GetGlobalVariable' (a nil value)
1. MusicThink - gamemodes/monstermash/gamemode/music/cl_music.lua:137
2. fn - gamemodes/monstermash/gamemode/cl_init.lua:33
3. unknown - lua/ulib/shared/hook.lua:109

So clients see the models and stuff and can somehow participate, but the whole gamemode is buggy due these errors. Is there any way to fix this without subscribing to it? If hosting dedicated, it's a bit of a nuisance, if everyone needs to subscribe to it manually.
Buu342  [developer] 4 Jul, 2019 @ 3:19am 
Originally posted by BuzZoiD:
Hey, it's me again. :) I told you about the problem about the gamemode not working, when my friends didn't subscribe to it.

I tried again to host the gamemode on a dedicated server. But even if the client downloads the gamemode through workshop DL scripts, it doesn't work on clients. This time, I can provide you some infos from the server log though:


[BuzZoiD|2|STEAM_0:1:126289] Lua Error:
[ERROR] gamemodes/monstermash/gamemode/music/cl_music.lua:137: attempt to call global 'GetGlobalVariable' (a nil value)
1. MusicThink - gamemodes/monstermash/gamemode/music/cl_music.lua:137
2. fn - gamemodes/monstermash/gamemode/cl_init.lua:33
3. unknown - lua/ulib/shared/hook.lua:109
[BuzZoiD|2|STEAM_0:1:126289] Lua Error:
[ERROR] gamemodes/monstermash/gamemode/hud/cl_hud.lua:878: attempt to call global 'GetGlobalVariable' (a nil value)
1. fn - gamemodes/monstermash/gamemode/hud/cl_hud.lua:878
2. unknown - lua/ulib/shared/hook.lua:109
[BuzZoiD|2|STEAM_0:1:126289] Lua Error:
[ERROR] gamemodes/monstermash/gamemode/music/cl_music.lua:137: attempt to call global 'GetGlobalVariable' (a nil value)
1. MusicThink - gamemodes/monstermash/gamemode/music/cl_music.lua:137
2. fn - gamemodes/monstermash/gamemode/cl_init.lua:33
3. unknown - lua/ulib/shared/hook.lua:109
[BuzZoiD|2|STEAM_0:1:126289] Lua Error:
[ERROR] gamemodes/monstermash/gamemode/hud/cl_hud.lua:878: attempt to call global 'GetGlobalVariable' (a nil value)
1. fn - gamemodes/monstermash/gamemode/hud/cl_hud.lua:878
2. unknown - lua/ulib/shared/hook.lua:109
[BuzZoiD|2|STEAM_0:1:126289] Lua Error:
[ERROR] gamemodes/monstermash/gamemode/music/cl_music.lua:137: attempt to call global 'GetGlobalVariable' (a nil value)
1. MusicThink - gamemodes/monstermash/gamemode/music/cl_music.lua:137
2. fn - gamemodes/monstermash/gamemode/cl_init.lua:33
3. unknown - lua/ulib/shared/hook.lua:109

So clients see the models and stuff and can somehow participate, but the whole gamemode is buggy due these errors. Is there any way to fix this without subscribing to it? If hosting dedicated, it's a bit of a nuisance, if everyone needs to subscribe to it manually.

Is your server also subscribed to the workshop content?
BuzZoiD 4 Jul, 2019 @ 3:32am 
Yes, the gamemode and the two maps are in the collection, which the server downloads and mounts. Me as client didn't subscribe to it and these errors appeared. I assume it would work if I did that. But random people on a dedicated server won't do that in most cases.

My friends had the exact same issues (can't equip weapons, only random loadout). Me as host didn't have any problems that time. So I guess it's a client side issue, which is only solved, if they manually subscribe to it, even if they downloaded the gamemode per auto-download-script.

EDIT: I fixed it somehow ^^ sorry for the inconvenience.

EDIT2: Welp, nevermind. I still had the workshop installed as client. I guess the problem is, that the variable 'GetGlobalVariable' doesn't exist on client machines. I saw that you defined them in globals.lua, which doesn't seem to be recognized by the clients.

EDIT3: After some testing, it seems there is a problem with the initial map start. When a client joins, they get all these errors I posted. Now when the client is still on the map, and I reload the shared.lua in the gamemode files, it works. When the client makes a reconnection, it still works. But if the server loads any mm map again, the client gets all the errors again, until I reload the shared.lua (change something, change it back, save the file).

Sorry for this wall of text, hopefully it helps you narrowing down the problem. :) (if you want to do that at all)
Last edited by BuzZoiD; 5 Jul, 2019 @ 7:22am
BuzZoiD 6 Jul, 2019 @ 12:52pm 
Ok, I fixed it. It seems it synchronizes better when the globals are included in both server and client initiation, instead in shared only. :)

Edit: Welp... although the errors are gone, the rounds are still buggy. Guess I have to give it up :( Still enjoyable with friends though
Last edited by BuzZoiD; 6 Jul, 2019 @ 1:16pm
Buu342  [developer] 6 Jul, 2019 @ 4:44pm 
Originally posted by BuzZoiD:
Ok, I fixed it. It seems it synchronizes better when the globals are included in both server and client initiation, instead in shared only. :)

Edit: Welp... although the errors are gone, the rounds are still buggy. Guess I have to give it up :( Still enjoyable with friends though
Buggy in what sense?
BuzZoiD 7 Jul, 2019 @ 2:48am 
Originally posted by Buu342:
Originally posted by BuzZoiD:
Ok, I fixed it. It seems it synchronizes better when the globals are included in both server and client initiation, instead in shared only. :)

Edit: Welp... although the errors are gone, the rounds are still buggy. Guess I have to give it up :( Still enjoyable with friends though
Buggy in what sense?

I could fix the weapons loadout and players could enter normally. But the round just ends after one lad gets killed (we were three and the kill limit was set to 5). The first wacky round was buggy aswell: 2 players were in, the third was spectating. The 2 active got killed, the round didn't end, so we were just sitting there waiting.

An error actually appeared, just a server side one this time:

[ERROR] addons/monster_mash/gamemodes/monstermash/gamemode/init.lua:246: Tried to use a NULL entity!
1. GetClass - [C]:-1
2. func - addons/monster_mash/gamemodes/monstermash/gamemode/init.lua:246
3. unknown - lua/includes/extensions/net.lua:32

Not saying that your code is wrong or full of errors though, not at all. Everything works fine when the players subscribe to the gamemode. So there aren't any problems when playing with friends in p2p, who did that. The strange thing is, that the "cache version", which clients download automatically when joining, doesn't seem to synchronize very well with the server.
Last edited by BuzZoiD; 7 Jul, 2019 @ 2:54am
Buu342  [developer] 7 Jul, 2019 @ 3:01am 
Originally posted by BuzZoiD:
Originally posted by Buu342:
Buggy in what sense?

I could fix the weapons loadout and players could enter normally. But the round just ends after one lad gets killed (we were three and the kill limit was set to 5). The first wacky round was buggy aswell: 2 players were in, the third was spectating. The 2 active got killed, the round didn't end, so we were just sitting there waiting.

An error actually appeared, just a server side one this time:

[ERROR] addons/monster_mash/gamemodes/monstermash/gamemode/init.lua:246: Tried to use a NULL entity!
1. GetClass - [C]:-1
2. func - addons/monster_mash/gamemodes/monstermash/gamemode/init.lua:246
3. unknown - lua/includes/extensions/net.lua:32

Not saying that your code is wrong or full of errors though, not at all. Everything works fine when the players subscribe to the gamemode. So there aren't any problems when playing with friends in p2p, who did that. The strange thing is, that the "cache version", which clients download automatically when joining, doesn't seem to synchronize very well with the server.

The kill limit is actually a point limit. Set it to something like 500 instead (you get tons of points from the medals)

I'll look into those errors.
BuzZoiD 7 Jul, 2019 @ 4:16am 
Ooph, now that you mentioned it.. I remember. xD

That fixed the round issue. Thank you! Hopefully you are making good progress with your dev build. :)
Last edited by BuzZoiD; 7 Jul, 2019 @ 4:14pm
Puw 10 Nov, 2019 @ 7:42am 
i downloaded the gamemode and maps, but i keep seeing missing textures and the models are errors
warcatz 8 Oct, 2020 @ 10:04am 
sometimes when you have auto reload on, it plays the reload animation twice
warcatz 8 Oct, 2020 @ 11:33am 
also, if you step on the skull you get concussed
warcatz 23 Oct, 2020 @ 9:04am 
flamethrower reload animation is broken for me
warcatz 23 Oct, 2020 @ 9:04am 
it skips it and instantly gives you more ammo
Solis 11 Jan, 2021 @ 3:14pm 
The crossbow and a few other weapons have stopped appearing in the pack whenever I play. Any suggestions?
< >
Showing 1-15 of 20 comments
Per page: 1530 50