CraigChrist8239
VIP
VIP
Hey, I've been getting kinda bored with Cod so I decided to pick up on of my favorite games for a few hours; Halo Wars. I would release these mods but it appears no one cares about this game (and I don't know if this works online)... I'm just posting for anyone who is curious. Also, sorry about quality, my dev wouldn't take a pic for some reason.
Source Code:
UNSC:
Covenent:
Dude
Can you please release
These mods I will do anything
I did. I didn't make an official release for it, but note that the current version (should) support Halo Wars TU6. You'll need to patch the TU6 xex yourself (read the instructions). Just know, its not going to work online.
Source Code:
Code:
#include <xtl.h>
#include <xboxmath.h>
#include <xbox.h>
#include <xam.h>
#include <stdio.h>
#ifdef _DEBUG
#include <xbdm.h>
#endif
HRESULT returnResult;
DWORD WriteMemory(LPVOID address, DWORD size, LPCVOID data, HRESULT * optionalOutput)
{
DWORD outInt;
#ifdef _DEBUG
returnResult = DmSetMemory(address, size, data, &outInt);
#endif
#ifdef NDEBUG
returnResult = memcpy(address, data, size) == address ? ERROR_SUCCESS : TYPE_E_UNDEFINEDTYPE;
outInt = size;
#endif
if(optionalOutput != 0)
optionalOutput = &returnResult;
return outInt;
}
short alwaysBranchPatch = 0x4800;
void patchHaloWarsOnBoot()
{
//Everything is free
WriteMemory((LPVOID)0x82817C9C, 2, (LPCVOID)&alwaysBranchPatch);
WriteMemory((LPVOID)0x828E9968, 2, (LPCVOID)&alwaysBranchPatch);
WriteMemory((LPVOID)0x82A0247C, 2, (LPCVOID)&alwaysBranchPatch);
WriteMemory((LPVOID)0x82A64C94, 2, (LPCVOID)&alwaysBranchPatch);//Makes units free
WriteMemory((LPVOID)0x82AA3290, 2, (LPCVOID)&alwaysBranchPatch);//Makes upgrades free
//No Population Limit
WriteMemory((LPVOID)0x828F22FC, 2, (LPCVOID)&alwaysBranchPatch);
}
UNSC:
Covenent:
Last edited: