.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Common Questions (http://forums.bots-united.com/forumdisplay.php?f=51)
-   -   PodBot Problems with Chat (http://forums.bots-united.com/showthread.php?t=9129)

Santo 02-02-2013 11:21

Re: PodBot Problems with Chat
 
Ok. Thanks.

Santo 08-02-2013 11:04

Re: PodBot Problems with Chat
 
hmmm did you find something about ?

KWo 08-02-2013 14:00

Re: PodBot Problems with Chat
 
I didn't find the time to focus on it. And I don't have time at least for next 3 weeks. Sorry.

Santo 08-02-2013 16:14

Re: PodBot Problems with Chat
 
And It's only you on the whole Forum ?! :(

KWo 08-02-2013 21:55

Re: PodBot Problems with Chat
 
Quote:

Originally Posted by Santo (Post 64856)
And It's only you on the whole Forum ?! :(

If You are right and there is really any error in the code - yes.

Santo 09-02-2013 14:37

Re: PodBot Problems with Chat
 
That's really sad bro..your botchat.txt it's working ?!

Santo 27-02-2013 01:58

Re: PodBot Problems with Chat
 
Hey did you find out ?! Or you're busy forever like every human being ?

KWo 04-03-2013 20:57

Re: PodBot Problems with Chat
 
Quote:

Originally Posted by Santo (Post 64858)
That's really sad bro..your botchat.txt it's working ?!

The default botchat.txt is working. Just tested few hours ago. What are condition to see the reply when You are talking to them:
1. You and at least one bot (no matter what team) is dead.
2. You are using say command (not say_team).
3.The keyword is written in botchat.txt in capitalize (UPPER CASE).
4. pb_chat is set to 1.

Try first change this:
@KEY "admin"
to
@KEY "ADMIN"

[code=bot.cpp]
// Assign how talkative this Bot will be
pBot->SaytextBuffer.fChatDelay = RANDOM_FLOAT (10.0, 20.0); // KWo - 02.03.2010
pBot->SaytextBuffer.cChatProbability = RANDOM_LONG (40, 100); // KWo - 31.03.2006[/code]

As You can see in that part of code above - the bot has a delay to repeat (random value 10 - 20 seconds) - to prevent flooding. That is also made so to have it human like (the human needs time to repeat - he never does it instantly). Another thing - the bot sometomes doesn't answer - if he doesn't like to do that. It comes from that second line (chatProbability). If that value is grater than random value 0-100 checked every time the answer should happen - the the bot asnwers. Otherwise - it doesn't answer. Those values above are calculated while the bot is created.
I hope now You get the full answer. Sorry for delay.

Santo 05-03-2013 02:18

Re: PodBot Problems with Chat
 
Quote:

Originally Posted by KWo (Post 64872)
The default botchat.txt is working. Just tested few hours ago. What are condition to see the reply when You are talking to them:
1. You and at least one bot (no matter what team) is dead.
2. You are using say command (not say_team).
3.The keyword is written in botchat.txt in capitalize (UPPER CASE).
4. pb_chat is set to 1.

Try first change this:
@KEY "admin"
to
@KEY "ADMIN"

[code=bot.cpp]
// Assign how talkative this Bot will be
pBot->SaytextBuffer.fChatDelay = RANDOM_FLOAT (10.0, 20.0); // KWo - 02.03.2010
pBot->SaytextBuffer.cChatProbability = RANDOM_LONG (40, 100); // KWo - 31.03.2006[/code]

As You can see in that part of code above - the bot has a delay to repeat (random value 10 - 20 seconds) - to prevent flooding. That is also made so to have it human like (the human needs time to repeat - he never does it instantly). Another thing - the bot sometomes doesn't answer - if he doesn't like to do that. It comes from that second line (chatProbability). If that value is grater than random value 0-100 checked every time the answer should happen - the the bot asnwers. Otherwise - it doesn't answer. Those values above are calculated while the bot is created.
I hope now You get the full answer. Sorry for delay.

Thanks for your reply. First of all I've tested this and after a several minutes, one of the bots reply to me, but I'm not sure if I must write the single word, UPPER CASE, like It's written in botchat.txt, or can I write the word in small cases and in combination with other words like: "How can i get admin on this Server?"
And my second question Is, how can I change the SaytextBuffer.fChatDelay = RANDOM_FLOAT and pBot->SaytextBuffer.cChatProbability = RANDOM_LONG ?

KWo 05-03-2013 15:53

Re: PodBot Problems with Chat
 
Quote:

Originally Posted by Santo (Post 64873)
Thanks for your reply. First of all I've tested this and after a several minutes, one of the bots reply to me, but I'm not sure if I must write the single word, UPPER CASE, like It's written in botchat.txt, or can I write the word in small cases and in combination with other words like: "How can i get admin on this Server?"

You have to write in upper case the word in botchat.txt. The file is reloaded only when the bot dll (podbot_mm.dll/podbot_mm_i386.so) is loaded at the game start (it's not enough just to restart the map - You must restart the game on the server).
Quote:

Originally Posted by Santo (Post 64873)
And my second question Is, how can I change the SaytextBuffer.fChatDelay = RANDOM_FLOAT and pBot->SaytextBuffer.cChatProbability = RANDOM_LONG ?

That You can't change. It's hardcoded. Give them just more time to answer. They usually reply 7/10 or more, but it takes time to get the answer (10 to 20 seconds).


All times are GMT +2. The time now is 06:58.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.