News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF AI BOT

Started by Master of Eternity, February 17, 2007, 12:46:39 AM

Previous topic - Next topic

en_shua

Quote from: JRSofty on August 26, 2007, 02:29:35 PM
That is refering to the official testing group. You can post support requests in the Softyware Support board which is designed for dealing with non-team member requests.

OR if you really want to use bugs you should be able to post as a guest. If not then I'll look into checking that the bugs area is configured properly.
I can't even take a look at the BUGS application.  Can't get past the login at http://jrsofty1.stinkbugonline.com/bugs/

JRSofty

Thanks for the info I'll look into it and try to get it fixed.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

en_shua

I got into BUGS now.  Thanks.

dark_diablo_01

I would like to see this for SMF 1.1.5 :(
You guys should hope back onto the project.
Visit http://www.just-hack.com/ [nofollow]

Just-Hack.com is a hacking community for all hackers to come and trade ideas and news about the underground.  Radio, Code Bin, Tutorials, Exploits, Tools, Security, News, Hacking, Reverse Engineering.

JRSofty

At this point the project is on indefinite hold. If you are interested in continuing the project you can find it at Sorceforge and download my source code.

http://sourceforge.net/projects/smfaibot
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

toups

#45
Quote from: JRSofty on July 18, 2008, 02:00:27 AM
At this point the project is on indefinite hold. If you are interested in continuing the project you can find it at Sorceforge and download my source code.

http://sourceforge.net/projects/smfaibot

I know you discontinued your workings on this JR, but I installed the version you released.. and it actually worked.  My only problem is that now if ANYONE tries to post in the forum where the bot is they get this error (it still posts but the bot doesn't respond):
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
File: /homepages/11/d204877429/htdocs/BB/Sources/bot/src/graphnew.php
Line: 467


I'm not sure why it randomly started doing this.. the first posts I made in his forum were a success & he replied instantly.. and now this happens.  I tried uninstalling the mod & reinstalling and am still getting the same thing every time now.

If you could tell me why this is happening or give me any support that would be amazing.

Also if you can't give me support JR and someone else can get this to work for me.. feel free to.. if you make the mod even better without bugs I'd even be willing to pay if needed.

JRSofty

Check your PM. I've given what I know.

The problem lies mostly in the bot's source code which was not written by me. I only edited it slightly to allow for it to work with the SMF database functions.

The problem lies apparently with the bot not fully parsing the post and putting a NULL in an SQL statement which causes the error. I have not figured out why it does this nor have I been able to get a hold of the original bot coders to get more information. It is one of many reasons that this project was put on indefinite hold.

=====
If anyone is interested in taking over this project completely then please contact me and we can work out an arrangement where you can take control of the SourceForge site which contains all the code.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

toups

#47
Quote from: JRSofty on July 22, 2008, 01:31:24 AM
Check your PM. I've given what I know.

The problem lies mostly in the bot's source code which was not written by me. I only edited it slightly to allow for it to work with the SMF database functions.

The problem lies apparently with the bot not fully parsing the post and putting a NULL in an SQL statement which causes the error. I have not figured out why it does this nor have I been able to get a hold of the original bot coders to get more information. It is one of many reasons that this project was put on indefinite hold.

=====
If anyone is interested in taking over this project completely then please contact me and we can work out an arrangement where you can take control of the SourceForge site which contains all the code.

I see =\ Not sure why it was working at first then.. makes no sense.. :(

Do you have any clue which specific file would be affecting it?

JRSofty

It might have something to do with the what you type in, that it doesn't parse correctly :dunno:
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

toups

Quote from: JRSofty on July 22, 2008, 09:02:42 AM
It might have something to do with the what you type in, that it doesn't parse correctly :dunno:

Only thing I did since when it did work to not work was add more AIML files.. don't see how that would hurt the bot.. have tried reinstalling & such.. still not working =\

Wish this would heh >.<

For the filed Arch when making a new bot.. is that supposed to be anything specific?

JRSofty

It might have something to do with the AIML files. Like I said I'm not sure what is causing the problem.

I would start with deleting the bot and creating a new one, and add just a few AIML to see if that works.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

toups

Quote from: JRSofty on July 22, 2008, 09:51:59 AM
It might have something to do with the AIML files. Like I said I'm not sure what is causing the problem.

I would start with deleting the bot and creating a new one, and add just a few AIML to see if that works.

Did that =\
Made about 10 times now, trying different AIMLs every time.

Now I'm trying AIML files I used on my phpbb one see if they work..  :'(

toups

Quote from: toups on July 22, 2008, 09:59:27 AM
Quote from: JRSofty on July 22, 2008, 09:51:59 AM
It might have something to do with the AIML files. Like I said I'm not sure what is causing the problem.

I would start with deleting the bot and creating a new one, and add just a few AIML to see if that works.

Did that =\
Made about 10 times now, trying different AIMLs every time.

Now I'm trying AIML files I used on my phpbb one see if they work..  :'(

Could it be possible that the patterns table is screwing it up? I have about 150000 rows of empty words in there.. all NULL with nothing in them.. could it be trying to say something but can't because of it being empty = can't post an empty post?

toups

JR if you have any clue on this.. I commented out the lines:
function findtemplate($id){
global $db_prefix;
$query = "select template from {$db_prefix}templates where id=$id";
debugger($query,2);
$selectcode = db_query($query,__FILE__,__LINE__);
if ($selectcode){
if(!mysql_numrows($selectcode)){
return "";
}
else{
while ($q = mysql_fetch_array($selectcode)){
return $q[0];
}
}
}

return "";
}


in graphnew.php.. and it works now.. no errors when posting, the bot is responding, etc.  Only problem is.. he doesn't post anything when he's posting.. is that part of the code that important :O?

JRSofty

Quote from: toups on July 22, 2008, 10:39:27 AM
Quote from: toups on July 22, 2008, 09:59:27 AM
Quote from: JRSofty on July 22, 2008, 09:51:59 AM
It might have something to do with the AIML files. Like I said I'm not sure what is causing the problem.

I would start with deleting the bot and creating a new one, and add just a few AIML to see if that works.

Did that =\
Made about 10 times now, trying different AIMLs every time.

Now I'm trying AIML files I used on my phpbb one see if they work..  :'(

Could it be possible that the patterns table is screwing it up? I have about 150000 rows of empty words in there.. all NULL with nothing in them.. could it be trying to say something but can't because of it being empty = can't post an empty post?

That is quite possible. The question would be why are there NULLs in the patterns table?

Quote from: toups on July 22, 2008, 05:42:46 PM
JR if you have any clue on this.. I commented out the lines:
function findtemplate($id){
global $db_prefix;
$query = "select template from {$db_prefix}templates where id=$id";
debugger($query,2);
$selectcode = db_query($query,__FILE__,__LINE__);
if ($selectcode){
if(!mysql_numrows($selectcode)){
return "";
}
else{
while ($q = mysql_fetch_array($selectcode)){
return $q[0];
}
}
}

return "";
}


in graphnew.php.. and it works now.. no errors when posting, the bot is responding, etc.  Only problem is.. he doesn't post anything when he's posting.. is that part of the code that important :O?

Yep that's pretty important. The way the bot works is this:

1. Reads the input data
2. Tries to find patterns that match
3. When a pattern is matched then find matching template
4. if template is a recursed pattern then start the pattern search again, else output template information.

What you did was remove the ability to find a template.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

toups

Quote from: JRSofty on July 23, 2008, 01:42:58 AM
Quote from: toups on July 22, 2008, 10:39:27 AM
Quote from: toups on July 22, 2008, 09:59:27 AM
Quote from: JRSofty on July 22, 2008, 09:51:59 AM
It might have something to do with the AIML files. Like I said I'm not sure what is causing the problem.

I would start with deleting the bot and creating a new one, and add just a few AIML to see if that works.

Did that =\
Made about 10 times now, trying different AIMLs every time.

Now I'm trying AIML files I used on my phpbb one see if they work..  :'(

Could it be possible that the patterns table is screwing it up? I have about 150000 rows of empty words in there.. all NULL with nothing in them.. could it be trying to say something but can't because of it being empty = can't post an empty post?

That is quite possible. The question would be why are there NULLs in the patterns table?

Quote from: toups on July 22, 2008, 05:42:46 PM
JR if you have any clue on this.. I commented out the lines:
function findtemplate($id){
global $db_prefix;
$query = "select template from {$db_prefix}templates where id=$id";
debugger($query,2);
$selectcode = db_query($query,__FILE__,__LINE__);
if ($selectcode){
if(!mysql_numrows($selectcode)){
return "";
}
else{
while ($q = mysql_fetch_array($selectcode)){
return $q[0];
}
}
}

return "";
}


in graphnew.php.. and it works now.. no errors when posting, the bot is responding, etc.  Only problem is.. he doesn't post anything when he's posting.. is that part of the code that important :O?

Yep that's pretty important. The way the bot works is this:

1. Reads the input data
2. Tries to find patterns that match
3. When a pattern is matched then find matching template
4. if template is a recursed pattern then start the pattern search again, else output template information.

What you did was remove the ability to find a template.

lame :P well at least I know that that's its problem right now.. it only errors if it's trying to find the template so something wrong in there.. just wish I knew how to fix it! lol

Advertisement: