I started with a fresh install of CS 3.72. I ran Haryy, worked fine. I wrote a file named filesInga.txt exactly as filesHarry.txt, but changed the path to RAWDATA/INGA. I copied the files from RAWDATA/HARRY into RAWDATA/INGA and changed every instance of harry to inga in simplecontrol.top. I ran harry, he worked fine. I ran inga, she worked fine. I added a file (entertainment.top) with the following in it:
topic: ~television (tv television_show tv_show tv_program)
t: What’s your favorite TV show?
a: At the moment, mine is The Blacklist. I think James Spader is wonderful.
Everything still worked.
I added a file called aboutInga.top to RAWDATA/INGA that didn’t work. Here are the first few lines of the file, each throws an “unknown top-level declaration”:
?: ( was today a good day )Yes it was, at least for me. Was it a good day for you?
?: ( what is ai )Artificial intelligence is the branch of engineering and science devoted to constructing machines that think.
?: ( what language are you written )I am actually written in many languages. Primarily I am written in Python, with some of my subroutines in C++ and my Master AI in Lisp.
s: ( activate the robot )Aye Aye Captain! Robot activated. Awaiting your command. Oh wait, you really thought that would work? That’s so cute!
I tried adding:
topic: ~aboutInga (Inga inga you robot robots)
Still didn’t work.
Another file, called humans.top threw the same error and here it is:
topic: ~humans(human humans people)
s: (I am curious)That seems to be common among humans. I seem to be curious, but for now that’s just my programming.
Any guidance on those errors would be greatly appreciated.
After that, no matter what I did, CS kept seeing those files, even if I completely deleted them from the system.
I tried a fresh install of CS to reproduce the problem, harry worked fine, made filesInga.txt as follows:
# underlying conversation system
RAWDATA/INGA/
# quibble ability
RAWDATA/QUIBBLE/
and made a file INGA in rawdata, with all of harry’s files copied in, but all instances of harry changed to inga. This time it didn’t work at all, I got the same error as last week:
:~/ChatScript$ ./LinuxChatScript64 local
ChatScript Version 3.72 64 bit LINUX ENGLISH
Dictionary building disabled.
Build0: words=62109 facts=126810 dtext=1099948 stext=0 Mon Nov 11 22:52:38 2013
Build1: words=0 facts=813 dtext=0 stext=0
Params dict:349525 fact:800000 text:30000kb hash:65536
buffer:15x80kb cache:1x50kb userfacts:100
Used 51MB: dict 259,598 (29074kb) fact 227,724 (9108kb) text 12116kb
buffer (1200kb) cache (50kb) POS: 521 (16kb)
Free 40MB: dict 89,927 fact 572,276 text 17,883KB
Enter user name: richard
>:build Inga
——Reading file introductions.top
Reading topic ~introductions
——Reading file simplecontrol.top
Reading outputmacro: ^inga
Reading outputmacro: ^georgia
Reading table tbl:defaultbot
Reading topic ~control
Reading topic ~alternate_control
——Reading file keywordless.top
Reading topic ~keywordless
——Reading file simplecontrol.top~
Reading outputmacro: ^harry
Reading outputmacro: ^georgia
*** Error- line 11 of simplecontrol.top~:
in simplecontrol.top~ at 11: outputmacro: georgia() # you can request georgia by giving name:georgia as your login
MACRO-3 macro ^georgia already defined
Reading table tbl:defaultbot
Reading topic ~control
Reading topic ~alternate_control
——Reading file childhood.top
Reading topic ~childhood
——Reading file quibble.top
Reading topic ~quibble_all
Reading topic ~intent
Reading topic ~honest_response
Reading topic ~quibble_will
——Reading file eliza_because.top
Reading topic ~quibble_because
——Reading file eliza_misc.top
Reading topic ~quibble_misc
*** Warning- line 400 of eliza_misc.top: shoulds is not a known word. Is it misspelled?
——Reading file eliza_or.top
Reading topic ~quibble_or
——Reading file eliza_do.top
Reading topic ~quibble_do
——Reading file eliza_can.top
Reading topic ~quibble_can
——Reading file eliza_where.top
Reading topic ~quibble_where
——Reading file eliza_when.top
Reading topic ~quibble_when
——Reading file eliza_why.top
Reading topic ~quibble_why
——Reading file eliza_how.top
Reading topic ~quibble_howmuch
Reading topic ~quibble_how
——Reading file eliza_what.top
Reading topic ~quibble_what
——Reading file eliza_who.top
Reading topic ~quibble_who
——Reading file eliza_not.top
Reading topic ~quibble_not
*** Warning- line 35 of Post compilation Verification: At least one duplicate topic name, i.e., ~control, which may intended if bot restrictions differ.
ERROR SUMMARY:
line 11 of simplecontrol.top~: MACRO-3 macro ^georgia already defined
r
1 errors - press Enter to quit. Then fix and try again.
Can’t get past the easy stuff, not sure why?
regards, Richard