Jump to content
  • 0

Maps dimension, coordinates problem


Question

Posted (edited)

Hi everybody!

I made this post because i want to know the dimension of the maps in RO ( width and height ), all maps have coordinates to show NPC's, Warps... I want to change this coordinates to a bigger/smaller dimensions depending of the map for some custom script.. all maps have the same dimensions? ( im not talking about walkable zone, im talking about global dimension, I mean that if a map is in the corner even if its very small it should have for example coords (300,350)) I hope I explained it well..  /whisp

 

PD1: Don't say me to go to the map and make /where to know coordinates, it isn't viable

 

PD2: sorry if this post isn't in the correct section

 

Thanks in advance  /no1

Edited by Doch

4 answers to this question

Recommended Posts

Posted (edited)

Ok, forget all of the top, what i need is to read map_cache.dat in plain text. There's any map_cache editor/reader to export it as plain text?

I tested WeeMapCache, but there are more than 750 maps and it's a waste of time get dimensions of each map one by one.. /panic

 

So theres something faster to get them directly? if isn't any tool, somebody can give me some tip to decode the .dat in java/c++? i read the structure of .dat file but still not sure how to do it.

 

 

 

Map cache format reference:
-------------------------------------------------------------------------------

The file is written as little-endian, even on big-endian systems, for cross-compatibility reasons. Appropriate conversions
are done when generating it, so don't worry about it.
The first 6 bytes are a main header:
<unsigned long> file size
<unsigned short> number of maps
Then maps are stored one right after another:
<12-characters-long string> map name
<short> X size
<short> Y size
<long> compressed cell data length
<variable> compressed cell data

 

 

thanks!  /no1​  

Edited by Doch

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...