Cannot Call Enable() on a None Object ?

Post » Tue Jun 19, 2012 8:09 am

Asked this late in another post, but thought perhaps I should do a new topic as not to clutter someone's post. Here is the error, reported in the Papyrus logs:

error: Cannot call Enable() on a None object, aborting function call stack

The error runs when I try to enable an alias of a disabled xmarker (which is in turn the parent enabler of several objects, that I want to pop in at a certain quest stage). I tried to mark the alias as allowing disabled status, but it still happens.

I double (triple and quadruple) checked the alias, and the reference is set (forced to a specific) to the xmarker, which I gave a name to be sure.

Any tips on this error or where to look from here? Thx in advance!
User avatar
Elina
 
Posts: 3411
Joined: Wed Jun 21, 2006 10:09 pm

Post » Tue Jun 19, 2012 6:43 pm

Could you post the script in which you're calling http://www.creationkit.com/Enable_-_ObjectReference? There's likely a problem somewhere in there.

Cipscis
User avatar
Hannah Whitlock
 
Posts: 3485
Joined: Sat Oct 07, 2006 12:21 am

Post » Tue Jun 19, 2012 11:25 am

Perhaps you didn't set up the properties so the Creation Kit doesn't know what it is, thus defining it as a "None" type?
User avatar
bonita mathews
 
Posts: 3405
Joined: Sun Aug 06, 2006 5:04 am

Post » Tue Jun 19, 2012 11:32 am

For the papyrus script fragment under my quest stage, I have the following:

Debug.Trace("Trying Alias CampEnabler GetRef Enable")Alias_CampEnabler.GetReference().Enable()


The Alias is setup as such
Alias Name: CampEnabler
Specific Reference: Camp_XMarker_Enabler (0100489A) to STAT 'XMarker' (0000003B)

I tried with Allow Disabled checked and unchecked.


In the automatically created script, it has the Alias_CampEnabler as Type: ReferenceAlias. Value alias CampEnabler on quest


Do I also need to create a separate property for it? I know I disabled buildings using aliases for them without other properties (though they weren't parent enabled - they were individual items), so I didn't think this would be different. Thanks again!
User avatar
Amy Siebenhaar
 
Posts: 3426
Joined: Fri Aug 10, 2007 1:51 am

Post » Tue Jun 19, 2012 11:46 am

Anyone have any ideas? I guess I can just use separate aliases, without using parent enabling at all in this instance, but it sure would save a lot of work down the road if I could figure this, seemingly simple, thing out. Thanks. =)
User avatar
Austin England
 
Posts: 3528
Joined: Thu Oct 11, 2007 7:16 pm


Return to V - Skyrim