Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Simple script causes bug (but has no obvious problems?)

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Mystic




Joined: 26 Feb 2005
Posts: 16

PostPosted: Mon Jul 14, 2008 11:58 pm    Post subject: Simple script causes bug (but has no obvious problems?) Reply with quote

Code:
plotscript, nighttime, begin
  if(check tag(3)) then(
    reset palette
    tweak palette (-25,-25,-10)
    update palette
  )
end


causes this in in g_debug.txt

WANTIMMEDIATE BUG
nighttime terminated, setting wantimmediate on startup
wantimmediate ended on nowscript = -1


I haven't noticed any problems with it, but BUG in all caps just can't be good. What's wrong with the script? (It works as I'd like it when testing)[/code]
Back to top
View user's profile Send private message
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Tue Jul 15, 2008 1:09 am    Post subject: Reply with quote

Nothing is wrong with your script. The bug that's mentioned is an engine bug.

That big scary message in g_debug.txt is mostly just for the developers. Maybe it should be removed, because it's scaring everyone. The problem is that there is/was a bug with the way scripts are triggered that could cause wait's to be skipped, or cause error messages. It was fixed, but then discovered that some people actually rely on the buggy behaviour. Opps: ever since, we haven't been able to decide whether to leave the bug in, or fix it. Unfortunately, nightlies and stable releases behave differently.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group