Garry's Mod

Garry's Mod

Monster Mash
 此主题已被置顶,因此可能具有重要性
BOO342  [开发者] 2018 年 10 月 18 日 下午 1:48
Post bugs here
Found an error? Post it here so I can find it easier than having to look through the comment section.
< >
正在显示第 1 - 15 条,共 20 条留言
BuzZoiD 2019 年 7 月 4 日 上午 2:34 
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.
BOO342  [开发者] 2019 年 7 月 4 日 上午 3:19 
引用自 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 2019 年 7 月 4 日 上午 3:32 
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)
最后由 BuzZoiD 编辑于; 2019 年 7 月 5 日 上午 7:22
BuzZoiD 2019 年 7 月 6 日 下午 12:52 
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
最后由 BuzZoiD 编辑于; 2019 年 7 月 6 日 下午 1:16
BOO342  [开发者] 2019 年 7 月 6 日 下午 4:44 
引用自 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 2019 年 7 月 7 日 上午 2:48 
引用自 Buu342
引用自 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.
最后由 BuzZoiD 编辑于; 2019 年 7 月 7 日 上午 2:54
BOO342  [开发者] 2019 年 7 月 7 日 上午 3:01 
引用自 BuzZoiD
引用自 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 2019 年 7 月 7 日 上午 4:16 
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. :)
最后由 BuzZoiD 编辑于; 2019 年 7 月 7 日 下午 4:14
Puw 2019 年 11 月 10 日 上午 7:42 
i downloaded the gamemode and maps, but i keep seeing missing textures and the models are errors
warcatz 2020 年 10 月 8 日 上午 10:04 
sometimes when you have auto reload on, it plays the reload animation twice
warcatz 2020 年 10 月 8 日 上午 11:33 
also, if you step on the skull you get concussed
warcatz 2020 年 10 月 23 日 上午 9:04 
flamethrower reload animation is broken for me
warcatz 2020 年 10 月 23 日 上午 9:04 
it skips it and instantly gives you more ammo
Solis 2021 年 1 月 11 日 下午 3:14 
The crossbow and a few other weapons have stopped appearing in the pack whenever I play. Any suggestions?
< >
正在显示第 1 - 15 条,共 20 条留言
每页显示数: 1530 50