SphereCommunity
error with latest build - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: error with latest build (/Thread-error-with-latest-build)

Pages: 1 2


error with latest build - WRWR - 06-03-2017 04:05 PM

all previous builds works fine, but now if player fight with npc's:

Code:
09:03:DEBUG:__ thread (4624) __ |  # | _____________ function _____________ | __ ticks passed from previous function start __
09:03:DEBUG:>>         4624     |  0 |                       CWorld::OnTick | +0
09:03:DEBUG:>>         4624     |  1 |                      CSector::OnTick | +0
09:03:DEBUG:>>         4624     |  2 |                        CChar::OnTick | +0 <-- exception catch point (below is guessed and could be incorrect!)
09:03:DEBUG:>>         4624     |  3 |                    CChar::Skill_Done | +0
09:03:DEBUG:>>         4624     |  4 |                   CChar::Skill_Stage | +0
09:03:DEBUG:>>         4624     |  5 |                CChar::Skill_Fighting | +0
09:03:DEBUG:>>         4624     |  6 |                  CChar::Fight_HitTry | +0
09:03:DEBUG:>>         4624     |  7 |                     CChar::Fight_Hit | +0
09:03:DEBUG:>>         4624     |  8 |           CItem::Weapon_GetSoundMiss | +0
09:03:DEBUG:>>         4624     |  9 |                   CVarDefMap::GetKey | +0
09:03:CRITICAL:"Access Violation" (0x17b074), in CChar::Tick() #2 "timer expired"



RE: error with latest build - Satvet - 06-04-2017 03:50 AM


+Up

Quote:20:46:DEBUG:__ thread (34376) __ | # | _____________ function _____________ | __ ticks passed from previous function start __
20:49:DEBUG:>> 34376 | 0 | CWorld::OnTick | +0
20:49:DEBUG:>> 34376 | 1 | CSector::OnTick | +0
20:49:DEBUG:>> 34376 | 2 | CChar::OnTick | +0 <-- exception catch point (below is guessed and could be incorrect!)
20:49:DEBUG:>> 34376 | 3 | CChar::Skill_Done | +0
20:49:DEBUG:>> 34376 | 4 | CChar::Skill_Stage | +0
20:49:DEBUG:>> 34376 | 5 | CChar::Skill_Fighting | +0
20:49:DEBUG:>> 34376 | 6 | CChar::Fight_HitTry | +0
20:49:DEBUG:>> 34376 | 7 | CChar::Fight_Hit | +0
20:49:DEBUG:>> 34376 | 8 | CItem::Weapon_GetSoundMiss | +0
20:49:DEBUG:>> 34376 | 9 | CVarDefMap::GetKey | +0
20:49:CRITICAL:"Access Violation" (0x17b074), in CChar::Tick() #6 "timer expired"



RE: error with latest build - Coruja - 06-04-2017 03:58 AM

try update it again, I fixed it on latest build


RE: error with latest build - Satvet - 06-04-2017 04:04 AM

thx. @Coruja

Another problem is that the creature is chasing me, and if something comes out in front of it, it stops attacking.

(An Ex Por) poisoned person freezing.
when the effect of poison shows paralyze is losing effect. is it normal?



RE: error with latest build - Satvet - 06-05-2017 06:38 AM

'dam_nounparalyze'
revision for thanks. @Coruja


Quote:Another problem is that the creature is chasing me, and if something comes out in front of it, it stops attacking.
But this continues.

angry the creature is chasing victim, and if something comes out in front of it, it stops attacking.
In the same screen (obstacles: tree, wall, stone, etc.)



RE: error with latest build - Coruja - 06-09-2017 11:36 AM

Fixed https://github.com/Sphereserver/Source/commit/3293e0f49ce11012f3cf714baf27c9a2f8618826


RE: error with latest build - Satvet - 06-09-2017 07:11 PM

Sorry Coruja.
The problem continues.


Quote:angry the creature is chasing victim, and if something comes out in front of it, it stops attacking.
In the same screen (obstacles: tree, wall, stone, etc.)

Although rare, there is a problem.
Behind the wall of magic, sometimes after a while the attack is abandoned.
Hiding behind the trees, and the house walls are the same.
the attack is abandoned. and the owner returns.

This time back to its owner returns. Smile



RE: error with latest build - Coruja - 06-10-2017 09:29 AM

it's working fine here, when the NPC can't reach its target it will keep trying to reach it, but if it still not reaching the target after many tries, it will just forget this target

to make it a bit better you can enable NPC_AI_PATH + NPC_AI_ALWAYSINT on sphere.ini, this will increase NPCs pathfind accuracy making it find the path to walk to the other side of the wall of stone instead keep stuck without walk. But this will also increase your server CPU usage


RE: error with latest build - Satvet - 06-11-2017 01:02 AM

NPC_AI_PATH + NPC_AI_ALWAYSINT, these 2 flags happened.
Beautiful fast chasing creature Smile good. But the problem is still continuing. Smile
Server CPU growth is also bad unfortunately.
If the player who escaped from the creature hides behind a tree fast, NPC will no attacking. Smile



RE: error with latest build - Coruja - 06-11-2017 02:12 PM

yea that's what I said, unfortunately there's no magic button that will make everything work perfectly with no drawback costs Tongue

maybe the only available solutions for this is:
1) enable NPC_AI_PATH + NPC_AI_ALWAYSINT to make NPCs smart enough to find a path to the other side of the wall, but this will increase CPU usage to do these advanced calculations for every NPC placed on world
2) keep these settings disabled, making the NPC unable to find an way to walk over the wall, which will make it cancel the combat after many failed attempts to reach its target

afaik, on old sphere builds NPCs won't cancel the combat and will keep stuck forever trying to reach the target which will never be reached. And this is even worse than these 2 options above