View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001770SphereServerexecutable - linux buildpublic02-07-10 16:4714-01-11 14:14
ReporterMirravin 
Assigned ToMrSugarCube 
PrioritynormalSeverityminorReproducibilityrandom
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version0.56c Nightly 
Target VersionFixed in Version0.56c Nightly 
Summary0001770: Critical Error with NPC moving
DescriptionSometimes(rarely) I get in console this error without any stability problems:
03:23:CRITICAL:Assert pri=2:'dir<DIR_QTY' file 'CObjBase.h', line 2884, in CChar::UpdateMove() #11 "AddcharMove"
I think it is connected with using
RUN <DIR>
line in NPC scripts. I didn't managed to reproduse it.

Build: #1276.
TagsNo tags attached.
Nightly VersionNot Available
Experimental FlagsNone
Option FlagsNone
Internal Build Number
Attached Files

- Relationships

-  Notes
(0000495)
MrSugarCube (administrator)
03-07-10 00:33

I can only find a couple of unlikely causes of this error, so you'll need to check to see if it has truly been fixed.
(0000509)
Mirravin (reporter)
12-07-10 01:22

Build #1296:
02:50:CRITICAL:(data20.scp,250)Assert pri=2:'dir<DIR_QTY' file 'CObjBase.h', line 2896, in CChar::UpdateMove() #5 "AddcharMove"

this line:
ON=@NPCACTFOLLOW
RUN <DIR> <-----
(0000762)
Mirravin (reporter)
17-11-10 14:52

12.11, internal build #1367:

01:12:CRITICAL:(data7.scp,25)Assert pri=2:'dir<DIR_QTY' file 'CObjBase.h', line 2891, in CChar::UpdateMove() #44 "AddcharMove"

23:59:CRITICAL:(data7.scp,25)Assert pri=2:'dir<DIR_QTY' file 'CObjBase.h', line 2891, in CChar::UpdateMove() #7 "AddcharMove"

15.11:

11:04:CRITICAL:Assert pri=2:'dir<DIR_QTY' file 'CObjBase.h', line 2891, in CChar::UpdateMove() #14 "AddcharMove"

22:47:CRITICAL:Assert pri=2:'dir<DIR_QTY' file 'CObjBase.h', line 2891, in CChar::UpdateMove() #35 "AddcharMove"

23:37:CRITICAL:(data7.scp,25)Assert pri=2:'dir<DIR_QTY' file 'CObjBase.h', line 2891, in CChar::UpdateMove() #23 "AddcharMove"

17.11:

12:30:CRITICAL:Assert pri=2:'dir<DIR_QTY' file 'CObjBase.h', line 2891, in CChar::UpdateMove() #31 "AddcharMove"
(0000763)
xantier (reporter)
17-11-10 21:16

I was using run=<dir> thing as same as you have used, to make a NPC run as fast as a horse riding player and it didn't give any errors.. It must be about new releases
(0000767)
MrSugarCube (administrator)
26-11-10 23:32

Does this still happen on the latest automated build (internal build #1370+)? The error message might look different.
(0000770)
Mirravin (reporter)
01-12-10 21:28
edited on: 01-12-10 21:35

30.11.2010, #1370:

12:35:CRITICAL:Assert pri=2:'Dir > DIR_INVALID && Dir < DIR_QTY' file 'CCharNPCAct.cpp', line 925, in CChar::NPC_WalkToPoint() #.3 "Finishing Move Action a"

01.12.2010:

22:02:(data3.scp,2231)RUN DIR=4, NAME=Insurgent Knight(01d023), SRC.NAME=Myst(05c347), P=2049,869, SRC.P=2045,877.
22:02:(data3.scp,2233)RUN ALLOW
22:02:CRITICAL:Assert pri=2:'Dir > DIR_INVALID && Dir < DIR_QTY' file 'CCharNPCAct.cpp', line 925, in CChar::NPC_WalkToPoint() #.3 "Finishing Move Action a"

Code:
ON=@NPCACTFOLLOW
SERV.LOG RUN DIR=<DIR>, NAME=<NAME>(<UID>), SRC.NAME=<SRC.NAME>(<SRC.UID>), P=

, SRC.P=<SRC.P>.
IF (<DISTANCE <SRC.UID>> > 1) && (<CANMOVE <DIR>>)
SERV.LOG RUN ALLOW
RUN <DIR>
ENDIF

P.s. How I see in logs, only < 50% of these errors is connected/caused by this code. So, may be the error is caused by common NPC move.

P.s.s. #. = # Code is also a little abused by bugtracker. :)

(0000772)
MrSugarCube (administrator)
03-12-10 01:49

I still can't reproduce this, but the problem is likely to be caused by the NPC_AI_PATH and/or NPC_AI_MOVEOBSTACLES flags (NPCAI in sphere.ini). Are you using either of these?

I've made a minor tweak which may or may not address the problem in the next automated build (internal build #1373+), if you could please check it to let me know. The error message might look slightly different again.
(0000774)
Mirravin (reporter)
05-12-10 01:33

Yes, I'm using this flags both.
NPCAI=01|02|04|040|0100|0200
Information about new build will be after the next server restart.
(0000780)
Mirravin (reporter)
12-12-10 21:40
edited on: 12-12-10 21:41

On build #1374 I haven't got this error yet, but I don't know a way of reprodusing it, so I need 2-4 weeks to know, it is fixed or not.

(0000836)
Mirravin (reporter)
14-01-11 14:04

I think, the problem is resolved. Thanks.

- Issue History
Date Modified Username Field Change
02-07-10 16:47 Mirravin New Issue
02-07-10 16:47 Mirravin Nightly Version => Not Available
02-07-10 16:47 Mirravin Experimental Flags => None
02-07-10 16:47 Mirravin Option Flags => None
03-07-10 00:33 MrSugarCube Status new => resolved
03-07-10 00:33 MrSugarCube Fixed in Version => 0.56c Nightly
03-07-10 00:33 MrSugarCube Resolution open => fixed
03-07-10 00:33 MrSugarCube Assigned To => MrSugarCube
03-07-10 00:33 MrSugarCube Note Added: 0000495
12-07-10 01:22 Mirravin Status resolved => feedback
12-07-10 01:22 Mirravin Resolution fixed => reopened
12-07-10 01:22 Mirravin Note Added: 0000509
14-11-10 19:54 MrSugarCube Category executable - linux => executable - linux build
17-11-10 14:52 Mirravin Note Added: 0000762
17-11-10 14:52 Mirravin Status feedback => assigned
17-11-10 21:16 xantier Note Added: 0000763
18-11-10 01:46 Mirravin Note Added: 0000764
18-11-10 01:47 Mirravin Note Deleted: 0000764
26-11-10 23:32 MrSugarCube Note Added: 0000767
01-12-10 21:28 Mirravin Note Added: 0000770
01-12-10 21:29 Mirravin Note Edited: 0000770 View Revisions
01-12-10 21:30 Mirravin Note Edited: 0000770 View Revisions
01-12-10 21:35 Mirravin Note Edited: 0000770 View Revisions
01-12-10 21:35 Mirravin Note Edited: 0000770 View Revisions
03-12-10 01:49 MrSugarCube Note Added: 0000772
05-12-10 01:33 Mirravin Note Added: 0000774
12-12-10 13:56 MrSugarCube Status assigned => feedback
12-12-10 21:40 Mirravin Note Added: 0000780
12-12-10 21:40 Mirravin Status feedback => assigned
12-12-10 21:41 Mirravin Note Edited: 0000780 View Revisions
14-01-11 14:04 Mirravin Note Added: 0000836
14-01-11 14:14 MrSugarCube Status assigned => resolved
14-01-11 14:14 MrSugarCube Resolution reopened => fixed


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker