i managed to convert these offsets to 1.24.
these r the only hack that i would use anyway.
havent tested them yet. could somebody please test these?
Code:
PATCH(0x3A1F3C,"\x90\x90",2);
if(dSize == 0)
{
cout << "Failed to show units in map." << endl;
}
PATCH(0x361EBC,"\x00",1);
if(dSize == 0)
{
cout << "Failed to show units in minimap." << endl;
}
PATCH(0x28351C,"\x40\xC3",2);
if(dSize == 0)
{
cout << "Failed to reveal illusions." << endl;
}
NPATCH(0x4559EC,"\x60\x0B\xC0\x75\x2F\x8A\x8E\xD0\x02\x00\x00\x80\xF9\x01\x74\x51\xC6\x86\xD0\x02\x00\x00\x01\xC6\x86\xD1\x02\x00\x00\x01\xC6\x86\xD2\x02\x00\x00\xFF\x8B\xCE\xB8\xFF\x01\x01\xFF\xFF\x15\x60\x5A\x45\x00\xEB\x2D\x8A\x8E\xD0\x02\x00\x00\x80\xF9\xFF\x74\x22\xC6\x86\xD0\x02\x00\x00\xFF\xC6\x86\xD1\x02\x00\x00\xFF\xC6\x86\xD2\x02\x00\x00\xFF\x8B\xCE\xB8\xFF\xFF\xFF\xFF\xFF\x15\x60\x5A\x45\x00\x61\xB8\x01\x00\x00\x00\x23\xD8\x89\x44\x24\xE4\xFF\x35\x65\x5A\x45\x00\xC3",116);
DWORD addr[3];
addr[0] = gameBase + 0x29E270;
addr[1] = gameBase + 0x39A3BF;
addr[2] = 0x4559EC;
NPATCH(0x455A60,&addr[0],sizeof(DWORD));
NPATCH(0x455A65,&addr[1],sizeof(DWORD));
NPATCH(0x455A6A,&addr[2],sizeof(DWORD));
PATCH(0x39A479,"\xFF\x25\x6A\x5A\x45\x00",6);
PATCH(0x3622D1,"\x3B\xC0\x0F\x85\x30\x04\x00\x00",8);
if(dSize == 0)
{
cout << "Failed to reveal invisible units." << endl;
}
PATCH(0x40777A,"\x90\x90",2);
PATCH(0x3A1F5B,"\xEB",1);
if(dSize == 0)
{
cout << "Failed to show items in map." << endl;
}
thanks to tyrano for the tips.
i used the game.dll comparison method using hex editor.
using game.dll i got from wvs,
i opened 1.23 dll,
goto address based on this hack offset,
find the default values from 10 bytes before and 10 bytes after (so its specific/ dont find multiple address in searches),
search those values in the 1.24 dll,
compare (ie, 0x3A1F3C. default value is 23 CA. look within the strings of values uve used to search and which address that has these values).
i only port those wif PATCH function.
i dont know if i should also port those wif NPATCH function.
amidoinitr8?