Problems with a couple of NVSE functions.

Post » Tue May 17, 2011 2:34 pm

Have you tried using a container with it's own persistent ref, instead as a linked ref? Just something to try, but i'm using RemoveAllTypedItems with and without a formlist between containers/NPC and player without CTD. The casino frisking scripts use containers with persistent refs too.


Ricker! That was it! It's gonna need further testing, but I've run it about a dozen times with the direct permanent reference to the container, and it seems to be working perfectly! Same with the Null items in the exception list. Many, many thanks; I will credit you for the help when the mod goes up on the Nexus! You certainly saved my bacon on this.
User avatar
Charles Weber
 
Posts: 3447
Joined: Wed Aug 08, 2007 5:14 pm

Post » Tue May 17, 2011 9:34 am

Ricker! That was it! It's gonna need further testing, but I've run it about a dozen times with the direct permanent reference to the container, and it seems to be working perfectly! Same with the Null items in the exception list.


Glad to have helped!
User avatar
Sophie Miller
 
Posts: 3300
Joined: Sun Jun 18, 2006 12:35 am

Post » Tue May 17, 2011 2:20 am

Hey Ricker, just a quick post to let you know, even replacing rather than deleting from the form list doesn't work reliably. For what it's worth, though, the issue is almost certainly centered around the removal of base forms. I'm using form lists extensively elsewhere in my mod with the important distinction that I'm adding and removing persistent references to them without any issues, including the zero'th element. I've dropped Ian a note about this. Hopefully, the NVSE team will find time to look into and resolve this.
User avatar
joannARRGH
 
Posts: 3431
Joined: Mon Mar 05, 2007 6:09 am

Post » Tue May 17, 2011 3:15 pm

Hey Ricker, just a quick post to let you know, even replacing rather than deleting from the form list doesn't work reliably. For what it's worth, though, the issue is almost certainly centered around the removal of base forms. I'm using form lists extensively elsewhere in my mod with the important distinction that I'm adding and removing persistent references to them without any issues, including the zero'th element. I've dropped Ian a note about this. Hopefully, the NVSE team will find time to look into and resolve this.


Thanks for the update. Good info ;)
Come to think of it, my form list script is adding non-persistent references (furniture) gathered from a ref-walk, and then replacing those with a blank form later to 'clear it'. The only work I've done with base forms is with AddFormToFormList, not replacing them or removing them.
User avatar
Alexander Horton
 
Posts: 3318
Joined: Thu Oct 11, 2007 9:19 pm

Previous

Return to Fallout: New Vegas