NOQ problem


(brk) #1

In the console I have such messages:


0:26 ClientUserinfoChangedGUID: 1 OMNIBOT0100000000000000000000000 n\^0|^7BOT^0|^iMelepeta	\2\c\2\r\12\m\0000000\s\6211653\dn\\dr\0\w\23\lw\23\sw\34\mu\0\ref\0\rn\0\lc\2\xp\126 6 2 2 126 62 14 \u\0
0:26 ClientUserinfoChangedGUID: 1 OMNIBOT0100000000000000000000000 n\^0|^7BOT^0|^iMelepeta	\2\c\2\r\12\m\0000000\s\6211653\dn\\dr\0\w\23\lw\23\sw\34\mu\0\ref\0\rn\1\lc\2\xp\126 6 2 2 126 62 14 \u\0
0:26 ClientBegin: 1
0:26 Lua API: et_ClientBegin error running lua script: [string "noq/noq.lua"]:1307: You must to input 2 arguments to use the 'DS' option.
0:26 Lua API: et_ClientConnect error running lua script: [string "noq/noq.lua"]:1307: You must to input 2 arguments to use the 'DS' option.

0:52 Noq: not saved bot session 8 to Database0:52 NOQ: ERROR while setting xp in database: XP not properly restored!
0:52 Noq: saved player and session 8 to Database
0:52 Lua API: et_ClientCommand error running lua script: [string "noq/noq.lua"]:675: attempt to compare number with nil

(Dragonji) #2

It means that the NOQ script you use has bugs and the messages show you which lines of the file you should inspect to fix them.


(brk) #3

These lines are the message but what to do to not show. And how to disable statistics dB for bots?


(Micha) #4

People cannot help much if you do not link the lua/script. You need to check:
0:26 Lua API: et_ClientBegin error running lua script: [string “noq/noq.lua”]:1307: You must to input 2 arguments to use the ‘DS’ option.
0:26 Lua API: et_ClientConnect error running lua script: [string “noq/noq.lua”]:1307: You must to input 2 arguments to use the ‘DS’ option.
0:52 Lua API: et_ClientCommand error running lua script: [string “noq/noq.lua”]:675: attempt to compare number with nil

The last one might be a resulting error because of the above errors.


(brk) #5

an extract from noq.lua

elseif op == 'DS' then
    -- DS -> compute time difference time1-time2 and return result in seconds
    if time1==nil or time2==nil then
        error("You must to input 2 arguments to use the 'DS' option

(ailmanki) #6

http://dev.kernwaffe.de/projects/noq/files

according to the manual, you need to set somewhere in your noq config

["recordbots"] = "0",

(brk) #7

I have in my confing:
[“dbms”]=“SQLite”,
[“dbname”]=“stats_bd”,
[“dbuser”]="…",
[“dbpassword”]="…",
[“dbhostname”]="…",
[“serverID”]="…",
[“dbport”]=“3306”,
[“useDB”]=“1”,
[“mail”] = “0”,
[“mailserv”] = “XXX”,
[“mailport”] = “25”,
[“mailfrom”] = “<XXX>”,
[“recordbots”] = “0”,

but it is not working…


(ailmanki) #8

and where do you have the original files from? which version is it? care to zip it?

[QUOTE=Micha;542496]People cannot help much if you do not link the lua/script.
…[/QUOTE]


(brk) #9

I use noq_beta_svn199.7z, I can’t paste the log because they are too long. but nothing has changed in the original.
Do I have to create tables in Sqlite?