07-29-2014 01:24 AM
12-13-2014 09:55 AM
12-13-2014 12:10 PM
/* ReadDolphinMap.idc
Loads .map files generated by dolphin.
Carl Kenner, 2012
*/
#include <idc.idc>
static main(void)
{
auto fh;
auto fname;
auto pusha, popa;
auto start, end;
auto success;
auto count;
auto line;
auto ea; // column 1
auto name; // column 30
auto p;
auto code;
fname = AskFile(0,"*.map","Load a .map file from Dolphin emulator...");
fh = fopen(fname, "r");
if (fh == 0) {
Message("Can't open %s\n", fname);
return;
}
Message("Loading %s dolphin map file:\n", fname);
for (count = 0; 1; count++) {
line = readstr(fh);
if (line == -1)
break;
if (strlen(line)>30 && line[0]!=" ") {
ea = xtol(substr(line,0,8));
name = substr(line,29,strlen(line)-1);
if (substr(name,0,3)!="zz_") {
if (!MakeNameEx(ea,name,SN_NOCHECK | SN_PUBLIC | SN_NON_AUTO |SN_NOWARN)) {
MakeNameEx(ea,name+"_2",SN_NOCHECK | SN_PUBLIC | SN_NON_AUTO );
}
Message("ea='%x', name='%s'\n", ea, name);
} else {
MakeNameEx(ea,name,SN_NOCHECK | SN_PUBLIC | SN_AUTO | SN_WEAK | SN_NOWARN);
}
} else if (strlen(line)>30) {
ea = xtol(substr(line,18,18+8));
p = strstr(line, " \t");
if (p>=30 && ea!=0) {
name = substr(line,30,p);
code = substr(line,p+2,strlen(line));
SetFunctionCmt(ea, code, 0);
if (!MakeNameEx(ea,name,SN_NOCHECK | SN_PUBLIC | SN_NON_AUTO |SN_NOWARN)) {
MakeNameEx(ea,name+"_2",SN_NOCHECK | SN_PUBLIC | SN_NON_AUTO );
}
}
}
}
Message("Dolphin map file done.\n");
}
12-13-2014 12:24 PM
"2EyeGuy" wrote:
Good work on the culling.
But when I tried Wind Waker NTSC using your codes, the bridge on Outset Island was still culled. That was the object I was using to test my own culling codes ages ago, but I could never get it to work. So maybe that bridge is just a bad object to choose but other objects are prevented from being culled? Do you know any locations that I can test it on?
If you want to use IDA Pro to find the culling Action Replay codes, here is an IDA Pro script I wrote that loads Dolphin map files. Save it as ReadDolphinMap.idc. You might also need a plugin for loading .dol files, which you can find on the internet.
12-13-2014 01:52 PM
12-13-2014 02:02 PM
"fugazi" wrote:
Its working!!!!!!!
042A2DD4 38600001
042A2DD8 4E800020
Please ask him to search the function in the original games.
And tell him that he is our hero!!!!!
12-13-2014 02:29 PM
Paraxade >2014-12-13 04:28:11 pm
Try 0x803451D0 in the final game (NTSC 0-00).
12-13-2014 02:47 PM
"aminemo" wrote:
He just send another answer for the final gameParaxade >2014-12-13 04:28:11 pm
Try 0x803451D0 in the final game (NTSC 0-00).
12-13-2014 02:50 PM
Paraxade >2014-12-13 04:49:48 pm
yeah 0-02 is player's choice, that's a different version of the game and probably requires a different code. The address I posted is only for the original 0-00 NTSC gamecube release.
12-13-2014 02:54 PM
ParaxadeParaxade >2014-12-13 04:49:48 pm
FWIW I just tried it on 0-00 and it works.
12-13-2014 03:06 PM
"aminemo" wrote:ParaxadeParaxade >2014-12-13 04:49:48 pm
FWIW I just tried it on 0-00 and it works.