View previous topic :: View next topic |
Author |
Message |
Onlyoneinall Bug finder
Joined: 16 Jul 2005 Posts: 746
|
Posted: Tue Dec 25, 2007 5:23 pm Post subject: Brightness changes (master palette change) script |
|
|
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 |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed Dec 26, 2007 6:53 am Post subject: |
|
|
Thanks for the bug report. I'll look at what's happening tomorrow... _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Onlyoneinall Bug finder
Joined: 16 Jul 2005 Posts: 746
|
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed Dec 26, 2007 7:03 pm Post subject: |
|
|
Well, everything is working for me. Could you post your scripts? _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Onlyoneinall Bug finder
Joined: 16 Jul 2005 Posts: 746
|
Posted: Thu Dec 27, 2007 7:49 am Post subject: |
|
|
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.  _________________ http://www.castleparadox.com/gamelist-display.php?game=750 Bloodlust Demo 1.00
 |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Thu Dec 27, 2007 5:48 pm Post subject: |
|
|
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 |
|
 |
Onlyoneinall Bug finder
Joined: 16 Jul 2005 Posts: 746
|
Posted: Fri Dec 28, 2007 12:17 am Post subject: |
|
|
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 |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Fri Dec 28, 2007 12:07 pm Post subject: |
|
|
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 |
|
 |
Onlyoneinall Bug finder
Joined: 16 Jul 2005 Posts: 746
|
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Thu Jan 03, 2008 6:45 pm Post subject: |
|
|
Onlyoneinall wrote: | Just let me know what it is I can do after to make things work out.  |
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 |
|
 |
|