b1naryth1ef / UrTBot

An attempt at a lighter, more configurable alternative to the BigBrotherBot for Urban Terror.
http://bot.hydr0.com/
7 stars 6 forks source link

Weird activity on Mac (might just be q3...) #10

Closed b1naryth1ef closed 12 years ago

b1naryth1ef commented 12 years ago
Last login: Sun Dec 11 19:01:11 on ttys007
andreis-macbook:~ Andrei$ cd "/Users/Andrei/Downloads/winpdb-1.4.8" ; /usr/bin/python "/Library/Python/2.7/site-packages/rpdb2.py" --debugee --chdir --rid=2200053 "/Users/Andrei/code/Python/UrTBot/start.py" 
SQLite DB loaded
CALLED STARTUP
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/rpdb2.py", line 14499, in <module>
    ret = rpdb2.main()
  File "/Library/Python/2.7/site-packages/rpdb2.py", line 14470, in main
    StartServer(_rpdb2_args, fchdir, _rpdb2_pwd, fAllowUnencrypted, fAllowRemote, secret)
  File "/Library/Python/2.7/site-packages/rpdb2.py", line 14220, in StartServer
    imp.load_source('__main__', _path)    
  File "/Users/Andrei/code/Python/UrTBot/start.py", line 4, in <module>
    init.Start()
  File "/Users/Andrei/code/Python/UrTBot/init.py", line 478, in Start
    BOT.Startup()
  File "/Users/Andrei/code/Python/UrTBot/init.py", line 120, in Startup
    pk3s = self.Q.rcon("sv_pakNames").split('"')[3].split()
IndexError: list index out of range

Ideas?

b1naryth1ef commented 12 years ago

Guessing its a weird response from the server, but we should catch it anyway...

spekode commented 12 years ago

Is it reproducible on demand or is it sporadic?

b1naryth1ef commented 12 years ago

Reproducible. I have a feeling its the weird mac version. Some commands (such as tell) just dont exsist in the server binary. We should probably have a way of detecting if this is so, and warn the user accordingly.

b1naryth1ef commented 12 years ago

Fix this by catching that exception and throwing a warning message about incompatibile server builds.