Jump to content
  • 0

Maps dimension, coordinates problem


Doch

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   6
  • Joined:  12/10/13
  • Last Seen:  

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  133
  • Reputation:   189
  • Joined:  05/20/12
  • Last Seen:  

http://pastebin.com/Ftq9tpN9

 

Just for you! Take this script and save it as mapcache.html

 

Open it in Chrome or Firefox and drag-and-drop map_cache.dat into the browser window.

 

It will list all the map entries with their size.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

You can use browedit to get more info about the map

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   6
  • Joined:  12/10/13
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   6
  • Joined:  12/10/13
  • Last Seen:  

man.. you know how much i'm loving you now?  /awsm  /awsm

Link to comment
Share on other sites

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.

×
×
  • Create New...