Writing a Halo Modder in C++ For A Class and NEED HELP!
Posted: Sat Nov 22, 2003 6:27 pm
So I opted to do something cool like write an app to mod halo rather than the plain old tic tac toe or checkers game for my C++ final project.
I'm having a few issues though that I thought maybe you guys could help me clear up:
My major problem is that i want to be able to read in a list of Offsets and Values to then edit in a .map file. I am kinda stumped as to how to bring these values in as they are Hex, however.
If I attempt to bring in 0x01A68734 as an int, it will only bring in the 0. If I instead just bring in the 01A68734 then C++ treats it as a decimal int because there is no 0x in front of it. I could also bring it in as a string, but from there I have no idea how to convert it back to a hexadecimal integer so that I can use it.
I've had great success when I've hardcoded the Hex values into the program, but I want my app to be able to load custom lists of offsets and values and I don't want to have to convert every hex value to decimal.
Secondly, I want to make a short demo video of my app for my presentation kinda like Red vs. Blue. I've been successful in offset swapping all of the parts of the HUD except the Health and Grenades. No matter what I change the Health and Grenade Huds' offsets to be, the game crashes so I can't get rid of them. I'd really like to not have any of the HUD showing in my video. Does anyone know how I can get rid of it?
Thanks!
I'm having a few issues though that I thought maybe you guys could help me clear up:
My major problem is that i want to be able to read in a list of Offsets and Values to then edit in a .map file. I am kinda stumped as to how to bring these values in as they are Hex, however.
If I attempt to bring in 0x01A68734 as an int, it will only bring in the 0. If I instead just bring in the 01A68734 then C++ treats it as a decimal int because there is no 0x in front of it. I could also bring it in as a string, but from there I have no idea how to convert it back to a hexadecimal integer so that I can use it.
I've had great success when I've hardcoded the Hex values into the program, but I want my app to be able to load custom lists of offsets and values and I don't want to have to convert every hex value to decimal.
Secondly, I want to make a short demo video of my app for my presentation kinda like Red vs. Blue. I've been successful in offset swapping all of the parts of the HUD except the Health and Grenades. No matter what I change the Health and Grenade Huds' offsets to be, the game crashes so I can't get rid of them. I'd really like to not have any of the HUD showing in my video. Does anyone know how I can get rid of it?
Thanks!