Users browsing this thread: 2 Guest(s)
Mega Drive/Genesis ripping tutorial
#9
This LUA script changes the background to magenta:

Code:
gens.registerbefore(function(address,size)
 local p,t=vdp.readpalette(1,1);
 local c=pal.getcolor(t[1],1);
 c.A=255;
 c.B=255;
 c.G=0;
 c.R=255;
 pal.setcolor(t[1],1,c);
 vdp.writepalette(1,t[1]);
end)

If you know how colour channels work you should be able to modify this to any colour you want. Magenta should be sufficient though.

Copy-paste that into a text file called "bg-change.lua". In the emulator go to Tools -> Lua Scripting -> New Lua Script Window. Click Browse and select bg-change.lua.
You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down, but the staying down. -Mary Pickford
Reply
Thanked by: eureka


Messages In This Thread
RE: Mega Drive/Genesis ripping tutorial - by Dazz - 11-11-2014, 03:42 PM
RE: Mega Drive/Genesis ripping tutorial - by puggsoy - 11-12-2014, 09:09 PM

Forum Jump: