News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

Pallet repointing SM

Started by master86, May 11, 2015, 04:54:18 AM

Previous topic - Next topic

master86

I hope this is the right place for this.
I repointet the frist pallete to this place E0 8F F0 = F0 8F E0 =
And the bank is not above the orther bank E0 gos to 308000
Now tells me smile sub script out of range if i open up back my rom with the repointet pallete.
XD i found my error by my self.
I dont whant open another tread same question this time another adr.=3010E0 is the pallet pointet but this dont work
smile tells me E0  10 E0 But it show another pallet not the second pallete

Scyzer

Make sure you're changing the correct bytes for the palette pointer. The pointers for tilesets start at $8FE6A2. 9 bytes per tilesets, 3 bytes per pointer (table, tiles, palette). That means the palette pointer for the first tileset is at $8FE6A8. The second tileset's palette is 9 bytes after that, at $8FE6B1, and so on.

The pointers you put in also need to be correct. $E010E0 is not a valid pointer. If you want to put your palette at 3010E0, the pointer is E090E0. Add 8000 to the address if it's below 8000.

In any case, simply changing the palette pointer shouldn't crash SMILE, even if the pointer is broken. You've probably done something else to break your ROM.

master86

thx for the tip i dont change anything it crashed after i write it at $E010E0 and dont but the right bank at the offset.
I use lunar address it works for me with this tool.

Mettyk25jigsaw

It looks like the problem is with your pointer, you have E010E0 when it should really be E090E0.

Pointers always Start with an 8 or above inc. both the bank and the first bit of the value after the bank, for example if you have a ptr of E08000, that would paste at 30'0000.
So if the PC Address starts between 30'0000 and 30'7FFF, to convert it to Lunar, you must add $8000 bytes to the address. If PC address is already above 8, then don't add anything, keep it the same.

E0 ---- goes from 30'0000 to 30'7fff
E1---- goes from 30'8000 to 30'ffff

JAM

master86
To understand why you should add $8000, read more about Lunar address and especially about LoROM format.

I guess it's time to release a smart palette repoint patch. Just in OP's case.

master86

I read more about this yesderday and to Mettyk25jigsaw your dont need to make anthing on lunar adress if your chose the second option.
And one question to jam can your repoint please 16 - 21 or is the somthing spezial on this platte i dont see any patch how repoint this.
second question way repointet dso at his frist dsotileset and palette repoint patch only the size of dc for the frist pallete.
the size is E1 right?

Mettyk25jigsaw

I'm not exactly sure what you're saying, but I am guessing you are saying what I've already said, that is, if you have a pc address of something like 308000, then you don't need to add $8000 to the ptr, that is correct, but is what I said. However this pc address is not Bank $E0, it is Bank $E1. A pc address of 300000 is Bank $E0, hope this helps...