• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OpenTibia OTClient that unpack map.otbm to .png files - v4.0

My mine comes black, there's a known reason?

View attachment 64459
ye look at your adress. you map position is set to 149336x 25168y 7z thats why you are black because in this position you have not your map. you need configure your map.js and set your true position of map.
imagesUrl: 'map/', // URL to folder with 'zoom levels' (folders with names 0-16)
imagesExtension: '.jpg',
mapName: 'RL MAP?',
startPosition: {x: 1000, y: 1000, z: 7}, <=========== Here you need put your map position
startZoom: 14,
minZoom: 4,
maxZoom: 18, // maximum zoom with full quality is 16
 
ye look at your adress. you map position is set to 149336x 25168y 7z thats why you are black because in this position you have not your map. you need configure your map.js and set your true position of map.
Nice, thanks! Now, my last problem (i guess) image of monsters and npcs dont appear.

1641421543925.png
 
Nice, thanks! Now, my last problem (i guess) image of monsters and npcs dont appear.

View attachment 64462
I cant help you because my problem is

maye you can help me :D. what is your path?
 
Hi My live map is working good, but NPC and Monsters are not showing. I tried almost every combinations of path but always same result.
I tried remove creatureData.cache.json and also i tried dont remove creatureData.cache.json but only change permission of this file to read and write for everybody.
Anybody know where is problem?


I am using XAMPP and linux 20 but I have same result on windows 10.
anyway great release! :)
im with this problem now xD
 
Hi My live map is working good, but NPC and Monsters are not showing.
What OTS engine are you using? Is this some new otservbr or TFS 1.4+ with 'revscriptsys' monsters?
Script load monsters only from old OTS format .xml files.
Nice, thanks! Now, my last problem (i guess) image of monsters and npcs dont appear.
We fixed this issue on Discord. Images from my host outfit-images.ots.me does not load for some people from Africa and South America - whole ots.me website hosted in OVH datecenter - is not accessible.
I made second host with outfit images on Oracle Cloud machine: Tibia Outfit Images Generator (https://outfit-images-oracle.ots.me/)
and it worked for @potinho
 
What OTS engine are you using? Is this some new otservbr or TFS 1.4+ with 'revscriptsys' monsters?
Script load monsters only from old OTS format .xml files.
Hi I am using latest forgotten server 1.4 for 10.98

I have monster inside folder data/monster/monster.xml and scripts in data/monster/different folders / example monster.xml
ama.jpgamaa.jpgss.jpg

This same ot folder I am using on ubuntu in home/adoriusblack/otfolder/data/...

and config i am using in htdocs/map_wiever/creaturesData.php

// path to folder with monster, npc and spawns data
$dataPath = '/home/adoriusblack/otfolder/data/';
$monstersDir = 'monster/';
$npcDir = 'npc/';
$spawnsFile = 'world/BlackFun-spawn.xml';

c.jpg
 
  • with you client protocol version,
  • valid paths to items.otb and map.otbm,
  • number of threads to run (in example it's 8),
  • number of map parts (OTC will split map to parts to reduce maximum RAM usage)

[Paths are relational, so start path with '/' to start in folder 'data', access to other folders in computer is blocked]

7. OTClient will show in 10-50 seconds (it will freez client, do not close it, just wait) something like:


8. Type in client terminal command:

generateMap('all', 30)


I got crash when use "generateMap('all', 30) :(

== application crashed
app name: OTClient
app version: 0.6.6
build compiler: Visual Studio
build date: Jun 13 2020
build type: RelWithDebInfo
build revision: 0 (devel)
crash date: Oct 10 2022 13:19:40
exception: Integer divide by zero (0xc0000094)
exception address: 0x992e7c20
backtrace:
0: Unknown [0x00000000992E7C20]
1: Unknown [0x0000000000064027]
2: Unknown [0x000000009D287377]
 
I got crash when use "generateMap('all', 30) :(

== application crashed
app name: OTClient
app version: 0.6.6
build compiler: Visual Studio
build date: Jun 13 2020
build type: RelWithDebInfo
build revision: 0 (devel)
crash date: Oct 10 2022 13:19:40
exception: Integer divide by zero (0xc0000094)
exception address: 0x992e7c20
backtrace:
0: Unknown [0x00000000992E7C20]
1: Unknown [0x0000000000064027]
2: Unknown [0x000000009D287377]
Try newest release: https://github.com/gesior/otclient_mapgen/releases/download/v5.1/otclient_mapgen_v5.1_win-x64.zip
How many GB of RAM do you have? What Tibia client version do you use?
 
Very interesting!! Congratulations friend @Gesior.pl always surprising me. important to say that, this function: CreaturesMap.towns.push. Should have locale Z, so when mentioned it's just on a floor

I believe the transmission is not working, But then it would be a snitch lol.
Again congratulations!
 
Why is this not working on Windows? I only get a black screen when opening the "index.htm".
Map cordinates are 100% correct and the configuration for where server files are, they are also correct (linking to C:/server/data).

I got .jpg files only in the folder names "16", is this how it is suppose to be?

1676479376978.png
 
is there any way to make it work with servers that use items.srv instead?
 
Hello, I'm having a problem with loading monsters on a map. I have a 2365kb file where I've positioned monsters and it reads them fine, but when I expand the file and add twice as many monsters, the map doesn't load them after a refresh. What could be the reason for this?



problem1.PNGproblem2.PNGproblem3.PNG
 
gesior would like to use this image quality for the minimap in my client in the game I use a current map.png image for the minimap would it be possible to generate a single image example of layer 7 to use in the map in this generator?1686663887527.png
map.png
my current mini map
 
SOLVED

I'm getting the following error, does anyone know what it could be? the item.otb I normally use on my server
Screenshot_1.png
 
Last edited:
Thanks for huge contribution. Works better than I would expected.

Does anyone know how to easily add a "+" sign in the very center of the leaflet view to better know which coordinates are currently indicated?

EDIT:
SOLVED
If anyone is interested, add this to map.js (and prepare your custom png with '+'):

JavaScript:
var crosshairIcon = L.icon({
    iconUrl: 'libs/images/plus_small.png',
    iconSize:     [63, 76], // size of the icon
    iconAnchor:   [31, 38], // point of the icon which will correspond to marker's location
});
crosshair = new L.marker(map.getCenter(), {icon: crosshairIcon, clickable:false});
crosshair.addTo(map);

// Move the crosshair to the center of the map when the user pans
map.on('move', function(e) {
    crosshair.setLatLng(map.getCenter());
});

You can add this code after:

JavaScript:
var map = L.map('map', {
    center: new L.LatLng(-(mapConfig.startPosition.y / 2048), (mapConfig.startPosition.x / 2048)),
    zoom: mapConfig.startZoom,
    maxZoom: mapConfig.maxZoom,
    crs: L.CRS.Simple

});
 
Last edited:
Really nice tool, thanks for this! NVM: Changing false to true seems to do the trick. ❤️

I'm using it to export house images to the website, but it seems like it's only exporting one of four towns. How does it read house data without the houses.xml-file? And what can I do to export images of all towns?
 
Is it just for me or those folder sizes are getting crazy once it goes beyond 14-16 since it contains thousands of images as far as i understand its zoom levels, or my ./windows_run_4_compress.sh didnt worked
 
Is it just for me or those folder sizes are getting crazy once it goes beyond 14-16 since it contains thousands of images as far as i understand its zoom levels, or my ./windows_run_4_compress.sh didnt worked
RL map has around 1.000.000 images and it takes around 50 GB before compression. After compression it's 10-15 GB.
 
Back
Top