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' #221

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
ENGLISH ONLY.
ONLY BUGS, NOT FEATURE REQUEST (use the forum section for that)
IF ANY OF THE INFO BELOW IS MISSING THE BUG REPORT WILL BE DELETED.
Thank you.

Bot version:2.2b
OGame server language:english
OGame server version: 0.76b
Operating System:Windows XP

Description of the problem:

Error after launch

Log contents:

Please provide any additional information below:

Original issue reported on code.google.com by servis_l...@mail.ru on 17 Jun 2007 at 3:58

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by kovansog...@gmail.com on 17 Jun 2007 at 4:35

GoogleCodeExporter commented 8 years ago
How strange, I cannot manage to get that error, even in ogame.org

Original comment by jsceballos on 17 Jun 2007 at 5:19

GoogleCodeExporter commented 8 years ago
You use what version?
Has tried to start on old base.

[code]
C:\Python25>python -O src\OGBot.py
06/17/07 20:54:40 Connecting...
06/17/07 20:54:43 Connected
06/17/07 20:54:43 Bot started.
06/17/07 20:54:43 Changing to attack mode.
Traceback (most recent call last):
  File "src\OGBot.py", line 110, in run
    self._start()
  File "src\OGBot.py", line 227, in _start
    self.attackMode()
  File "src\OGBot.py", line 313, in attackMode
    self._spyPlanet(sourcePlanet, targetPlanet, False, "Spying", 1)
  File "src\OGBot.py", line 482, in _spyPlanet
    self.web.launchMission(mission, True, slotsToReserve)
  File "src\WebAdapter.py", line 366, in launchMission
    if self.getFreeSlots(pageText) <= int(slotsToReserve):
  File "src\WebAdapter.py", line 457, in getFreeSlots
    maxFleets = int(self.REGEXPS['maxSlots'].search(page).group(1))
AttributeError: 'NoneType' object has no attribute 'group'
06/17/07 20:54:45 Something unexpected occured, see log file. Restarting bot.
Bot stopped.
[/code]

Original comment by servis_l...@mail.ru on 17 Jun 2007 at 5:58

GoogleCodeExporter commented 8 years ago
And tested on demo-version.
06/17/07 21:23:01 Connecting...
06/17/07 21:23:04 Logged in with user XXXXXX.
06/17/07 21:23:30 Connected
06/17/07 21:23:30 Invalid or missing gamedata, spying planets.
06/17/07 21:23:30 Searching inactive planets in range (this may take up to some
minutes)...
06/17/07 21:24:42 Inactive search finished. 31 inactives (31 new) found in 21 
solar
sytems.
06/17/07 21:24:42 Bot started.
06/17/07 21:24:43 Something unexpected occured, see log file. Restarting bot.

Original comment by servis_l...@mail.ru on 17 Jun 2007 at 6:27

GoogleCodeExporter commented 8 years ago
I'm using 2.2b too. 
What uni from ogame.org are you at?

Original comment by jsceballos on 17 Jun 2007 at 10:41

GoogleCodeExporter commented 8 years ago
uni 30

Original comment by servis_l...@mail.ru on 18 Jun 2007 at 1:12

GoogleCodeExporter commented 8 years ago
Could you try 2.2c please?

Original comment by kovansog...@gmail.com on 21 Jun 2007 at 11:35

GoogleCodeExporter commented 8 years ago
same error in 2.2c

06/23/07 00:42:02 Inactive search finished. 43 inactives (43 new) found in 21
lar sytems.
06/23/07 00:42:02 Bot started.
Traceback (most recent call last):
  File "src\OGBot.py", line 110, in run
    self._start()
  File "src\OGBot.py", line 221, in _start
    self.spyPlanets(self.inactivePlanets, EspionageReport.DetailLevels.buildi
)    # spy pending planets:
  File "src\OGBot.py", line 452, in spyPlanets
    self._spyPlanet(sourcePlanet, targetPlanet, True, msg, probesToSend)
  File "src\OGBot.py", line 482, in _spyPlanet
    self.web.launchMission(mission, True, slotsToReserve)
  File "src\WebAdapter.py", line 369, in launchMission
    if self.getFreeSlots(pageText) <= int(slotsToReserve):
  File "src\WebAdapter.py", line 460, in getFreeSlots
    maxFleets = int(self.REGEXPS['maxSlots'].search(page).group(1))
AttributeError: 'NoneType' object has no attribute 'group'
06/23/07 00:42:02 Something unexpected occured, see log file. Restarting bot.

this is on ogame.dk tho

Original comment by webmas...@rk2gods.com on 22 Jun 2007 at 10:45

GoogleCodeExporter commented 8 years ago
On 2.2c too. I use now 2.2a
May be this linked with admiral?

Original comment by servis_l...@mail.ru on 23 Jun 2007 at 1:29

GoogleCodeExporter commented 8 years ago
webmas...@rk2gods.com do you have admiral officer?

Original comment by jsceballos on 23 Jun 2007 at 1:32

GoogleCodeExporter commented 8 years ago

Original comment by jsceballos on 23 Jun 2007 at 1:33

GoogleCodeExporter commented 8 years ago
yes

Original comment by webmas...@rk2gods.com on 23 Jun 2007 at 11:59

GoogleCodeExporter commented 8 years ago
ok Ive found the problem you have changed the maxSlot RegExpr in 2.2b but its 
flawed
replacing it with the following should fix the problem

'maxSlots':re.compile(r"\(%s.*?([0-9]+).*\)" % 
translations['maxFleets'].replace('.', '\. '), re.I), 

Original comment by webmas...@rk2gods.com on 23 Jun 2007 at 12:29

GoogleCodeExporter commented 8 years ago
Awesome! Thanks.

Original comment by jsceballos on 23 Jun 2007 at 1:11

GoogleCodeExporter commented 8 years ago
Fixed in 2.2d

Original comment by kovansog...@gmail.com on 23 Jun 2007 at 3:02