Disassembling Default.xbe With IDA Pro

Discuss Halo 2 modding, progress on figuring things out, mapfiles...you know the drill. Cheating discussion not allowed.
Post Reply
User avatar
Shadowz_O_Death




Connoisseur

Posts: 188
Joined: Wed Nov 01, 2006 8:38 am
Location: Pittsburgh, PA Xlink: Shadowz_O_Death

Disassembling Default.xbe With IDA Pro

Post by Shadowz_O_Death »

Hello everyone! May someone please explain to me the basics of disassembling the Halo 2 default.xbe with IDA Pro? This includes explaining to me how to properly open the Halo 2 default.xbe, modify the Halo 2 default.xbe, save the Halo 2 default.xbe, and anything else that I might need to know. I tried searching "IDA" on the forums and found very few results. Also, may someone please provide me with an example code of a Halo 2 default.xbe modification in IDA Pro and explain to me how it works? I'm very anxious to start using IDA Pro. I've just purchased the full version of it and I'm very confused! :? I hope it's not against the rules of HaloMods, because like I said before, I didn't find many posts regarding disassembling the Halo 2 default.xbe with IDA Pro at all. I double-checked the rules to make sure it wasn't on there, and it didn't appear to be. If this is for some reason against the rules of HaloMods, I'm very sorry... Anyways, thank you very much for reading!

Regards,
Shadowz O Death
Last edited by Shadowz_O_Death on Tue Apr 10, 2007 6:55 pm, edited 2 times in total.
User avatar
latinomodder





Posts: 1040
Joined: Tue Sep 20, 2005 5:51 pm
Location: Costa Rica

Post by latinomodder »

just open it....

Ive used that app for searching for some basic script stuff, but believe me you wont do much if you dont know assembly.
Image
User avatar
Shadowz_O_Death




Connoisseur

Posts: 188
Joined: Wed Nov 01, 2006 8:38 am
Location: Pittsburgh, PA Xlink: Shadowz_O_Death

Post by Shadowz_O_Death »

latinomodder wrote:just open it....

Ive used that app for searching for some basic script stuff, but believe me you wont do much if you dont know assembly.
Thank you very much for the reply! I believe it's already opened. :P I just need to know how to actually start modifying the Halo 2 default.xbe. May you please provide me with a simple example of a modification of the Halo 2 default.xbe in IDA Pro? That's all I'm really asking for. :wink:

Regards,
Shadowz O Death
User avatar
shade45




Translator Artisan Enthraller Logistician
Stylist Wave Firestorm New Age

Posts: 2270
Joined: Fri Apr 01, 2005 1:04 pm

Post by shade45 »

Shadowz_O_Death wrote:
latinomodder wrote:just open it....

Ive used that app for searching for some basic script stuff, but believe me you wont do much if you dont know assembly.
Thank you very much for the reply! I believe it's already opened. :P I just need to know how to actually start modifying the Halo 2 default.xbe. May you please provide me with a simple example of a modification of the Halo 2 default.xbe in IDA Pro? That's all I'm really asking for. :wink:

Regards,
Shadowz O Death
We'll to start editing the xbe you have to connect to your xbox using a debug bios to find what you want to edit, get the breakpoints, raw dumps, blah, blah, blah

I dont know how its done but if you go to the maxconole.net forums you can find some nice trainer making tutorials ;)
User avatar
latinomodder





Posts: 1040
Joined: Tue Sep 20, 2005 5:51 pm
Location: Costa Rica

Post by latinomodder »

Im not exactly the person to do that, all I know how to do is check how many arguments a script has.
Image
User avatar
Shadowz_O_Death




Connoisseur

Posts: 188
Joined: Wed Nov 01, 2006 8:38 am
Location: Pittsburgh, PA Xlink: Shadowz_O_Death

Post by Shadowz_O_Death »

Thank you very much for the replies everyone! I was looking through some strings and I seen "weapon-ammo-exsists." Here is the original code:
.rdata:00452714 aWeaponAmmoExis db 'weapon-ammo-exists',0 ; DATA XREF: sub_A2470+158o
I'm guessing if I were to change the value from "0" to "1," it would make it so ammo always exsists another words you'll have unlimited ammo. This it what it would look like if I changed the value:
.rdata:00452714 aWeaponAmmoExis db 'weapon-ammo-exists',1 ; DATA XREF: sub_A2470+158o
What do you guys think? Does that seem right to you? Thank you very much!

Regards,
Shadowz O Death

Edit: How are you suppost to edit the value? :P
User avatar
Anthony




Translator Connoisseur New Age ONI

Posts: 1001
Joined: Thu Jul 06, 2006 10:19 pm
Location: Whittier, CA
Contact:

Post by Anthony »

you don't use IDA pro to edit the xbe, you either use a hex editor, or actually make a trainer.

and no that wont work for inf. ammo :P its a alot more work then that, it includes dumping your xbox memory, searching for values that happen to be the same amout of ammo that you currently have, once you find that use some more of the ammo and dump the memory again and see if you can find that value to narrow your first search results until you get down to a few values to test

then you need to set a breakpoint to give the address of the coide that wrote to that address

once you find that you will need to figure out what you want to do wiht that location

and thats just a summary not even exactly what has to be done...

so I think u kinda wasted your "money" :wink: when you "bought it" :wink:
User avatar
DarkShallFall




Artisan Recreator Trickster Connoisseur
Advisor Pyre Renovator Sigma
Snitch! Enthraller New Age Miner

Posts: 1992
Joined: Fri Jan 20, 2006 2:49 pm
Location: MI, USA
Contact:

Post by DarkShallFall »

why the hell is this guy so nice? :twisted:
Image
Iron_Forge wrote:I assume I won?..I should get an emblem...
User avatar
Geo
Forum Manager




Illusionist Stylist Advisor Pi
Connoisseur Pyre Socialist Tsunami

Posts: 4404
Joined: Sun Jun 19, 2005 1:01 am
Location: United Kingdom
Contact:

Post by Geo »

Sounds like a similar process to making cheats for Pokemon on the gameboy... though probably much harder.
Image
For extremely cheap web hosting and domains, PM me. Includes excellent control panel software and instant activation!
-DeToX-




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post by -DeToX- »

Yeah I wouldn't use Ida just for editting, it would be harder to find values. If you got XDK on your xbox(Don't ask for it, its illegal), you would have about for example 80 rounds in your gun, set a breakpoint, shoot 3 rounds, set another break point and search for 80 and 77 in the dumped memory, or something along those lines, haven't looked into XBEing in a while.
Image
User avatar
Anthony




Translator Connoisseur New Age ONI

Posts: 1001
Joined: Thu Jul 06, 2006 10:19 pm
Location: Whittier, CA
Contact:

Post by Anthony »

-DeToX- wrote:Yeah I wouldn't use Ida just for editting, it would be harder to find values. If you got XDK on your xbox(Don't ask for it, its illegal), you would have about for example 80 rounds in your gun, set a breakpoint, shoot 3 rounds, set another break point and search for 80 and 77 in the dumped memory, or something along those lines, haven't looked into XBEing in a while.
thats exactly what I said... :?
-DeToX-




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post by -DeToX- »

Didn't see that, cause I just skim through the topic.
Image
Spammy




Revivalist Coagulator Articulatist 500

Posts: 643
Joined: Thu Apr 15, 2004 11:27 am
Location: They won't tell me...

Post by Spammy »

Sounds exactly like a gameshark(brings me back...)
Post Reply