Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bot doesn't recognize commands like !ready #9

Closed
ghost opened this issue Feb 1, 2013 · 14 comments
Closed

bot doesn't recognize commands like !ready #9

ghost opened this issue Feb 1, 2013 · 14 comments

Comments

@ghost
Copy link

ghost commented Feb 1, 2013

I managed to get the Bot on the Server, I'm able to restart the game form the web panel but when I type !ready or !help there is no reaction from the bot. Unfortunately i don't know how i can debug if the chatcommand are processed by the Server.

@basert
Copy link
Collaborator

basert commented Feb 1, 2013

Can you state the output of the console in here?

@ghost
Copy link
Author

ghost commented Feb 1, 2013

The Counterstrike Console output is this:

Tried to look up command say as if it were a variable.
pure : !rules
Tried to look up command say as if it were a variable.
pure : !ready

and this is from terminal

Matthiass-Mac-Pro:eBot matthiashollerbach$ php bootstrap.php
____ _
| _ \ | |
| |) | ___ | |_
/ _ \ _ < / _ | __|
| __/ |) | () | |_
_
|____/ _**/ **|

PHP Compatibility Test

| PHP 5.3.1 or newer -> required -> [ Yes ] 5.4.4
| Standard PHP Library -> required -> [ Yes ]
| MySQL -> required -> [ Yes ]
| Sockets -> required -> [ Yes ]

| MCrypt -> required -> [ Yes ]

2013-02-02 00:33:23 - LOG [eBot\Application\Application] eBot CS:Go version 3.0
2013-02-02 00:33:23 - LOG [eBot\Application\Application] Loading config
2013-02-02 00:33:23 - LOG [eBot\Config\Config] Configuration loaded
2013-02-02 00:33:23 - LOG [eBot\Config\Config] MySQL: localhost:3306 root:****@ebotv3
2013-02-02 00:33:23 - LOG [eBot\Config\Config] Socket: 192.168.1.3:33333
2013-02-02 00:33:23 - LOG [eBot\Application\Application] Registring MatchManager
2013-02-02 00:33:23 - LOG [eBot\Manager\MatchManager] Creating MatchManager version 1.0
2013-02-02 00:33:23 - LOG [eBot\Application\Application] Registring Messages
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\BombDefusing to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\BombPlanting to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\ChangeMap to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\ChangeName to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\Connected to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\Disconnected to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\EnteredTheGame to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\JoinTeam to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\Kill to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\KillAssist to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\RoundRestart to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\RoundScored to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\RoundStart to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\Purchased to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\Say to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\SayTeam to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\SwitchTeam to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] Adding message eBot\Message\CSGO\ThrewStuff to CSGO
2013-02-02 00:33:23 - LOG [eBot\Manager\MessageManager] 18 messages loaded for CSGO
2013-02-02 00:33:23 - LOG [eBot\Application\Application] Registring PluginsManager
2013-02-02 00:33:23 - LOG [eBot\Manager\PluginsManager] Loading plugins
2013-02-02 00:33:23 - LOG [eBot\Application\Application] Starting eBot Application
2013-02-02 00:33:23 - LOG [eBot\Manager\MatchManager] New match detected - test vs test2 on 193.192.58.252:27400
2013-02-02 00:33:23 - LOG [eBot\Match\Match] RCON init ok
2013-02-02 00:33:23 - LOG [eBot\Match\Match] 193.192.58.252:27400 :: Match configuration :: Full Score: no :: Switch Auto: no :: Over Time: no :: KnifeRound: yes
2013-02-02 00:33:23 - LOG [eBot\Match\Match] 193.192.58.252:27400 :: MaxRound: 15 :: Rules: esl5on5
2013-02-02 00:33:23 - LOG [eBot\Match\Map] Maps loaded de_mirage_csgo (score: 0 - 0) - Current left side: ct - Current status: Warmup Knife
2013-02-02 00:33:23 - LOG [eBot\Match\Match] 193.192.58.252:27400 :: Maps selected: #1 - de_mirage_csgo - Warmup Knife

Am 02.02.2013 um 00:30 schrieb Basert:

Can you state the output of the console in here?


Reply to this email directly or view it on GitHub.

@basert
Copy link
Collaborator

basert commented Feb 1, 2013

Can you show me the output of this rcon-command: logaddress_list

Can the gameserver server send logfiles to your pc/mac? Is the port-forwarding correct?

You can add me on skype, it would be easier to help: fabiangruber00

@ghost
Copy link
Author

ghost commented Feb 1, 2013

unfortunately rcon access doesn't work yet in cs:go mac version so i can't test this command.
here is the rcon password and the server ip: connect 193.192.58.252:27400;password apg;rcon_password apgsintox2013

Am 02.02.2013 um 00:47 schrieb Basert:

Can you show me the output of this rcon-command: logaddress_list


Reply to this email directly or view it on GitHub.

@basert
Copy link
Collaborator

basert commented Feb 2, 2013

works good for me, with my ebot server.

I think the problem is, that the gameserver cannot send you the rcon-logfiles. Are you behind a router? Is port-forwarding enabled (for port 12360)?

@basert
Copy link
Collaborator

basert commented Feb 2, 2013

I have another idea:

paste this into your server.cfg:
logaddress_add "YOURIP:12360"

then restart the server and excute the following php file:

It will simulate the ebot-logfile socket. Then connect to the server, there should be some output then. If not, you are not recieving any of the serverlogs send by the gameserver.

@ghost
Copy link
Author

ghost commented Feb 2, 2013

I'll give that a try tomorrow because i have no ftp access to server.cfg.
With your ip you mean by WAN ip right? Do i have to enter my WAN ip in the bot config file?
At the moment theres my Lan ip in the config. Do i have to install a port forwarding in my router?

Am 02.02.2013 um 01:11 schrieb Basert:

I have another idea:

paste this into your server.cfg:
logaddress_add YOURIP:12360

then restart the server and excute the following php file:

It will simulate the ebot-logfile socket. Then connect to the server, there should be some output then. If not, you are not recieving any of the serverlogs send by the gameserver.


Reply to this email directly or view it on GitHub.

@ghost
Copy link
Author

ghost commented Feb 2, 2013

sry i missed your first post. Yes i am behind a router. My bot is running on port 33333 and this port i forwarded. Do i need a DynDNS for the configfile?

@basert
Copy link
Collaborator

basert commented Feb 2, 2013

DynDNS is not necessary, you just have to enter your WAN IP.

My little php script is just to check, if any logfiles are incomming. If there are messages incomming, the bot should work too. Port-Forwarding must be enabeld, in my script case for the port 12360

@ghost
Copy link
Author

ghost commented Feb 2, 2013

Thanks, at the Moment the Serveradmin is not online to write cfg. Does the logaddress_add command only take effect at a reboot?

So my WAN ip is this:
81.210.186.251

My LAN ip is: 192.168.1.3

No i should enter this as followed right?

Router forwards port to 192.168.1.3

logaddress_add 81.210.186.251:12360

Now when i run the script i takes some time but theres no output, when i start the script again, he is unable to bind the socket.

@basert
Copy link
Collaborator

basert commented Feb 2, 2013

if you not geeting any information, there server won't send you these logfiles. You have to be sure, you get the logfiles. It's not a bot problem:

@ghost
Copy link
Author

ghost commented Feb 2, 2013

I gave it a try with a local server so i started cs => offline with bots => there in console i typed: log on;logaddress_add 192.168.1.3:12360;

in the script i entered the same ip and port so it should work because there can't be probs with router.
But the Problem is when i start the Script the second time the socket is left open so he is unable to bind the socket to the same ip/port. In the first run the snippets seems to get into the loop but this line is not echo'd
echo 'Socket up and running' . PHP_EOL;

Does the Snippet work at your machine?

@basert
Copy link
Collaborator

basert commented Feb 2, 2013

Yeah, it works excelent on windows and ubuntu. So no problem for me.

The bot has to be offline, while the script is running. It's working for me both, offline and online with no problems.

@ghost
Copy link
Author

ghost commented Feb 3, 2013

Hey it works now, i tried everything from the beginning.
The bot does recognize !ready and !notready but !rules and !help don't work. Do I have to set anything to let them work too?

@basert basert closed this as completed May 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant