What could be the possible cause for this script error mid game? Zombies Tranzit.
-
Error: Script Runtime Error
maps/mp/zombies/_zm.gsc: exc eeded maximum number of child server script variables! -
DylanBeast777 Are you running mods?
-
Yeah, I have quite a bit of mods running, it's a dedicated/personal transit server. But how would I pinpoint which mod/script is causing the crash? Sorry I'm still learning how this all works. It usually happens when I use my afk script or my chat bank script. But they're awesome tools and I know how to code C++ but not sure where I could find more information on what exactly is causing the crash. Maybe a log file? Thank you for your response btw.
-
DylanBeast777 Well the error means you ran out of child script variables. This happened because you have a child variable leak in one or multiple of your scripts. Unfortunately this isn't an easy issue to fix but to help you can use fed's t6-gsc-utils and look at the child variables dump it produces in the minidumps folder when such as an error occurs. This will give you an idea of what functions might be leaking child variables. To fix this in these functions you need to either end the old threads if you are spawning new ones or you need to clear old variables that you aren't using by setting them to be undefined.
-
JezuzLizard just 1 question i know thread is older. i have a pretty big gamemode running im creating and i get thoose errors with the default gsc files eg:
-maps/mp/gametypes/_battlechatter_mp.gsc
-maps/mp/gametypes/_weapons.gsci am kicking bots and spawning them in again in a lets say 2 min delay. could this be a thing? idk if the server deletes other players variables if kicked.
is there a way to fix this? -
maxiking913 When a player is kicked from the game or disconnects all of the variables directly attached to their script entity are removed. The scripts the error occurs in are meaningless. This error does not happen in the stock game under normal conditions. The script the error says it happened in is just the last time a variable was attempted to be allocated and failed. The error is in your code so read my previous comment on this post to debug this issue.