Help Please.

Post » Tue May 17, 2011 2:30 pm

I am in the process of re-writing some scripts for my delayer mods.

One of them is Gift of Kynareth. It appears that the download from Nexus is a 0.8 version in Wrye Bash.
I'm sure I created my delayer after I had cleaned it with TES4Edit, then opened the original mod in the newest CS and made my script changes. After saving, Bash now shows the mod as a version 1.0. But the delayer script doesn't appear to run in full.

The script halts with no error messages at the first new if block and doesn't progress any further.
I tested this by commenting out all the new code except the first if block, added a printc "before block" and a printc "after block". TDT shows "before block", but doesn't show "after block" and all vars are 0 when doing a sqv.

If I comment out all of the new script and uncomment the original, the script appears to run normally, i.e. a journal update appears immediately on loading. (This is with the original GoK edited with the new script.)

Anyone have any suggestions about what is going on? Also, I'm using OBSE v18. But I don't think that makes a difference.
User avatar
Samantha Pattison
 
Posts: 3407
Joined: Sat Oct 28, 2006 8:19 pm

Post » Tue May 17, 2011 10:41 am

What is the code for the if-block you have between your debug statements?
User avatar
Naomi Ward
 
Posts: 3450
Joined: Fri Jul 14, 2006 8:37 pm

Post » Tue May 17, 2011 6:42 am

What is the code for the if-block you have between your debug statements?

Thanks for the reply.

But :facepalm: I had a typo. Forgot to include a "rand" command. Script saved, but didn't run.
I'm so :swear: and :wacko: and :blush2:
User avatar
Scotties Hottie
 
Posts: 3406
Joined: Thu Jun 08, 2006 1:40 am

Post » Tue May 17, 2011 8:17 am

Just because it saved does not mean its valid. Some errors are not reported at save time. When the script is attempted to be run, the game will disable the script if its invalid.

Its a script language, not a fully functional programming language.
User avatar
Dustin Brown
 
Posts: 3307
Joined: Sun Sep 30, 2007 6:55 am


Return to IV - Oblivion