Talk:Disable
PlaceAtMe and Disable
Dragoon Wraith TALK 13:28, 18 July 2006 (EDT): That's a temporary increase though. Disabled objects are unloaded from memory every so often, automatically.
- I heard this rumor a while ago, but I'm still not convinced. "Initially disabled" objects are not removed from the savegame. Objects that exist in an ESP or ESM (persistent or not) are not removed after you disable them, that's a fact that was extensively tested. Objects created by placeatme give you a reference to access them, the game would crash if you do so after the object is removed, and I doubt that Bethsoft made a garbage-collection-routine that just removes disabled objects that were created ingame without storing a reference to them.--JOG 13:40, 18 July 2006 (EDT)
- Gamall 14:17, 18 July 2006 (EDT) :
- @ DragoonWraith : How often ? Did you test this ? Who provided this information ? I do hope the are unloaded from times to times (or when a limit is reached), but I'm not convinced. It is true that savegames seem to lose about 10 Kb every now and then, but nothing proves it is linked to disabled references being cleaned up.
- @ JOG : Try creating a reference with placeatme, use the console to get its reference, see to it that the zone you were in is discharged from memory, save, quit the game, go back to it, go back to the zone, use the reference, it will work. This proves references created with placeatme are saved. That and the significant weight increase in the savegames mentionned earlier.
- So whether or not objects placed with placeatme and disabled are stored in the savegame is really not the issue anymore. They are. The issue is whether or not saves are cleaned in the way DragoonWraith said, or any other way. They may be, and they may not be ; either way, I think this issue deserves much more attention than has been given to it this far.
Dragoon Wraith TALK 15:51, 18 July 2006 (EDT): It was mentioned on this Wiki somewhere by a Beth employee... I think it was Ashileedo or Kkulman, I'll look around.
- Dragoon Wraith TALK 15:55, 18 July 2006 (EDT): Found it; according to Ashileedo, disabled items will be removed:
- The danger is summong 50 iron swords at the wrong time and running out of memory. However, if you disable something that you've placeatme'd, I believe it gets thrown out -- I don't think right away, but our memory management code will clear it out when you hit your next load (though we'd have to check the code to be absolutely sure its at your NEXT load. But I am sure it does get cleared away. It most definitely will go away when the cell you summoned the objects in gets unloaded from memory). But the bigger risk here is if you placeatme something that is too expensive -- especially if player does it over and over and over again consecutively. --Ashileedo 15:08, 7 April 2006 (EDT)
Disable DOES improve performance
Dragoon Wraith TALK 21:37, 26 May 2007 (EDT): I think the line "do not depend on Disable to improve performance" is misleading. It does improve performance, by making one less thing for Oblivion to render. In many cases, the effect on performance of the graphics of an item is much greater than the effect of its script.
- I agree. I've reworded the sentence to refer to savegame bloat. --Speedo 19:12, 28 July 2008 (EDT)
I'm having a problem getting the collision of an object to turn off. Is it possible that the Disable command does not disable the collision of an activator? I'm sure I am right that the collision is not turning off since I have an invisible capsule around the player and when it is supposed to be disabled, i am still stuck inside. My code basically puts the capsule there, then disables it a few frames later. There shouldn't be any problem unless there is a problem with Disable. Any thoughts?--Omzy 17:50, 1 June 2007 (EDT)
EDIT I've narrowed my problem down to something excruciatingly simple. I was wrong in assuming Disable was the problem, and now it is clear that Disable does deactivate collision on activators.--Omzy 07:04, 2 June 2007 (EDT)
Issues With Spells
Per the discussion started in this thread regarding disabling an object in the ScriptEffectStart block, and its effect on later blocks - I've done some testing. On a script which had a duration of 5 seconds and all three Start/Update/Finish blocks the results:
Spell cast on NPC
- NPC is disabled
- Update block runs for 3 frames
- Finish block runs
Spell cast on container or door
- Object is disabled
- Update block runs for 2 frames
- Finish block does not run
Spell cast on NPC sitting in chair
- The NPC is not disabled, spell script runs normally
--Speedo 19:12, 28 July 2008 (EDT)
Disabling and Respawning ?
Will disabled actors respawn ? Right now, to remove actors from a particular cell, I move them to a remote cell. So if I disable them instead, will they respawn normally ? --shademe 09:28, 12 September 2008 (EDT)
- What is wrong with just moving them to a remote cell? Seems to me to be the simplest option, or is what you are doing more generic and you can't really keep track of where many Actors were? I highly doubt that disabled actors will respawn because they are still technically alive just in another state of being.
- --Antares 23:10, 15 October 2008 (EDT)
- Well, kyoma answered differently ! And to why I wan to disable them, is like what you said - I don't really want to track them... oh and btw, i was talking about disabling dead actors :) -- shademe 03:18, 16 October 2008 (EDT)