Hello,
Where can i find a .otbm structure and then how use it to create bitmap (.bmp)
(Like a loaded map in map editor?)
Thanks for answers.
Hello,
Where can i find a .otbm structure and then how use it to create bitmap (.bmp)
(Like a loaded map in map editor?)
Thanks for answers.
Wesker get off the forums already. This is a resource forum, where people are supposed to be able to find answers to their questions. The answer to the question asked will not always be found by googling "otmb structure", and nor will it be of any benefit to the forum as a whole when others come here looking for the answer and find your useless junk posts.
https://github.com/opentibia/server/.../iomapotbm.cpp
edit: in case you fancy VB.NET: http://code.google.com/p/bitmaptomap/
Last edited by Blaster_89; 04-23-2013 at 05:32 PM.
again your wrong.
first of all the first 2 pages that google displays are :
and the one posted by blasterOriginally Posted by google
note : tpforums is about tibia programing, this forum is not OTPForum as far as i know. So youre argument is stupid, and it has no place here, i did help the guy, and i did provide the structure, so shut upOriginally Posted by google
Have you checked the source code of OTServ?
My guess is that you would find the otbm format in there.
Edit:
A quick google resulted in OTServ source code https://github.com/opentibia/server.
My guess is that you should look into iomapotbm.cpp, just a guess.
I'm feeling very generous today, here's the bmp file format http://en.wikipedia.org/wiki/BMP_file_format.
Now you just need to put it all together.
Last edited by Stiju; 04-23-2013 at 11:11 PM.
Okey.. but still I don't know from which byte should i take xyz and id of sprite. (And then marge them).
You need to read Tibia.dat to get item ids and flags, then read Tibia.spr for sprites. You can take a look at Remere's Map Editor's source code here, it should contain most, if not all, the information you require