Difference between revisions of "Debug Scripts"

Jump to navigation Jump to search
1,274 bytes removed ,  15:32, 13 November 2006
removing discussion
imported>AdiBeiElderScrolls
imported>Scruggs
(removing discussion)
</pre>
 
: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:▼
----
''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:
 
<pre>disable objectID 1
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
 
<pre>GetCurrentAIPackage "AnyParameterNotValid-ButMaybeValidPackageName?"
PickIdle My name is Bob</pre>
 
:Or
 
<pre>If ( GetCurrentAIPackage "AnyParameterNotValid-ButMaybeValidPackageName?" )
PickIdle My name is Bob
EndIf
; at least I used valid package names and didn't test it
; 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?
:Details: Using localized german version, with Update German V1.1, Plugin Oblivion Deutsch 3.0, BTMod 2.20 - also maybe plugin malfunctions?
 
: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)
 
----
 
===Ingame starting debug messages at defined points===
Anonymous user

Navigation menu