Tally: might be, but what does it actually matter? That wouldn't be the same lag as the lag with 10 bots.
Thoumta: please try developer 1 and 10 bots for testing with lag and post the errors
Tally: might be, but what does it actually matter? That wouldn't be the same lag as the lag with 10 bots.
Thoumta: please try developer 1 and 10 bots for testing with lag and post the errors
timescale 0.01
With developer 1 i got the same error.
I tested with developer 0 with 10 bots and its not lagging..
Prolly not producing the divided by zero error if multiple players (get all players except self, then divide by it), and linux somehow manages to write errors to console log in dev 0 mode iirc, which might cause laggs.
too many loops running at once can cause massive laggs too, so watch out for these while(statement) and for( ;; )
Dont drink and drive, smoke and fucking fly
U made some kind of ratio right? Only count the ratio if Deaths isnt 0
Well, don't use developer. Use logfile by this command: set logfile 2
Then open your cod2 directory and go to your fs_game (default "main"), console_mp.log, and post log here.
"Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right
@Ni3ls Yes have K/D Ratio but its a simple command in a loop
@Rob console_mp.log dont make something wrong!PHP Code:
for(;;)
{
self.ratio = self.kills / self.deaths;
}
Last edited by thOuMta; 26th August 2013 at 12:05. Reason: ...
That's the bug:
PHP Code:
for(;;)
{
if (self.deaths)
self.ratio = self.kills / self.deaths;
else
self.ratio = 0;
wait 0.05;
}
timescale 0.01
Nvm it's not important, i deleted the mod and put the old mod so it doesn't lag