Editing Causes of CTDs

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 52: Line 52:
End
End
</pre>
</pre>
===BuildRef might not return what you expect===
The [[BuildRef]] function allows you to reference assets of an external mod without making that mod a master to your own plugin. However, it can potentially return an invalid or unexpected reference, and crash the game if you do not bother to check for this. See the [[BuildRef]] function article for full details.


===Unexpected returns during immediate game start up===
===Unexpected returns during immediate game start up===
Line 60: Line 57:


===Invalid string formatting===
===Invalid string formatting===
Using invalid [[String Formatting|format specifiers]] or mismatched number of arguments to format may crash the game (and at best the script), for example:
Using invalid format specifiers or mismatched number of arguments to format may crash the game (and at best the script), for example:
<pre>
<pre>
DebugPrint "GunScript %n: Shooting %2.0 bullets" rActor iBullets
DebugPrint "GunScript %n: Shooting %2.0 bullets" rActor iBullets
; you meant "%2.0f" but missed the f
; you meant "%2.0f" but missed the f
</pre>
</pre>
If using NVSE, it is safer to use string concatanation and the [[ToString]] function where possible, instead of formatting. See [[String Variable]] for more information.


===Invalid And/Or syntax for conditions===
===Invalid And/Or syntax for conditions===

Please note that all contributions to the Fallout3 GECK Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see GECK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)