Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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?
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)
Edit: Welp... although the errors are gone, the rounds are still buggy. Guess I have to give it up :( Still enjoyable with friends though
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.
That fixed the round issue. Thank you! Hopefully you are making good progress with your dev build. :)