Register for your free account! | Forgot your password?

You last visited: Today at 10:59

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

Advertisement



Dmap->Grid

Discussion on Dmap->Grid within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
Dmap->Grid

Hey,

Does anyone know how to convert a dmap into a grid?

I have it loaded in the standard black/white like Korvacs DMap loader but am struggling to convert it into a grid so I can use the A* algorithm to create a path finding system.

I dont know if this is how it should be done but I plan to create a path finding system for a proxy, So for now it just gets the path from 400, 400 to 405, 395 while avoiding invalid X\Y's.
_DreadNought_ is offline  
Old 09/26/2011, 06:12   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Sorry but what is the grid being used for itself?

The only thing it would alter is display on a user interface. The code itself still operates based on a X/Y value with accessibility information for 'tiles' inbetween.

Is this a display thing you're trying to work on or am I just missing the point?

If it's display you're talking about then I might recommend XNA framework. It's designed as a game engine so has quite a large amount of options when it comes to drawing in either 2d or 3d planes.

You could set up a simple grid system that way by basically saying this is where my 'camera' exists in game space and these are the coords near me and their access information.

Then clicking tiles would allow you to trigger the proxy to go to that tile location using a A* algo.
pro4never is offline  
Old 09/26/2011, 14:14   #3


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Not sure you really understand, the loader i created returns access values for x/y cordinates.....so essentially you query the loaded dmap and get a true/false for access, the nodes you need to create would be similar to that which is already in the loader, and store the same information so as your performing A* you could create the nodes and populate the access value of them from the loader.

As for creating a grid, the data is what it is, you dont format data in memory as a grid, you create a graphical representation of the data in the form of a grid.

So i dont really understand what you want/need.
Korvacs is offline  
Old 09/26/2011, 17:40   #4
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
blahblahblahabalh was 2am when I wrote that.

I think i've got it though ill just use 2d arrays, thaks anyway though. Feel free to close
_DreadNought_ is offline  
Reply


Similar Threads Similar Threads
[B] GTA IV , L4D2 , F1 2010 , GRID *HOT*
04/18/2012 - Steam Trading - 30 Replies
Guten Morgen! Wie ihr aus dem Topic entnehmen könnt,verkaufe ich hier meinen Steam Account mit 14 netten Spielen :) Vorab,ich besitze natürlich alle Daten des Account's und werde beim Verkauf die registrierte Email dazugeben.Leider akzeptiere ich nur eine Zahlmöglichkeit, da ich auf Paysafecard's nicht angewiesen bin.Ihr könnt mir den Betrag per Banküberweisung (EUR) überweisen. Aber kommen wir erstmal zum Account & zum Preis.
VK/S/t vk css suche racedriver grid
06/25/2011 - Steam Trading - 0 Replies
css=10euro kein vAC BAN race driver grid=5euro oder gg css
[B] Steam Account mit CoD MW2,BO ;Cs,Css; GRID [S] PSC
04/26/2011 - Steam Trading - 4 Replies
Wie oben schon erwähnt, verkaufe ich meinen Steam Account. Als Gegenleistung würde ich gerne eine PSC haben, allerdings gebe ich nicht first! Entweder ihr gebt first oder wir gestalten den Tausch per Middleman. Spiele die über den Steam-Account laufen : Call of Duty: Black Ops Call of Duty: Black Ops - Multiplayer Call of Duty: Modern Warfare 2 Call of Duty: Modern Warfare 2 - Multiplayer
Grid
12/12/2010 - World of Warcraft - 2 Replies
.
addon grid problem!
02/29/2008 - World of Warcraft - 3 Replies
Hallo , mir wurde gesagt grid ist gut zum heilen hab es grad mal im bg getestet ist echt ganz nett nur kann das sein das man als heilernie den richtigen überblick hat wer wo hinläuft weil m an immer gucken muss auf die raid leisten wegen leben?^^ aso wie mache ich das in FARBE also z.b druiden = orange etc und pala = lila hier : http://img227.imageshack.us/img227/2808/addoncu6. jpg weil das grid bei mir grau ist.... normal ist das doch in farbe!



All times are GMT +1. The time now is 11:00.


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.