Author | Message |
---|
Meka][Meka Unstopable Posts: 700
| just to let u know i finished tonight the lua plugin framework, and tomorrow i will be adding the calls and ret functions tomorrow, if u have any major functions u want added tomorrow, let me know, then i will be releasing ASAP ;) the framework consists of an extremely quick scriptmanager, therfore, wont have problems with lots of scripts.... but will get it up and running first and then we can see what happens ;) -/Meka][Meka
Code: | *** Connecting to 127.0.0.1... *** Connected <Hub-Security> HeXHub 3.09 powered by Meka][Meka Lua-Plugin 1.501 for more information write !about <Hub-Security> Type !help to see the commands you have Für Hubbefehle in deutscher Sprache, schreibe !language DE Për ti parë porositë e HUBIT në gjuhën shqipe shkruani !language AL Pour voir les messages du Hub en français, write !language FR Per vedere i messaggi dell’HUB in lingua italiana digita !language IT Om de HUBs berichten in het nederlands te zien, type !language NL Zeby zobaczyc polecenia huba po polsku, wpisz !language PL Pentru a vedea mesajele de la HUB in limba romana, scrie !language RO <Meka][Meka> a testing from lua script <-Nemesis-> testing from lua script |
Code: | function Test() SendToAll('testing from lua script'); SendToAll('-Nemesis-', 'testing from lua script'); end; |
|
bluebear n00b Posts: 32
| I see i wasted my time on programming that lua plugin for hexhub.. will just delete it then and stop developing on it
|
Meka][Meka Unstopable Posts: 700
|
Quoted from bluebear | I see i wasted my time on programming that lua plugin for hexhub.. will just delete it then and stop developing on it | up2 u, keep doing if u want, i only doing for learning with lua + plugin systems, and whatever else, soon i will make Ruby Plugin System and other such... and infact keep doing, we can see what difference is, my plugin is written in pascal, yours in c++ right?, we can compare them maybe ^_^
|
CrazyGuy n00b Posts: 32
| It would be great to compare both.. maybe be able to merge them into 1 optimized script. I'd like to test your version, if you can make it available Meka, already :roll:
|
bluebear n00b Posts: 32
| Meka: I will put the plugin on hold a bit and maybe finish it later on. It suits me better if someone else creates it since i only started it by request and not intrest. I think that one lua plugin for HeXHub is enough, two will just result in ppls mixing it all up. I think i'll make a perl scripting plugin instead
|
bluebear n00b Posts: 32
| And yes mine is written in C++.
|
Meka][Meka Unstopable Posts: 700
| ok first release you must extract this into hexhub's main directory, give u the ability to do a bit lua scripting in hexhub, but this is first release so it doesnt have a great deal of functionality, enough for now, just request the most important funcs u need and i will try add em asap for next release DOWNLOAD HERE the scripting guide is the api file within the plugins dir
Code: | note: _ before var is usually an object type, example: _user = _user.sName Events ------ Main() --// when script is loaded. ChatArrival(_user, data) --// when chat is recieved UserConnected(_user) --// when user connects, truly called when myinfo is recieved. UserDisconnected(_user) --// when user disconnects. DataRaised(_user, data) --// when data is recieved from a user. NickChange(oldnick, newnick) -// when a nickname is changed. user object ----------- user.sName user.iProfile user.iUserID Calls ----- SendToAll('text') SendToAll('nick', 'text') InvokeChatOn(userid, 'text') InvokeChatOn(userid, 'nick', 'text'); InvokeDataOn(userid, 'data') GetUserCount() RegBot('name'); --// value returns bots id. UnregBot(botid); GetTopic(); SetTopic('topic') GetProfileName(_user.iProfile) Timers ------ sample on using timers. for times u must make a call back function. for example function TimerCallBack() --//do something; end; --//now to create the timer timer = NewTimer('TimerCallBack'); timer:Set(1000); --//set 1 second; timer:Start(); --// start the timer; timer:Stop(); --// stop the timer; | njoy, ltr
|
CrazyGuy n00b Posts: 32
| will let ya know
|
CrazyGuy n00b Posts: 32
|
Code: | sbotname = "Test_bot" Main = function() RegBot(sbotname) end UserConnected = function(_user) InvokeChat(_user.iUserID, sbotname, 'hello') end | [00:58:22] [10/8/2006 12:58:22 AM] Error at line: 7, [string "./scripts/test1.lua"] - attempt to call global `InvokeChat' (a nil value) [00:58:22] [10/8/2006 12:58:22 AM] Error at line: 7, [string "./scripts/test1.lua"] - attempt to call global `InvokeChat' (a nil value)
|
CrazyGuy n00b Posts: 32
|
Code: | UserConnected = function(_user) SendToAll(sBotname, sWelcome.._user.sName..". This brings the total usercount to ") end | works fine while
Code: | UserConnected = function(_user) SendToAll(sBotname, sWelcome.._user.sName..". This brings the total usercount to "..GetUserCount()) end | returns [01:14:12] [10/8/2006 1:14:12 AM] Error at line: 11, [string "./scripts/test1.lua"] - attempt to concatenate a nil value
|
CrazyGuy n00b Posts: 32
|
Quoted from CrazyGuy | Code: | sbotname = "Test_bot" Main = function() RegBot(sbotname) end UserConnected = function(_user) InvokeChat(_user.iUserID, sbotname, 'hello') end | [00:58:22] [10/8/2006 12:58:22 AM] Error at line: 7, [string "./scripts/test1.lua"] - attempt to call global `InvokeChat' (a nil value) [00:58:22] [10/8/2006 12:58:22 AM] Error at line: 7, [string "./scripts/test1.lua"] - attempt to call global `InvokeChat' (a nil value) | it seems like InvokeChatOn has been stated wrongly in the API as InvokeChat ;)
|
CrazyGuy n00b Posts: 32
|
Code: | sMsg = "\r\n\r\n\t\tWelcome username\r\n" .."\tYour username is: username\r\n" .."\tYour User ID is: userid\r\n" .."\tYour profile number is: profilenumber\r\n" .."\tYour profile name is: profilename\r\n\r\n" .."\tCurrent hub topic: hubtopic\r\n\r\n\t\tEnjoy your stay\r\n" sBotname = "Welcome_Bot" tUsers = {} Main = function() RegBot(sBotname) end UserConnected = function(_user) local bIsLogged = 0 for k in pairs(tUsers) do if tUsers[k] == _user.sName then bIsLogged = 1 end end if bIsLogged == 0 then local sCurMsg = string.gsub(sMsg, "username", _user.sName) sCurMsg = string.gsub(sCurMsg, "userid", _user.iUserID) sCurMsg = string.gsub(sCurMsg, "profilenumber", _user.iProfile) sCurMsg = string.gsub(sCurMsg, "profilename", GetProfileName(_user.iProfile)) sCurMsg = string.gsub(sCurMsg, "hubtopic", GetTopic()) InvokeChatOn(_user.iUserID, sBotname, sCurMsg) table.insert(tUsers, _user.sName) end end | causes HeXhub to crash on MyINFO Arrival
Quote: | Problem signature Problem Event Name: APPCRASH Application Name: HeXHub.exe Application Version: 3.0.9.1 Application Timestamp: 451f7514 Fault Module Name: HeXHub.exe Fault Module Version: 3.0.9.1 Fault Module Timestamp: 451f7514 Exception Code: c0000005 Exception Offset: 00040998 OS Version: 6.0.5600.2.0.0.256.1 Locale ID: 1033 Additional Information 1: 1fa6 Additional Information 2: 8bde73e1ebd2cf9afa0bc064ff5b06e5 Additional Information 3: c9f4 Additional Information 4: a85d288e7d9e72372ce96edf750271ba Extra information about the problem Bucket ID: 334017271 |
|
CrazyGuy n00b Posts: 32
| removing all string.gsub lines allowed HeXhub to run again
|
Meka][Meka Unstopable Posts: 700
|
Quoted from CrazyGuy | Code: | sMsg = "\r\n\r\n\t\tWelcome username\r\n" .."\tYour username is: username\r\n" .."\tYour User ID is: userid\r\n" .."\tYour profile number is: profilenumber\r\n" .."\tYour profile name is: profilename\r\n\r\n" .."\tCurrent hub topic: hubtopic\r\n\r\n\t\tEnjoy your stay\r\n" sBotname = "Welcome_Bot" tUsers = {} Main = function() RegBot(sBotname) end UserConnected = function(_user) local bIsLogged = 0 for k in pairs(tUsers) do if tUsers[k] == _user.sName then bIsLogged = 1 end end if bIsLogged == 0 then local sCurMsg = string.gsub(sMsg, "username", _user.sName) sCurMsg = string.gsub(sCurMsg, "userid", _user.iUserID) sCurMsg = string.gsub(sCurMsg, "profilenumber", _user.iProfile) sCurMsg = string.gsub(sCurMsg, "profilename", GetProfileName(_user.iProfile)) sCurMsg = string.gsub(sCurMsg, "hubtopic", GetTopic()) InvokeChatOn(_user.iUserID, sBotname, sCurMsg) table.insert(tUsers, _user.sName) end end | causes HeXhub to crash on MyINFO Arrival
Quote: | Problem signature Problem Event Name: APPCRASH Application Name: HeXHub.exe Application Version: 3.0.9.1 Application Timestamp: 451f7514 Fault Module Name: HeXHub.exe Fault Module Version: 3.0.9.1 Fault Module Timestamp: 451f7514 Exception Code: c0000005 Exception Offset: 00040998 OS Version: 6.0.5600.2.0.0.256.1 Locale ID: 1033 Additional Information 1: 1fa6 Additional Information 2: 8bde73e1ebd2cf9afa0bc064ff5b06e5 Additional Information 3: c9f4 Additional Information 4: a85d288e7d9e72372ce96edf750271ba Extra information about the problem Bucket ID: 334017271 | | have you got latest version of hexhub?
Code: | *** Connecting to 127.0.0.1... *** Connected <Hub-Security> HeXHub 3.09 powered by Meka][Meka Lua-Plugin 1.501 for more information write !about <Welcome_Bot> Welcome Meka][Meka Your Meka][Meka is: Meka][Meka Your User ID is: 6 Your profile number is: 4294967295 Your profile name is: Default Current hub topic: d Enjoy your stay <Hub-Security> Type !help to see the commands you have Für Hubbefehle in deutscher Sprache, schreibe !language DE Për ti parë porositë e HUBIT në gjuhën shqipe shkruani !language AL Pour voir les messages du Hub en français, write !language FR Per vedere i messaggi dell’HUB in lingua italiana digita !language IT Om de HUBs berichten in het nederlands te zien, type !language NL Zeby zobaczyc polecenia huba po polsku, wpisz !language PL Pentru a vedea mesajele de la HUB in limba romana, scrie !language RO <Default> Meka][Meka has arrived to terrorize you all! | but a note u put username is: username
Code: | sMsg = "\r\n\r\n\t\tWelcome username\r\n" .."\tYour username is: username\r\n" .."\tYour User ID is: userid\r\n" .."\tYour profile number is: profilenumber\r\n" .."\tYour profile name is: profilename\r\n\r\n" .."\tCurrent hub topic: hubtopic\r\n\r\n\t\tEnjoy your stay\r\n" |
|
CrazyGuy n00b Posts: 32
|
Quote: | Application Version: 3.0.9.1 <== yes thats the newest |
Code: | .."\tYour username is: username\r\n" | i changed that when testing with Lord_Zero to
Code: | .."\tYour nickname is: username\r\n" | But Lord_Zero has found something to do with GetProfileName(). It should be fixed in next HeXhub version
|
Meka][Meka Unstopable Posts: 700
| well i have dll running fine here, and no problems whatsoever.... here is fixed dll DOWNLOAD HERE
Code: | sMsg = "\r\n\r\n\tWelcome UNAME\r\n\r\n" .."\tYour username is: UNAME\r\n" .."\tYour User ID is: UID\r\n" .."\tYour profile number is: PROFNO\r\n" .."\tYour profile name is: PROFNAME\r\n\r\n" .."\tCurrent hub topic: HUBTOP\r\n\r\n\t\tEnjoy your stay\r\n" bot = { sName = 'Welcome_Bot', ID = 0 } function Main() bot.ID = RegBot(bot.sName); end function Unload() UnregBot(bot.ID); end; function UserConnected(_user) local sCurMsg = string.gsub(sMsg, "UNAME", _user.sName) sCurMsg = string.gsub(sCurMsg, "UID", _user.iUserID) sCurMsg = string.gsub(sCurMsg, "PROFNO", _user.iProfile) sCurMsg = string.gsub(sCurMsg, "PROFNAME", GetProfileName(_user.iProfile)) sCurMsg = string.gsub(sCurMsg, "HUBTOP", GetTopic()) InvokeChatOn(_user.iUserID, bot.sName, sCurMsg) end | pssst
Code: | botname = 'Hub-Security'; function UserConnected(user) InvokeChatOn(user.iUserID, botname, 'Current user count: ' .. GetUserCount() ); end; | OR
Code: | sMsg = "\r\n\r\n\tWelcome UNAME\r\n\r\n" .."\tYour username is: UNAME\r\n" .."\tYour User ID is: UID\r\n" .."\tYour profile number is: PROFNO\r\n" .."\tYour profile name is: PROFNAME\r\n\r\n" .."\tCurrent hub topic: HUBTOP\r\n\r\n\t\tEnjoy your stay\r\n" bot = { sName = 'Hub-Security', ID = 0 } function Main() bot.ID = RegBot(bot.sName); end function Unload() UnregBot(bot.ID); end; function UserConnected(_user) InvokeChatOn(_user.iUserID, bot.sName, 'Current user count: ' .. GetUserCount() ); local sCurMsg = string.gsub(sMsg, "UNAME", _user.sName) sCurMsg = string.gsub(sCurMsg, "UID", _user.iUserID) sCurMsg = string.gsub(sCurMsg, "PROFNO", _user.iProfile) sCurMsg = string.gsub(sCurMsg, "PROFNAME", GetProfileName(_user.iProfile)) sCurMsg = string.gsub(sCurMsg, "HUBTOP", GetTopic()) InvokeChatOn(_user.iUserID, bot.sName, sCurMsg) end |
Code: | *** Connecting to 127.0.0.1... *** Connected <Hub-Security> HeXHub 3.09 powered by Meka][Meka Lua-Plugin 1.501 for more information write !about <Hub-Security> Current user count: 1 <Hub-Security> Welcome Meka][Meka Your username is: Meka][Meka Your User ID is: 3 Your profile number is: 4294967295 Your profile name is: Default Current hub topic: d Enjoy your stay <Hub-Security> Type !help to see the commands you have Für Hubbefehle in deutscher Sprache, schreibe !language DE Për ti parë porositë e HUBIT në gjuhën shqipe shkruani !language AL Pour voir les messages du Hub en français, write !language FR Per vedere i messaggi dell’HUB in lingua italiana digita !language IT Om de HUBs berichten in het nederlands te zien, type !language NL Zeby zobaczyc polecenia huba po polsku, wpisz !language PL Pentru a vedea mesajele de la HUB in limba romana, scrie !language RO <Default> Meka][Meka has arrived to terrorize you all! | ltr
|
Meka][Meka Unstopable Posts: 700
| a few fixes for future lua code, will be adding more to the framework in a bit for now DOWNLOAD HERE here is the newer version, please update....
|
Meka][Meka Unstopable Posts: 700
| new dll, few more fixes, tweaks and couple extra functions DOWNLOAD HERE njoy, see the api.txt for info. note some of your older scripts need slighly changed.
|
CrazyGuy n00b Posts: 32
| Here's a small list of functions/vars I'd like to see added to the API: User.sIP User.sEmail :?: User.sDescription :?: :?: User.sMyInfo is okay as well, then the email and description can be extracted from that SendChatPmTo(_user.iUserID, sBotname, sMessage) Socket. Class Socket.New(sAddress, iPort) -initialize a new socket Socket.Connect() - connects a socket or return message/integer on error Socket.Read() - reads incomming data from the new socket Socket.Write() - sends data over the connected socket Socket.Close() - disposes a socket If there's anymore I can think of, I'll let ya know 8)
|
CrazyGuy n00b Posts: 32
| I took the liberty of re-writing the API. It might look a bit messy in here, but copy/paste it to Notepad for a clearer view
Code: | Events Event Trigger ------ ------------- Main() --// when script is loaded. Unload() --// when script is unloaded. ChatArrival(_user, data) --// when chat is recieved. DataArrival(_user, data) --// when data is recieved from a user. UserConnected(_user) --// when user connects, truly called when myinfo is recieved. UserDisconnected(_user) --// when user disconnects. NickChange(oldnick, newnick) --// when a nickname is changed. Global Functions Description ---------------- ----------- SendToAll('text') --// Sends 'text' to mainchat SendToAll('nick', 'text') --// Sends 'text' to mainchat as comming from 'nick' SendChatTo(userid, 'text') --// Sends 'text' to a single user SendChatTo(userid, 'nick', 'text'); --// Sends 'text' to a single user as comming from 'nick' SendDataTo(userid, 'data') --// Sends 'data' to a single user GetTopic(); --// returns the current hub topic SetTopic('topic') --// sets the current hub topic to 'topic' GetProfileName(_user.iProfile) --// returns the name of the user objects' profile Classes Description ------- ----------- Hub. UserCount() --// return connected usercount. Uptime() --// return uptime in seconds. -> Hexhub 3.11 and above. RegBot('name'); --// Registers a bot as 'name' .Value returns bots ID. UnregBot(botid); --// Removes a bot registration by bot ID. user. sName --// returns the nickname of the current user object iProfile --// returns the profile number of the current user object iUserID --// returns the UserID of the current user object iIdent --// returns the status of the current user object 0 for normal user, 1 for OP, 2 for hidden OP and -1 on not found Timers Description ------ ----------- TimerCallBack() --// executed on timer interval 'timer' = NewTimer('TimerCallBack'); --// Creates a new instance of Timer with the name of the function executed on interval timer:Set('interval'); --//sets a timerinterval to 'interval' in miliseconds timer:Start(); --// start the timer timer:Stop(); --// stop the timer |
|
CrazyGuy n00b Posts: 32
| After a nickchange, i noticed that Trivia doesnt react to the user anymore:
Quote: | [22:04:08] <CrazyGuy> trivstart [22:04:08] <<-Trivia->> CrazyGuy has started Trivia [22:04:19] <CrazyGuy> [command] !nick test [22:04:20] *** CrazyGuy is now known as test [22:04:23] <<-Trivia->> what facility for passengers was shannon airport the first in the world to provide? [22:04:31] <test> toilet [22:04:38] <<-Trivia->> @ @@@@ @@@@ @@@@ [22:04:53] <<-Trivia->> @ @@@@ @@@@ s@o@ [22:05:08] <<-Trivia->> a d@@@ fr@@ s@o@ [22:05:23] <<-Trivia->> a d@t@ fre@ s@o@ [22:05:32] <test> a duty free shop [22:05:38] <<-Trivia->> Nobody Answered correctly The correct answer was: a duty free shop [22:05:53] <<-Trivia->> what was the first domesticated bird? [22:06:08] <<-Trivia->> @@@@@ [22:06:23] <<-Trivia->> @@@@e [22:06:38] <<-Trivia->> g@o@e [22:06:50] <test> goose [22:06:53] <<-Trivia->> g@ose [22:06:54] <test> [command] !nick CrazyGuy [22:06:54] *** test is now known as CrazyGuy [22:06:56] <CrazyGuy> goose [22:06:56] <<-Trivia->> Correct CrazyGuy. You scored 2 points with that answer. This brings your total score to: 2 | I've done a few test and seen that _user.sName is correctly changed. But data is changed as well
Code: | ChatArrival = function(_user,data) SendToAll(data) | result:
Quote: | [22:24:39] <CrazyGuy> test [22:24:39] test [22:24:45] <CrazyGuy> [command] !nick test [22:24:45] !nick test [22:24:45] *** CrazyGuy is now known as test [22:24:47] <test> boo [22:24:47] uy> boo | because of the "uy>" inserted in data, the script will fail it's capturing :idea: Hope that helps ya sort it
|
Meka][Meka Unstopable Posts: 700
| ok i see this is because the nick returned from hexhub when nickfromid is the actual first nick user had, therfore confuing plugin into copying the incorrect length of buffer, i will look into this tomorrow afternoon, maybe will chat with LZ....
|
Meka][Meka Unstopable Posts: 700
| a pre relase of the upcoming release.... few changes and critical fixes. DOWNLOAD HERE
|
Meka][Meka Unstopable Posts: 700
| because of problems and errors in the previous pre-release... heres another pre-release of upcoming. to put u over til i add more....; )
Code: | 1.502d ------ Fixed: Incorrect length of chat data being recieved within scripts. Added: OnError ( see api ) Added: SendPMTo ( see api ) | DOWNLOAD HERE
|
Meka][Meka Unstopable Posts: 700
| ok here is yet another release, few more updates and a fix....
Code: | 1.503a ------ Fixed: Problem with non stacked functions. Changed: OnError is now ErrorEvent ( see api ) Added: _user.sIP ( see api ) Added: _user.iIP ( see api ) Added: _user.sMyINFO ( see api ) Added: _user.sDescription ( see api ) Added: _user.sShare ( see api ) Added: _user.sConnection ( see api ) Added: _user.sTag ( see api ) Added: _user.sEmail ( see api ) Added: _user.sISP ( see api ) Added: _user.sLanguage ( see api ) | DOWNLOAD HERE
|
CrazyGuy n00b Posts: 32
| Hey Meka, Excellent work on the 1.503a .. Works here without problems. Just have a few more requests: User:Kick() -- tempban a user for the hubs default tempban time User:Ban(iType,sTime,sReason) with iType being ban0,1 or 2 and sTime being 1M, 2h etc Further , but less important GetHubName() GetHubDescription() GetUserObj(iUserID) returning a table with sName, sIP, sDescription etc etc
|
CrazyGuy n00b Posts: 32
| found a small bug
Code: | local iPos = string.find(Data, "%$To%:%sVIP%-Chat") | that works, but
Code: | local sChat = "VIP-Chat" local iPos = string.find(Data, "%$To%:%s"..sChat) | does not work. Seems it has trouble with the string because of a special character (-) Can you check please ? Also according to Lord_Zero it should be possible to capture pm's with ChatArrival as they are exported by the hub under the same function. On tests however, I could not get ChatArrival triggered by PM's. Can that be added, or even better, a seperate PmArrival Thnx
|
Dardanicum n00b Posts: 16
| hi, anyone has any idea about this error: Assertion failure (E:\Program files\Borland\Delphi\Projects\hexhub_plugin\LuaUtils.pas.line 731) why did it occur or how to fix it cheers
|
Dardanicum n00b Posts: 16
| hi, another error with the lua plugins: FAULT ->01a3cf00 8a10 mov dl,[eax] ds:0023:ffffffff=?? 01a3cf02 f6828983a50104 test byte ptr [edx+0x1a58389],0x4 01a3cf09 743c jz lua!luaX_lex+0x38c (01a3cf47) 01a3cf0b 8b0e mov ecx,[esi] 01a3cf0d 8306ff add dword ptr [esi],0xffffffff 01a3cf10 85c9 test ecx,ecx 01a3cf12 761a jbe lua!luaX_lex+0x373 (01a3cf2e) 01a3cf14 83460402 add dword ptr [esi+0x4],0x2 01a3cf18 8b4604 mov eax,[esi+0x4] 01a3cf1b 0fb640fe movzx eax,byte ptr [eax-0x2] 01a3cf1f c1e008 shl eax,0x8 *----> Stack Back Trace <----* WARNING: Stack unwind information not available. Following frames may be wrong. *** WARNING: Unable to verify checksum for E:\Documents and Settings\kloxha\Desktop\HeXHub_v3.15\HeXHub\Plugins\hex_luaplugin.dll *** ERROR: Symbol file could not be found. Defaulted to export symbols for E:\Documents and Settings\kloxha\Desktop\HeXHub_v3.15\HeXHub\Plugins\hex_luaplugin.dll - *** WARNING: Unable to verify checksum for E:\Documents and Settings\kloxha\Desktop\HeXHub_v3.15\HeXHub\HeXHub.exe *** ERROR: Module load completed but symbols could not be loaded for E:\Documents and Settings\kloxha\Desktop\HeXHub_v3.15\HeXHub\HeXHub.exe ChildEBP RetAddr Args to Child 0012f17c 01a3c3a0 0012f868 0012f868 0012f7cc lua!luaX_lex+0x345 0012f18c 01a36d62 01a62768 0012f784 0012f868 lua!luaX_setinput+0x3b 0012f7cc 01a34d2a 01a62768 0012f868 0012f848 lua!luaY_parser+0x3e 0012f7e8 01a342e3 01a62768 0012f844 01a62768 lua!luaD_pcall+0xd8 0012f824 01a34da2 01a62768 01a34ce7 0012f844 lua!luaD_rawrunprotected+0x30 0012f854 01a31fd2 01a62768 0012f868 00000000 lua!luaD_protectedparser+0x37 0012f87c 01a3ddad 01a62768 01a3dbfc 0012f8a0 lua!lua_load+0x4b 0012faac 01a3e7c8 01a62768 01a67a80 01a628d0 lua!luaL_loadfile+0x12a 0012fac8 01a348b6 01a62768 01a628b0 02010059 lua!lua_dostring+0x87a 0012fae4 01a3ba4e 01a62768 01a628d0 00000000 lua!luaD_precall+0x13c 0012fc90 01a349f8 01a62768 01a62768 0012fcb4 lua!luaV_execute+0x109c 0012fca0 01a31e76 01a62768 01a628a0 00000000 lua!luaD_call+0x56 0012fcb4 01a342e3 01a62768 0012fd44 01a62768 lua!lua_call+0x36 0012fcf0 01a34c8a 01a62768 01a31e63 0012fd44 lua!luaD_rawrunprotected+0x30 0012fd20 01a31eca 01a62768 01a31e63 0012fd44 lua!luaD_pcall+0x38 0012fd4c 01a0da42 01a62768 00000000 00000000 lua!lua_pcall+0x4f 0012fd94 01a0fdbb 0012fdc4 00000000 0012fde8 hex_luaplugin+0x4da42 0012fddc 01a0f79f ffffffff 0012fe48 01a0f7c2 hex_luaplugin+0x4fdbb 0012fe3c 01a10292 00000028 0012ffe0 01a102b5 hex_luaplugin+0x4f79f 0012ff8c 0043f302 01f702e6 01f70000 0043f795 hex_luaplugin!InitPlugin+0x20a 0012fff0 00000000 00418a1a 00000000 78746341 HeXHub+0x3f302 heeeeeeeeeeeeeelp cheers
|
AJ Clone Posts: 7
| i need help im gettin this error for some strange reason [03:26] <02/01/2007 03:26:15> Error at line: 23, [string "./scripts/HeXTrivia.lua"] - attempt to call global `RegBot' (a nil value) [03:26] <02/01/2007 03:26:23> Error at line: 23, [string "./scripts/HeXTrivia.lua"] - attempt to call global `RegBot' (a nil value) [03:26] <jayyy> trivstart [03:26] <<-Trivia-> jayyy has started Trivia [03:26] [02/01/2007 03:26:34] Error at line: 60, [string "./scripts/HeXTrivia.lua"] - attempt to index global `tmrTrivia' (a nil value)
|
CrazyGuy n00b Posts: 32
|
Quoted from AJ | i need help im gettin this error for some strange reason [03:26] <02/01/2007 03:26:15> Error at line: 23, [string "./scripts/HeXTrivia.lua"] - attempt to call global `RegBot' (a nil value) [03:26] <02/01/2007 03:26:23> Error at line: 23, [string "./scripts/HeXTrivia.lua"] - attempt to call global `RegBot' (a nil value) [03:26] <jayyy> trivstart [03:26] <<-Trivia-> jayyy has started Trivia [03:26] [02/01/2007 03:26:34] Error at line: 60, [string "./scripts/HeXTrivia.lua"] - attempt to index global `tmrTrivia' (a nil value) | Please install the right Plugin version. ( 1.503a ). downloadable in this post
|
Dardanicum n00b Posts: 16
| hi, another error: Access violation at address 01B0940B in module " lua.dll ". Read of address 0000001C thnx for any help
|
CrazyGuy n00b Posts: 32
|
Quoted from Dardanicum | hi, another error: Access violation at address 01B0940B in module " lua.dll ". Read of address 0000001C thnx for any help | try deleting of plugins.dat and restarting hubsoft. If that doesn't help, Meka's your man 8)
|
ATAG n00b Posts: 12
| It would be so nice to start, stop and restart scripts by commands... Is it possible in the future?
|
ATAG n00b Posts: 12
| It seems Hub.RegBot() returns nil :(
Code: | bot = {sName = "lol"} bot.ID = Hub.RegBot(bot.sName) SendToAll("lua","BotID: "..tostring(bot.ID)) |
Quote: | [02:42:13] <lua> BotID: nil | ...and i cant unreg the bot without its ID :(
|
Dardanicum n00b Posts: 16
| try deleting of plugins.dat and restarting hubsoft. If that doesn't help, Meka's your man _________________ Cheers, CG of course deleting works cg, but that's not a solution, it just solves the problem temporarily, besides, it's not fair deleting any users' trivia scores every time plugins fail
|
Meka][Meka Unstopable Posts: 700
|
Quoted from ATAG | It seems Hub.RegBot() returns nil :(
Code: | bot = {sName = "lol"} bot.ID = Hub.RegBot(bot.sName) SendToAll("lua","BotID: "..tostring(bot.ID)) |
Quote: | [02:42:13] <lua> BotID: nil | ...and i cant unreg the bot without its ID :( | i not worked on plugin for a while but if i remember correctly, it returns the id as a string, try remove the tostring call.... but on the other hand i cant remember, i may be wrong, when i get time, when at home i'll take a look, maybe do some updates or a rewrite...
|