Annoying Error I can't seem to fix:

Update: It, for seemingly no reason, fixed itself.

Failed to load game due to following errors:
*Error:Object reference not set to an instance of an object.

I've come across this error before so I either created an object and then set the object variable to it as the default value, or simply changed the variable to a string that holds the name of the object. When I search for object types I get these:

<type name="weapon">
    <inherit name="editor_object" />
    <parent type="object">monsterattacks</parent>
</type>

<type name="character">
   <inherit name="access_skills" />  
   <weapon type="object">attack_bite</weapon>
</type>

<function name="Somefunction" parameters="x,y,z" type="object"><![CDATA[
   if(does_stuff_is_successful){
       return (object_variable)
   }
   else{
     return(null)
   }
]]></function>

<object name="monsterattacks">
    <inherit name="editor_room" />
    <object name="attack_bite">
      <inherit name="editor_object" />
    </object>
 </object>

I am willing to post the entire code if necessary but I cannot do it here as it is too long. I have poked and prodded this code for a few hours and am completely stumped.


Log in to post a reply.

Support

Forums