"management update"

And credits started to crash for no reason
This commit is contained in:
ShaffyYoutube 2019-04-15 19:35:51 +02:00
parent 1843773d67
commit fecacb3a2a
36 changed files with 94 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,89 @@
-- OamSizeTable = {};
-- for i = 1, 4 do
-- OamSizeTable[i] = {};
-- for j = 1, 5 do
-- OamSizeTable[i][j] = {0,0};
-- end
-- end
-- OamSizeTable[1][1] = {8,8};
-- OamSizeTable[1][2] = {16,8};
-- OamSizeTable[1][3] = {8,16};
-- OamSizeTable[2][1] = {16,16};
-- OamSizeTable[2][2] = {32,8};
-- OamSizeTable[2][3] = {8,32};
-- OamSizeTable[3][1] = {32,32};
-- OamSizeTable[3][2] = {32,16};
-- OamSizeTable[3][3] = {16,32};
-- OamSizeTable[4][1] = {64,64};
-- OamSizeTable[4][2] = {64,32};
-- OamSizeTable[4][3] = {32,64};
function ClearData()
local cleardataoffset = 0x02021000;
local clearentrycount = memory.readdword(cleardataoffset);
memory.writedword(cleardataoffset,0);
dataoffset = cleardataoffset + 4;
for i=0,clearentrycount-1,1 do
memory.writedword(cleardataoffset,0);
cleardataoffset = cleardataoffset + 4;
end
end
function DisplayData()
local dataoffset = 0x02021000;
local entrycount = memory.readdword(dataoffset);
dataoffset = dataoffset + 4;
for i=0,entrycount-1,1 do
-- local top = 256;
-- local bottom = -256;
-- local right = -256;
-- local left = 256;
-- local frameoffset = memory.readdword(memory.readdword(dataoffset));
-- local oamcount = memory.readword(frameoffset);
-- local oamoffset = frameoffset + 2;
-- for ii=0,oamcount-1,1 do
-- local oamy = memory.readbytesigned(oamoffset);
-- local oamx = memory.readbytesigned(oamoffset+2);
-- oamy = oamy + 130/2;
-- oamx = oamx + 240/2;
-- local oamsize = AND(SHIFT(memory.readshort(oamoffset+2),14),3)+1;
-- local oamshape = AND(SHIFT(memory.readshort(oamoffset),14),3)+1;
-- local oamwidth = OAMSizeTable[oamsize+1][oamshape+1][1];
-- local oamheight = OAMSizeTable[oamsize+1][oamshape+1][2];
-- local oamwidth = 8;
-- local oamheight = 8;
-- if(top > oamy) then
-- top = oamy;
-- end
-- if( bottom < oamy + oamheight) then
-- bottom = oamy + oamheight;
-- end
-- if(left > oamx) then
-- left = oamx;
-- end
-- if(right < oamx + oamwidth) then
-- right = oamx + oamwidth;
-- end
-- oamoffset = oamoffset + 6;
-- end
-- gui.box(left,top,right,bottom);
local entry = string.format("%X: %X",i,memory.readdword(dataoffset));
gui.text(0,i*8,entry);
dataoffset =dataoffset + 4;
end
end
while(true) do
local ButtonsPressed = input.get();
if(ButtonsPressed["backspace"]) then
ClearData();
end
DisplayData();
vba.frameadvance();
end

Binary file not shown.

View File

@ -1,6 +1,6 @@
.include lz77hack.asm
.include debug.asm
.if _skipwarningscreen==0
.if _skipwarningscreen==1
.org 0x08000454
.dw 0x089DD47C
.endif

View File

@ -92,7 +92,7 @@ rhcomp.exe Graphics/Drums/cc6ccc_drums_map.bin
rhcomp.exe Graphics/MusicSelect/CD62EC_musicselect_map.bin
rhcomp.exe Graphics/MusicSelect/CD6434_musicselect_warning_map.bin
armips.exe compile.asm -sym mysym.sym
flips.exe --apply "Patch\Font Hack 4 - 1px spacer.ips" "Game\rh-eng.gba"
flips.exe --apply "Others\Patch\Compile\Font Hack 4 - 1px spacer.ips" "Game\rh-eng.gba"
pause
compile.bat %1

View File

@ -11,6 +11,7 @@ bl Debug_UnlockAllStages_Hook
bl Debug_UnlockAllMail_Hook
.org 0x0801D656
bl Debug_99Medals_Hook
.endif
.if _skiprhythmtest==1
.org 0x0801CFC0
@ -19,8 +20,6 @@ nop
.if _debugmenu==1
.org 0x0801CFC0
.dw 0x089ddbcc
.endif
.dw 0x089DDBCC
.endif
;eof

Binary file not shown.

View File

@ -1045,4 +1045,5 @@
080B4DEE @@lz77compressed
080B4DF0 .pool
080B4DF0 .dbl:0000
0801CFC0 .dbl:0004