I'm using PtokaX-emu-pre.lua/PtokaX-emu-post.lua v.3 and compat.lua v.1 with DCH 0.22. When I tried to use ChatStats. I got the following error in the DCH++ Dos window:
[string "scripts/ChatStats.lua"]:599: unexpected symbol near `%'
Looking at that line of code, its:
return foreachi(table, function(id, item) if item.sName == %name then return id end end)
Is there anyway to fix that script or the ptokax emulation ones?
Along the same lines, I was trying another chatstat bot earlier and got these errors (wasnt paying attention at the time):
[string "Scripts/compat.lua"]:63: attempt to index local `dbg' (a nil value)
LUA Error:
[string "scripts/compat.lua"]:193: bad argument #1 to `read' (invalid option)
PtokaX Emulation script problems
-
BSOD2600
- Forum Moderator
- Posts: 503
- Joined: 2003-01-27 23:47
- Location: USA
-
arnetheduck
- The Creator Himself
- Posts: 296
- Joined: 2003-01-02 22:15
-
BSOD2600
- Forum Moderator
- Posts: 503
- Joined: 2003-01-27 23:47
- Location: USA
Thanks, that fixed one error
Now the bot loads (mostly) but right away it throws this now:
LUA Error:
[string "scripts/ChatStats.lua"]:670: parseINI() Stats/Bigstats.ini
code: assert(config, "parseINI() "..fName)
When I tried to run the save command, it threw this:
LUA Error:
[string "scripts/ChatStats.lua"]:599: bad argument #1 to `foreachi' (table expected, got nil)
code: return foreachi(table, function(id, item) if item.sName == name then return id end end)
So its sounding like this script is just too much hassle to get properly working.
Onto another subject...how do I make bots I've loaded go away? For example, I've removed this chatstat bot from luascript.xml and reloaded, but its still appearing in the hub (although not operational anymore)!
Now the bot loads (mostly) but right away it throws this now:
LUA Error:
[string "scripts/ChatStats.lua"]:670: parseINI() Stats/Bigstats.ini
code: assert(config, "parseINI() "..fName)
When I tried to run the save command, it threw this:
LUA Error:
[string "scripts/ChatStats.lua"]:599: bad argument #1 to `foreachi' (table expected, got nil)
code: return foreachi(table, function(id, item) if item.sName == name then return id end end)
So its sounding like this script is just too much hassle to get properly working.
Onto another subject...how do I make bots I've loaded go away? For example, I've removed this chatstat bot from luascript.xml and reloaded, but its still appearing in the hub (although not operational anymore)!
-
Sedulus
- Forum Moderator
- Posts: 687
- Joined: 2003-01-04 14:32
+lua dchpp.removeNick( "thebotname" )
(perhaps several times, if you restarted the script.. the ptokax scripts do not have a shutdown function, so it won't release bot-nicks, and dchpp will add and add and add :) )
(perhaps several times, if you restarted the script.. the ptokax scripts do not have a shutdown function, so it won't release bot-nicks, and dchpp will add and add and add :) )
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
Who is online
Users browsing this forum: Google [Bot] and 0 guests