• Request: Automated process that cleans the Lua stringtables every x minutes
    7 replies, posted
Basically, an automatic, looping process started every time you startup a server that automatically cleans the lua stringtables after an amount of x minutes. X being replaced by a suitable number. You see this would help greatly in servers, as sometimes I keep crashing with a lua overflow error when random people join. Let's say I've been building on a contraption for what, an hour or two, then a random guy joins my server and it crashes, it's annoying as hell. Please? :O
What? Your going to have to fix whatever errors your getting.
You obviously have no idea what I'm talking about then. Right, so; whenever you install an addon that contains lua files, all of these files add up to the amount of lua loaded ingame, the more lua you load, the closer it gets to the max amount. When it does get to the max amount, the game gives you an overflow error and crashes. As far as I know, thats how it goes. So basically what I'm asking for is an automated process that dumps the lua stringtables every now and then. To prevent crashing.
collectgarbage()
[QUOTE=Gbps;18123075]collectgarbage()[/QUOTE] Srs bussiniss hear. Seriously though it would be useful for people who run servers while also having many addons, especially if you just can't live or have fun without these addons. Admit it D:
Things can't be removed from stringtables. I think. That was the original problem garry had with this crash.
Wouldn't removing the loaded lua stop the addons from working?:raise:
Well theres a command called "dumpstringtables" and "dumpstringtables_new" in Gmod, that people said had the effect of dumping them and preventing crashes. I might be wrong about this though as I'm no Lua coder and know nearly nothing about it.
Sorry, you need to Log In to post a reply to this thread.