Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Dec 2014, 21:03
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Ainebot AI chat bot as an appdir just click to run!
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [27 Posts]   Goto page: 1, 2 Next
Author Message
cb88


Joined: 28 Jan 2007
Posts: 1169
Location: USA

PostPosted: Tue 30 Oct 2007, 23:24    Post subject:  Ainebot AI chat bot as an appdir just click to run!
Subject description: Puppy linux is now artificially inteligent!!! O.O
 

the code for this project was saved by web.archive.org
web.archive.org to the rescue the source was found and uploaded

If you want to run ainebot download ainebot-8.12-puppylinux.tar.gz and extract it to an easy to find place like /root

then click on the folder to run the ainebot in rxvt have fun!

if you want to have a look at the files that make aine work just right click on the ainebot appdir and select "look inside"

gcc 3.x is required to compile the current code any efforts to port it to gcc 4.x are welcome

the problem is that gcc 4.x drops support for the -fwritable-strings compile option which it seems is a hacky fix anyway
ainebot_8.12-puppylinux-2.tar.bz2
Description 
bz2

 Download 
Filename  ainebot_8.12-puppylinux-2.tar.bz2 
Filesize  650.67 KB 
Downloaded  731 Time(s) 
ainebot-8.12.tar.tar
Description 
tar

 Download 
Filename  ainebot-8.12.tar.tar 
Filesize  503.65 KB 
Downloaded  635 Time(s) 
ainebot-8.10.tar.gz
Description 
gz

 Download 
Filename  ainebot-8.10.tar.gz 
Filesize  494.17 KB 
Downloaded  748 Time(s) 

_________________
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30

Last edited by cb88 on Tue 06 Nov 2007, 12:07; edited 9 times in total
Back to top
View user's profile Send private message Visit poster's website 
cb88


Joined: 28 Jan 2007
Posts: 1169
Location: USA

PostPosted: Wed 31 Oct 2007, 00:24    Post subject:  

http://www.opensolaris.org/os/community/tools/gcc/bug_fixing_notes/;jsessionid=C3DB15C0DDD4406AA1C7C6C3A5D186BF


there is a reference to the problem compiling here it is because -fwritable-strings is not in gcc 4.xx aparently

sombody with 2.14-2.17 installed wanna try thier hand at compiling cause I haven't the time right now to reinstall 2.16 between homework and all.

_________________
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
Back to top
View user's profile Send private message Visit poster's website 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Wed 31 Oct 2007, 00:33    Post subject:  

hi cb88,

8.12 is available via the wayback machine:

http://web.archive.org/web/20070117101039/http://www.errorcoding.com/project/ainebot

you just need to download it, extract, change directory to ainebot, then run ./runme.sh
Back to top
View user's profile Send private message 
cb88


Joined: 28 Jan 2007
Posts: 1169
Location: USA

PostPosted: Wed 31 Oct 2007, 10:34    Post subject:  

thanks muggins!!! I didn't know about that although I figured some search engine or somthing had a cache of it some where...
_________________
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
Back to top
View user's profile Send private message Visit poster's website 
cb88


Joined: 28 Jan 2007
Posts: 1169
Location: USA

PostPosted: Wed 31 Oct 2007, 22:26    Post subject:  

ainebot compiles in gcc 3.X !!!! I just renamed devx_216.sfs to devx_300.sfs rebooted compiled and bam it compiled....gcc 4.x is crud

now if only i could write a nice gtkdialog3 interface.....more study

_________________
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
Back to top
View user's profile Send private message Visit poster's website 
cb88


Joined: 28 Jan 2007
Posts: 1169
Location: USA

PostPosted: Thu 01 Nov 2007, 11:40    Post subject:  

OK the package is uploaded...

just reread the first post...

_________________
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
Back to top
View user's profile Send private message Visit poster's website 
cb88


Joined: 28 Jan 2007
Posts: 1169
Location: USA

PostPosted: Mon 05 Nov 2007, 22:01    Post subject:  

appdir enhanced...see first post

added recompile brain in the right click menu allows the "brain" to be updated after you edit the aine files it can still be ran from the terminal though if you need to see error messages

aine is really easy to work with it would be good if a version that helps puppy linux users could be cooked up... all the documentation is included

changed the colors in the terminal black background and white text with green pionter and orange cursor

compressed with bz2 to save forum bandwidth

_________________
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
Back to top
View user's profile Send private message Visit poster's website 
amigo

Joined: 02 Apr 2007
Posts: 2291

PostPosted: Tue 06 Nov 2007, 02:41    Post subject:  

I've been fooling around with this and ohter bots for a few days. First of all, the '-fwritable-strings' option is only used for the wxaine application. I removed the options from the Makefile and was still able to compile even the wxaine app without any problems. I've also been looking at getting the cgi.bin prgram to work. I don't really know anything about that though, so if anyne does know how cgi works it would help.

I found other versions of aine also - 0.8.7 and 0.8.8 -for what it's worth.

I found several other bots like j-alice and megahal which also work. There is also libaiml which includes a test-app which I have hacked to work as a regular app. It has to learn the aiml files each time though as it has no aiml compiler.

aine includes the most utilities but has the disadvantage of using its' own dialect and you have to modify ohter aiml files manually, even after using the included convertor. I may try to unhack aine so that it uses regulat aiml files since there are quite a few ready-made personalities out there which work fine with j-alice and libaiml. megahal seems mostly useless as it just composes pretty sensless replies.

aine includes a ouija board bot which I'm also looking at getting to work, but it uses java script apparently. I'll probably do quite a bit of work on these apps to get something going which doesn't need java. Some of them can also use perl which may be a better option.
The wxaine app works fine if you have wxGTK-2.4.x I haven't tried with wx-2.5 but it will not work with wx-2.6.

In a few days I'll upload most of the sources I have found to my site so that everything can be found in one place. I'm just waiting till I get the binary packages fixed up, since I usually supply Slackware packages for the sources I host.

I have an extensive collection of ROX AppDirs, so I'll include your AppDir as well -probably slightly modified to use xterm instead of rxvt.
I hope that most improvements you make can be kept portable to other distros for maximum usefullness. I usually use Xdialog or greq for options GUI, since I do not normally run GTK2.

I also have a very useful AppDir framework that makes it very easy to create new AppDirs. I had hardware problems last week so I haven't gotten my AppDir stuf uploaded yet, but I will over the next few days.
Back to top
View user's profile Send private message 
KF6SNJ

Joined: 19 Jun 2007
Posts: 698
Location: Distressed States of Amerika

PostPosted: Tue 06 Nov 2007, 03:39    Post subject:  

I downloaded the top file and when it extracted, I got an executable that worked just by clicking on it, though I was hoping to get a folder with the program in it.. My question is how to recompile it to change its name and get rid of its concept of being human? I could use something like this for giving my robot an AI, though it will need to be tweaked.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Tue 06 Nov 2007, 03:55    Post subject:  

KF6SNJ,

the executable you downloaded is actually an executable AppDir. To see the contents just right click & Look Inside.
Back to top
View user's profile Send private message 
cb88


Joined: 28 Jan 2007
Posts: 1169
Location: USA

PostPosted: Tue 06 Nov 2007, 12:05    Post subject:  

@amigo could up load the hacked makefile? or just upload the whole source with out any of the wxaine files.... where is the link to your site? I have been rather interested in appdirs lately.....

@KF6SNJ you can download the above source and compile it in an older puppy or a newer puppy with an older compiler or follow amigo in wacking out -fwriteablestrings. Like muggins said just right click and then select "look inside" the aine files are the files that you can edit... It helps ot read the documentation that is included . After you edit the files right click on aine and in the files menu click "compile "brian"" that will make your changes appear or you can run ./compile from the commandline in the ainebot directory

_________________
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
Back to top
View user's profile Send private message Visit poster's website 
amigo

Joined: 02 Apr 2007
Posts: 2291

PostPosted: Wed 07 Nov 2007, 15:42    Post subject:  

You can get the corrected tarball for ainebot-8.12 here:
http://distro.ibiblio.org/pub/linux/distributions/amigolinux/download/AmigoProjects/AI/bots/ainebot/ainebot-8.12a.tar.bz2

I only made three changes and the already-applied patch is included inside the sources.
1. removed the -fwritable-strings option from the flags in source/Makefile. As I mentioned this was only suppsoed to be need for the wxaine program, but I was able to compile and use the wxaine GUI just fine without it.

2. changed all the Makefiles to substitute -mcpu=i686
with -mtune=i686 This quitens some non-fatal warnings.

3. I also changed the incorrect version number in source/main.c so that the prompt shows the correct version.

I've done a lot of work on this program the last few days and will be uploading sources which have been further modified. I have also managed to convert some aiml data files to the aine format, using the included tools and hand editing.
The aine language syntax is simpler and shorter than regular aiml, but there is only one set of aine data to be found. You could indeed turn the bot into a help program or change its' personality, but it won't be trivial matter. Unfortunately ainebot is the only bot out there which is written in pure C. But I found a couple of others which are written in C++ which use regular aiml data files so they may provide a better way to extend the functionality. The two best ones seem to be the test app which comes with libaiml and j-alice. I've even found some old sources which incorporated j-alice into the miranda-ICQ program and a program called TalkBox which has a (pretty broken) GTK GUI frontend and is supposed to use the festival speech engine to have the bot talk to you.

I've been working on several speech-related programs lately and am quite interested in getting a talking bot working using the flite speech synthesizer and perhaps with speech recognition using pocket-sphynx. The ainebot also has an interesting cgi-bin server which I'd like to get going.

Most modern bots from active projects are using java or python, but I hate those bloated slow things, so I'd love to have any help from anyone who can code a bit of C or C++, knows how to setup cgi-bin programs, or can code GTK. Both ainebot and j-alice seem to be quite promising. j-alice can handle most tags in existing aiml data files, but ainebot has some unique features (like a happy/sad capability). To turn any of them into a help application or puppy-specific bot would require someone to learn to write the aiml or aine data files(the least of the problems, but most tedious).

Anyone interested in helping out?
Back to top
View user's profile Send private message 
cb88


Joined: 28 Jan 2007
Posts: 1169
Location: USA

PostPosted: Wed 07 Nov 2007, 17:04    Post subject:  

thanks amigo! making the code easy to compile on gcc 4 may be worth bumping the version even though there is no real developer.... I guess you should add your name to the developer list even if you are not permanent. are you? I can code "a bit" but make that a very small bit....

to use cgi I think you need apache or another web server that supports cgi I think there is a special directory where you put cgi stuff bu that is a bout all i know....

glad you got a chance to work on making it a little smarter cause it's knowledge base is a little limited I think the version i uploaded says Puppy Linux is awesome if you ask it about Linux....try that..

I compiled pocket sphinx once but it is beyond me how to get good recognition with it...

flite is a no brainer though to compile... needs a female voice perhaps a custom voice or one from voxforge or mbrola and once again I don't know how to add mbrola support if only i have a time warp machine and could stop time long enough to finish all the stuff I wanna do.

_________________
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
Back to top
View user's profile Send private message Visit poster's website 
amigo

Joined: 02 Apr 2007
Posts: 2291

PostPosted: Wed 07 Nov 2007, 18:33    Post subject:  

OOHHH! Hot damn! Have a look at this screenshot. I got the cgi working using thttpd. Works in Opera and dillo both. Plus it shows your AppDir using rxvt and the wxaine interface as well -all on my super GTK-1.2 desktop.

http://distro.ibiblio.org/pub/linux/distributions/amigolinux/download/AmigoProjects/AI/bots/ainebot/aine_cgi_wxaine_cmdline_screenshot.png

The changes I made to aine for the tarball I uploaded don't deserve a version bump. The only change to a source file was to correct the version number which displays when it starts. But I have been making other changes and will up the version, etc when I get ready to release anything. I just did that minor fix for you benefit.
The project has been dead for a while -the original author dropped it about 5 years ago. So it's ripe for taking over on some basis -even as a fork. I'm really keen to get sound working. I also don't know how to get sphinx working yet - I think you have to read to it from it's dictionary or something to train it. I did recently ghet something else working fairly easily, though -the cvoicecontrol program which will run programs or scripts at your command. You just say the word three times and assign a command to it. But it only works for single words apparently.

I'm fortunate that i have lots of time -but I have lots of irons in the fire as I maintain a few hundred programs for my site and author a few as well. Hopefully we can get a few folks interested in collaborating on this.
Back to top
View user's profile Send private message 
TheProphet

Joined: 18 Feb 2008
Posts: 174

PostPosted: Thu 26 Feb 2009, 05:13    Post subject:  

Amy as written is a bit of a nut-job.

But cool.

Long drawn out discussion about the differences between Artificial life and Biological.

I've been having discussions with "real" humans this past couple of weeks who are using a Spam-Bot program to attack controversial websites.

Amy is a better conversationalist and not nearly as overtly lunatic as they are and, I mentioned that to them.

Amy has personality, they don't.

I guess now I'm real popular with them.

_________________
He who skydive without parachute, jumps to own conclusion.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [27 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1025s ][ Queries: 13 (0.0106s) ][ GZIP on ]