May be related: I'm trying to generate my map but always there is the same part missing on the same zoom level.Hello.
For some reason the zoom 14 is not loading parts of the map (all floors with zoom 14 in the same area) for me. Only the zoom 14 is where I found this issue.
I think it's normal. Number showed in OTC is number of different 8x8 SQM squares it will try to generate, but if all tiles in that area have no items (black screen), it does not save image on HDD, as not existing images are also visible in web browser as black screen.It says 121947 images generated, but there is only 120439 images in the folder
It's not related. Full 'zoom' images of 8x8 SQM squares are 256x256 pixels size and they are visible in web browser on zoom level 16 ( https://map.kasteria.online/#zoom,16,position,32352,31705,7 ).As my understanding having less images in this first generation process should make all zooms to have missing images not only specific ones, right?
Network
tab, to view what images it loads. Can you find URLs to these 14 zoom level images that are missing (should be red in network
tab)? Are they missing in map/14
folder or it's just web browser problem, that it can't load them?I see..I think it's normal. Number showed in OTC is number of different 8x8 SQM squares it will try to generate, but if all tiles in that area have no items (black screen), it does not save image on HDD, as not existing images are also visible in web browser as black screen.
Map images generator detects 8x8 squares that have some items inside and only generates them (to skip millions of empty area tiles), but then it adds ~20 tiles around detected map area, to make sure that other floor items are loaded too (they are offset by +/- floor count SQM in client), so there are some 8x8 squares with no items on list of 'images to generate'.
It's not related. Full 'zoom' images of 8x8 SQM squares are 256x256 pixels size and they are visible in web browser on zoom level 16 ( https://map.kasteria.online/#zoom,16,position,32352,31705,7 ).
17-18 zoom levels are 'zoom 16' images scaled up by web browser ( https://map.kasteria.online/#zoom,18,position,32356,31703,7 ).
0-15 zoom levels are generated by PHP scripts you run after map generation in OTC (ex. 14 zoom: https://map.kasteria.online/#zoom,14,position,32352,31730,7 ).
So if there are any images missing on floor 14, that are visible on floor 16, there must be a problem with PHP script that generates them.
Zoom level 15 images are made by merging 4 images from zoom level 16 and shrinking by 50% to generate 256x256 images.
Zoom level 14 images are made by merging 4 images from zoom level 15 and shrinking by 50% to generate 256x256 images.
So if image on zoom level 14 is bugged[black]/missing, all next zoom levels (13, 12, 11..) should be bugged too.
Maybe it's some problem with opening .htm file on local PC. You can try to debug it in web browser by clicking F12 and goingNetwork
tab, to view what images it loads. Can you find URLs to these 14 zoom level images that are missing (should be red innetwork
tab)? Are they missing inmap/14
folder or it's just web browser problem, that it can't load them?
ex. there is some black area 8x8 on map, so it returned 404 from server and it's red in Network tab, but it's fine in my case, because on zoom level 16 it's also black:
View attachment 88762
IDK what to say. I've ran that code 30+ times on Linuxes and Windows with maps .otbm 10-190 MB. Nobody reported any problem.But yeah, the files is missing in the folder, not a network problem. I'm running it locally first to test, so should be pretty hard to be a network problem.
items.otb
and map .otbm
and client .spr
and .dat
, message me on Discord: gesior.pl
, I will try to fix any errors related to map generation.I will send you the images, my internet upload this in 5 minutes haha Check discord for invitation from Agent..IDK what to say. I've ran that code 30+ times on Linuxes and Windows with maps .otbm 10-190 MB. Nobody reported any problem.
I use Windows 10/Linux based on Ubuntu 20.04/22.04 and no antivirus. IDK what could stop writing to HDD/SSD.
Code that generates given floor/zoom image does not report any errors/warnings:
as it expects images to save on HDD/SSD. Often there are 1kk images to save (RL map) and breaking on single image error would require whole 'floor' generation to start again.![]()
otclient_mapgen/website_and_php_files/2_tile_generator.php at master · gesior/otclient_mapgen
Open Tibia map images generator [for LeafletJS]. Loads .otbm file and generate .png images 256x256 px - gesior/otclient_mapgengithub.com
If you can share serveritems.otb
and map.otbm
and client.spr
and.dat
, message me on Discord:gesior.pl
, I will try to fix any errors related to map generation.
EDIT:
If you can't share your server files, you can share level 16 zoom files and I can try to find resizing (zoom generation) bug, but it will take few GBs in .zip.
It looks like you are using "transparency" feature in .spr.How to fix this?
modules/game_things/things.lua
and under:local errorMessage = ''
g_game.enableFeature(GameSpritesAlphaChannel)