SphereCommunity
GetDist Problem - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: GetDist Problem (/Thread-GetDist-Problem)



GetDist Problem - Avatar - 03-12-2014 02:34 AM

Sometimes, I do see that there are some getdist invalid point errors in console. I'm just wondering what reason causes such problem in console ,

ERROR:GetDist::InvalidPoint -> '26112,28416,0,110'

Also, i have this error. After having this, server just get down. No crash error or anyhing , just freezes.

Code:
19:05:DEBUG:__ thread (11504) __ |  # | _____ function _____________ | ticks passed from previous function start ______
19:05:DEBUG:>>         11504     |  0 |               CWorld::OnTick | +0 <-- exception catch point (below is guessed and could be incorrect!)
19:05:DEBUG:>>         11504     |  1 | CTimedFunctionHandler::OnTick | +0
19:05:DEBUG:>>         11504     |  2 |           ProfileData::Start | +0
19:05:CRITICAL:"Access Violation" (0x732ee757), in SUB: CWorld::TimerFunction::Tick()
19:05:DEBUG:__ thread (11504) __ |  # | _____ function _____________ | ticks passed from previous function start ______
19:05:DEBUG:>>         11504     |  0 | NetworkManager::processAllInput | +0
19:05:DEBUG:>>         11504     |  1 | NetworkManager::checkNewConnection | +0
19:05:DEBUG:__ thread (11504) __ |  # | _____ function _____________ | ticks passed from previous function start ______
19:05:DEBUG:>>         11504     |  0 | NetworkManager::processAllInput | +0
19:05:DEBUG:>>         11504     |  1 | NetworkManager::checkNewConnection | +0
19:05:DEBUG:__ thread (11504) __ |  # | _____ function _____________ | ticks passed from previous function start ______
19:05:DEBUG:>>         11504     |  0 | NetworkManager::processAllInput | +0
19:05:DEBUG:>>         11504     |  1 | NetworkManager::checkNewConnection | +0
19:05:DEBUG:__ thread (11504) __ |  # | _____ function _____________ | ticks passed from previous function start ______
19:05:DEBUG:>>         11504     |  0 | NetworkManager::processAllInput | +0
19:05:DEBUG:>>         11504     |  1 | NetworkManager::checkNewConnection | +0
19:05:DEBUG:__ thread (11504) __ |  # | _____ function _____________ | ticks passed from previous function start ______
19:05:DEBUG:>>         11504     |  0 | NetworkManager::processAllInput | +0
19:05:DEBUG:>>         11504     |  1 | NetworkManager::checkNewConnection | +0
19:05:DEBUG:__ thread (11504) __ |  # | _____ function _____________ | ticks passed from previous function start ______
19:05:DEBUG:>>         11504     |  0 | NetworkManager::processAllInput | +0
19:05:DEBUG:>>         11504     |  1 | NetworkManager::checkNewConnection | +0
19:05:DEBUG:__ thread (11504) __ |  # | _____ function _____________ | ticks passed from previous function start ______
19:05:DEBUG:>>         11504     |  0 |               CWorld::OnTick | +0
19:05:DEBUG:>>         11504     |  1 |              CSector::OnTick | +0 <-- exception catch point (below is guessed and could be incorrect!)
19:05:DEBUG:>>         11504     |  2 |           ProfileData::Start | +0
19:05:ERROR:sector #85 [5440,0,0,0]
19:05:ERROR:GetDist::InvalidPoint -> '0,0,-64,132'



RE: GetDist Problem - Feeh - 03-12-2014 03:19 AM

These values are higher than the map size, although it is perfectly possible to calculate the distance using these numbers it would result in an invalid result as the point is outside the map boundaries

Debug every script that check distances


RE: GetDist Problem - Avatar - 03-12-2014 03:25 AM

Also note that, my sphereserver release is last 2013 prerelease 56b.
My map sizes are actually are original ones and there are no addition in ini file regarding maps. Sometimes i'm getting error getdisp and once I chect it, it is actually related with isneartype function.


RE: GetDist Problem - Alaric - 03-12-2014 03:32 AM

And do you have map numbered 132 in sphere.ini? You must have made something wrong in the script. Look at it, or post it here.


RE: GetDist Problem - Avatar - 03-12-2014 03:36 AM

I donot really have that one. It is funny but really i do not have map named as 132. I have no problem until I changed version to 56c and there occured some problem. Therefore, I changed it back again to 56b last release. So afterthat, sphereserver just doing things wrongly. Donot get it


RE: GetDist Problem - RanXerox - 03-12-2014 03:40 AM

In addition, map coordinates start at one, not zero... It's definitely a script problem.


RE: GetDist Problem - Avatar - 03-12-2014 03:44 AM

Got it RanXerox. Since there is no debug about which scripts, I really cannot able to find where the problem is. I have lots of system which checks coordinates. So can we just say that the problem is due to "isneartype" ? If so, I will directly look those. Or may forloop lead to this ?


RE: GetDist Problem - kevin465 - 03-12-2014 05:23 AM

reboot your pc lol


RE: GetDist Problem - Mordaunt - 03-12-2014 11:21 PM

You are only making yourself look silly Kevin...


RE: GetDist Problem - Avatar - 03-14-2014 07:37 AM

I found the problem actually which is about auto generating map coordinates for my chest system. The problem is happening only in Malas map. Finally, I could see that. Thank you for your help.