barolet / kovans-ogbot

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

Error occurred, bot stops #287

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: The one uploaded on 25 or 26th of january
OGame server language:English
OGame server version: 0.83
Using admirals or commander (specify)?: No.
Operating System: XP SP2

Description of the problem:

Error occurs, bot stops

Log file contents:

Please provide any additional information below:
Cmd shows this:

         01-26, XXXX Fetched
http://uni30.ogame.org/game/index.php?session=censor&lgn=1
         01-26, XXXX Fetched
http://uni30.ogame.org/game/index.php?session=censor&lgn=1&page=overview
         01-26, XXXX Fetched http://uni30.ogame.org/game/index.php?messagezi
el=&re=0&session=censor&mode=&gid=&page=overview
         01-26, XXXX Fetched
http://uni30.ogame.org/game/index.php?session=censor&page=flotten1&mode=Flotte
         01-26, XXXX Fetched
http://uni30.ogame.org/game/index.php?session=censorcp=censor&page=buildings&mod
e=Forschung
Traceback (most recent call last):
  File "src\OGBot.py", line 106, in run
    self._connect()
  File "src\OGBot.py", line 144, in _connect
    largeCargos.speed =  int(7500 * (1 +
(self.player.research['combustionDrive'
] * 0.1)))
KeyError: 'combustionDrive'
01/26/09 XXXX Something unexpected occured, see log file. Stopping bot.

Edited out times & session-ID

Original issue reported on code.google.com by matts...@gmail.com on 26 Jan 2009 at 7:48

GoogleCodeExporter commented 8 years ago
I will deal with this soon. I know why it occurs (it does not think you have any
combustionDrive researched) if you change self.player.allResearch it will work. 
I had
made this update previously but it seems to have been lost in my SVN update 
fisco

Original comment by King.Vash@gmail.com on 26 Jan 2009 at 9:01

GoogleCodeExporter commented 8 years ago
Allright, will test it out and give feedback.. thanks

Original comment by matts...@gmail.com on 26 Jan 2009 at 9:12

GoogleCodeExporter commented 8 years ago
i found out its on other researches too.. will correct the errors and post the 
file
when done..

Also, clicking runbot.bat doesnt do anything.. you have to go to src folder and 
click
ogbot.pyc

Original comment by matts...@gmail.com on 26 Jan 2009 at 9:32

GoogleCodeExporter commented 8 years ago
Works (had to change combustiondrive & impulsedrive)

Attached file is working ogbot.py :)

Original comment by matts...@gmail.com on 26 Jan 2009 at 9:42

Attachments:

GoogleCodeExporter commented 8 years ago
Also is there a way to remove the pre-midnight pause? As i'm usually online in 
the
times that ogbot goes into pre-midnight pause.. i'm only using it when i'm 
online
anyway, dont let it run when i'm asleep/ @ school ;)

Original comment by matts...@gmail.com on 26 Jan 2009 at 9:46

GoogleCodeExporter commented 8 years ago
go to files/config/config.ini and change it to 23:59

Original comment by King.Vash@gmail.com on 26 Jan 2009 at 11:48

GoogleCodeExporter commented 8 years ago

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