[Release] [Zombies] Map Restart Clientside Issues Workaround
-
When the map restarts in zombies after a game ends, clients experience several different bugs that are only clientside. An example is the no sound bug, which is where clients have no sound except music. These are fixed by leaving and rejoining the server. I always found leaving and rejoining after a server ends being a pain which is why I spent some time making a workaround for server owners:
https://github.com/JezuzLizard/Public-BO2-Mods/tree/master/MapRestartWorkaroundThis mod also fixes doing a map_restart or fast_restart from the server console.
Basically, the mod calls a map_restart() when the game ends instead of the normal map_rotate and this fixes all the clientside only bugs for all clients every time. Doing this caused some bugs which I also had to fix.
The bug where the game hangs at the blackscreen when there is more than 1 client in game is fixed, and the invisible players who can't sprint should be fixed as well.
If you experience any bugs using this mod tell me I will try my best to fix them as quickly as possible. -
Damn, nice release. Will be adding this to my server
-
Oh nice. I see you updated it.
-
Great update OP, nice to see the bug fixes.
-
Hey JezuzLizard, I finally tried to add it to my server, and I'm getting an error almost immediately after starting my Die Rise server (specifically Die Rise). Do you know why that is / how to fix it? I'm pretty new to GSC so sorry if I'm acting dumb or whatever
-
luigistyle I hadn't known about that bug at the time I had posted the mod but currently the best fix I have is commenting out give_team_characters() when running die rise. The same goes for give_personality_characters() when running nuketown.
I'm working on a fix so it won't be necessary to have to comment out code each time for these 2 maps. I'll update the post when I have it working.The reason this happens is die rise doesn't have its own give_team_characters(), not even a blank one. Same thing goes for nuketown there isn't a give_personality_characters() built in to the map.
-
JezuzLizard check your pull requests. I have drastically edited and simplified the way of how give_personality_characters and give_team_characters are called.
-
luigistyle I approved the pull request from Xerxes the mod shouldn't have any problems loading on nuketown and die rise. Download the latest version off the github.
-
-
i don't know how to modify things for my server and i want to put this in mine, someone could explain how i do it? If someone can help me this is my discord Adriango#5023 thank you
-
adriango
There's a guide around here somewhere on loading GSC in your dedicated server -
I just put the code to my server, and it doesn't work, that is, the code should fix the music and demase, but I still have those problems
-
adriango Did you compile it as _clientids.gsc in maps/mp/gametypes_zm?
Did you merge it with any other scripts? -
JezuzLizard said in [Release] [Zombies] Map Restart Clientside Issues Workaround:
Did you merge it with any other scripts?
Does that make a difference? I have like 3 merged scripts total and it seems to be fine atm
-
JezuzLizard I've done everything right and I've got it compiled with another script that's to remove the drink limit, the limit of fucniona drinks but this script doesn't and I don't know why
-
Send me your script source on discord JezuzLizard#7864. I'll review it and see if its a common problem since this isn't the first time this script doesn't work when compiled with another script.
-
I compiled the main.gsc and put the script on server, but when game ends nothing happens, I continue disconnecting and receiving the error "CG_Spawn: no free fake entities". What I doing wrong?
-
peximaximum Did you call the compiled script _clientids.gsc and did you place it in data/maps/mp/gametypes_zm in your server folder?
-
JezuzLizard Yes, I did all that, including with and without other codes together. I tried change my code in dedicated_zm.cfg and now is getting the error "An error occured while connecting to the server." and error notification of PlutoT6 "EXE_CONFIGSTRINGMISMATCH" when map rotate.
dedicated_zm.cfg file: https://pastebin.com/NqyfNHjm
In the tests I did with these settings, only the Buried map successfully restarted on dying, without having to do anything! When using map_rotate it disconnects and gives the same error as above.
-
peximaximum I never expected anyone to use multiple maps in sv_maprotation, but being that your getting errors from doing so I would definitely have to conclude that trying to restart the map and change the map would cause errors.
Basically, you cannot change the map using map_restart I've tried it will not work. Try setting only one map in your sv_maprotation and see if it still gives errors.