Closed GoogleCodeExporter closed 8 years ago
Original comment by kovansog...@gmail.com
on 17 Jun 2007 at 4:35
How strange, I cannot manage to get that error, even in ogame.org
Original comment by jsceballos
on 17 Jun 2007 at 5:19
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
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
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
uni 30
Original comment by servis_l...@mail.ru
on 18 Jun 2007 at 1:12
Could you try 2.2c please?
Original comment by kovansog...@gmail.com
on 21 Jun 2007 at 11:35
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
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
webmas...@rk2gods.com do you have admiral officer?
Original comment by jsceballos
on 23 Jun 2007 at 1:32
Original comment by jsceballos
on 23 Jun 2007 at 1:33
yes
Original comment by webmas...@rk2gods.com
on 23 Jun 2007 at 11:59
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
Awesome! Thanks.
Original comment by jsceballos
on 23 Jun 2007 at 1:11
Fixed in 2.2d
Original comment by kovansog...@gmail.com
on 23 Jun 2007 at 3:02
Original issue reported on code.google.com by
servis_l...@mail.ru
on 17 Jun 2007 at 3:58Attachments: