Seite 1 von 1

Map Mod ohne Map :-((

Verfasst: 02.11.2003 12:39
von Dolphin
Ich habe erfolgreich den Map-Mop con Bananeweizen installiert.
Nachdem ich einen Ort eingegeben hatte kam folgende Fehlermeldung:
Warning: getimagesize: Unable to open '' for reading. in d:\foxserv\www\phpbb\includes\map_functions.php on line 266

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 270

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 271

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 281

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 282

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 286

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 287

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 289

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 290

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 295

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 296

Warning: Division by zero in d:\foxserv\www\phpbb\map.php on line 318

Warning: Division by zero in d:\foxserv\www\phpbb\map.php on line 319
Das einzige was nun noch zu sehen ist ist die Navigationstabelle.

Re: Map Mod ohne Map :-((

Verfasst: 06.05.2004 16:37
von Schleicher
Dolphin hat geschrieben:Ich habe erfolgreich den Map-Mop con Bananeweizen installiert.
Nachdem ich einen Ort eingegeben hatte kam folgende Fehlermeldung:
Warning: getimagesize: Unable to open '' for reading. in d:\foxserv\www\phpbb\includes\map_functions.php on line 266

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 270

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 271

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 281

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 282

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 286

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 287

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 289

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 290

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 295

Warning: Division by zero in d:\foxserv\www\phpbb\includes\map_functions.php on line 296

Warning: Division by zero in d:\foxserv\www\phpbb\map.php on line 318

Warning: Division by zero in d:\foxserv\www\phpbb\map.php on line 319
Das einzige was nun noch zu sehen ist ist die Navigationstabelle.
Moin zusammen!

Hab mir das meiste ja anlesen und austüfteln können!

Aber jetzt komm ich nicht mehr weiter!

Ich habe einen ähnlichen Fehler, wie der, den
Dolphin da beschreibt, und habe keine Ahnung,
was ich machen soll!

Bei mir steht:
Warning: getimagesize() [function.getimagesize]: PNG file corrupted by ASCII conversion in /home/phpbb/includes/map_functions.php on line 266

Warning: Division by zero in /home/phpbb/includes/map_functions.php on line 270

Warning: Division by zero in /home/phpbb/includes/map_functions.php on line 271

Warning: getimagesize() [function.getimagesize]: PNG file corrupted by ASCII conversion in /home/phpbb/includes/map_functions.php on line 274

Warning: Division by zero in /home/phpbb/includes/map_functions.php on line 281

Warning: Division by zero in /home/phpbb/includes/map_functions.php on line 282

Warning: Division by zero in /home/phpbb/includes/map_functions.php on line 289

Warning: Division by zero in /home/phpbb/includes/map_functions.php on line 290

Warning: Division by zero in /home/phpbb/includes/map_functions.php on line 295

Warning: Division by zero in /home/phpbb/includes/map_functions.php on line 296

Warning: Division by zero in /home/phpbb/map.php on line 318

Warning: Division by zero in /home/phpbb/map.php on line 319
Kann mir bitte jemand helfen???

Verfasst: 06.05.2004 16:49
von UnReaL1
Was steht von
\map_functions.php on line 270
bis
map_functions.php on line 296
in der zeile
bitte Posten

Verfasst: 06.05.2004 17:03
von Schleicher
Hallo UnReaL1

Das müßten die gewünschten Zeilen sein:
$fit_factor=min($map_config['max_picture_width'] / $map_pic_width,1);
$fit_factor=min($map_config['max_picture_height'] / $map_pic_height,$fit_factor);
$fitted_zoom=$map_zoom*$fit_factor;

$size = GetImageSize ($flag_name);
$flag_width=$size[0];
$flag_height=$size[1];

//
// derived values
//
$source_width = min (floor($max_picture_width/$fitted_zoom), $map_pic_width);
$source_height = min (floor($max_picture_height/$fitted_zoom), $map_pic_height);
$destination_width=$source_width * $fitted_zoom;
$destination_height=$source_height * $fitted_zoom;

$horizontal_pix_per_degree=$map_pic_width/($map_east-$map_west)*$fitted_zoom;
$vertical_pix_per_degree=$map_pic_height/($map_north-$map_south)*$fitted_zoom;

$width_degrees=$destination_width/$horizontal_pix_per_degree;
$height_degrees=$destination_height/$vertical_pix_per_degree;

$offset_long=min($offset_long, $map_east-$map_west-$width_degrees);
$offset_lat=min($offset_lat, $map_north-$map_south-$height_degrees);

$source_x = round($offset_long*$horizontal_pix_per_degree/$fitted_zoom);
$source_y = round($offset_lat*$vertical_pix_per_degree/$fitted_zoom);
MfG, Schleicher!

Verfasst: 06.05.2004 17:04
von Andy120
Hast du alle Dateien hochgeladen???

Verfasst: 06.05.2004 17:15
von svenr
Warning: getimagesize() [function.getimagesize]: PNG file corrupted by ASCII conversion in /home/phpbb/includes/map_functions.php on line 266
... sieht aus, als ob die map-Datein nicht richtig üebrtragen wurden ...

Siehe ASCII/Binary.

... is auch nur ne vermutung, denn bei mir funzt der Mod 1a (vorgestern eingebaut)

EDIT:

wenn ich, dass richtig sehe, werden in den Zeilen die koordinaten "ausgewertet" ... kanns sein, dass du die *.txt- Datein nicht bzw. ins falsche Verzeichniss kopiert hast?

Verfasst: 06.05.2004 17:25
von Schleicher
@Andy120

Ich meine, ja! (Habs zweimal überprüft!)

@svenr

Ich benutze FileZilla 2.2.5a und hab ihn auf auf Auto eingestellt!