Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. What could be the possible cause for this script error mid game? Zombies Tranzit.

What could be the possible cause for this script error mid game? Zombies Tranzit.

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
6 Posts 3 Posters 765 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DylanBeast777undefined Offline
    DylanBeast777undefined Offline
    DylanBeast777
    wrote on last edited by
    #1

    Error: Script Runtime Error
    maps/mp/zombies/_zm.gsc: excScreenshot 2023-05-17 212600.png eeded maximum number of child server script variables!

    JezuzLizardundefined 1 Reply Last reply
    0
    • JezuzLizardundefined Offline
      JezuzLizardundefined Offline
      JezuzLizard Plutonium Staff
      replied to DylanBeast777 on last edited by
      #2

      DylanBeast777 Are you running mods?

      1 Reply Last reply
      0
      • DylanBeast777undefined Offline
        DylanBeast777undefined Offline
        DylanBeast777
        wrote on last edited by
        #3

        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.

        JezuzLizardundefined 1 Reply Last reply
        0
        • JezuzLizardundefined Offline
          JezuzLizardundefined Offline
          JezuzLizard Plutonium Staff
          replied to DylanBeast777 on last edited by
          #4

          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.

          maxiking913undefined 1 Reply Last reply
          0
          • maxiking913undefined Offline
            maxiking913undefined Offline
            maxiking913
            replied to JezuzLizard on last edited by maxiking913
            #5

            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.gsc

            i 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?

            JezuzLizardundefined 1 Reply Last reply
            0
            • JezuzLizardundefined Offline
              JezuzLizardundefined Offline
              JezuzLizard Plutonium Staff
              replied to maxiking913 on last edited by
              #6

              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.

              1 Reply Last reply
              0

              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Donate