Creation/Dev/Troubleshooting Graal v4 IRC: Difference between revisions

From Graal Bible
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''http://www.antiunixmad.com/
[[Category:Scripting Reference]][[Category:Scripting Tutorials]]
Written by [[user:Skyld|Skyld]], 28/08/2005.


Viper's Graal Issues.
== Introduction ==
After a rising number of people are having problems using the IRC and events system in their scripting, I have decided to write this document to assist in troubleshooting problems.


Hello everyone, as of late, many people have been attacking me on the issues and matters, trying to lie about things, bend the truth, and downright spin to make me and others of my cause look bad, in this text document i will discuss and lay to rest the issues that matter.
== No IRC server connection ==
If you are finding that commands like:
<pre>sendtext("irc", "login", "EventsBot");
sendtext("irc", "privmsg", {"IRCBot", "!resetevents"});</pre>
... in your events bots are not returning any responses, then your server might not be GScript2-enabled. You will need to use the old style scripting as described in [[Creation/Dev/Graal_v4_IRC#IRCBots_for_Old_Scripting|Bots using old scripting]].


I have been involved graal for over three years now, and i used to really like Graal and its admins alot, then slowly after about a year Graal and its admins went in a bad downward spiral, i still stuck with graal in hopes graal would pull itself out of this hole and unixmad would go back to the right path, this however did not happen, instead unixmad and even stefan went fouler and lower than i could have imageined, First with fireing Pachuka and Fuitad, two of the BEST graal admins ever in my view for no other reason than disagreeing with his future plans, then if just fireing them was not bad enough, he threatend to sue them and kill they're families, this was so wrong and bad Fuitad even said he would punch unixmad in the face for saying that if he met him in real life, but that was just the beginning of the downward spiral unixmad foolishly invoked onto graal, he then blatantly STOLE a domain name graal.net from Owl Shimy which costed over 30$ US Dollars, and never gave it back to him and never paid him for the cost of the domain, he also threatend to sue Owl Shimy and kill his family although it was Unixmad which stole the domain from Owl Shimy, then around Graal1.3.1 he blocked off Gservers officially and threatend to sue anyone that ran the former Gservers, although they were released as "Freeware" and actually used to encourage people to use the Gservers, this was a blatant attempt to monopolise , threaten, and intemidate that players that actually helped graal and supported him, he then made claims he copyrighted "Graal" and would contact so called "Lawres" about anyone that used the name "Graal" or had "Graal Files" on there websites, although graal was distributed as "Freeware" or "Shareware" and had no official software copyrights related to it, and that the name "Graal" was actually the name of a holy sacred golden cup used in some religion, and in that he has commited blasphemy against whatever religion has the so called "Holy Graal", then later on Unixmad fired SuperNick, because of his country and his origion and called him an American Asian slut, this was the first sign of racism on the part of Unixmad, towards Graal1.4.1 Unixmad was secretly unwrapping his sadistic plans, he then started claiming credit and claiming to own the copyrights to graal, although unixmad has done nothing but host some stupid weak as servers, and yet Stefan Knorr has done all the real work for Graal, and was the one to make ZeldaOnline , GraalOnline in the first place and has written every bit of codeing for the Graal Client , Gserver, RC, ect, yet unixmad the worthless pile of trash that he is steals all credit for Graal, then in February 2001, Unixmad and Antago release Graal2001 and the start of the "Pay to Play" system, now i have no problem with the fact that it is pay to play, the issue is when you PAY for something you actually expect to get the worth while of your money in this product, but instead they got a shittily made level generated land that was 99% empty, the NPCs were and are laggy as hell, and there were no quests, and there is only two shitty things today for hearts that suck so much i refuse to even call them quests, and to add to that about 40% of everyone that paid and gave unixmad there credit card number NEVER got the accounts they paid 27$ or more for, and those that did clearly got chumped out by a cheap peice of crap that aint worth paying for, it sucked so badly that most people played on Graal Classic still, even those that foolishly paid for pay to play accounts, and in an attempt to "FORCE" people to pay for a shitty product they do not want against they're will Unixmad hired "Tyhm" to deface and ruin GraalClassic in an attempt to make it buggier and less fun than even Graal2001, about this time i was disgusted with unixmad and most of the other admins and decided to downright turn against Graal and for the most part stop playing the peice of crap in general. People starting getting angry, complaining, asking for help, and asking for refunds, of coarse unixmad gave noone a cash refund, and simply deleted and banned "PAID ACCOUNTS" of those who complained, asked for help, or asked for a refund these are PAYING CUSTOMERS, they have the rights of basic service that they PAID for, unixmad promises pay to play players a quality product and customer service, but instead gives them a grade F product and ripps off his customers and delete they're accounts that they PAID HIM money for, his excuse? Credit card fraud, when infact at least 90% of the people he bans for credit card fraud pay legitamately with there OWN credit cards or pay via paypal by check, and yet Unixmad has stolen and used others credit card numbers to buy things for himself on several occassions, he also claims he needs pay to play money to keep graal alive and running, yet there has been evidence that he makes at least 90% profit out of the monies he gets, and that he uses illegal porn ad banners and illegal cookie style web tracking and giveing email adresses of the players and even phone numbers of every player to spam and telemarketting companies without there permission, he even keeps personal player info, includeing email, adress, and phone number on unsecure servers which have already been leaked out, such info about people should not be on a public webserver accessable to the internet in anyway, then after all that Unixmad starts banning african american people, asians, koreans, and or people with images of people of that race from the Graal2001 forums and graal itself, yet again they are paying customers and this is another sickening act of racism on the part of Unixmad and GraalOnline, and then even more disgusting is what Stefan posts on the Graal2001 forums, he makes several anti american, racist, pro terrorist, pro nazi, and pro taliban comments on that post and goes on and on several pages bashing americans, this post was offense, obcene, and disgusting to many people includeing myself . If all that does not make you sick to your stomache or dislike unixmad yet, i am far from done, then Unixmad proceeds to illegally DDOS webservers of mafukie and make threats to him over the phone, and has phone assaulted me over 40 times a day between midnight and 5am, and has made threats to sue dozens of people, kill there families, and shut down innocent websites and servers, while hosting illegal stuff and doing illegal things himself with the use of his own wanadoo.fr servers, stuff which includes child porn, bestiality porn, DVD Piracy, DDOS Attacks, theft of copyrighted materials from gameing companies such as nintendo, Credit Card fraud, theft, spamming, phone harrassment, useage of illegal pirated corperate softwares, all this just to start the list of what Unixmad, Stefan, and they're servers are doing 24/7 for nearly 4 years now , anyone that likes unixmad or thinks he is a good person even after all this is clearly a fool, everything in this document is the truth and why i hate unixmad so much, if you like unixmad after all these sickening things he does, then you are no better than a KKK or Neo Nazi member and should go kill yourselfs, i do not tolerate facists, racists, or nazis, they are all bad people, and unixmad is one of the worst of the worst, and no person with any morales could tolerate or support such a person like Stephane Portha or Stefan Knorr. The people that spin, lie and bend the truth in support of unixmad will always exist, but i will always reveal the truth about unixmad, and EVERYTHING said in this document is true, despite what any assclowns try and say about this, and this supriseingly enough is only 1% of the bad things Unixmad has done, how some people even tolerate, none the less support such a bad person is beyond me... I fight against bad people like unixmad, why? Because unlike many others in this world i actually care about other people, and i will do everything in my power to stop unixmad from hurting graal or its innocent players, many say i want to destroy and kill graal, this is NOT true, i used to love graal, i only wish to stop unixmad's evil sadistic illegal actions and restore graal to the great game it used to be when it was "for the players, by the players" , but if i have to destroy GraalOnline in exchange to stop unixmad's tyranny, it will be regreteable, but sometimes some sacrifices have to be made for the greater good, lets just hope that unixmad drops dead and that sacrifice never has to be made... I love graal and lots of its players, and i wish to someday restore it to the grandness it once had, but bad people like unixmad must be gotten rid of if that is to be achieved...'''
== IRC Bot appears to be online but does not receive data ==
If your IRC Bot is logging in and joining channels properly but not returning any information, the most simple problem is that you have made a spelling error.
<pre>function onRecieveText(texttype, textoptions, textlines)</pre>
This won't work because onReceiveText is spelt wrong. Ensure that it is spelt correctly.
<pre>function onReceiveText(texttype, textoptions, textlines)</pre>
 
== EventsBot will not register ==
If you used the EventsBot start script from the [[Creation/Dev/Graal_v4_IRC|Graal 4 IRC]] Wiki page, then you may encounter a problem where the EventsBot will not login correctly.
This is simply fixed, by replacing this:
<pre>textlines[1] == "!eventsbotlogin"</pre>
With this:
<pre>textlines[2] == "!eventsbotlogin"</pre>
Thanks to napo_p2p for discovering this this and [http://forums.graalonline.com/forums/showpost.php?p=1103844&postcount=20 posting the error].
 
== EventsBot is registered, but no admin control is available in the serverlist ==
When you receive a '''PRIVMSG''' from '''IRCBot''' saying "!eventsbotlogin", you must provide two important details about your setup.
* Send the account names of those who should have admin access: <pre>sendtext("irc", "privmsg", {"IRCBot", {"!eventadmins", "AccountName", "AccountName2"}});</pre>
* Send the discussion channel for your events: <pre>sendtext("irc", "privmsg", {"IRCBot", {"!eventchannel", "#ChannelName"}});</pre>
When the EventsBot logs in, after sending the above data, the listed account names should have access to the Admin tab for events when they log onto the game server.
 
== My IRC bot occasionally disappears and does not reappear until script update ==
This could be for a couple of reasons:
* The IRC server was reloaded and connections were reset
* The IRC server fails or a problem arises
* The gserver/npcserver has been restarted
To ensure that the IRC bot always restores it's connection, you should put your connect routine in a seperate function, and use something like this:
<pre>function onCreated() IRCConnect();
function onInitialized() IRCConnect();
function onServerListerConnect() IRCConnect();</pre>
Also, ensure that the IRC bot is correctly resetting it's connection by logging out in your connect routine:
<pre>// Logout first
sendtext("irc", "logout", "");
// Then login and do stuff
sendtext("irc", "login", "Nickname");</pre>
 
== My IRC bot does not accept name changes properly on script update ==
This occurs because you have tried to use a new name without freeing your previous one. Just logging in again with a new name will not work.
Instead, you have to log out and '''then''' log in using the new name.
<pre>sendtext("irc", "logout", "");
sendtext("irc", "login", "Nickname");</pre>
In fact, it's probably a good idea to make your IRC bot log out and in again on every connection.
 
== Randomly, my IRC bot reports everyone in the channel joining again ==
'''ADDCHANNELUSER''' is sent to IRC scripts every time a user joins a channel that you or your IRC bot is also in. This allows making of a user list for that channel, or simply monitoring who joins and leaves.
It has been known for this to occasionally occur, listing everyone in the channel at once. This could happen for a number of reasons:
* You have reset your connection to the IRC server, maybe by a script update, and the IRC server is telling you again who is in the channel
* The IRC server has been reloaded, and as a result, connections have been dropped
This is not a problem as such, but if this is a problem for you specifically, consider removing any messages that occur on this event, or if you are listing users, make sure your list does not show any user more than once.
 
== My IRC bot is not setting it's name correctly ==
You may find that in an attempt to set your IRC bot's name, it may be named IRCBot_N instead. There is a simple reason for this.
IRC connections from the serverside demand the nickname to begin with the following:
* IRCBot_
* EventsBot_
* Graal_
Any other nicknames will not be accepted.
 
'''Note:''' This is not the case with IRC connections from the clientside.
 
== Other problems ==
If you are having a problem that is not listed here, [[Skyld]] may be able to help you. Contact details are available on [[Skyld|Skyld's user page]], and may be able to help solve the problem. New problems will also be added here when found.

Latest revision as of 14:47, 16 February 2010

Written by Skyld, 28/08/2005.

Introduction

After a rising number of people are having problems using the IRC and events system in their scripting, I have decided to write this document to assist in troubleshooting problems.

No IRC server connection

If you are finding that commands like:

sendtext("irc", "login", "EventsBot");
sendtext("irc", "privmsg", {"IRCBot", "!resetevents"});

... in your events bots are not returning any responses, then your server might not be GScript2-enabled. You will need to use the old style scripting as described in Bots using old scripting.

IRC Bot appears to be online but does not receive data

If your IRC Bot is logging in and joining channels properly but not returning any information, the most simple problem is that you have made a spelling error.

function onRecieveText(texttype, textoptions, textlines)

This won't work because onReceiveText is spelt wrong. Ensure that it is spelt correctly.

function onReceiveText(texttype, textoptions, textlines)

EventsBot will not register

If you used the EventsBot start script from the Graal 4 IRC Wiki page, then you may encounter a problem where the EventsBot will not login correctly. This is simply fixed, by replacing this:

textlines[1] == "!eventsbotlogin"

With this:

textlines[2] == "!eventsbotlogin"

Thanks to napo_p2p for discovering this this and posting the error.

EventsBot is registered, but no admin control is available in the serverlist

When you receive a PRIVMSG from IRCBot saying "!eventsbotlogin", you must provide two important details about your setup.

  • Send the account names of those who should have admin access:
    sendtext("irc", "privmsg", {"IRCBot", {"!eventadmins", "AccountName", "AccountName2"}});
  • Send the discussion channel for your events:
    sendtext("irc", "privmsg", {"IRCBot", {"!eventchannel", "#ChannelName"}});

When the EventsBot logs in, after sending the above data, the listed account names should have access to the Admin tab for events when they log onto the game server.

My IRC bot occasionally disappears and does not reappear until script update

This could be for a couple of reasons:

  • The IRC server was reloaded and connections were reset
  • The IRC server fails or a problem arises
  • The gserver/npcserver has been restarted

To ensure that the IRC bot always restores it's connection, you should put your connect routine in a seperate function, and use something like this:

function onCreated() IRCConnect();
function onInitialized() IRCConnect();
function onServerListerConnect() IRCConnect();

Also, ensure that the IRC bot is correctly resetting it's connection by logging out in your connect routine:

// Logout first
sendtext("irc", "logout", "");
// Then login and do stuff
sendtext("irc", "login", "Nickname");

My IRC bot does not accept name changes properly on script update

This occurs because you have tried to use a new name without freeing your previous one. Just logging in again with a new name will not work. Instead, you have to log out and then log in using the new name.

sendtext("irc", "logout", "");
sendtext("irc", "login", "Nickname");

In fact, it's probably a good idea to make your IRC bot log out and in again on every connection.

Randomly, my IRC bot reports everyone in the channel joining again

ADDCHANNELUSER is sent to IRC scripts every time a user joins a channel that you or your IRC bot is also in. This allows making of a user list for that channel, or simply monitoring who joins and leaves. It has been known for this to occasionally occur, listing everyone in the channel at once. This could happen for a number of reasons:

  • You have reset your connection to the IRC server, maybe by a script update, and the IRC server is telling you again who is in the channel
  • The IRC server has been reloaded, and as a result, connections have been dropped

This is not a problem as such, but if this is a problem for you specifically, consider removing any messages that occur on this event, or if you are listing users, make sure your list does not show any user more than once.

My IRC bot is not setting it's name correctly

You may find that in an attempt to set your IRC bot's name, it may be named IRCBot_N instead. There is a simple reason for this. IRC connections from the serverside demand the nickname to begin with the following:

  • IRCBot_
  • EventsBot_
  • Graal_

Any other nicknames will not be accepted.

Note: This is not the case with IRC connections from the clientside.

Other problems

If you are having a problem that is not listed here, Skyld may be able to help you. Contact details are available on Skyld's user page, and may be able to help solve the problem. New problems will also be added here when found.