Results 1 to 9 of 9
  1. #1
    TrojanMan!'s Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Upper Michigan
    Posts
    435
    Reputation
    14
    Thanks
    63

    [Tutorial]Crysis 2 XML Modding

    Crysis 2 XML Modding Guide



    Introduction:

    The purpose of this guide is to show you the basics of how to be able to modify the XML files that Crysis 2 uses for certain aspects of the game. This, as of the time of this post, allows players to "hack" both in multiplayer and in single player. Some of the various modifications allow you to modify the number of required kills or XP to unlock items within the game. There are a lot of different values stored within the XML files, so a lot of time must be spent with trial and error to find the values that correspond to what you wish to do. I won't illustrate any particular modification since it may end up being patched.

    Anyways, enough of my rambling, lets get into this tutorial...

    Unpacking pak files

    The very first thing you have to do is unpack the .pak files which contain the default XML files. These files are basically an encrypted archive that contain various XML and CFG files. The game will read from these unless folders with corresponding names are present.

    For example, if the folder "Scripts" is present in the same directory as Scripts.pak, the game will read first from the folder, then if files are missing, it will read them from the archive.

    Unpacking:

    To unpack you must get a utility called quickbms, along with a script that decrypts the archive. This utility is available either attached here, or located in the following thread: here [Credits to the poster]

    Once the file is downloaded, extract it into the folder which contains the .pak files (I.E. C:\Program Files (x86)\Electronic Arts\Crytek\Crysis 2\gamecrysis2).

    After you extract the files, you can either run it via GUI mode or via batch command. I personally prefer batch commands, but for a basic user, GUI might be easier to use.

    Batch commands:

    For batch commands you simply need to open notepad and save the following code segments as individual .bat files.

    To unpack the XML files from "Scripts.pak" file into a folder called "Scripts" you would save the following as, unpack_scripts.bat and save it in the folder you extracted quickbms in. Remember when you save the file you must change the file type to "All files" or this will not work.

    Code:
    cd "C:\Program Files (x86)\Electronic Arts\Crytek\Crysis 2\gamecrysis2"
    mkdir Scripts
    quickbms -f "*.xml" crysis2.bms Scripts.pak Scripts
    pause
    If you aren't running Windows 7 or Vista the first two lines of code might not be needed, however if you are running them you need to make sure the first line matches the directory of where quickbms is extracted, and the second line must be the name of the folder you wish to save files into.

    For other pak files, simply change anywhere it says "Scripts" to the exact name of the file you wish to unpack.

    MAKE SURE YOU RUN AS ADMINISTRATOR IF YOU ARE RUNNING ON WINDOWS 7.

    GUI:

    For the GUI version you can extract quickbms to wherever you wish, but I recommend the gamecrysis2 folder for ease of access.

    Simply run the quickbms program and when prompted:

    Select the script file, "crysis2.bms" which was included in the quickbms download.

    The select the pak file you wish to extract:


    And finally, select the folder to save the files to:




    Whichever method you choose, you will end up with a folder containing sub folders which contain .xml files.




    You can now dig into the xml files and start looking for values to modify, some example scripts have been posted in other topics and expect a lot of things not to work as you expect.

    Things to remember:


    • The XML files must be in the proper folder to work, if you found a file in ...\Scripts\Progression\ the you need to have it saved in that folder.
    • Not all values do what they are named
    • Tampering with some values could get you banned or reset
    • Back up everything
    • mp usually means multiplayer, sp means single player, and if it doesnt specify it usually affects both


    I'll add more things if requested, but I intended for this to help people learn how to make their own simple xml modifications. I hope you learned something, have fun! If you feel I left anything out, or would like me to go into more detail, reply and let me know.

    Disclaimer: I do not know exactly which things are patched, detected, or what will get you reset, so use caution



    Web Developer Pride

  2. The Following 5 Users Say Thank You to TrojanMan! For This Useful Post:

    ehsanjt98 (04-28-2011),freehuntx (04-04-2011),lolbie (04-20-2011),mahoney (04-08-2011),PwnUrAss (04-20-2011)

  3. #2
    freehuntx's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    125
    Reputation
    14
    Thanks
    667
    naah i hoped it will work -.-

    C:\Program Files (x86)\Electronic Arts\Crytek\Crysis 2\gamecrysis2\Scripts\Entities\Items\Crysis2\Weapo ns\Humans\SCAR.xml

    I changed Max Recoil to 0.01 and in Multiplayer game nothing changed with the Scar i shoot and it Spread like Before

  4. #3
    kill_seth's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    1
    Hey TrojanMan,
    would you extract the GameData.pak and upload it somewhere for me?
    I'm using xbox 360 files and every time I try this I get an error.
    If you can thanks, I'll keep checking back for your reply.

  5. #4
    MC˛'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    somewhere between here and there
    Posts
    2,794
    Reputation
    174
    Thanks
    314
    My Mood
    Brooding
    this should have put in the tut section

  6. #5
    Beaverman's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    53
    Reputation
    20
    Thanks
    16
    Quote Originally Posted by sazzad123 View Post
    this should have put in the tut section
    Thank you for bumping -.- But this doesn't work in the new patch as far as i know...
    Press the Thanks button if you like what i say... or don't what do i care

  7. #6
    lolbie's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Netherlands
    Posts
    5,207
    Reputation
    288
    Thanks
    2,136
    My Mood
    Angelic
    nice tut this should be stickied
    I love it when people keep their agreements /sarcasm ftw

  8. #7
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,673
    My Mood
    Breezy
    /moved to tutorials
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  9. #8
    mlgoverlord's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    The Green Heavens
    Posts
    9
    Reputation
    10
    Thanks
    0
    My Mood
    Buzzed
    how do i re-encrypt the files back to a .pak file to burn my iso?

  10. #9
    TrojanMan!'s Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Upper Michigan
    Posts
    435
    Reputation
    14
    Thanks
    63
    Quote Originally Posted by mlgoverlord View Post
    how do i re-encrypt the files back to a .pak file to burn my iso?
    There is a way to edit the xml files within a .pak file but you cannot make any of the files inside any larger than they are so it would be very difficult to make anything useful without overwriting other files.

    Also, when I wrote this tutorial, there was not tutorial section :P



    Web Developer Pride