SphereServer BugTracker - SphereServer |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0001770 | SphereServer | executable - linux build | public | 02-07-10 16:47 | 14-01-11 14:14 |
|
Reporter | Mirravin | |
Assigned To | MrSugarCube | |
Priority | normal | Severity | minor | Reproducibility | random |
Status | resolved | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | 0.56c Nightly | |
Target Version | | Fixed in Version | 0.56c Nightly | |
Nightly Version | Not Available |
Experimental Flags | None |
Option Flags | None |
Internal Build Number | |
|
Summary | 0001770: Critical Error with NPC moving |
Description | Sometimes(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.
|
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
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 | bug_revision_view_page.php?bugnote_id=0000770#r53 |
01-12-10 21:30 | Mirravin | Note Edited: 0000770 | bug_revision_view_page.php?bugnote_id=0000770#r54 |
01-12-10 21:35 | Mirravin | Note Edited: 0000770 | bug_revision_view_page.php?bugnote_id=0000770#r55 |
01-12-10 21:35 | Mirravin | Note Edited: 0000770 | bug_revision_view_page.php?bugnote_id=0000770#r56 |
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 | bug_revision_view_page.php?bugnote_id=0000780#r66 |
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 |
Notes |
|
|
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. |
|
|
|
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> <----- |
|
|
|
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" |
|
|
|
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 |
|
|
|
Does this still happen on the latest automated build (internal build #1370+)? The error message might look different. |
|
|
(0000770)
|
Mirravin
|
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. :)
|
|
|
|
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. |
|
|
|
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
|
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.
|
|
|
|
I think, the problem is resolved. Thanks. |
|