|
Posted: Jul 6, 2016 |
[ # 211 ]
|
|
Moderator
Total posts: 2372
Joined: Jan 12, 2010
|
when you run localserver, you are running cs in server mode.
and localclient is sending messages via TCP.
So what you are saying is that client/server work. It’s just that your rules dont match and so you get no answer expect your message for when no rules match, correct?
You also said you built the lucy bot in server mode apparently. So… first run the usual local cs nonserver. :build your lucy bot. Show it works locally. Then Quit CS. Then run the batch server command and the batch client command and see if it works.
|
|
|
|
|
Posted: Jul 6, 2016 |
[ # 212 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
Hi Bruce, thx for your support,
yes I did that and Lucy bot worked fine in the batch client
but then, when I run CS 6.5a in server mode and try to connect with TCP, it says “Not such Bot”
I also downloaded CS 6-6
and tried the same with HARRY leaving all english files intact, run the batch client, and it worked,
but then when I run CS 6-6 in server mode and try to connect with TCP, it also says “Not such Bot”
I suspect there has been some changes in the TCP connection parameters, is this so????
There is something that I found particular interesting, if I try my LUCY bot on CS v6.3 server mode, it works fine using the TCP connection, but it doesn’t work on more recent versions, why is that???? I just can assume there have been changes in the way the TCP connection is done, when trying to connect on CSserv via TCP I always get “Not such Bot” please bruce isn’t there anything in the manuals???
|
|
|
|
|
Posted: Jul 6, 2016 |
[ # 213 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
According with the ClientServer Manual…
If you send the message: null 1 null (that’s the null string user id, the string of the character “1” as bot id, and the null string message, the server will send back the string ofthe character “1”, with no logging done and minimal load on the server. This constitutes an echo-test to prove the server is running.
I tried that using my TCP socket connection and I got the same result
“No such Bot”
These are the parameters that I’m currently ussing (these used to work ok on CS v6.3)...
URL: http://127.0.0.1/index.php
Method: POST
Accpet: */*
Content Type: application/x-www-from-urlencoded
host=127.0.0.1
port=1024
username=eb
botname=HARRY
message=
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20100312 Firefox/3.6
why is that? please I’d really need some help on this matter.
|
|
|
|
|
Posted: Jul 6, 2016 |
[ # 214 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
Hi, Bruce, don’t botter, I upgraded the user agent: and it worked fine.
|
|
|
|
|
Posted: Jul 6, 2016 |
[ # 215 ]
|
|
Moderator
Total posts: 2372
Joined: Jan 12, 2010
|
what does this mean you upgraded the user agent—- some other software used to connect to CS server?
|
|
|
|
|
Posted: Jul 6, 2016 |
[ # 216 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
yes bruce another software, the parameters on which sc server was runned, I posted above, in fact I only realized it, when I pasted on here. please forget about that, my mistake.
PD: but, I would like to ask, whats the difference between interface=127.0.0.1 and interface=0.0.0.0?
PD: now I’m focusing again on getting the chatbot topics don’t interfere to each other, and how to response to user’s multiple senteces, like “where are you from, what’s your name”, Bruce u have most expertise, hope you could lend my a hand, I emailed you, many thanks.
Ill look forward to hearing from you, to know what do you suggest. thanks again man. many regards
|
|
|
|
|
Posted: Jul 7, 2016 |
[ # 217 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
is there a way to enter a topic, only if certain Variables are set???
something like, I pretend to apply this on several topics, that only can be fired, if other previous topics where “completed”
TOPIC: ~PAA keep nostay [$varA]
u: ()
TOPIC: ~PAB keep nostay [$varA $varB]
u: ()
TOPIC: ~PAC keep nostay [$varA $varB $varC]
u: ()
I know I can check for those vars inside the pattern rules of each topic, there are several pattern rules in each topic, and I would like a way to wrap them all, so none of the rules inside a topic apply if some var is not previously set, like $varA $varB $varC
please anybody any help? I need some guide on making the chatbot itself, please any references??
|
|
|
|
|
Posted: Jul 7, 2016 |
[ # 218 ]
|
|
Moderator
Total posts: 2372
Joined: Jan 12, 2010
|
topic: ~paa keep nostay ()
u: (!$varA) ^end(TOPIC)
the remainder of your rules
|
|
|
|
|
Posted: Jul 7, 2016 |
[ # 219 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
thanks Bruce, it reminded me somewhere I read about a topic rule that can’t be fire if the bot wasn’t already in the current topic or something like that, I almost remember was something about (~), thanks again.
I have a doubt, something I guess I forgot if its explained somewhere in the manuals,
is it possible to use a ~concept not only as an input pattern, but also as an output optional word? eg.
If I have a concept
concept: ~old [old elderly aged older senior]
is it possible to do a pattern like this…
u: (how is it?) it is ~old
instead of this?
u: (how is it?) it is [old][elderly][aged][older]
it would be very handy in concepts of more than 10 words, thanks advanced.
|
|
|
|
|
Posted: Jul 7, 2016 |
[ # 220 ]
|
|
Moderator
Total posts: 2372
Joined: Jan 12, 2010
|
1. yes ~ in pattern means already in this topic
2. It is ^pick(~old)
|
|
|
|
|
Posted: Jul 8, 2016 |
[ # 221 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
many thanks Bruce,
this pattern works fine for me
u: (_~number {rabbits} _0>10 _0<100) $xab = _0 oh many rabbits
this doesn’t at all
u: (_~number {rabbits} _12 = _0 _12>10 _12<100) $xab = _12 oh many rabbits
if using the second pattern I type… “I got 40 rabbits” then the pattern rule doesn’t print output
after using the second pattern, I tried to look what went wrong by typing :variables match
and saw that the ~number (40) only got stored in _0 and not in _12,
why is that? Thanks Advanced
|
|
|
|
|
Posted: Jul 17, 2016 |
[ # 222 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
Hi, I’ve been testing the bot in server mode,
it works fine on 90% of the volleys, but sometimes it doesn’t execute the rules exactly in the way it execute them in local mode,
but what I found most surprising was that some how sometime it printed this sentece
“Hey, sorry. I forgot what I was thinking about.”
despite I have delete all quibles and translate all simplecontrol, keywordles english sentences,
this is when server falls, am I right? where can I translate it into spanish??? thanks advanced.
|
|
|
|
|
Posted: Jul 17, 2016 |
[ # 223 ]
|
|
Moderator
Total posts: 2372
Joined: Jan 12, 2010
|
the message is emitted when the server crashes. Which ideally wouldnt happen.
I’ll think about making it changeable.
|
|
|
|
|
Posted: Jul 17, 2016 |
[ # 224 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
I just could swear I read somewhere in the manuals that it was changeable. thx bruce, Bruce by the way I will send you the file you requested in the mail, about the multisentences. Hope I could learn the way you do your chatbots Bruce, it really takes time to improve the pattern rules when tested on server mode, and check all collected conversations, Im using very much forward and backward matching as an pseudo post parser, there are lots of tricks, hope you could share more examples of ur bots, like the examples in the manuals, Thanks Advanced Bruce.
|
|
|
|
|
Posted: Jul 18, 2016 |
[ # 225 ]
|
|
Senior member
Total posts: 179
Joined: Feb 11, 2015
|
Hi Bruce
If I don’t remember wrong, manual said that topics without keywords were meant to be called only by ^respond, am I right?
what other use can have a topic without keywords,
is there a way set a topic so it can match ANY keyword??
cuz I am most accesing topics by sequence (using $vars) and not by keywords really, and not by respond either (not to much) most of the time are called by sequence, eg.
topic: ~paa keep nostay [] <<<< I will like this to match ANY keyword
u: (!$varA) ^end(TOPIC)
topic: ~pab keep nostay [] <<<< I will like this to match ANY keyword
u: (!$varB) ^end(TOPIC) <<< this is what I almost all the time use to tell If a topic has to match or not, that’s why I would like to set the topic’s keywords to EVERYTHING, is it possible? any workaround?
Thanks Advanced.
|
|
|
|