Register for your free account! | Forgot your password?

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

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

Advertisement



[SOLVED]Reading wrong walkable areas from DMap!

Discussion on [SOLVED]Reading wrong walkable areas from DMap! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
[SOLVED]Reading wrong walkable areas from DMap!

Code:
public IDMap Deserialize() {
            var dMap = new DMap();
            br = new BinaryReader(new FileStream(path, FileMode.Open));

            dMap.Version = br.ReadBytes(8);
            dMap.pulPath = Encoding.ASCII.GetString(br.ReadBytes(260)).Split('\0')[0];
            dMap.Height = br.ReadInt32();
            dMap.Width = br.ReadInt32();
            dMap.Cells = new MapCell[dMap.Height, dMap.Width];

            for (int x = 0; x < dMap.Height; x++) {
                for (int y = 0; y < dMap.Width; y++) {
                    dMap.Cells[x, y].Walkable = Convert.ToBoolean(br.ReadInt16());
                    br.ReadInt32();
                }
                
                br.ReadInt32();
            }
            br.Close();

            return dMap;
        }
can anyone tell me why am reading wrong Areas? for instance 400,400 it's walkable but my reader reads it as unwalkable.

Solved: I was not inverting the walkable!
Mr_PoP is offline  
Reply


Similar Threads Similar Threads
CO2 .DMAP....
02/04/2008 - Conquer Online 2 - 4 Replies
Does anyone have any idea how to edit/open the files in the map folder? (theyre .dmap) I searched google and windows live and found nothing.
.DMap
06/29/2006 - Conquer Online 2 - 10 Replies
Hello, It is my first post here I usually just read topics and learn from them ect.. Thank you elitepvpers for all these weeks of help but now i need something not found.. I want to make costum little map the ones at the top right of your screen i wanted to make an edited one with lets say a star where the ganaderma spawns but i dont know how to open or save as .DMap can someone help m with this? are there any specifications when doing this? filesize ect..
DMAP
04/09/2006 - Conquer Online 2 - 5 Replies
Ok i checked on forum i couldn't find anything base on this so i'm want to know if there any program open dmap files so i can edit the maps if so could you let me know I appreciate it.
Need help with dmap files
10/08/2005 - Conquer Online 2 - 6 Replies
Ok I am going to quote the post off of the Qonquer forums by the admin. I have no clue how to do this, and not sure anyone else does. So I figured it'll get done faster here.



All times are GMT +1. The time now is 10:54.


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.