WorkShop Mode Size Error

Hi, find that your servers can’t hold server with full lobby(12 players) if mode size more then 333 000 bytes, for example if mode size 350 000 bytes(whole not only workshop scripts), it will error after there will full lobby of players.

i have big mode with correct code, and less loops or other things that could cause problem, my mode less then 32k elements (28k+) but it’s still make error.

how it happen:
when 12 players arrive and mode start work server start over loading, i created hud that show pick, average and current load of server.
I know that my mode is heavy and mostly load is around 200, but i know the issue is on server side not in my mode.
i figure out that when mode size for example 345 000 + size, and there 12 players in lobby(and maybe 1 spectator), in inspector i see THOUSANDS of EMPTY script calls, that never should happen, they did nothing, nothing happen, they just calls in some reason and make a lot of empty actions but not actions that i write, it’s action that SERVER call by himself by random rules from workshop.
so this empty calls overloading server and i could see 255 255 255 current, average, pick load of server and then workshop error in chat that say “it’s workshop error”.

how i figure that out? one moment i was lucky to catch this error by opened inspector and could for a few second fast reading some last inspector writings before server restart and delete everthing, this isn’t my calls or code this is your blizzard error.

other reason, that everything work correct until 11 players in lobby.
and finally if i will remove some code that totally don’t cause problems to reduce the mode size until 330 000 bytes(whole mode in text file) everything will fine with 12 players in, but i didn’t delete any part of code that check/work/loop etc. just deleted the text base/info.

I know blizzard never check this forum and don’t care about players/developers in game.
but for other developers that will work on modes, also remember that your mode shouldn’t be more size then 333 000~ bytes.

i have no idea what is exactly limit and why around 333 ~ 350 KB but maybe because server could hold at once until 4 MB of information:
333 000x12 = 4 MB almost.
350 000x12 = 4.2MB.
also spectators catch some memory.

*disable inspector didn’t help in this situation because calls will happen, inspector just make logs.
**i checked last time on 345 000, it make error, i don’t know exactly the size of mode to force this mode error happen and mostly it happen randomly maybe also depends on map.

to check size of mode:
1)open lobby.
2)enter to lobby settings.
3)click on right side “copy settings”.
4)open text file on computer Ctrl+V on it, save. open file properties.

From my experience, if the game suddenly jumps to 255 server load and crashes, it’s usually done by a waitless loop.

1 Like

will check, but when mode were smaller it never cause the problem.