barolet / kovans-ogbot

Automatically exported from code.google.com/p/kovans-ogbot
0 stars 0 forks source link

AttributeError: 'NoneType' object has no attribute 'group' #291

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Bot version: 3.1b
OGame server language: de
OGame server version:  0.83
Using admirals or commander (specify)?:no
Operating System: vista 32 bit

Description of the problem:

I get an error,after starting the bot

c:\bot>python -O src\OGBot.py
xx/xx/xx xx:xx:xx Contacting server...
xx/xx/xx xx:xx:xx Logged in with user xxxxx.
Traceback (most recent call last):
  File "src\OGBot.py", line 106, in run
    self._connect()
  File "src\OGBot.py", line 139, in _connect
    self.web.updatePlayerData(self.player)
  File "src\WebAdapter.py", line 411, in updatePlayerData
    self.getFleetSlots(player)
  File "src\WebAdapter.py", line 602, in getFleetSlots
    player.totalFleetSlots = int(fleetSlots.group(2))
AttributeError: 'NoneType' object has no attribute 'group'
xx/xx/xx xx:xx:xx Something unexpected occured, see log file. Stopping bot.

Log file contents:

xx/xx/xx xx:xx:xx Contacting server...
xx/xx/xx xx:xx:xx Logged in with user xxxxx.
xx/xx/xx xx:xx:xx Something unexpected occured, see log file. Stopping bot.

I got a simmiliar error before,when I translated the german.ini file wrongly. 

It think the error is here:                "maxFleets = max."
- Its copied from the original .ini file.

If its necessary I paste my translation here:

# as found in the overview page:
fields = Felder
rank = Platz

#research page
expeditionTechnology = Expeditionstechnologie

# when being attacked
aHostile = Eine feindliche Flotte
itsMissionIs = ihre Mission ist

# as found on the fleets page
expeditions = Expeditionen

#as found on shipyard and defense page
durationRemaining = Restdauer gesamt

I hope you can help me

Original issue reported on code.google.com by pimp_r...@web.de on 29 Jan 2009 at 6:28

GoogleCodeExporter commented 8 years ago
I get the same error with ogame.it

Original comment by seisolou...@gmail.com on 29 Jan 2009 at 8:31

Attachments:

GoogleCodeExporter commented 8 years ago
what would really help me is if you could go to the "fleet" page and open up the
source and find the line that lists how many free fleet slots you have and copy 
that here

ex.

    <td style='background-color:transparent;'>
    Fleets 0 / 10   </td>
    <td align=right style='background-color:transparent;'>
      0/0 Expeditions   
    </td>
    </tr>
    </table>

Original comment by King.Vash@gmail.com on 29 Jan 2009 at 10:07

GoogleCodeExporter commented 8 years ago

Original comment by King.Vash@gmail.com on 29 Jan 2009 at 10:09

GoogleCodeExporter commented 8 years ago

Original comment by King.Vash@gmail.com on 29 Jan 2009 at 10:10

GoogleCodeExporter commented 8 years ago
    <td style="background-color: transparent;">
    Flotten 1 / 1   </td>
    <td style="background-color: transparent;" align="right">
      0/0 Expeditionen  
    </td>
    </tr>
    </tbody></table>

Original comment by pimp_r...@web.de on 29 Jan 2009 at 10:21

GoogleCodeExporter commented 8 years ago
fixed

Original comment by brain...@gmail.com on 30 Jan 2009 at 2:16

GoogleCodeExporter commented 8 years ago

Original comment by King.Vash@gmail.com on 30 Jan 2009 at 2:18

GoogleCodeExporter commented 8 years ago

Original comment by King.Vash@gmail.com on 30 Jan 2009 at 5:11