Closed GoogleCodeExporter closed 9 years ago
thanks for the updated language file!
the regresion expression must not work for german. if you post the source of a
sent
mission I will fix in.
ex.
<center>
<script language="JavaScript" src="index_files/flotten.js"></script>
<table border="0" cellpadding="0" cellspacing="1" width="519">
<tbody><tr height="20">
<td class="c" colspan="2">
<span class="success">Fleet sent:</span>
</td>
</tr>
<tr height="20">
<th>Mission</th><th>Transport</th>
</tr>
<tr height="20">
<th>Distance</th><th>5</th>
</tr>
<tr height="20">
<th>Speed</th><th>32.000</th>
</tr>
<tr height="20">
<th>Consumption</th><th>1</th>
</tr>
<tr height="20">
<th>Start</th><th><a
href="http://uni.ogame.org/game/index.php?page=galaxy&galaxy=&system=&position=&
session=">[9:999:9]</a></th>
</tr>
<tr height="20">
<th>Target</th><th><a href="">[9:999:9]</a></th>
</tr>
<tr height="20">
<th>Arrival time</th><th>Sun Feb 8 9:34:23</th>
</tr>
<tr height="20">
<th>Return time</th><th>Sun Feb 8 9:36:51</th>
</tr>
<tr height="20">
<td class="c" colspan="2">Ships</td>
</tr>
<tr height="20">
<th width="50%">Small Cargo</th><th>1</th>
</tr>
</tbody></table>
<br><br><br><br>
</center>
</div>
Original comment by brain...@gmail.com
on 8 Feb 2009 at 8:33
[deleted comment]
[deleted comment]
<!-- CONTENT AREA -->
<div style="top: 91px; height: 776px;" id="content">
<center>
<script language="JavaScript" src="index.php-Dateien/flotten.js"></script>
<table width="519" border="0" cellpadding="0" cellspacing="1">
<tbody><tr height="20">
<td class="c" colspan="2">
<span class="success">Flotte wurde verschickt:</span>
</td>
</tr>
<tr height="20">
<th>Auftrag</th><th>Spionage</th>
</tr>
<tr height="20">
<th>Entfernung</th><th>5.265</th>
</tr>
<tr height="20">
<th>Geschwindigkeit</th><th>170.000.000</th>
</tr>
<tr height="20">
<th>Verbrauch</th><th>3</th>
</tr>
<tr height="20">
<th>Start</th><th><a
href="http://uni70.ogame.de/game/index.php?page=galaxy&galaxy=&system=&position=
&session=">[]</a></th>
</tr>
<tr height="20">
<th>Ziel</th><th><a
href="http://uni70.ogame.de/game/index.php?page=galaxy&galaxy=&system=&position=
&session=">[]</a></th>
</tr>
<tr height="20">
<th>Ankunftszeit</th><th>Sun Feb 8 13:24:08</th>
</tr>
<tr height="20">
<th>Rückkehrzeit</th><th>Sun Feb 8 13:24:44</th>
</tr>
<tr height="20">
<td class="c" colspan="2">Schiffe</td>
</tr>
<tr height="20">
<th width="50%">Spionagesonde</th><th>4</th>
</tr>
</tbody></table>
<br><br><br><br>
</center>
</div>
Original comment by King.Vash@gmail.com
on 10 Feb 2009 at 12:11
Original comment by King.Vash@gmail.com
on 10 Feb 2009 at 12:12
the problem is in the translation if you use
R\xfcckkehrzeit
it works
Original comment by King.Vash@gmail.com
on 10 Feb 2009 at 12:25
it doesnt work for me:
KeyError: 'R\xfcckkehrzeit'
its strange that earlier the bot worked normally.
is it possible that ogame changed the source code?
Original comment by pimp_r...@web.de
on 10 Feb 2009 at 11:39
unlikely that they changed it
resultPage = {}
for type, value in self.REGEXPS['fleetSendResult'].findall(page):
resultPage[type] = value
# fill remaining mission fields
print resultPage
raise BotError( shipType )
arrivalTime = parseTime(resultPage[self.translations['arrivalTime']])
returnTime = parseTime(resultPage[self.translations['returnTime']])
mission.setTimes(arrivalTime, returnTime)
ignore the error, look at the output and see what name is listed with return
time
Original comment by King.Vash@gmail.com
on 11 Feb 2009 at 2:01
Original comment by King.Vash@gmail.com
on 16 Feb 2009 at 7:02
i dont exactly understand what you mean.
if i ignore the error nothing happens, the bot just stops.
the only output i have i have already sent in the first post.
Original comment by pimp_r...@web.de
on 16 Feb 2009 at 1:21
in webadapter.py
change
resultPage = {}
for type, value in self.REGEXPS['fleetSendResult'].findall(page):
resultPage[type] = value
# fill remaining mission fields
arrivalTime = parseTime(resultPage[self.translations['arrivalTime']])
returnTime = parseTime(resultPage[self.translations['returnTime']])
mission.setTimes(arrivalTime, returnTime)
mission.distance =
int(resultPage[self.translations['distance']].replace('.', ''))
mission.consumption =
int(resultPage[self.translations['consumption']].replace('.', ''))
to
resultPage = {}
for type, value in self.REGEXPS['fleetSendResult'].findall(page):
resultPage[type] = value
# fill remaining mission fields
print resultPage
raise BotError( shipType )
arrivalTime = parseTime(resultPage[self.translations['arrivalTime']])
returnTime = parseTime(resultPage[self.translations['returnTime']])
mission.setTimes(arrivalTime, returnTime)
and post the output here
Original comment by brain...@gmail.com
on 19 Feb 2009 at 3:15
02/22/09 13:55:15 Bot started.
main loop
{'Ankunftszeit': 'Sun Feb 22 13:52:38', 'Start': '<a href="index.php?page=galaxy
&galaxy=4&system=155&position=11&session=cebe03eac793" >[4:155:11]</a>', 'Auftra
g': 'Spionage', 'Ziel': '<a href="index.php?page=galaxy&galaxy=4&system=135&posi
tion=8&session=cebe03eac793" >[4:135:8]</a>', 'Spionagesonde': '4', 'R\xc3\xbcck
kehrzeit': 'Sun Feb 22 13:53:12', 'Geschwindigkeit': '170.000.000', 'Verbrauch':
'3', 'Entfernung': '4.600'}
02/22/09 13:55:34 Error: espionageProbe
Original comment by pimp_r...@web.de
on 22 Feb 2009 at 1:00
the error is in the language file, you must change ü to ü, ä to ä ect...
Original comment by dvdgeis...@googlemail.com
on 22 Feb 2009 at 11:47
Attachments:
Original comment by King.Vash@gmail.com
on 23 Feb 2009 at 7:10
Original issue reported on code.google.com by
pimp_r...@web.de
on 7 Feb 2009 at 12:40Attachments: