• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Tool for Lua Checking?

Gladbach

New Member
Joined
May 20, 2011
Messages
18
Reaction score
0
Hey,
since nowadays its very important to have clean Lua scripts, I wanna know, if there is any tool which checks the usage of lua scripts.
 
Well, if you download a datapack with real map, you will recognize that many scripts are really bad written, many errors appear and and and.. But sometimes there is no error message, but still scripts can use loads of cpu usage .
 
Well, if you download a datapack with real map, you will recognize that many scripts are really bad written, many errors appear and and and.. But sometimes there is no error message, but still scripts can use loads of cpu usage .

Logical erros(or what the term was) wont be picked up.
 
i would first check stuff that executes constantly, like globalevents and their intervals.
and then check what players are doing at the time CPU usage increases

they could be abusing npc shops, or stacking many items to ground :p.
 
Well I doubt that items will be stacked constantly on the ground since the CPU usage increases if more players are online. And what exactly can they abuse in NPC shops, if i already added exhaustion?
 
Ye but its already insane at like 60 players, that a CPU usage peak of 60% has been reached at 2.7ghz. You know any bad scripts in the thunderion package?
 
Well I haved compiled rev3777, which is for linux. I didn't used the thunderion source (don't know if there were source included). And what does - O2 mean?
 
Bump, disabled all globalevents with intervalls. Didn't helped out. Any scripts which are written badly at thunderion? Please help me.
 
remove any -g parameters (also -ggdb or -g3) and compile again with -O2. debug binaries are heavier on the CPU, atleast on windows
 
Back
Top