kovan / kovans-ogbot

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

Ogame.org login changed two days ago #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ogame.org server has changed the first page (only) two days ago (don't hold
me for the word, maybe it was 3 days ago). There are just a few minor
changes and I have patched your nice bot to implement them. I have done
everything with the concern not to mess-up other unis (every change is in
form "if .org uni:\n whatever new thing\n else: old thing").

I am attaching you the patch for ogbot-2.1.2d and for your current trunk
version (r211).

The r211 patch is output from "svn diff" command, so you can apply it to
r211 with "patch -Np0 -i /path/to/my/patch-r211".

The patch for 2.1.2d is output from "diff -Naur oldDir newDir", so you
should apply that with "patch -Np1 -i /path/to/my/patch-2.1.2d".

Btw, your trunk version had some problems with uninitialized variables. If
I find some time, I'll try to fix that. Here the trace:

Sun May 27 18:14:36 2007 Inactive search finished. 78 inactives (78 new)
found in 31 solar sytems (3.0 secs. per solar system).
Sun May 27 18:14:36 2007 Bot started.
Traceback (most recent call last):
  File "src/OGBot.py", line 109, in run
    self._start()
  File "src/OGBot.py", line 217, in _start

self.spyPlanets(self.inactivePlanets,EspionageReport.DetailLevels.buildings)
   # spy pending planets:
  File "src/OGBot.py", line 446, in spyPlanets
    probesToSend = max(samePlayerProbes + [probesToSend])
UnboundLocalError: local variable 'probesToSend' referenced before assignment
Sun May 27 18:14:36 2007 Something unexpected occured, see log file.
Restarting bot.

Btw, I would advise you not to restart the bot every time something bad
happens. If there is "something unexpected", and you keep restarting the
bot, the owner of the account who's bot is restarting and messing something
up is more likely to be caught for bot-using, don't you think?

Original issue reported on code.google.com by marjan3...@gmail.com on 27 May 2007 at 4:32

Attachments:

GoogleCodeExporter commented 9 years ago
I am sorry to make duplicate issues (duplicate is not the word :) ). This 
google's
issue tracker is a bit odd and sorts the issues so that I get the most recent 
issue
on the last page instead on the first. So, I didn't see the other issues until I
submitted my own :(

Original comment by marjan3...@gmail.com on 27 May 2007 at 4:35

GoogleCodeExporter commented 9 years ago
Look at Issue #151, I have solved the same problem a day ago :). But your fix 
is 
more correct -- I've totally forgotten about the fact that only .org page has 
changed. I suggest you post your WebAdapter.pyo there, so that people can add 
it to 
library.zip.

Good job, btw :)

Original comment by perebo...@gmail.com on 28 May 2007 at 7:50

GoogleCodeExporter commented 9 years ago

Original comment by pepillog...@gmail.com on 30 May 2007 at 8:24