Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Super Mario World hacking: labmaster | 3 guests
Acmlm's Board - I2 Archive - Super Mario World hacking - How do I change the very first introduction pallettes ?
  
User name:
Password:
Reply:
 

UserPost
d4s
Posts: 233/325
heres how sprites are set up:

Byte 1 xxxxxxxx x: X coordinate
Byte 2 yyyyyyyy y: Y coordinate
Byte 3 cccccccc c: starting character (tile) number p: palette number
Byte 4 vhoopppc v: vertical flip h: horizontal flip o: priority bits
Note: the 'c' in byte 4 is the MOST significant bit in the 9-bit char #.

the 4 writes into the $0200 area represent these 4 sprite config bytes.
everytime the above routine is executed, one sprite is drawn.
that means this one here controls the y position of all sprites in the logo:
$00/93A4 A9 70 LDA #$70

and that one controls the palette:
$00/93AF A9 30 LDA #$30

[quote]*BMF54123 gives d4s the Super Awesome Award of SMW Hacking ExcellenceTM[/quote]

thanks.
however, i think that this is only a minor thing.
when i was done with the new intro for icemans hack, i just wanted to remove the original nintendo logo and the bling-sound asap.
a quick search for accesses to the apu ports and for writes to the oam data buffer in wram and i was done with it.
so this logo thingy was actually just a small side-effect of another hack.

btw, i dont like sprites pretending to be background layers that much. :>
unless i have no choice (mode7), i avoid it at all costs.

KP9000
Posts: 231/261
WTF? I see the code, it's right before my eyes, but I can't see what bytes to edit in the hex editor to change the palettes! And if I were to edit them in a hex editor, how would I go about doing that? Is it 3 bytes, for Red, Blue, and Green? BTW... If you open level C7, would you Enable Custom Palette? I'm guessing yes, but that does not do it for me...
BMF98567
Posts: 914/1261
Hey, neat. I believe that's the same code I hooked to add sprites to my intro way back when. I couldn't remember where it was located, and I wanted to change a few things...

*BMF54123 gives d4s the Super Awesome Award of SMW Hacking ExcellenceTM
d4s
Posts: 231/325
Originally posted by Juggling Joker
To actually answer the question, now. It's fairly simple to edit the palette, just pull up the demo level (I think it's C7 off the top of my head) and just change the first 8 colors of Mario's palette to whatever you need. It's as simple as that. You can't use anymore than the first 8 colors, which sucks, but until some smart guy comes along and fixes that we're stuck.


the sprites and palette number selection occurs here:
$00:939A

$00/939A A0 0C LDY #$0C A:0000 X:00FF Y:00FF P:eNvMXdizc
$00/939C A2 03 LDX #$03 A:0000 X:00FF Y:000C P:envMXdizc
$00/939E BD 89 93 LDA $9389,x[$00:938C] A:0000 X:0003 Y:000C P:envMXdizc
$00/93A1 99 00 02 STA $0200,y[$00:020C] A:0090 X:0003 Y:000C P:eNvMXdizc
$00/93A4 A9 70 LDA #$70 A:0090 X:0003 Y:000C P:eNvMXdizc
$00/93A6 99 01 02 STA $0201,y[$00:020D] A:0070 X:0003 Y:000C P:envMXdizc
$00/93A9 BD 8D 93 LDA $938D,x[$00:9390] A:0070 X:0003 Y:000C P:envMXdizc
$00/93AC 99 02 02 STA $0202,y[$00:020E] A:0008 X:0003 Y:000C P:envMXdizc
$00/93AF A9 30 LDA #$30 A:0008 X:0003 Y:000C P:envMXdizc
$00/93B1 99 03 02 STA $0203,y[$00:020F] A:0030 X:0003 Y:000C P:envMXdizc
$00/93B4 88 DEY A:0030 X:0003 Y:000C P:envMXdizc
$00/93B5 88 DEY A:0030 X:0003 Y:000B P:envMXdizc
$00/93B6 88 DEY A:0030 X:0003 Y:000A P:envMXdizc
$00/93B7 88 DEY A:0030 X:0003 Y:0009 P:envMXdizc
$00/93B8 CA DEX A:0030 X:0003 Y:0008 P:envMXdizc
$00/93B9 10 E3 BPL $E3 [$939E] A:0030 X:0002 Y:0008 P:envMXdizc


see where it fetches the sprite config data from?
now you can edit the palette number and tile numbers of the nintendo logo right away with a hexeditor.
have fun!
Juggling Joker
Posts: 895/1033
To actually answer the question, now. It's fairly simple to edit the palette, just pull up the demo level (I think it's C7 off the top of my head) and just change the first 8 colors of Mario's palette to whatever you need. It's as simple as that. You can't use anymore than the first 8 colors, which sucks, but until some smart guy comes along and fixes that we're stuck.
Smallhacker
Posts: 1709/2273
Originally posted by Juggling Joker
I've got no life, you see.


You're talking to a bunch of SMW hackers. NONE of us have got any lifes.
Juggling Joker
Posts: 893/1033
For the record, don't try to fix the tags in your own posts, that only super complicates matters when we're trying to clean up the mess. If you need a mod right away, just PM me or another SMW mod (or if a Full Mod or Admin is the only one on, PM them). I'll probably get to it fairly soon after you send it. I've got no life, you see.
ExKeeper
Posts: 328/512
mods: delete this thread

nad-gob: fix you layout and then remake this thread

or

nad-gob: fix your layout, and edit your posts in this thread with that new layout and tell me to remove the stuff in my posts that tried to fix the layout


Edit: never mind, it was already taken care of by JJ
Juggling Joker
Posts: 892/1033
Okay guys, this thing SHOULD be cleaned up. Nad-Gob, do NOT post until you get your layout fixed.
Xkeeper 2.0
Posts: 605/1091
WTF happened? ;
Smallhacker
Posts: 1708/2273
Fix... Your... Layout...
Nad-Gob
Posts: 86/94
Originally posted by smwedit
do you mean the "nintendo presents" palette?

Edit: why is my post in your post?


Yes
edit: layout removed.
ExKeeper
Posts: 325/512
do you mean the "nintendo presents" palette?

Edit: why is my post in your post?
Nad-Gob
Posts: 85/94
I know that his was on a thread somewhere on the Board, but I can't seem to find it. .

Can you still please help me ?

edit: layout removed.
Acmlm's Board - I2 Archive - Super Mario World hacking - How do I change the very first introduction pallettes ?


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.004 seconds.