Register for your free account! | Forgot your password?

You last visited: Today at 09:15

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

Advertisement



DMap Info [Question]

Discussion on DMap Info [Question] within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
DMap Info [Question]

I have a DMap Reader on my source. I want to check the access of some locations when a player drop an item, jump, walk, etc... But, if I load the DMap in an array, I have like 20mo of RAM used by one map. An other solution is to read the DMap when the player have to check the location but I don't want to kill my computer The best solution, I think, is to load in memory the most used map like TC and for the other, check when the player use the map.

What is the best solution?
CptSky is offline  
Old 08/07/2009, 08:57   #2
 
elite*gold: 0
Join Date: Mar 2008
Posts: 55
Received Thanks: 4
load only the needed maps
tribalost is offline  
Old 08/07/2009, 13:14   #3
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,000
Find a way to 'compress' the dmap data, I'm not sure whether it has been posted here but I've seen bone-you posting a method to compress the data in dmap; You could always ask InfamousNoone or unknownone, I'm sure that they know alot more about this than I do.
tanelipe is offline  
Thanks
2 Users
Old 08/08/2009, 00:01   #4
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
If you're only loading the valid coordinate info for EVERY map it should take about 40-50mb(estimation here, but 20mb for one map isn't right) (depending on how old the client is). If your server has the memory, load it into memory. Inlining DMaps and checking them every time a player or mob moves, drops, etc. would be ridiculous. You can compress them when stored (to a solid disk), but if you have to uncompress the memory every time you need to check it, it might start to use a lot of CPU (depending on how much it's compressed/the compression algorithm)
_tao4229_ is offline  
Old 08/08/2009, 09:41   #5


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
Quote:
Originally Posted by _tao4229_ View Post
If you're only loading the valid coordinate info for EVERY map it should take about 40-50mb(estimation here, but 20mb for one map isn't right) (depending on how old the client is). If your server has the memory, load it into memory. Inlining DMaps and checking them every time a player or mob moves, drops, etc. would be ridiculous. You can compress them when stored (to a solid disk), but if you have to uncompress the memory every time you need to check it, it might start to use a lot of CPU (depending on how much it's compressed/the compression algorithm)
I use the client 1017, I think it's the client 4311 US. I load the access, the terrain, the altitute and the portals in an array. I load the DMap in memory and with the program named iBruteforce Memory Optimizer, I reduce the memory.

I have calculated the used memory whitout compression of some maps:
Code:
TC -> 18mb
PC -> 19mb
AM -> 18mb
DC -> 18mb
BI -> 21mb
MC -> 20mb
GW -> 03mb
When I load all the maps, I have like 120mb of memory used by the maps.

I obtained the code of the program which I used and I have adapted it to the C# and I put it in my source. With the loading, with the 7 maps, instead of obtaining 120mb, I obtain approximately 3mb. I do not see any algorithm of compression…


#merged
CptSky is offline  
Old 08/08/2009, 12:59   #6
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by CptSky View Post
I use the client 1017, I think it's the client 4311 US. I load the access, the terrain, the altitute and the portals in an array. I load the DMap in memory and with the program named iBruteforce Memory Optimizer, I reduce the memory.

I have calculated the used memory whitout compression of some maps:
Code:
TC -> 18mb
PC -> 19mb
AM -> 18mb
DC -> 18mb
BI -> 21mb
MC -> 20mb
GW -> 03mb
When I load all the maps, I have like 120mb of memory used by the maps.
I did not notice big changes in memory usage after I implemented DMaps , And I've been loading , like 20 maps or more... The only time I noticed increase in cpu usage was when the server was starting.Then somehow it went down again.
damianpesta is offline  
Old 08/08/2009, 17:44   #7
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by CptSky View Post
I use the client 1017, I think it's the client 4311 US. I load the access, the terrain, the altitute and the portals in an array. I load the DMap in memory and with the program named iBruteforce Memory Optimizer, I reduce the memory.

I have calculated the used memory whitout compression of some maps:
Code:
TC -> 18mb
PC -> 19mb
AM -> 18mb
DC -> 18mb
BI -> 21mb
MC -> 20mb
GW -> 03mb
When I load all the maps, I have like 120mb of memory used by the maps.

I obtained the code of the program which I used and I have adapted it to the C# and I put it in my source. With the loading, with the 7 maps, instead of obtaining 120mb, I obtain approximately 3mb. I do not see any algorithm of compression…


#merged
You don't really need the altitudes unless you plan on checking them. You really only need the height in guild war, not even TQ server side checks gate jumping anywhere else. Portal info doesn't even have where the portal leads to (if I'm not mistaken), so that's not really useful server sided. What you only need is the valid coordinate part of the DMap, and even that's not entirely useful if you can't check the individual scene files as well. Getting rid of the altitude and portals in memory should drop it way down considering all you'll have is a bool[x,y] for the maps. But hell, if you plan on checking all of it you'll probably want to just load the main maps (TC, BI, AC, GW, PK Arena), then whenever someone enters a map load it into memory to be checked (yes I realize that would slow down a teleport if noones been there yet, but it's either that or only load core maps and deny access everywhere else).
_tao4229_ is offline  
Thanks
1 User
Old 08/08/2009, 18:13   #8
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
how much in Mem Usage of task manager is 108,000K? , is that 1mb?
CoAttack is offline  
Old 08/08/2009, 18:14   #9
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
thats ~108mb.
It's 108 thousand kb = ~108mb
_tao4229_ is offline  
Old 08/08/2009, 18:14   #10
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
:O then when i load all the dmaps its 108mb :O is that bad?
CoAttack is offline  
Old 08/08/2009, 18:24   #11

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
Quote:
Originally Posted by CoAttack View Post
:O then when i load all the dmaps its 108mb :O is that bad?
I guess it is.
Kiyono is offline  
Old 08/08/2009, 20:25   #12


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
Quote:
Originally Posted by _tao4229_ View Post
You don't really need the altitudes unless you plan on checking them. You really only need the height in guild war, not even TQ server side checks gate jumping anywhere else. Portal info doesn't even have where the portal leads to (if I'm not mistaken), so that's not really useful server sided. What you only need is the valid coordinate part of the DMap, and even that's not entirely useful if you can't check the individual scene files as well. Getting rid of the altitude and portals in memory should drop it way down considering all you'll have is a bool[x,y] for the maps. But hell, if you plan on checking all of it you'll probably want to just load the main maps (TC, BI, AC, GW, PK Arena), then whenever someone enters a map load it into memory to be checked (yes I realize that would slow down a teleport if noones been there yet, but it's either that or only load core maps and deny access everywhere else).
The only thing I don't use, it's the terrain. The correct coord, you know why, the altitude, I check in the GW map for trying to block the WallJump. The portal don't use a lot of memory... With a lot of them, I don't get more then 500ko if I load all the portal on a big map like TC. But I will considerate your point for removed a little bit of memory without compression or anything.
CptSky is offline  
Old 08/08/2009, 21:57   #13
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
how do you make it check for coordinates and stuff?
CoAttack is offline  
Reply


Similar Threads Similar Threads
Dmap viewer
03/10/2010 - CO2 Programming - 10 Replies
So i quickly whipped this up and was curious to see what else dmaps contained that could be of use, got bored and ClassicCO got the better half of me. This is somewhat useless but i'm sure someone will find it useful in a way. Note: this might take awhile for your maps to load, as it's not hardware accelerated or multithreaded. Takes 2-3 seconds on my computer, most likely more on yours. http://i47.tinypic.com/11bmcg7.png http://i50.tinypic.com/1z4gyae.png The colored picture was...
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.
.dmap question
10/23/2005 - Conquer Online 2 - 0 Replies
does any1 kno wich .dmap snake array is..thx :rolleyes:



All times are GMT +2. The time now is 09:15.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.