|
|
Line 26: |
Line 26: |
| | | |
| | | |
− | TIP: How to add a link in planet reports for simulating fights on the GPL Ogame Simulator | + | TIP: [[Adding Fight Simulator Link]] on the reports page. |
− | | |
− | In the galaxietool/secrets/reports.php file edit the following:
| |
− | | |
− | After the line (line 700 for me):
| |
− | if ($i % 2 != 0) echo "<td colspan=\"2\"> </td></tr>";
| |
− | And before the line (line 701):
| |
− | if ($line['moon'] == "true") {
| |
− | echo "<td class=\"tblhead\" colspan=\"4\"><a class=\"resultlink\" href=\"reports.php?delete=".$_GET['coordinates']."&moon=true\">".REPORTS_DELETE."</a></td></tr>";
| |
− | } else {
| |
− | | |
− | Add the following:
| |
− | echo "<td class=\"tblhead\" colspan=\"4\"><a class=\"resultlink\" href=http://www.o-o-d.com/tool/sim/index.cgi?lang=en"
| |
− | ."&aattack=5"
| |
− | ."&dattack=".$line[waffentech]
| |
− | ."&ashield=5"
| |
− | ."&dshield=".$line[schildtech]
| |
− | ."&aarmory=5"
| |
− | ."&darmory=".$line[rpz]
| |
− | ."&d0=".$line[kt]
| |
− | ."&d1=".$line[gt]
| |
− | ."&d2=".$line[lj]
| |
− | ."&d3=".$line[sj]
| |
− | ."&d4=".$line[krz]
| |
− | ."&d5=".$line[ss]
| |
− | ."&d6=".$line[kolo]
| |
− | ."&d7=".$line[rec]
| |
− | ."&d8=".$line[spio]
| |
− | ."&d9=".$line[bomb]
| |
− | ."&d10=".$line[sat]
| |
− | ."&d11=".$line[zerri]
| |
− | ."&d12=".$line[ds]
| |
− | ."&d13=".$line[rak]
| |
− | ."&d14=".$line[ll]
| |
− | ."&d15=".$line[sl]
| |
− | ."&d16=".$line[ion]
| |
− | ."&d17=".$line[gauss]
| |
− | ."&d18=".$line[plasma]
| |
− | ."&d19=".$line[ksk]
| |
− | ."&d20=".$line[gsk]
| |
− | ."&dmetal=".$line[metal]
| |
− | ."&dcrystal=".$line[crystal]
| |
− | ."&ddeut=".$line[deuterium]
| |
− | ."&simulations=100>SIMULATE FIGHT</a></td></tr>";
| |
− | | |
− | Now you will see a "SIMULATE FIGHT" link above the delete link in a report. Change the above "&aattack=5", "&ashield=5", and "&aarmory=5" to be your current weapon, shield, and armory research values or leave them at 0 if more than you use this GTool.
| |
− | | |
− | If you are accidentally hitting the "delete" link too often, you might try moving it over to the right some more by adding a couple extra
| |
− | <td class=\"tblhead\">
| |
− | in front of the
| |
− | echo "<td class=\"tblhead\" colspan=\"4\"><a class=\"resultlink\" href=\"reports.php?delete=".$_GET['coordinates']."\">".REPORTS_DELETE."</a></td></tr>";
| |
− | line to now make it:
| |
− | echo "<td class=\"tblhead\"><td class=\"tblhead\"><td class=\"tblhead\" colspan=\"4\"><a class=\"resultlink\" href=\"reports.php?delete=".$_GET['coordinates']."\">".REPORTS_DELETE."</a></td></td></td></tr>";
| |
− | This is not a very elegant way of fixing this problem and I would appreciate someone making a better solution. I was simply to make the "delete" link show up "right justified" using "align=right" but that was unsuccessful, hence this other solution.
| |
− | | |
− | Lastly, you can download the GPL Ogame Simulator and put it on your webserver to locally run the simulations but that is beyond the scope of this document. This probably only applies to those on a Linux web server though I'm not sure.
| |
Revision as of 20:15, 11 January 2007
For a search request in reports, you need to modify each wanted field to a value greater than 0 to be included in the request.
If you have a 0 in every field, you will get no search results at all.
A value greater than 0 means, that at least this amount/level of ressources, ships or whatever is required to be included in the search results.
You can combine the fields to make complex search requests like planets with at least 100.000 metal and 100 cruisers.
Also a search for the biggest mines would be possible if you increase the required level each time, until you recieve no results.
You can restrict the search area to special systems to get only information about reports near your homeworld.
If you enter a number lower than 0 you will get all reports with at max this amount of units/resources. The sign will be ignored. So if you look up with -100 Cruisers you will get all reports with at max 100 cruisers.
You can search with playername or alliancename as well.
The results show all known data out of the reports. With the time shown (directly out of the report), you can imagine how old the report is.
The results are sorted ascending by their coordinates. Another sort order is not implemented yet for database-performance reasons.
TIP: Adding Fight Simulator Link on the reports page.