• 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!

Solved Generating minimap from otclient error

Solution
Im using 8.6 extended client
If you are using my 5.1 otclient_mapgen .exe ( https://github.com/gesior/otclient_mapgen/releases/download/v5.1/otclient_mapgen_v5.1_win-x64.zip ), it does not auto-detect 'extended sprites' .dat/.spr files for any protocol as OTCv8 does.
You got to edit modules/game_things/things.lua and under:
LUA:
local errorMessage = ''
add line:
LUA:
g_game.enableFeature(GameSpritesU32)
to enable that 9.60 feature (over 65k sprites) on 8.60 protocol.. and any other OTC custom features you use (ex. dat/spr editor "transparency" = GameSpritesAlphaChannel).
Im using 8.6 extended client
If you are using my 5.1 otclient_mapgen .exe ( https://github.com/gesior/otclient_mapgen/releases/download/v5.1/otclient_mapgen_v5.1_win-x64.zip ), it does not auto-detect 'extended sprites' .dat/.spr files for any protocol as OTCv8 does.
You got to edit modules/game_things/things.lua and under:
LUA:
local errorMessage = ''
add line:
LUA:
g_game.enableFeature(GameSpritesU32)
to enable that 9.60 feature (over 65k sprites) on 8.60 protocol.. and any other OTC custom features you use (ex. dat/spr editor "transparency" = GameSpritesAlphaChannel).
 
Solution
If you are using my 5.1 otclient_mapgen .exe ( https://github.com/gesior/otclient_mapgen/releases/download/v5.1/otclient_mapgen_v5.1_win-x64.zip ), it does not auto-detect 'extended sprites' .dat/.spr files for any protocol as OTCv8 does.
You got to edit modules/game_things/things.lua and under:
LUA:
local errorMessage = ''
add line:
LUA:
g_game.enableFeature(GameSpritesU32)
to enable that 9.60 feature (over 65k sprites) on 8.60 protocol.. and any other OTC custom features you use (ex. dat/spr editor "transparency" = GameSpritesAlphaChannel).
Thanks I used your mapgen client but I tried it with 1098 items.otb /spr/dat
It didn't matter much because the extended 8.6 uses 1098 spirits and dat.

1733766111951.webp
 
We had talked on Discord. All problems were related to running .exe on Linux with virtual machine (docker).
otclient_mapgen and PHP scripts generate 100k - 1000k files and "virtual" machine is pretty bad in handling XX+ files.

From my experience with docker: do not run Windows/Linux on Linux/Windows systems or Linux/Windows on Windows/Linux. Both configurations are pretty slow.
 
If you are using my 5.1 otclient_mapgen .exe ( https://github.com/gesior/otclient_mapgen/releases/download/v5.1/otclient_mapgen_v5.1_win-x64.zip ), it does not auto-detect 'extended sprites' .dat/.spr files for any protocol as OTCv8 does.
You got to edit modules/game_things/things.lua and under:
LUA:
local errorMessage = ''
add line:
LUA:
g_game.enableFeature(GameSpritesU32)
to enable that 9.60 feature (over 65k sprites) on 8.60 protocol.. and any other OTC custom features you use (ex. dat/spr editor "transparency" = GameSpritesAlphaChannel).
work in version 12.86??
 
work in version 12.86??
What OTClient do you use? Mehah?

My mapgen 5.1 works only up to 10.98, so you would need to convert 12+ assets to .spr and .dat 10.98 format and use 1098 as version in generator.
12.87 converted to .dat and .spr 10.98 you can find here:
and here is TFS 12.87 items.otb:
Here is instruction for my mapgen client (just 2 steps):
 
What OTClient do you use? Mehah?

My mapgen 5.1 works only up to 10.98, so you would need to convert 12+ assets to .spr and .dat 10.98 format and use 1098 as version in generator.
12.87 converted to .dat and .spr 10.98 you can find here:
and here is TFS 12.87 items.otb:
Here is instruction for my mapgen client (just 2 steps):
it worked, thanks!
 
@Gesior.pl
I closed it, it had been generating for 4 hours... the map folder was already 47GB.
My custom map is 133MB and I only wanted floor 7.
Did you run mapgen (map for www) or minimap generator (minimap instruction: [OTClient] Generate full minimap for your server – HALP! (https://halp.skalski.pro/2020/06/05/otclient-generate-full-minimap-for-your-server/) )?
Probably map for www, which takes GBs. What it showed in progress window? otclient_mapgen reports how many images it plans to generate and how many are generated every second.
For sure it will be 50+ GB before compression to JPG with 12+ RL map. On my 24 core CPU, it generates RL map in 15-45 minutes (1kk+ images 256x256 px).

Positions limits are only for X and Y (ex. skip some trainers area out of map), you cannot choose which floor to generate. It always generates all floors.

If you are generating images on Windows, go windows security settings (Windows antivirus) and disable all for time of generation. Windows scans all these PNGs and it takes often more time to scan them than to generate images and antivirus scanner slows down images generation.

If you can share your map .otbm, .dat, .spr and .otb. Send it to me on Discord: gesior.pl I can generate map for website for you on my PC (24 cores) and upload to any server (500mb/s upload).
 

Similar threads

Replies
16
Views
920
Back
Top