Sonic and Sega Retro Message Board: Palette Change, On The Fly - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Loading News Feed...
 
Page 1 of 1

Palette Change, On The Fly question...

#1 User is offline Hayate 

  Posted 23 February 2004 - 03:33 PM

  • Posts: 2355
  • Joined: 01-February 04
  • Gender:Male
  • Location:Torquay, England
  • Wiki edits:70
[removed, please see my next post in this topic for question]
This post has been edited by bobxp: 23 February 2004 - 04:03 PM

#2 User is offline Drakmyth 

Posted 23 February 2004 - 03:48 PM

  • Inspector Drakmyth Master at your service.
  • Posts: 420
  • Joined: 16-January 03
  • Location:In the void beneath the ancient maze...
  • Project:Sonic Eclipse 2, Return of the Hidden Palace, Unnamed Sonic 2 Hack
Yep...


I just don't know how. I think I read something similar in Saxman's hacking notes.

#3 User is offline Hayate 

Posted 23 February 2004 - 04:02 PM

  • Posts: 2355
  • Joined: 01-February 04
  • Gender:Male
  • Location:Torquay, England
  • Wiki edits:70
CRAP!

I've just noticed that changing the first row of any palette changes it for all the palettes! DAMN YOU SONIC 2 ENGINE!

That said, how do I:

a) change row 1 of the palette right after DEZ's title card disappears
b) change it back right before Silver Sonic explodes?

help would be appreciated :)

#4 User is offline Quickman 

Posted 23 February 2004 - 05:12 PM

  • Posts: 5558
  • Joined: 03-December 03
  • Gender:Male
  • Location::x
  • Project:omg porjcet
  • Wiki edits:10

Quote

a) change row 1 of the palette right after DEZ's title card disappears

You'll need to tag a little bit onto the title card object to check whether the level is DEZ or not and do a quick branch to a little code you wrote yourself which writes something different to the CRAM ($400000 IIRC).

Something like...
CMPI.B #0E,[offset in RAM for level value]
BEQ.S CustomCode
[...]
CustomCode:
LEA $400000,A0
MOVE.L [palette change],(A0)
[repeat as appropriate until however much palette is changed]
RTS

Quote

b) change it back right before Silver Sonic explodes?

Same deal as above, just change the label and what you load to the CRAM and tag it onto the Silver Sonic object right before its RTS command.

#5 User is offline Hayate 

Posted 23 February 2004 - 05:19 PM

  • Posts: 2355
  • Joined: 01-February 04
  • Gender:Male
  • Location:Torquay, England
  • Wiki edits:70
um... I don't do asm... I wanted a hex edit :P

still, good answer.

oh and... there's a title card object? So I could put one in the middle of a level? Weird...

#6 User is offline LOst 

Posted 23 February 2004 - 05:29 PM

  • Sonic 2 HD - Lead Programmer
  • Posts: 4877
  • Joined: 10-January 03
  • Gender:Male
  • Wiki edits:2

bobxp, on Feb 24 2004, 01:19 AM, said:

um... I don't do asm... I wanted a hex edit :P

still, good answer.

oh and... there's a title card object? So I could put one in the middle of a level? Weird...

ESE should be able to edit all the palettes. I may be wrong.

#7 User is offline Hayate 

Posted 23 February 2004 - 05:57 PM

  • Posts: 2355
  • Joined: 01-February 04
  • Gender:Male
  • Location:Torquay, England
  • Wiki edits:70
OMG! LOst didn't read!

Quote

a) change row 1 of the palette right after DEZ's title card disappears
b) change it back right before Silver Sonic explodes?


Plain Sonic 2 doesn't change the palettes at those moments in time - so why should there be a palette for me to change? :)

#8 User is offline Rika Chou 

Posted 23 February 2004 - 05:59 PM

  • Adopt
  • Posts: 4966
  • Joined: 11-January 03
  • Gender:Not Telling
  • Location:CA US
  • Wiki edits:4

bobxp, on Feb 23 2004, 08:57 PM, said:

OMG! LOst didn't read!

Quote

a) change row 1 of the palette right after DEZ's title card disappears
b) change it back right before Silver Sonic explodes?


Plain Sonic 2 doesn't change the palettes at those moments in time - so why should there be a palette for me to change? :)

There are certain object tags that are used to change the pallet. I believe one is used in WFZ. Try putting that object in DEZ.

#9 User is offline Quickman 

Posted 23 February 2004 - 06:15 PM

  • Posts: 5558
  • Joined: 03-December 03
  • Gender:Male
  • Location::x
  • Project:omg porjcet
  • Wiki edits:10

Rika Chou, on Feb 23 2004, 10:59 PM, said:

There are certain object tags that are used to change the pallet. I believe one is used in WFZ. Try putting that object in DEZ.

If memory serves me correctly that object only affects a certain palette and in a certain way. For whatever change Bob needs he'll need to change the object to his own requirements.

#10 User is offline Hayate 

Posted 23 February 2004 - 06:16 PM

  • Posts: 2355
  • Joined: 01-February 04
  • Gender:Male
  • Location:Torquay, England
  • Wiki edits:70

Rika Chou, on Feb 23 2004, 10:59 PM, said:

Try putting that object in DEZ.

Em... which object? :huh:

#11 User is offline LOst 

Posted 23 February 2004 - 06:37 PM

  • Sonic 2 HD - Lead Programmer
  • Posts: 4877
  • Joined: 10-January 03
  • Gender:Male
  • Wiki edits:2

bobxp, on Feb 24 2004, 02:16 AM, said:

Rika Chou, on Feb 23 2004, 10:59 PM, said:

Try putting that object in DEZ.

Em... which object? :huh:

Go to the archives forum. Look for the WFZ thread

#12 User is offline Fiz 

Posted 23 February 2004 - 06:44 PM

  • FACKIN' BIG PENIS
  • Posts: 1985
  • Joined: 17-August 03
  • Gender:Male
  • Project:PENIS
Yeah. There are two topics in the archieves about the WFZ Pallete change object. There is one by me, and one by BtCE.

Page 1 of 1
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users