Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 18:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] Getting Length and Width of the DMaps

Discussion on [Help] Getting Length and Width of the DMaps within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
[Help] Getting Length and Width of the DMaps

I use spatial indexing for my server, which could be optimized a little, by adding the length and width of each map.
I know it can be read from the map files, or some different file for sure, but I do not know how to do this, as I have no experience with maps.

What I want is a simple text file including:
MapID - X or Width - Y or Length
where - is a space, so:
1002 1024 1024

I need this for all maps except for special maps such as houses, ships, new maps, explaining me how to do it myself would be okay as well!

Hopefully someone can help me out, I really need this...
Basser is offline  
Old 08/03/2010, 14:23   #2
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
It's the first two integers in the DMap file after the PuzzleFile string.

i.e.

Reader.ReadBytes(8);//Junk
string PuzzleFile = NTString(Encoding.ASCII.GetString(Reader.ReadBytes (260)));//Null Terminated String

MapSize = new Size(Reader.ReadInt32(), Reader.ReadInt32());//268

Of course the 4 bytes is overkill, and I reduced that to 2 bytes in my "compressed" DMap file.
© Haydz is offline  
Thanks
1 User
Old 08/03/2010, 15:57   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
Solved.
Thanks to Haydz.
If anyone wants the list, feel free to send me a PM, as I can provide you with the list.
#request close.
Basser is offline  
Old 08/03/2010, 16:31   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
Glad you got it solved. For the record basically all image files/files which contain sets of coords/pixels have a x/y value near their start.

Ooh the joys of image processing *vomit* That assignment may have made me drop cisc...
pro4never is offline  
Reply


Similar Threads Similar Threads
pointer of width and size of pg
07/24/2010 - 4Story - 11 Replies
hi guys, i'm looking for a pointer (or maybe they are two..) i just want to know the width and the size of my character..i've tried several scan with CE but i've not find out.. can someone help?? thanks translated with google translate : hallo Jungs, ich bin für einen Zeiger (oder vielleicht sind sie zwei suchen ..)
Black Dragon Respawn Length?
11/05/2009 - Dekaron - 4 Replies
i was jw if any1 knows the length 4 the respawn of the black dragon:confused:
Server Error:..... Wrong Length.............
08/09/2009 - Dekaron Private Server - 2 Replies
http://upic.me/i/b7/wrong.jpg i run server around 1 week but i just saw this problem, and i don't know what that mean,i try to fix it by my self with 2 days (not success) i'm so sad and so trie if anyone know how to fix this ,please share for my noob:(. btw thank you so much.
[help]how to change body width?
01/19/2009 - Perfect World - 1 Replies
i have look many character with body unusual and i have some tutorial from cheatngine.org but didnt work like this bodyID = 0 colorBody = -16053469 headScale = 1000
Combo wait length
03/07/2008 - Cabal Online - 10 Replies
Hi this is my first post here this has been bothering me i cant find it anywhere and i cant come across it of my own i am trying to make a script right now to do combos but i cant tell how long it takes for the bar to fill up to where the combo actually works so can anyone tell me the length between combo 1-10 then 11-13 then 13+ it be much appreciated thanks.



All times are GMT +1. The time now is 18:59.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.