Morrowind Mod talk:SetDelete

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

Recent Cleanup Edit[edit]

The new page reads: "The main thing is to not delete the object while it is still actively engaged in some other activity."

This is not strictly true (and what it means is also pretty unclear). Sometimes, deleting an object after disabling it on the same frame is cool. Sometimes, it's not. I've found that the times that it causes a crash corresponds to when there's a lot of other objects in the same cell -- the same script, on the same object, in a different cell with fewer objects will work fine, but put it in a cell with a bunch of objects and it will start crashing. 68.80.223.21 23:13, 25 December 2008 (EST)

Your previous edit just dropped new information in at the beginning of a paragraph, resulting in a paragraph that did not hold together well. That's what triggered my cleanup. (That's just by explanation.) That said, it may be that what's happening when entering a busy cell is that it's taking several frames to fully initialize every object in the cell (retrieve their mesh, do other processing, etc.) So perhaps the object is still active (i.e. in the process of initialization). Or it may be that the lists of objects in the cell is still developing, and so is confused by an object suddenly being removed from it.
In any case, the text should give the more conservative advice. E.g. probably simplest to say "wait a couple of seconds before deleting" since that's easy to remember and is always(?) true. Then maybe qualify that by saying "this isn't always necessary, but should cover almost all cases. If you need to delete sooner, then be aware of yadda, yadda."
PS: It would be useful if you signed in before making edits. It's not necessary, but it helps the rest of us to have a better idea of your experience. And to remember you if we see comments by you later. --Wrye 23:39, 25 December 2008 (EST)
Done. Can't say I'm too well known as I just started actually writing mods the other day, but during that time I managed to learn the ins and outs of setdelete crashes the hard way. Surgo 00:21, 26 December 2008 (EST)