Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online
You last visited: Today at 06:22

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

Advertisement



Calculating Height, Z axis

Discussion on Calculating Height, Z axis within the Kal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
Xorg's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 87
Received Thanks: 3
Calculating Height, Z axis

Yo yo,
Any of you got experiences with implementing correct moving system in Kal by packets?
What is the best way to calculate it correctly?

I am doing like that.
Calculating step in X axis and Y axis. Then calculate Z step like that.
Code:
MoveZ = CurrentPlayerZ - GetHeight(CurrentPlayerX+MoveX, CurrentPlayerY+MoveY);
Ofcourse its not complete thinking as every step must be reversed by multiplying it by -1. Calculated CoordZ must be multiplyed by 10.
Given X and Y arguments to GetHeight must be also prepared.
It does not mattter.

This system works fine, but sometimes when there are steep climbs it goes little underground then after that little over.
Like the mountain its little faster than it really is.

Hope you can help .
Xorg is offline  
Old 05/23/2010, 19:12   #2
 
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
Quote:
This system works fine, but sometimes when there are steep climbs it goes little underground then after that little over.
Like the mountain its little faster than it really is.
maybe you send too much Zcoord at once? i mean e.g. movepacket(10,10,90) or sth like that?^^
katze123 is offline  
Old 05/23/2010, 19:19   #3
 
rolubo's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 366
Received Thanks: 10
I thin (10,10,90) don't work Oo ,max in plus is ~45 and in minus ~(256-45)
never tried to count z-coordinate,is GetHeight a function from Kal?can you post your complete z calculation?
rolubo is offline  
Old 05/23/2010, 20:32   #4
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
Baka allready did it if I'm not mistaken :>

Check kalhack11
MoepMeep is offline  
Old 05/23/2010, 22:59   #5
 
meak1's Avatar
 
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
yes bakabugs heightdetour works perfect @Xorg it stucks on places with hills because the hills go to high, u need to calculate it by urself or search nice place

dont know how to explain it exactly because my english sucks,
if the Z to high for walks from the detour lets say 80 then half it and send z+=40 , z+=40.

is the hill at X = 500
make in your search that he search under it (MobX < 500)
that he not try to go over the hill =/
meak1 is offline  
Old 05/24/2010, 00:04   #6
 
Xorg's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 87
Received Thanks: 3
Quote:
maybe you send too much Zcoord at once? i mean e.g. movepacket(10,10,90) or sth like that?^^
I've got protection for x,y max is 44 (absolute) and z must be between -128,127 (signed char). Till one of the condition fail the x,y will be divided by 2 and Z height will be calculated again.

Quote:
is GetHeight a function from Kal?
You can calculate it on your own (kal maps) or use kal function like I did.

Quote:
u need to calculate it by urself or search nice place
I am enjoying writing working ****, so its not good way for me

Quote:
u need to calculate it by urself
What do you mean saying that?
Xorg is offline  
Old 05/24/2010, 00:11   #7
 
meak1's Avatar
 
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
calculate z at your own if u run on a steep hill
i mean the heightdetour says to u , u need to go 150 Z now but its to steep,
calculate it 150 / 2 or so that u send 2 times Z not one time 150 because he cant go 150 dont know how to explain it better^^
meak1 is offline  
Old 05/24/2010, 02:09   #8
 
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
meak just said what i tried to say, too.
So. Heighdetour tells you "you have to go 100 z up"
so you have to divide it into parts. -> go x,y,and maybe 30% of Z, then just send 2 more packets for Z -> 40 and 30 (just an example).
katze123 is offline  
Old 05/24/2010, 09:04   #9
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
btw, there is a bot function in kal, works nearly perfect ;P
MoepMeep is offline  
Old 05/24/2010, 09:57   #10
 
rolubo's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 366
Received Thanks: 10
Quote:
Originally Posted by Xorg View Post
I've got protection for x,y max is 44 (absolute) and z must be between -128,127 (signed char)
You just need the same protection for z
rolubo is offline  
Old 05/24/2010, 12:45   #11
 
meak1's Avatar
 
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
Quote:
Originally Posted by MoepMeep View Post
btw, there is a bot function in kal, works nearly perfect ;P
AUTO_BATTLE... is left in engine but dont work about the system.ini again, right? =P
meak1 is offline  
Old 05/24/2010, 14:05   #12
 
Xorg's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 87
Received Thanks: 3
Quote:
Originally Posted by rolubo View Post
You just need the same protection for z
Nope, why? The Z is not somehow limited. You can move from -128 to 127 easily.
For example for x the 45+ will not work, till 256-44.
For z it all works fine.

Found the problem.
The problem is speed of moving. It must be calculated with the same speed as animation (3d character model move). If too fast the character model stay in back, but in real (packet coords) its much more forward. The Z value change the position of the model instant, so its just eating grass or flying .

Still the question is why kal does calculate range (in code) in 3 axis (X,Y,Z) when only (X,Y) determines the speed of moving and its constance for every move.
Xorg is offline  
Old 05/24/2010, 14:10   #13
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
Quote:
Originally Posted by meak1 View Post
AUTO_BATTLE... is left in engine but dont work about the system.ini again, right? =P
not sure, I'm not playing kal anymore
MoepMeep is offline  
Old 05/24/2010, 15:32   #14
 
Xorg's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 87
Received Thanks: 3
It works perfect now.
Anyone implemented avoiding object system?
Xorg is offline  
Old 05/24/2010, 15:51   #15




 
bloodx's Avatar
 
elite*gold: 55
Join Date: Mar 2006
Posts: 4,582
Received Thanks: 1,539
Calculate via OPL files.
bloodx is offline  
Reply


Similar Threads Similar Threads
Calculating Rotation For X,Y in AION
09/23/2009 - Aion - 4 Replies
I am working on a program that takes two coords from the game (X and Y, Z not relevent), and calculates how far point A (current position) is from point B (target position). However, i am having problems calculating which direction the object on point A needs to be facing (in degrees) to get to point B. I know there is some formula for this, however, I'm clueless. So lets say my current position in the game is X-996 and Y-1071 currently facing a value of 100 (from what i see rotation is...
Calculating damage
05/11/2009 - Silkroad Online - 10 Replies
How do you can calculate silkroad damage? not average damage. but every factor like how accesory change that damage? how other buff attack buff change it? how the damage change when it hits more that 1 target?
Calculating Eudemon checksum
04/04/2008 - EO PServer Hosting - 1 Replies
Hi all, i was wondering if anyone knew what the function is that EO uses to calculate the chksum field in the cq_eudemon table? I tried to find it in the source code, but came up blank. Any help is appreciated :)
Calculating Atack or MAtack
05/04/2007 - CO2 Guides & Templates - 4 Replies
Sometimes you wanted know the atack of an trojan and him dont told you? with thats easy guide, you just need open him equipaments window! "JUST 1 percent error" TROJAN ATACK: The follow instructions is both used to lower and higher atack:
Calculating Hours of Pkp
11/23/2006 - CO2 Guides & Templates - 15 Replies
Ever have a black name or more than 30 pk points? This is how to calculate The total time u will have to wait for those 'awful' pk points to get off. 1. Multiply # of pk points by 6. (EX- 100pkp X 6 =600) 2. Divide that number by 60. (EX- 600 / 60) 3. The end number will be the # of hours it will take to get your pkp off.



All times are GMT +1. The time now is 06:26.


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.