Real Wildlife - script error?

Post » Sat Sep 12, 2009 12:49 pm

I've been getting CTDs recently (unusually, since these aren't usually a problem) and checking my warnings text I found this:

Script Error: EXPRESSION in RWT_TerrifyingDurzog
Left eval


.... which was the only error apart from the usual "One or more plugins..." and texture count warnings.

Anyway I found the script in question which seems quite short & simple:

Begin RWT_TerrifyingDurzogshort doOnceif ( doOnce > 1 )	Returnendifif ( doOnce == 1 )	if ( GetJournalIndex RWT_TerrifyingDurzog > 0 ) 		Set doOnce to 2		Enable	endif	Returnendifif ( doOnce == 0 )	Set doOnce to 1	DisableendifEnd

Can anyone see anything wrong with this please?

Unfortunately my scripting knowledge is about zero, so the only thing which looks odd to me is "GetJournalIndex RWT_TerrifyingDurzog", since I can't really see what this refers to.

Anyway any help would be appreciated, I'd kind of got used to no CTDs prior to venturing into Mournhold sewers so don't really want them happening again.... :huh:
User avatar
Andres Lechuga
 
Posts: 3406
Joined: Sun Aug 12, 2007 8:47 pm

Post » Sat Sep 12, 2009 6:08 pm

That shouldn't crash, but just in case, super-safe-mode version:
Begin "RWT_TerrifyingDurzog"short doOnceshort journalStateif ( doOnce > 1 )	returnelseif ( doOnce == 1 ) 	Set journalState To ( GetJournalIndex "RWT_TerrifyingDurzog" )	if ( journalState  > 0 ) 		Set doOnce to 2		Enable	endif	Returnelse	Set doOnce to 1	DisableendifEnd "RWT_TerrifyingDurzog"

User avatar
Neko Jenny
 
Posts: 3409
Joined: Thu Jun 22, 2006 4:29 am

Post » Sat Sep 12, 2009 9:05 pm

That shouldn't crash, but just in case, super-safe-mode version:
Begin "RWT_TerrifyingDurzog"short doOnceshort journalStateif ( doOnce > 1 )	returnelseif ( doOnce == 1 ) 	Set journalState To ( GetJournalIndex "RWT_TerrifyingDurzog" )	if ( journalState  > 0 ) 		Set doOnce to 2		Enable	endif	Returnelse	Set doOnce to 1	DisableendifEnd "RWT_TerrifyingDurzog"


Thanks, I'll change the script so hopefully won't have to worry about CTDs next time I go anywhere near the sewers (actually I got the crashes after leaving the sewers, but I'm guessing the script was still running & the game tripped up on it?)

Anyway thanks for your help with this/ for taking the time to rework the script..... :foodndrink:
User avatar
Neko Jenny
 
Posts: 3409
Joined: Thu Jun 22, 2006 4:29 am


Return to III - Morrowind