Difference between revisions of "Category:Troubleshooting"

1,498 bytes added ,  11:09, 15 June 2007
Multiple Items with the Same Script
imported>Haama
(Oblivion Resets)
imported>Haama
(Multiple Items with the Same Script)
Line 235: Line 235:


Whenever the player closes an Oblivion gate, the entire Oblivion cell and everything inside of it is reset. This includes inventories of containers and NPCs, and for NPCs their spell list and location. It may also be possible that variables on world objects (containers, NPCs, activators, etc.) are also reset. See post 96 in the Gotchas! thread in the CS section of The Elder Scrolls Forum for links to threads containing more information and tips to avoid this problem. (sorry I can't just put in the links, something's not working quite right)
Whenever the player closes an Oblivion gate, the entire Oblivion cell and everything inside of it is reset. This includes inventories of containers and NPCs, and for NPCs their spell list and location. It may also be possible that variables on world objects (containers, NPCs, activators, etc.) are also reset. See post 96 in the Gotchas! thread in the CS section of The Elder Scrolls Forum for links to threads containing more information and tips to avoid this problem. (sorry I can't just put in the links, something's not working quite right)
== Adding Multiple Items with the Same Script ==
There are some oddities (well, the right words for it I won't use here) when you
#add two or more items
#with the same script
#to the same container
#at or about the same time.
<br>This seems to happen for several situations:
*You add an item, which in turn adds another item
**So I would guess it also includes using [[AddItem]] for two separate items
*An item that runs when the player adds them to a container, or the player takes them from a container
**For example, if you have 2 of an item in a container (same base object), and the player double-clicks them, thus adding one after the other, you'll hit this bug
**But using 'AddItem SomeItem 2' seems to work without hitting the bug
(Here are some more examples - the link isn't working right now)
<br>What exactly is going is anyone's guess, and the problems that can occur are very, very bizarre making them hard to trace. Also, the bug seems to be intermittent, sometimes working and sometimes not, and some scripts don't seem to run into the problem. The a few points to take away from this:
*Adding two or more items with the same script can produce weird results
*If you're adding multiple items and getting weird results, put a frame or two between when you add one and when you add the other
**In the right situation, you can avoid the problem by changing the [[Scriptname]] of the items
*If there is a possibility of the player running into this situation, be sure to test for it


= Debugging =
= Debugging =
Anonymous user