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

Brightness changes (master palette change) script

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




Joined: 16 Jul 2005
Posts: 746

PostPosted: Tue Dec 25, 2007 5:23 pm    Post subject: Brightness changes (master palette change) script Reply with quote

How do I make it so that I change a master palette (for brightness settings) and make it stay that way permanently, at least for the duration of the play? I used the load palette command, but any other script that tweaks the palette automatically changes the master palette back to the original/main and tweaks it from there, not the current set master palette. Is there a way around this?
_________________
http://www.castleparadox.com/gamelist-display.php?game=750 Bloodlust Demo 1.00

Back to top
View user's profile Send private message Send e-mail
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Wed Dec 26, 2007 6:53 am    Post subject: Reply with quote

Thanks for the bug report. I'll look at what's happening tomorrow...
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Onlyoneinall
Bug finder




Joined: 16 Jul 2005
Posts: 746

PostPosted: Wed Dec 26, 2007 3:05 pm    Post subject: Reply with quote

Oh! That's a surprise! :o Glad I could be of help Raspberry!
_________________
http://www.castleparadox.com/gamelist-display.php?game=750 Bloodlust Demo 1.00

Back to top
View user's profile Send private message Send e-mail
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Wed Dec 26, 2007 7:03 pm    Post subject: Reply with quote

Well, everything is working for me. Could you post your scripts?
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Onlyoneinall
Bug finder




Joined: 16 Jul 2005
Posts: 746

PostPosted: Thu Dec 27, 2007 7:49 am    Post subject: Reply with quote

Code:
script,brightness1,begin
load palette (1)
update palette
end

This script changes the master palette to make it brighter.

But when this script runs...
Code:

script,dark1,begin
if (check tag (134))
then,begin
end
else,begin
reset palette
tweak palette (-1,-1,-1)
update palette
end
end

Then it is altered. I'm guessing maybe the reset palette command is the culprit? However, it is a necessity for my game's "lighting system" because it's not supposed to keep getting darker when that script is activated, just to a certain level. So assuming this isn't actually a bug and just a result of the command, back to my original question I suppose. Raspberry!
_________________
http://www.castleparadox.com/gamelist-display.php?game=750 Bloodlust Demo 1.00

Back to top
View user's profile Send private message Send e-mail
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Thu Dec 27, 2007 5:48 pm    Post subject: Reply with quote

You're meant to use loadpalette(#) instead of resetpalette to revert to a non-default palette. However, now I'm wondering if this behaviour should be changed - hardly anyone is likely to have used those commands in combination so far.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Onlyoneinall
Bug finder




Joined: 16 Jul 2005
Posts: 746

PostPosted: Fri Dec 28, 2007 12:17 am    Post subject: Reply with quote

Would be nice. My game is the only one I know that uses that combination for its 'lighting system' + 'brightness adjusting'. I think reset palette shouldn't set it back to the default master palette. Perhaps a command that DOES do that, but reset palette affects only the current loaded palette?
_________________
http://www.castleparadox.com/gamelist-display.php?game=750 Bloodlust Demo 1.00

Back to top
View user's profile Send private message Send e-mail
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Fri Dec 28, 2007 12:07 pm    Post subject: Reply with quote

Or we could rename it to 'reset to default palette' and add 'reset palette'. Still, it's not really a needed command at all, and the current command very clearly documented with what it. Maybe we could add a command returning the last palette loaded, for convenience.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Onlyoneinall
Bug finder




Joined: 16 Jul 2005
Posts: 746

PostPosted: Fri Dec 28, 2007 5:30 pm    Post subject: Reply with quote

Whatever you think works best is cool with me. Just let me know what it is I can do after to make things work out. Happy
_________________
http://www.castleparadox.com/gamelist-display.php?game=750 Bloodlust Demo 1.00

Back to top
View user's profile Send private message Send e-mail
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Thu Jan 03, 2008 6:45 pm    Post subject: Reply with quote

Onlyoneinall wrote:
Just let me know what it is I can do after to make things work out. Happy


Use loadpalette. I think it's best to just add a command to return the last loaded palette and add a note to the plot dictionary.
_________________
"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