Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 03:07

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

Advertisement



COnquer coordinate in cartesian coordinate ?

Discussion on COnquer coordinate in cartesian coordinate ? within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2006
Posts: 158
Received Thanks: 20
COnquer coordinate in cartesian coordinate ?

i m working on my minimap in pro4never proxy, i cleaning map from coquer site and put in picture box

now i want to locate my char in this minimap likes in game but the coordinate in game are different view of classic cartesian coordinate

some1 had module to trasform Conquer coordinate in cartesian coordinate ?

or explain me why cood traslation in math not work ://

i m working on this sistem

X e Y are coordinate in CO and MX, MY are coordinate in my picture

i have a system like :

MX = a + X sin 30° - Y cos 30°
MY = b + X cos 30° + Y sin 30°

i suppose there isn t a normal traslation becouse i don t have a cartesian coordinate in game ( the view is isometric or similare 120°)


thx so much for the help ^^
gorgone is offline  
Old 01/03/2011, 03:50   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by gorgone View Post
i m working on my minimap in pro4never proxy, i cleaning map from coquer site and put in picture box

now i want to locate my char in this minimap likes in game but the coordinate in game are different view of classic cartesian coordinate

some1 had module to trasform Conquer coordinate in cartesian coordinate ?

or explain me why cood traslation in math not work ://

i m working on this sistem

X e Y are coordinate in CO and MX, MY are coordinate in my picture

i have a system like :

MX = a + X sin 30° - Y cos 30°
MY = b + X cos 30° + Y sin 30°

i suppose there isn t a normal traslation becouse i don t have a cartesian coordinate in game ( the view is isometric or similare 120°)


thx so much for the help ^^
I don't have any math systems for it but here's a picture I made when I was working on documenting how conquer maps work.




That's the ACTUAL coords attached to that using a image chunk from the client. Those lines represent the actual coords used (iirc it was something like 32 degree rotation)



and that's the layout for the grid obviously... they were just tools to help myself visualize stuff.
pro4never is offline  
Old 01/04/2011, 16:41   #3
 
elite*gold: 0
Join Date: Jan 2006
Posts: 158
Received Thanks: 20
this is the solution

x1 = xo+ (float)(Owner.X * Math.Cos(o) - Owner.Y * Math.Sin(o));
y1 = yo+ (float)(Owner.X * Math.Sin(o) + Owner.Y * Math.Cos(o));

where angle o must be between 32.00 / 32.45 and xo yo are the origin of master plain of minimap
^.^ thx to give me the idea to try on a paper !!!
gorgone is offline  
Old 01/04/2011, 18:19   #4
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
You can do the conversion without using trig at all if you know the size of the map and size of the image. (These are obtainable from the map files).

I described how in a previous post .

Code:
    public Point MapCoordinateToScreenPoint(Point mapCoordinate) {
        return new Point(
            (mapCoordinate.X - mapCoordinate.Y) * map.Cells.Height + (puzzle.Width / 2), 
            (mapCoordinate.X + mapCoordinate.Y - (map.Bounds.Height - 1)) * (map.Cells.Width / 2) + (puzzle.Height / 2)
        );
    }
This should apply to the minimaps too, but you'll just need to scale the result to the size of the minimap.
unknownone is offline  
Thanks
2 Users
Old 01/04/2011, 18:23   #5
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,199
Edit: ^ unknownone beat me to it

This is way too difficult an approach, if you ask me. You should take a look at
Making your own minimap by reading from Conquer's map files (.dmaps) would be the right way to do it. That way you can easily just plot your character on the map using the actual Conquer coordinates.

Example:
You're in a map that's 1200x1200 tiles. You read the .dmap that belong to that map, create your own image (bitmap) with the same width/height as the in-game map, and for each invalid coordinate you read from the .dmap file, you paint it black and the valid coordinates white.
You then place the bitmap you just created on an Image control or whatever it's called, can't remember, but this way, you get a map that equals the actual in-game map
IAmHawtness is offline  
Old 02/07/2011, 02:28   #6
 
gabrola's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 1,039
Received Thanks: 1,335
Quote:
Originally Posted by unknownone View Post
You can do the conversion without using trig at all if you know the size of the map and size of the image. (These are obtainable from the map files).

I described how in a previous post .

Code:
    public Point MapCoordinateToScreenPoint(Point mapCoordinate) {
        return new Point(
            (mapCoordinate.X - mapCoordinate.Y) * map.Cells.Height + (puzzle.Width / 2), 
            (mapCoordinate.X + mapCoordinate.Y - (map.Bounds.Height - 1)) * (map.Cells.Width / 2) + (puzzle.Height / 2)
        );
    }
This should apply to the minimaps too, but you'll just need to scale the result to the size of the minimap.
This didn't work tbh. However this did:

Code:
    public Point MapCoordinateToScreenPoint(Point mapCoordinate) {
        return new Point(
            (mapCoordinate.X - mapCoordinate.Y - 1) * map.Cells.Height + (puzzle.Width / 2), 
            (mapCoordinate.X + mapCoordinate.Y - map.Bounds.Height) * (map.Cells.Height / 2) + (puzzle.Height / 2)
        );
    }
Sorry for the slight bump too, I just thought it was necessary.
gabrola is offline  
Reply


Similar Threads Similar Threads
z-coordinate
07/06/2010 - Aion Private Server - 0 Replies
anyone managed to manipulate the in game z-position? (overground, standing above the ground without flying...) found the value as float via uce but nothing happens when i freeze or change it -.- greetz
z-coordinate
07/06/2010 - Aion - 0 Replies
anyone knows how to manipulate my z-position? im able to find it via uce as float-value, but nothing happens when i freeze it or change it... dont realy understand that xD greetz
co x and y coordinate addresses
07/06/2010 - CO2 Programming - 1 Replies
x: 0AE10EFC - 89 88 08 10 d0 50 - mov ,ecx Y: 0AE10EFC - 89 88 08 10 d0 50 - mov ,ecx 01324D78 - 87 00 - xchg ,eax Where to from there if I want to make it look like 0x8437 <example
Coordinate
05/08/2010 - Conquer Online 2 - 16 Replies
I was thinking is there any bot that can search for coordinate in all co map.:handsdown:Like this (Twin City, 387 369)..Is there are someone intelligent enought to create this bot.so with this it will be easier to find coordinate for quest?
x y z coordinate?
02/24/2009 - General Gaming Discussion - 3 Replies
Hey, is there a command ingame to find out x y z coordinate of my char? I want to search in the memory for such values, so I can create a Bot



All times are GMT +1. The time now is 03:07.


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.