[Opensim-users] NullReferenceException on latest git revision (r17959) when creating NPC

Chris mewtwo0641 at cox.net
Wed Feb 1 18:51:53 UTC 2012


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

-- 
OpenSim: 9 Region Standalone on 0.7.3 Dev
Physics: Open Dynamics Engine
OS: Windows XP 32 Bit	
CPU: AMD Phenom II X4 840 3.2 GHz
Memory: 11 GB DDR3
Database: MySQL 5.1.11




More information about the Opensim-users mailing list