|
You last visited: Today at 14:55
Advertisement
Coordinate Converter(Open source)
Discussion on Coordinate Converter(Open source) within the SRO Coding Corner forum part of the Silkroad Online category.
07/10/2012, 11:39
|
#1
|
elite*gold: 0
Join Date: Apr 2008
Posts: 933
Received Thanks: 746
|
Coordinate Converter(Open source)
Hi, today i want to relase coordinate converter, it converts pk2(warp) coords to ingame coords and in game coords to warp coords. I decided to make this app because it seems to be useful for someone of you.
Also i invite you all to follow my new project "courageous", its a mmo/RTS game created on silkroad graphic engine, courageous was previously announced as "silkroad battle online".
Enjoy new tool and let me know if it helps you by thanks button, if you will like it in the future i will make more tools for sro.
Download:
SCAN:
|
|
|
07/10/2012, 17:53
|
#2
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,748
Received Thanks: 2,010
|
I like your GUI style
|
|
|
07/10/2012, 20:18
|
#3
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,309
Received Thanks: 6,470
|
epic background
btw, whats the equivalent to lobyte and Hibyte on php?
|
|
|
07/10/2012, 21:52
|
#4
|
elite*gold: 0
Join Date: Apr 2008
Posts: 933
Received Thanks: 746
|
Quote:
Originally Posted by PortalDark
epic background
btw, whats the equivalent to lobyte and Hibyte on php?
|
Idk you have to research on the internet or maybe someone here will answer you
|
|
|
07/11/2012, 15:08
|
#5
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,309
Received Thanks: 6,470
|
Quote:
Originally Posted by paxemuman
Idk you have to research on the internet or maybe someone here will answer you
|
i had browsed the web, and i didnt found it(found C# one but i have to take a look at it)
well thnx anyway
|
|
|
07/11/2012, 16:18
|
#6
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,064
Received Thanks: 539
|
low byte: variable & 128
high byte: variable & 65280
this should work fine in nearly every programming/scripting language
|
|
|
07/12/2012, 20:24
|
#7
|
elite*gold: 20
Join Date: Aug 2007
Posts: 1,710
Received Thanks: 1,609
|
if anyone needs the formulas:
public float regionX(float x, byte sector)
{
return ((x - ((sector) - 135) * 192) * 10);
}
public float regionY(float y, byte sector)
{
return ((y - ((sector) - 92) * 192) * 10);
}
public float gameX(float x, byte sector)
{
return ((sector - 135) * 192 + (x / 10));
}
public float gameY(float y, byte sector)
{
return ((sector - 92) * 192 + (y / 10));
}
|
|
|
07/12/2012, 23:00
|
#8
|
elite*gold: 0
Join Date: Sep 2010
Posts: 783
Received Thanks: 920
|
Quote:
Originally Posted by PortalDark
epic background
btw, whats the equivalent to lobyte and Hibyte on php?
|
if you have a word (2 bytes)
at example : 0x0509
the high byte is 0x05,the low byte is 0x09
correct me if iam wrong?
|
|
|
07/13/2012, 01:08
|
#9
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,064
Received Thanks: 539
|
Quote:
Originally Posted by ÑõÑ_Ŝŧóp
if you have a word (2 bytes)
at example : 0x0509
the high byte is 0x05,the low byte is 0x09
correct me if iam wrong?
|
Yes
and
@PortalDark:
the one for the low byte isn't variable&128, but
variable&255
Sorry, my bad
|
|
|
07/13/2012, 17:59
|
#10
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,309
Received Thanks: 6,470
|
im trying to adapt code to php but im having trouble since i dont find an example on php to do so
|
|
|
07/13/2012, 18:43
|
#11
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,064
Received Thanks: 539
|
Quote:
Originally Posted by PortalDark
im trying to adapt code to php but im having trouble since i dont find an example on php to do so
|
What exactly are you trying to do?
|
|
|
07/13/2012, 18:55
|
#12
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,309
Received Thanks: 6,470
|
just to implement all the code into php
that includes the lobyte/hibyte/makeword stuff
|
|
|
07/13/2012, 19:13
|
#13
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,064
Received Thanks: 539
|
makeword should be possible to do like this:
word = byte1;
word <<= 8;
word |= byte2;
byte1 is the high byte and byte the low byte
in php this should work as well:
word = (byte1 << 8) | byte2;
Just make sure that the byte variables contain only values a real byte variable could contain, else the result won't be right
edit:
k, the one for PHP will work in programming languages as well, without casting(I thought that you'd have to cast it, but nvm)
@PortalDark:
Just tell me what you need and I'll try to port it to PHP^^
|
|
|
07/13/2012, 22:04
|
#14
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,309
Received Thanks: 6,470
|
well basically, all(XD)
no, just the lobyte/hibyte/makeword
the other stuff is just formulas
|
|
|
08/02/2012, 10:04
|
#15
|
elite*gold: 0
Join Date: May 2011
Posts: 15
Received Thanks: 9
|
What are warp coordinates? I am playing around with a* and silkroad:
But i am still wondering how these map coordinates in the upper right corner are calculated. Does anybody know something about that?
|
|
|
|
|
Similar Threads
|
[Release]Table Converter Open Source
08/17/2013 - Zero - 6 Replies
Hi guys,
Another application that is also open source. This one is a 'wip' as I've not had time to test out any other table -> data file structures yet. But it does work with cq_itemtype -> itemtype.dat. However you do need to make some modifications to your cq_itemtype table.
The application comes with a 'ItemtypeStructure.ini' file, which defines how the Itemtype is structured. This structure I made according to the best of my knowledge and added fields (although unused) that I believe...
|
[Release] DBC Converter Source
12/13/2012 - CO2 Exploits, Hacks & Tools - 21 Replies
Right, the majority of this works, however i decided in the end that it would just be best to dump the source of the project here and people can make changes and modify it as they need to.
To start off you will need some .dbc files to decode to .txt files, and then you can convert them back again. Make sure you update the Count at the top of the file if you make changes, and ensure that the layout is correct, if something is placed in the wrong place or missing, then it wont work, this is...
|
[Release]Table Converter Open Source
04/06/2012 - CO2 PServer Guides & Releases - 1 Replies
Hi guys,
Another application that is also open source. This one is a 'wip' as I've not had time to test out any other table -> data file structures yet. But it does work with cq_itemtype -> itemtype.dat. However you do need to make some modifications to your cq_itemtype table.
The application comes with a 'ItemtypeStructure.ini' file, which defines how the Itemtype is structured. This structure I made according to the best of my knowledge and added fields (although unused) that I believe...
|
COnquer coordinate in cartesian coordinate ?
02/07/2011 - CO2 Programming - 5 Replies
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 :// :handsdown:
i m working on this sistem
|
[Release]O3D Converter Source + How to
06/16/2010 - Flyff Hacks, Bots, Cheats, Exploits & Macros - 4 Replies
Was man braucht
Python 2.6
Pyglet
wxPython
PyOpenGl
Edit Rocket
Download Links unten
|
All times are GMT +2. The time now is 14:55.
|
|