Posted by N.
in lua scripts for Bizhawk (06-29-23) (Started by N. June 21, 2021, 11:06:10 pm
Board: Resource Releases
Board: Resource Releases
https://www.mediafire.com/file/s0t18rjyaoqjztg/snes_color_test.lua/file
Script 1: 16-bit color tool
It's like GBA color tool and buddmelvin's color converter. You take a 24-bit color value you got from a screenshot, use this to set the three color channels as close as you can without going over, and try searching for the 16-bit color value it gives you. This doesn't take into account flipped color channels, or sometimes having to add 0x8000 to the value for PSX games (not always, but it's a thing that happens). What you could use this for: SNES, GBA, Arcade, PSX, Saturn, etc. This one's used quite a bit.
https://www.mediafire.com/file/ipbywu80uov193z/genesis-segacd_color_test.lua/file
Script 2: Sega Genesis/CD color tool
This one's kinda weird with how I had to set it up because it only uses 1 1/2 bytes for the 3 color channels. It'll probably display weird because it's set up for Genesis.
These could someday be usable in Bizhawk, so I made them in case that ever happens.
https://www.mediafire.com/file/p6308k2t7c4mq8i/ms_dos_color_test.lua/file
Script 3: MS-Dos color tool (whatever games I had to load up in Dosbox anyways. The arcade version of Battletoads uses this)
There was a point in time that this would've been very useful to me.
https://www.mediafire.com/file/agf963n2g19xd57/cps2_color_test.lua/file
Script 4: CPS2 color tool
If Bizhawk ever lets you have access to the colorram/palram for CPS2 games, this might somehow be something resembling useful then. Might. This works backwards because of color values repeating at various points (you set the half bytes to a 16-bit value, and it tells you the decimal values to that color channel). You should probably set white to 0x0F first and go from there.
When I tried this with SFA, I wasn't able to use MAME's cheat search to find these color values, but when I went to the addresses the colorram's at I found 2 color addresses using the values from the screenshot and eyeballing the value the tool gave me.
Edit: I've changed the orientation of the hex values for the CPS2 tool. Should've been like that from the start, TBH. I also fixed the cursor getting cropped because of my trying to avoid using drawbox.