How to edit dvars into a .xex (Modding .XEX's)

XPGProgrammer Jan 11, 2013

  1. XPGProgrammer

    XPGProgrammer Newbie
    0/47

    Joined:
    Jan 2, 2013
    Messages:
    802
    Likes Received:
    214
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Canada
    Console:
    Xbox
    Requirements:
    - Modified console (Jtag/Rgh/Xdk)
    - The .XEX you want to modify.
    - Xextool
    - IDA (Look for a BAN-ME-PLEASE if you don't have it)
    - IDA Plugins
    - HXD

    Step 1:
    - Once you installed xextool, you now want to search in your bar for "cmd" and then copy it and paste it in your xextool folder.
    - Copy and paste your .XEX into the folder.

    So your folder should like this:
    [​IMG]

    Step 2:
    - You now want to open cmd in Administrator mode.
    - Now you want to copy this into cmd to remove all media protection:
    Code:
    xextool -r a default_mp.xex
    - Click and enter the next command:
    Code:
    xextool -e d default_mp.xex
    If you've done it all correctly it will say:
    Code:
    XexTool v5.2 - xorloser 2006-2008
    Successfully wrote altered xex to default_mp.xex
    default_mp.xex is retail unencrypted uncompressed.
    So now, you have an un-encrypted xex with no medi or region protection, the same process can be used to patch and decrypt the default.xex, you just need to change the "default_mp.xex" to "default.xex". The next step is to load the file into IDA.

    Step 3:
    - Open IDA
    It should look like this: [​IMG]

    - Click new and then change the file type to "all files" and select your .xex.

    [​IMG]

    - You now want to make sure in the top box "Xbox 360 xex file" is selected and change the processor type to "PowerPC"

    [​IMG]

    - Click ok and it should look like this:

    [​IMG]

    Now you want to change the dvars. I'll show you the basics dvars. So firstly we'are going to search for "jump_height"

    Step 4:
    - You should see something like that: [​IMG]


    Underneath the dvar the "float" which has a value of "39.0" is the value for the dvar, we're going to change the value to 999. To do this, we can't use IDA so you now want to open your .XEX into HXD, I will show you how after.

    - So you now want to find the hex location of the float, to do this click the value "39.0" and then change tab from "IDA view - a" to "Hex view - a".

    You should see that the hex version of the float is now highlighter, notice that it is 4 double characters long, this is always the case and if you change the float you need to change all 4 pairs of characters.

    [​IMG]

    - Now highlight the hex characters and the 4 after it so it is easier to search for them in HXD, in this case I would copy: 42 1C 00 00 3F 26 66 66

    Step 5:
    - You now want to open up HXD and open your .xex, search for the value you highlighted and make sure you change it to search for hex:

    [​IMG]

    - You should see:

    [​IMG]

    We can now change the first 4 characters (42 1C 00 00) to another value, if you can't find a converter here are some hex value's for floats for you:
    Code:
    360.0 - 43 B4 00 00
    15.0 - 41 70 00 00
    0.001 - 3A 83 12 6F
    4.0 - 40 80 00 00
    800.0 - 44 48 00 00
    999.0 - 44 79 C0 00
    - In this case we're going to change the value to 999.0, so change the "4C 1C 00 00" to "44 79 C0 00".

    Step 6:
    - Now you can simply save it and put the .xex back into your modified console and you should see some differences.
    - I suggest you to edit fall damage because you will die if you don't.

    Thanks for reading and I hope it helps you.
     
    • Like Like x 7
  2. tE

    tEcHN0 Guest

    Very nice, clean and straight to the point ;)

    +Rep
     
  3. XPGProgrammer

    XPGProgrammer Newbie
    0/47

    Joined:
    Jan 2, 2013
    Messages:
    802
    Likes Received:
    214
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Canada
    Console:
    Xbox
    Thanks buddy. If you guys are having problems with this, just comment and I will get back to you.

    By the way if you need me to convert float values for you let me know.
     
    • Like Like x 1
  4. Oodxboxlive

    Oodxboxlive Newbie
    0/47

    Joined:
    Sep 16, 2012
    Messages:
    148
    Likes Received:
    4
    Trophy Points:
    0
    Gender:
    Male
    Location:
    French
    Console:
    Xbox
    :good2: :good2:
     
  5. andygee1987

    andygee1987 XPGEE Lifetime Gold
    0/47

    Joined:
    Jun 26, 2011
    Messages:
    1,802
    Likes Received:
    334
    Trophy Points:
    0
    Gender:
    Male
    Location:
    England
    Console:
    Playstation 4
    Nice tut. Never done anything like this will give it a go when i get home ;)

    Sent from my GT-N7000 using Tapatalk 2
     
  6. XPGProgrammer

    XPGProgrammer Newbie
    0/47

    Joined:
    Jan 2, 2013
    Messages:
    802
    Likes Received:
    214
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Canada
    Console:
    Xbox
    Thanks! If you need help, PM me or comment ;).
     
  7. XPGProgrammer

    XPGProgrammer Newbie
    0/47

    Joined:
    Jan 2, 2013
    Messages:
    802
    Likes Received:
    214
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Canada
    Console:
    Xbox
    I thought it would help some people if I posted this. So if you guys want to convert the float value to hex value to put it in your .XEX, simply click on that link: http://babbage.cs.qc.cuny.edu/IEEE-754/

    You put the desired value in the "Value to analyse" box and then it will appear in "Binary32".

    For example, let's say you want to put 999.0, so it would look like that: [​IMG]

    Hope it helps you guys. If you still not understanding, just drop me a PM ;)
     
    • Like Like x 1
  8. TRUExSKILLxKILL

    TRUExSKILLxKILL I
    95/188

    Joined:
    May 6, 2012
    Messages:
    1,188
    Likes Received:
    284
    Trophy Points:
    95
    Gender:
    Male
    Location:
    Battle Creek, MI
    Console:
    Xbox
    Very good tutorial
     
  9. MR-5TiiGY-MVP

    MR-5TiiGY-MVP The 5TiiG
    0/47

    Joined:
    Dec 8, 2010
    Messages:
    743
    Likes Received:
    98
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
    This is an amazing read!! thank you very much :D +Rep must of taken a little while to write this
     
  10. XPGProgrammer

    XPGProgrammer Newbie
    0/47

    Joined:
    Jan 2, 2013
    Messages:
    802
    Likes Received:
    214
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Canada
    Console:
    Xbox
    Thanks, it's really appreciated!
     
    • Like Like x 1
  11. na

    naidinovpaul Newbie
    0/47

    Joined:
    Mar 17, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Xbox
    Hi, I have a problem with ome games when I try to put them in iso2god. It sais that "could not locate default.xex or default.xbe". What should I do? Thanks
     
  12. Coder123

    Coder123 Finnish Modder XPG Developer TeamXPG
    105/188

    Joined:
    Jan 21, 2012
    Messages:
    1,954
    Likes Received:
    717
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Finland
    Console:
    Xbox
    Remember guys, you cant enable/disable every dvar from the .xex, some of them reset to default when the game loads.

    also it i think the topics name should be "How to edit dvar values from .xex"
     
  13. CRACKbomber

    CRACKbomber Resident Xbox Guru XPG Developer
    25/47

    Joined:
    Sep 12, 2011
    Messages:
    276
    Likes Received:
    235
    Trophy Points:
    25
    Gender:
    Male
    Location:
    Michigan
    Console:
    Xbox
    The xexloader for IDA isn't as good as extracting the base file and using the ida script to load the file.

    xextool -b basefile.exe -i idascript.idc default_mp.xex
     
    • Like Like x 1
  14. HOKKUSPOKKUS

    HOKKUSPOKKUS XPG
    105/188

    Joined:
    Jan 4, 2013
    Messages:
    1,207
    Likes Received:
    571
    Trophy Points:
    105
    Gender:
    Female
    Location:
    French /Paris :-)
    Console:
    Xbox
    [​IMG]
     
  15. Sm

    Smalley Newbie
    0/47

    Joined:
    Nov 20, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Playstation 3
    cool

    Is there tut for this mate ?
     
  16. Ge

    GerardosMex Newbie
    0/47

    Joined:
    Sep 20, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    still it is working? :)
     

Share This Page

Close