barolet / kovans-ogbot

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

I cannot use the bot for months in ogame.com.es "\xc3\" #312

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
ENGLISH ONLY.
IF ANY OF THE INFO BELOW IS MISSING THE BUG REPORT WILL BE DELETED.
Thank you.

Bot version: 3.1b
OGame server language: Spanish (com.es)
OGame server version: 0.84
Using admirals or commander (specify)?: No
Operating System: Ubuntu 9.04

Description of the problem:

The bot looks for inactive, but when reading the report provides several
types of espionage error.

Log file contents:

Traceback (most recent call last):
  File "src/OGBot.py", line 108, in run
    self._start()
  File "src/OGBot.py", line 225, in _start
    self.spyPlanets(self.inactivePlanets,
EspionageReport.DetailLevels.buildings)    # spy pending planets:
  File "src/OGBot.py", line 414, in spyPlanets
    self.checkIfEspionageReportsArrived()
  File "src/OGBot.py", line 527, in checkIfEspionageReportsArrived
    displayedReports = self.web.getEspionageReports()
  File "src/WebAdapter.py", line 637, in getEspionageReports
    dict[self.translationsByLocalText[fullName.strip()]] =
int(quantity.replace('.', ''))
KeyError: 'Planta de energ\xc3\xada solar'

Please provide any additional information below:

I can not use the bot for months, I'm continually testing without success.

I have an account in ogame.org and the bot works perfectly. But In
Ogame.com.es I'm unable to make it work.

Anyone ogame.com.es it works?

Please I need help, I'm desperate. thank you very much in advance.

Original issue reported on code.google.com by email.ja...@gmail.com on 14 May 2009 at 12:57

GoogleCodeExporter commented 8 years ago
creo que tiene algo que ver con la traduccion. date cuenta que el programa da 
error
cuando hay acentos. yo creo que es algun fallo del programa con los acentos.

Original comment by goazen.t...@gmail.com on 28 May 2009 at 6:41

GoogleCodeExporter commented 8 years ago
in english, There is a problem in .es, the bot looks for the inactive  well, 
but when
it is going to spy there is a mistake. in spanish exists accents on words, for
example energía have accent on i. i think that the bot cant read this accents.

i try to quit accents in traslation file, but it no runs.

Original comment by goazen.t...@gmail.com on 28 May 2009 at 7:00

GoogleCodeExporter commented 8 years ago
i find something, \xc3\xad are a encryption code. 
we need write energ\xc3\xada how energía to solve the problem

Original comment by goazen.t...@gmail.com on 28 May 2009 at 7:31

GoogleCodeExporter commented 8 years ago
im searching in the program code, and i find that language files are codified 
in UTF-8.

 \xc3\xad means "í" in utf-8.

Original comment by goazen.t...@gmail.com on 28 May 2009 at 9:47

GoogleCodeExporter commented 8 years ago
I think the problem is not file spanish.ini, it is the way it interprets the 
bot.
but, what is the solution?

Original comment by email.ja...@gmail.com on 1 Jun 2009 at 9:16

GoogleCodeExporter commented 8 years ago

Original comment by kovansog...@gmail.com on 2 Apr 2010 at 9:50