Difference between revisions of "Common Bugs"

1,318 bytes added ,  15:07, 31 March 2009
→‎Weight Updates: added MoveTo Oddities
imported>HawkFest
(Wrong: I have a script which adds 7 items during the same frame to a container without prob., more over this takes place while 4 other containers in the same cell add 3 items to themselves,)
imported>Dev akm
(→‎Weight Updates: added MoveTo Oddities)
Line 107: Line 107:
== Weight Updates ==
== Weight Updates ==
The encumbrance of the player won't be updated if you change the weight of an object (SetQuestObject, SetWeight, etc.). You can add/remove an item to force an update.
The encumbrance of the player won't be updated if you change the weight of an object (SetQuestObject, SetWeight, etc.). You can add/remove an item to force an update.
== MoveTo Oddities ==
When using MoveTo, you should be careful to avoid several problematic situations, described below.
=== MoveTo Crash on Loading Destination Cell ===
This bug is triggered when an object script causes a quest update that moves the player to another location. The game freezes on loading the MoveTo destination. Workaround is to have the object script add a scripted ability to the player and then have the ability script trigger the quest update containing the MoveTo.
=== MoveTo in Dialogue Result Script ===
Using MoveTo on the player in a dialogue result script triggers in a hidden bug that silently causes the player's viewing axis to be inverted. The player speaks to the NPC and the screen does a violent spinning motion on the viewport as they're zoomed in for dialogue. This is the only way you'll know that the bug has struck. If the player does not speak to another NPC before saving, then reloading that save will cause the game's viewport to be inverted. The ground will be on top, the sky on the bottom. Moving about becomes difficult or impossible. The affected savegame will probably not be salvageable. Do not use MoveTo in a dialogue result script. Instead, set variables in an NPC or quest script and use those variables to determine where your script should move the player.




[[Category:Troubleshooting]]
[[Category:Troubleshooting]]
Anonymous user