In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

Pages: [1]   Go Down
  Print  
Author Topic: Not recognising commands  (Read 403 times) Bookmark and Share
Newbie
*
OS: Linux
Type: Home user
Gameservers: CoD4
Posts: 5
Offline Offline
« on: October 16, 2011, 08:05:37 AM »

I've managed to install everything needed for b3 to work, and it seems to connect ot the game via rcon perfectly fine. However, none of the console commands work. I tried the initial command for it to recognise me as the super admin (!iamgod), and I can't get any reaction out of it. I have tried normal say, team_say, and just typed in the console, still nothing. The mysql db hasn't changed with exception to one client being added as "WORLD". Has anyone else had these issues?

here is my b3.xml: http://pastebin.com/5Ch79eBk
my b3.log: http://pastebin.com/LkihwA66

I'd appreciate if anybody could help... PS is there a IRC support channel for b3?
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3478
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: October 16, 2011, 08:20:00 AM »

disable all plugins but the admin plugin and restart the bot.

If it works fine, then add the plugins you want one by one, restarting the bot each time until you find the culprit.

Here's your config with just the admin plugin : http://pastebin.com/index/5Ch79eBk
Logged

Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1096
Offline Offline
« Reply #2 on: October 16, 2011, 08:25:42 AM »

Also, are you sure that this is where the game log file is created? Because the log doesn't show any record of b3 reading any lines from it.

<set name="game_log">/Users/loco/Library/Application Support/Call of Duty 4/games_mp.log</set>

If the file exists, delete it and see if the game recreates it here. If it does check that it has a record of you typing !iamgod in it.
Logged
Newbie
*
OS: Linux
Type: Home user
Gameservers: CoD4
Posts: 5
Offline Offline
« Reply #3 on: October 16, 2011, 09:11:07 AM »

Thank you for the fast responses. The game definitely posts into the games_mp.log I have listed, as you can see here: http://pastebin.com/6db45Vq8
here is the new b3.log: http://pastebin.com/MzY30kFW
at18:08:48 I closed the bot.

One thing that I did notice in the log above was that it loads the admin plugin at line 18, and at line 20 the admin plugin quits?? That doesn't look right, is that part of the normal process?

But yeah, it still doesn't recognise any of the attempts I made, as you can see in the games_mp.log. Would you have any more ideas on what could be wrong? I have disabled all plugins in the b3.xml, except the admin plugin.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3478
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #4 on: October 16, 2011, 09:34:38 AM »

don't worry about line 20 as it just means that the admin plugin is interested in getting notified of any "Stop Process" event.

Regarding your issue, could you type the following command in a new shell and to make sure log gets written live :
Code:
tail -f "/Users/loco/Library/Application Support/Call of Duty 4/games_mp.log"
Logged

Newbie
*
OS: Linux
Type: Home user
Gameservers: CoD4
Posts: 5
Offline Offline
« Reply #5 on: October 16, 2011, 10:07:51 AM »

Just tried it, the log shows that I've connected, and immediately shows any messages I send as soon as I send them:

Code:
Last login: Sun Oct 16 16:28:28 on ttys004
book:~ loco$ tail -f "/Users/loco/Library/Application Support/Call of Duty 4/games_mp.log"
  4:39 J;00d9f1eb1951bf2585d6940273faf8f2;50;[MGH]loco
  4:48 say;00d9f1eb1951bf2585d6940273faf8f2;50;[MGH]loco;test
  4:50 say;00d9f1eb1951bf2585d6940273faf8f2;50;[MGH]loco;!regtest
  4:53 say;00d9f1eb1951bf2585d6940273faf8f2;50;[MGH]loco;!iamgod
  4:56 say;00d9f1eb1951bf2585d6940273faf8f2;50;[MGH]loco;!help
  5:00 Q;00d9f1eb1951bf2585d6940273faf8f2;50;[MGH]loco
  5:54 ShutdownGame:
  5:54 ------------------------------------------------------------
  5:54 ------------------------------------------------------------
  5:54 InitGame: \fs_game\mods/2.1\g_compassShowEnemies\0\g_gametype\dm\gamename\Call of Duty 4\mapname\mp_surv_re4village\protocol\6\shortversion\1.7\sv_allowAnonymous\0\sv_disableClientConsole\0\sv_floodprotect\4\sv_hostname\^1# PT & MGH Rotu 2.1 server #\sv_maxclients\64\sv_maxPing\0\sv_maxRate\5000\sv_minPing\0\sv_privateClients\0\sv_punkbuster\0\sv_pure\1\sv_voice\0\ui_maxclients\64
 62:25 J;00d9f1eb1951bf2585d6940273faf8f2;50;[MGH]loco
 62:43 say;00d9f1eb1951bf2585d6940273faf8f2;50;[MGH]loco;!iamgod
 62:49 say;00d9f1eb1951bf2585d6940273faf8f2;50;[MGH]loco;!test
 62:52 say;00d9f1eb1951bf2585d6940273faf8f2;50;[MGH]loco;asadfasf
 62:59 Q;00d9f1eb1951bf2585d6940273faf8f2;50;[MGH]loco

Could it be that your parser is having issues with my mp.log? I'm doing this on Mac OS X (hence the strange mp.log location).
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3478
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #6 on: October 16, 2011, 10:16:04 AM »

oh mac.... I remember something about mac. There must be a topic hidden somewhere that says how to hack a few lines of code to make it work.


Found it ! see http://forum.bigbrotherbot.net/installation-support/b3-still-not-responding/msg24275/#msg24275
« Last Edit: October 16, 2011, 10:18:13 AM by Courgette » Logged

Newbie
*
OS: Linux
Type: Home user
Gameservers: CoD4
Posts: 5
Offline Offline
« Reply #7 on: October 16, 2011, 11:33:50 AM »

I've just been playing around with the readlines fix, and sadly it doesn't make any difference:
http://pastebin.com/uwWNEs2z

What intrigues me, I remember earlier today I saw a line in the b3.log where it recognised that I connected, it actually recognised a new connection! Could it be that the Mac version of COD4 logs slightly differently to the linux and windows versions, and that the (cod4 specific) parser just needs adjusting? Here is my games_mp.log: http://pastebin.com/A9N4c9sQ

Also, i noticed that the people in the thread you linked to tested the parsing problem with a file python 8893.py, is this file available for me to test with?
« Last Edit: October 16, 2011, 11:40:06 AM by loco » Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3478
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #8 on: October 16, 2011, 11:40:24 AM »

from your logs, the problem seems to be that B3 does not detect new lines in your game log.
Unfortunately we have no experience with mac and sadly mac users are kind of left alone with their issues as very few people would be able to reproduce.
You might need to adujst the B3 code but I cannot tell for sure nor can I tell what

regarding 8893.py : http://bugs.python.org/issue8893
Logged

Newbie
*
OS: Linux
Type: Home user
Gameservers: CoD4
Posts: 5
Offline Offline
« Reply #9 on: October 16, 2011, 11:57:28 AM »

yep, neither of them seem to giving me an output:
Code:
sh-3.2# python test.py
read     :  []
readlines:  []
readline :
I might try recompiling python manually later with the patch I found on that thread, I'll see what I can come up with it.

in the end it doesn't really matter as long as it'll work fine when I run it on a linux server. I was just hoping to test and fully set this up prior to getting the actual server ready etc. Thank you for all the help! I'll let you know if I find a solution.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3478
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #10 on: October 16, 2011, 11:58:35 AM »

may I suggest that you run a linux system on a virtual machine to try it at home ?
Logged

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 244
Offline Offline
« Reply #11 on: October 17, 2011, 12:00:18 AM »

You can also try Python 2.7.2. Maybe there were some bugfixes related to the problem since 2.6.1
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal