News:

11 March 2016 - Forum Rules

Main Menu

YY-CHR and palettes

Started by SunGodPortal, January 25, 2015, 10:54:54 PM

Previous topic - Next topic

SunGodPortal

I'm totally new to YY-CHR. Lots of people seem to like it so I figured I give it a try. I'm wondering what is the best way to get the right palette for the graphics I want to fiddle with. I noticed the "Load Emulator state file" in the palette options so I thought "Okay. I'll just make a save state in Zsnes and load that". I did but it's showing the wrong colors. I'm sure there were multiple palettes in the save state so I guess what I'm wondering is how do I switch between them? Or, have I just got the wrong idea here?


Okay. Nevermind. I finally got it to work. I thought all of the palettes on the right were running vertically but they were horizontal. That explains why none of them look like the right ones. I keep clicking on the top row expecting it to change and didn't figure it out until I just clicked on a random color a few rows down. DUR
Cigarettes, ice-cream, figurines of the Virgin Mary...

thainferno305

hi im using yy-chr and when i place the pallette in the program and when i test the rom the colors are messed up i need help 2 correct the colors please

SunGodPortal

Cigarettes, ice-cream, figurines of the Virgin Mary...

vortex

Quote from: thainferno305 on April 10, 2016, 04:04:08 PM
hi im using yy-chr and when i place the pallette in the program and when i test the rom the colors are messed up i need help 2 correct the colors please
This procedure is always the same, no matter which game you hack. You need to first get the Palette file - this is actually the ZST save state of the ZSNES emulator. But there is a trick. You need to have the desired sprite or object on screen while playing. For instance you want to edit a boss and have the correct pals, then you need to play the game until you reach that boss, and make a save state with ZSNES.

Now load your GFX file, go to the boss gfx and load the ZST save state (boss was on screen). Now press the small arrow-thing pointing down to scroll between 8 or is it 16 different palettes available for this ZST. Once of these palattes matches to the original palettes of this boss.

Same for objects and other gfx.

nesrocks

I believe his problem is that he doesn't understand that the paletes in yy-chr are only for reference. You don't actually change the game's palete in yy-chr. You use an hex editor or dedicated program for that. Or am I wrong and yy-chr allows palete editing to be saved on the rom? My understanding is that it does not.

dougeff

Nesrocks is right. YY-CHR can't change the palette of the actual game.
nesdoug.com -- blog/tutorial on programming for the NES

thainferno305

I'm Trying To MAKE My Own Mario Kart Hack AND Everytime I Put THE Pallette IN THE Yy-chr OR Tlp THE Pallette Fits BUT WHEN I Test It THE CHaracter COlors Are NOT correct

dougeff

Neither YY-CHR, nor TLP can change the palette of the actual game.

You need to locate the palette in the ROM, and edit it with a hex editor.
nesdoug.com -- blog/tutorial on programming for the NES

vortex

Quote from: thainferno305 on April 10, 2016, 09:46:57 PM
I'm Trying To MAKE My Own Mario Kart Hack AND Everytime I Put THE Pallette IN THE Yy-chr OR Tlp THE Pallette Fits BUT WHEN I Test It THE CHaracter COlors Are NOT correct
But have you read my reply. My described method will make the display of palettes in YY CHR and the actual game (when you test) the same, ie with my method the palettes will match.

And no, you can not edit palettes with YY chr.

My guess is, you did not follow my procedure before editing, then edited the charasters before having the correct ZST and now the pals are messed up. Like Nesrocks said, palettes in YY chr are just for reference. You need to know which colour will be display in the game.

But you can still fix this: get the correct ZST and load the pals which will match between YYchr and the actual game display (this can be made, but before any gfx editing) or use the repixeling strategy in combination with the hex editor to fix them.


thainferno305

i dont know how to do that i even try hex editing with the fceugx emulator and nothing

dougeff

thainferno305,

Did you find the palette in the hex editor (view = ROM) ?

Did you edit the palette and save the file?

Changing the palette in the ROM will not have an immediate visual change in-game, unless you're at a point in the game where it loads the palette to the PPU (beginning of a level, for example).
nesdoug.com -- blog/tutorial on programming for the NES