Difference between revisions of "Debug Scripts"

Jump to navigation Jump to search
35 bytes added ,  15:02, 13 November 2006
no edit summary
imported>AdiBeiElderScrolls
imported>AdiBeiElderScrolls
Line 88: Line 88:


----
----
''Unknown user comment''


But the script saved without any problems and ingame I didn't get a message that something went wrong. This is because the compiler frequently ignores extra parameters. For instance, these lines, while incorrect, compile fine:
:But the script saved without any problems and ingame I didn't get a message that something went wrong. This is because the compiler frequently ignores extra parameters. For instance, these lines, while incorrect, compile fine:


<pre>disable objectID 1
<pre>disable objectID 1
PickIdle My name is Bob</pre>
PickIdle My name is Bob</pre>


Yep, in fact, thats what I say. The GetCurrentAIPackage worked this time like a return function ... so it didn't execute any code above the first occurrence of GetCurrentAIPackage due to the use of no (valid) parameters ... just try
:Yep, in fact, thats what I say. The GetCurrentAIPackage worked this time like a return function ... so it didn't execute any code above the first occurrence of GetCurrentAIPackage due to the use of no (valid) parameters ... just try


<pre>GetCurrentAIPackage "AnyParameterNotValid-ButMaybeValidPackageName?"
<pre>GetCurrentAIPackage "AnyParameterNotValid-ButMaybeValidPackageName?"
PickIdle My name is Bob</pre>
PickIdle My name is Bob</pre>


Or  
:Or  


<pre>If ( GetCurrentAIPackage "AnyParameterNotValid-ButMaybeValidPackageName?" )
<pre>If ( GetCurrentAIPackage "AnyParameterNotValid-ButMaybeValidPackageName?" )
Line 107: Line 108:
; against invalid parameters</pre>
; against invalid parameters</pre>


So you see, some functions have unwanted behavior, not foreseen and others don't! But probably the circumstance, that object name was within apostrophes caused other unexpected event handling?  
:So you see, some functions have unwanted behavior, not foreseen and others don't! But probably the circumstance, that object name was within apostrophes caused other unexpected event handling?  
Details: Using localized german version, with Update German V1.1, Plugin Oblivion Deutsch 3.0, BTMod 2.20 - also maybe plugin malfunctions?
:Details: Using localized german version, with Update German V1.1, Plugin Oblivion Deutsch 3.0, BTMod 2.20 - also maybe plugin malfunctions?
[[User:AdiBeiElderScrolls|AdiBeiElderScrolls]] 14:14, 13 November 2006 (EST)


P.S.: Would have been nice, if you would have left a notice of yourself. Just add four times the ~ sign at the end of your message ... so I maybe able to contact and discuss with you ... thanks anyway for the comment ... made the nature of the problem more clear ;)
:P.S.: Would have been nice, if you would have left a notice of yourself. Just add four times the ~ sign at the end of your message ... so I maybe able to contact and discuss with you ... thanks anyway for the comment ... made the nature of the problem more clear ;)
 
:--[[User:AdiBeiElderScrolls|AdiBeiElderScrolls]] 15:02, 13 November 2006 (EST)


----
----

Navigation menu