Users browsing this thread: 1 Guest(s)
Patch: allowing use of "reserved" palette colors for player characters

#24
Posts: 45
Threads: 4
Thanks Received: 7
Thanks Given: 1
Joined: Jul 2013
Reputation: 4
Status
None
http://bitshare.com/files/dv2hs1en/expan....0.7z.html

"Final" version. I'll wait a short while for feedback, and see if I need to do a revision.

It should be fully compatible with new expanded sprites, like the one Edrin showed off in his recent tutorial.

You can now clear the cache by pressing L+R+SELECT on the main menu. This will fix bugs that might occur if you alter your sprites, and the load a save game you saved before you altered your sprites. See the readme for more details.

By the way, I abandoned the idea of doing a version for a non-expanded ROM, for various reasons. There is info in the readme on how to relocate the code, and you could move it to a non-expanded region if you want to. But I'd prefer not to use up that space.

As requested by Edrin, I'm going to post the hex code for a version of the main function, altered for relocation to F4/E000. I'll also post the default version, for location F0/0000. If you compare these, you should be able to figure out which bytes are absolute-address pointers, and how you would need to offset them to move the function again. That is, if you would prefer to do it by hand.

There are instructions in the readme for assembling the included source code, in order to relocate it (or for any other reason). So, you can do that. But, I'm posting the two versions anyway, since that's easy for me to do.

Version for F0/0000:
Code:
C9FFD0016B8514861CAAA5104848DAA6
1C861AA51485130A186514AAA9C28516
8BA97F48ABBF45CEC28512C220BF43CE
C28510A945C78514A61AA90001851AA9
10008518A714C9FFFFD00C7B9D0000E8
E8C618D0F7800EA8B7109D0000E8E8C8
C8C618D0F3E614E614C61AD0D27BE220
A61CA9408512BDC0030A66100A66100A
66100A66100A66100A66100A66100A66
10A5109DC003BDC0100A66100A66100A
66100A66100A66100A66100A66100A66
10A5109DC010E8C612D0BBABFA680A0A
0A0A0A08C23048DA5AA90000E230AF8E
7E30D006A9FF8F8E7E30A513C230C917
00100F0AAA48BF007E30F03F851AFA4C
0502E220A20000A88AC91FF01098DF2E
7E30F019BF2E7E30F003E880EB989F2E
7E30C2208A0A18694E0048800EC2208A
0AAABF4E7E30851A4C0502A9C300851A
A21E00E22064196418C220A51C186900
208510A97F008512C220A510290F00D0
08A51038E910008510C610C610A00000
E220A9028514A9FF85158A2514F004A9
008002A9FF571025158515F0110614C8
98C912F009C902D0E1A0100080DCE220
A515F016C220A51A1F7404F0851A8AC9
1800300EE220E6198008C220A510C51C
D096C2208AC91800100CA51A3F7404F0
D004E220E618C220CACA8AC90000F02C
A51A3F7404F0D0EE8AC918001019E220
A518C519D011C220A51A1F7404F0851A
CACA8A10F18005C2204C3901C220A51A
FA9F007E30E220A90085138514851585
16C220A20000A51A3F7404F0F00BE8E8
8AC91800D0F04CAE029BA21800A51A3F
7404F0D00BE8E88AC92000D0F04CAE02
E230A513D0118A4A0A0A0A0A8513984A
051385134C9602A514D0118A4A0A0A0A
0A8514984A051485144C9602A515D011
8A4A0A0A0A0A8515984A051585154C96
02A516D0298A4A0A0A0A0A8516984A05
1685164C9602C230DABBBF7404F0451A
851AFABF7404F0451A851A4C1302E230
A513D0034C5D03C230A51C1869002085
10E230A97F8512C230C230A510290F00
D008A51038E910008510C610C610E230
A200A011A9FF8518A9808519BF130000
D0034C52032519F004A9008002A9FF57
102518F044851898C900F00EC910D004
A00180018846194CEC02A000A9018519
BF1300002519F008B710051897108008
A9FF451837109710C898C912F00BC902
D002A01006194C2003E88AC904F0034C
E202C230A510C51CF0034CC902C2307A
FA6828DAAABDAE2EC90ED012BDC62EC9
01D00BADA01E2908F004FA7B8005FABF
2BCEC2C2200A0A0A0A0AAA7BE220680A
0A0A0A0AA85AA9188510BF0063ED99AD
81E8C8C610D0F308C23048DA5A8A38E9
1800851A9838E91800851CA51329FF00
4A4A4A4A0A18651AAAA513290F000A18
651CA8E220BF0063ED99AD81E8C8BF00
63ED99AD81C220A51429FF004A4A4A4A
0A18651AAAA514290F000A18651CA8E2
20BF0063ED99AD81E8C8BF0063ED99AD
81C220A51529FF004A4A4A4A0A18651A
AAA515290F000A18651CA8E220BF0063
ED99AD81E8C8BF0063ED99AD81C220A5
1629FF004A4A4A4A0A18651AAAA51629
0F000A18651CA8E220BF0063ED99AD81
E8C8BF0063ED99AD81C2207AFA6828FA
FEC4616B010002000400080010002000
40008000000100020004000800100020
00400080

Version for F4/E000:
Code:
C9FFD0016B8514861CAAA5104848DAA6
1C861AA51485130A186514AAA9C28516
8BA97F48ABBF45CEC28512C220BF43CE
C28510A945C78514A61AA90001851AA9
10008518A714C9FFFFD00C7B9D0000E8
E8C618D0F7800EA8B7109D0000E8E8C8
C8C618D0F3E614E614C61AD0D27BE220
A61CA9408512BDC0030A66100A66100A
66100A66100A66100A66100A66100A66
10A5109DC003BDC0100A66100A66100A
66100A66100A66100A66100A66100A66
10A5109DC010E8C612D0BBABFA680A0A
0A0A0A08C23048DA5AA90000E230AF8E
7E30D006A9FF8F8E7E30A513C230C917
00100F0AAA48BF007E30F03F851AFA4C
05E2E220A20000A88AC91FF01098DF2E
7E30F019BF2E7E30F003E880EB989F2E
7E30C2208A0A18694E0048800EC2208A
0AAABF4E7E30851A4C05E2A9C300851A
A21E00E22064196418C220A51C186900
208510A97F008512C220A510290F00D0
08A51038E910008510C610C610A00000
E220A9028514A9FF85158A2514F004A9
008002A9FF571025158515F0110614C8
98C912F009C902D0E1A0100080DCE220
A515F016C220A51A1F74E4F4851A8AC9
1800300EE220E6198008C220A510C51C
D096C2208AC91800100CA51A3F74E4F4
D004E220E618C220CACA8AC90000F02C
A51A3F74E4F4D0EE8AC918001019E220
A518C519D011C220A51A1F74E4F4851A
CACA8A10F18005C2204C39E1C220A51A
FA9F007E30E220A90085138514851585
16C220A20000A51A3F74E4F4F00BE8E8
8AC91800D0F04CAEE29BA21800A51A3F
74E4F4D00BE8E88AC92000D0F04CAEE2
E230A513D0118A4A0A0A0A0A8513984A
051385134C96E2A514D0118A4A0A0A0A
0A8514984A051485144C96E2A515D011
8A4A0A0A0A0A8515984A051585154C96
E2A516D0298A4A0A0A0A0A8516984A05
1685164C96E2C230DABBBF74E4F4451A
851AFABF74E4F4451A851A4C13E2E230
A513D0034C5DE3C230A51C1869002085
10E230A97F8512C230C230A510290F00
D008A51038E910008510C610C610E230
A200A011A9FF8518A9808519BF130000
D0034C52E32519F004A9008002A9FF57
102518F044851898C900F00EC910D004
A00180018846194CECE2A000A9018519
BF1300002519F008B710051897108008
A9FF451837109710C898C912F00BC902
D002A01006194C20E3E88AC904F0034C
E2E2C230A510C51CF0034CC9E2C2307A
FA6828DAAABDAE2EC90ED012BDC62EC9
01D00BADA01E2908F004FA7B8005FABF
2BCEC2C2200A0A0A0A0AAA7BE220680A
0A0A0A0AA85AA9188510BF0063ED99AD
81E8C8C610D0F308C23048DA5A8A38E9
1800851A9838E91800851CA51329FF00
4A4A4A4A0A18651AAAA513290F000A18
651CA8E220BF0063ED99AD81E8C8BF00
63ED99AD81C220A51429FF004A4A4A4A
0A18651AAAA514290F000A18651CA8E2
20BF0063ED99AD81E8C8BF0063ED99AD
81C220A51529FF004A4A4A4A0A18651A
AAA515290F000A18651CA8E220BF0063
ED99AD81E8C8BF0063ED99AD81C220A5
1629FF004A4A4A4A0A18651AAAA51629
0F000A18651CA8E220BF0063ED99AD81
E8C8BF0063ED99AD81C2207AFA6828FA
FEC4616B010002000400080010002000
40008000000100020004000800100020
00400080

Do I need to ask permission to post this to the "IPS patches" forum? And does anyone have a suggestion for a better place to upload the zip file? Or another site to submit the patch to. I know about romhacking.net.
  Find
Quote  



Messages In This Thread
RE: Patch: allowing use of "reserved" palette colors for player characters - by Eggers - 08-17-2013, 09:45 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite