I've probably introduced a bug.  Please could you create a mantis for this with 
all the details.  Thanks, Chris.

On 01/02/12 18:51, Chris wrote:
Hi all,
On the latest git revision (r17959) I am getting a NullReferenceException when 
attempting to create an NPC. The NPC will
show up fine in world but it will be unable to be sensed by sensor scripts.

I am creating the NPC using the OC_NPC_SENSE_AS_AGENT option (i.e. npc = 
osNpcCreate(firstname, lastname, npcPosition,
load_npc, OS_NPC_SENSE_AS_AGENT); ). I have also tried adding in the NPC detect 
type in my sensor script as well.

Wondering if the null reference exception has anything to do with it since it 
is mentioning the SensorRepeat.cs file?

Thanks! =)

Exception:

2012-02-01 12:26:09,887 ERROR - OpenSim.Region.Framework.Scenes.SceneGraph 
[SCENEGRAPH]: Error in Test Region 2:
System.NullReferenceException: Object reference not set to an instance of an 
object.
at 
OpenSim.Region.ScriptEngine.Shared.Api.Plugins.SensorRepeat.<>c__DisplayClass3.<doAgentSensor>b__0(ScenePresence
presence) in
c:\Users\Chris\Desktop\opensim-003bd9f\OpenSim\Region\ScriptEngine\Shared\Api\Implementation\Plugins\SensorRepeat.cs:line
 450

at 
OpenSim.Region.Framework.Scenes.SceneGraph.<>c__DisplayClasse.<ForEachAvatar>b__d(ScenePresence
 sp) in
c:\Users\Chris\Desktop\opensim-003bd9f\OpenSim\Region\Framework\Scenes\SceneGraph.cs:line
 1181
at OpenSim.Region.Framework.Scenes.SceneGraph.ForEachScenePresence(Action`1 
action) in
c:\Users\Chris\Desktop\opensim-003bd9f\OpenSim\Region\Framework\Scenes\SceneGraph.cs:line
 1215



--
Justin Clark-Casey (justincc)
http://justincc.org/blog
http://twitter.com/justincc
_______________________________________________
Opensim-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/opensim-users

Reply via email to