1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MK9 texture injector

Discussion in 'Tools & Guides' started by RoqueDemon, Jul 5, 2013.

  1. RoqueDemon

    RoqueDemon Avid Affiliate Content Creator

    Joined:
    Apr 16, 2012
    Messages:
    191
    Likes Received:
    5
    You need the decompressed target .xxx file, the .Texture2D file that you want to replace and the .dds file you want inject, all in the same folder.
    Run the bat file and follow the instructions. If a "File injected" message appears then the .xxx should be good to go.
    Just copy it to the \DiscContentPC\Asset folder and you should be able to see the changes in the game.

    I'd like to give thanks to XeNTaX's user darksoul for his post regarding MK9's texture format. If that post didn't exist I probably wouldn't have been able to do this.
    XeNTaX ? View topic - succesfull modded MK9 textures help creating QUICKBMS SCRIPT


    Be sure to contact me if you find any bugs or to suggest improvements.

    --------UPDATE--------
    V1.5 released

    ------Changelogs------
    Another change to the way files are found in the .xxx - All .Texture2D files from CHAR files are working
    Fixed filenames with spaces not working properly.
    Fixed Jade_BDMG_Diff crashing the injector.
    Changed the way files are found in the .xxx - Should drastically decrease the number of .dds importing to the wrong place.
    You can now inject multiple files into the same .xxx without having to constantly write the name of the .xxx.
    Fixed Jade_NormHQA not importing correctly.
    All textures should now import correctly.
     

    Attached Files:

    Last edited by a moderator: Jul 30, 2013
  2. davehammer

    davehammer Vivacious Visitor

    Joined:
    Apr 19, 2012
    Messages:
    44
    Likes Received:
    1
    well done champ, it has to start somewhere :D
     
  3. RoqueDemon

    RoqueDemon Avid Affiliate Content Creator

    Joined:
    Apr 16, 2012
    Messages:
    191
    Likes Received:
    5
    Thanks
    I guess I'll post whatever I find about the game here. If anyone thinks a separate thread should be created for the investigation of this game let me know.

    I've started looking into getting modified files into the game. Only done some basic tests so far, such as trying to find a directory where loose files would have priority over the packed ones.
    For now, I only found two things:
    1 - If you remove an .xxx character file from the asset folder the game doesn't crash, unlike other fighting games. The character icon in the character menu becomes an unselectable black silhouette. I don't know what happens when the game actively looks for the file though. It's possible that it crashes during story mode or challenges involving the character.
    2 - It's known that the character files are compressed, that's why you need to decompress a file before extracting its contents. What I didn't know is that the game is able to run with decompressed files. This means that injecting files into the .xxx should be easier than I thought since there's no need to re-compress.

    About the texture converter:
    I haven't worked on it any more. I'll probably try to convert it to C/C++ before adding anything else.

    - - - Updated - - -

    So, I've been looking into putting modified files into the game and ran into an issue

    We can access all the data that's in one of the decompressed files through hex editing, so texture files, and all other files, can be injected simply by copying the relevant hex information by hand.
    This works perfectly as I was easily able to manually swap Jade's texture with Skarlet's texture. I was also able swap the texture with one converted to .dds, using my program.
    Now here's the thing, if you swap in a .dds file that has been modified in Photoshop, the game crashes when loading the character.
    While Photoshop can easily read the converted texture as a .dds file, the game can't read one saved by Photoshop, even if there were no changes to the texture, and I have no idea what's causing this issue.
     
  4. xellos49698

    xellos49698 Avid Affiliate Content Creator

    Joined:
    Apr 26, 2012
    Messages:
    226
    Likes Received:
    10
    I don't know if this will help or not, but here is a link for Mortal Kombat 9 console modding tool.

    Mortal Kombat 9 Modding + More - Page 167

    take any .XXX in exemple CHAR_JADE.XXX
    command extract.exe CHAR_JADE.XXX unpack this pack
    run MkPs3TextureBeta3.exe
    Texture2D-->DDS
    ..\CHAR_JADE\Textures\Jade_Diff.Texture2D


    Try make txt file with name like unpackthisstupidwin.txt with extract.exe CHAR_JADE.XXX inside. Than rename to unpackthisstupidwin.bat, put into program dir with extract.exe and run this bat
     
    Last edited by a moderator: Jul 6, 2013
  5. RoqueDemon

    RoqueDemon Avid Affiliate Content Creator

    Joined:
    Apr 16, 2012
    Messages:
    191
    Likes Received:
    5
    I tried those tools when the game came out.
    Outside of the decompressor and the extractor everything I tried crashes.

    Turns out that I misunderstood the .Texture2D format. While photoshop could read the .dds files they weren't properly built but the reason for the crashes was because I wasn't swapping the textures right due to that misunderstanding.
     
  6. xellos49698

    xellos49698 Avid Affiliate Content Creator

    Joined:
    Apr 26, 2012
    Messages:
    226
    Likes Received:
    10
    Ok. I sure hope it's still possible to have nude mod for MK9, I was not expecting no Directx9 support.
     
  7. RoqueDemon

    RoqueDemon Avid Affiliate Content Creator

    Joined:
    Apr 16, 2012
    Messages:
    191
    Likes Received:
    5
    One step at a time :3
    2013-07-06_00001.jpg
    This was injected manually. Now I have to code it.

    PS: Does anyone have any idea how transparency works in this game? Modifying the diffuse's alpha appears to have no effect.

    - - - Updated - - -

    File injector v1 done! Check the first post.

    0mpDqj2.jpg
     
  8. Mharius

    Mharius Avid Affiliate Content Creator

    Joined:
    Oct 22, 2012
    Messages:
    194
    Likes Received:
    15
    Good start, the injector works okay. Sadly the way the textures seem to work, especially the damage overlay seems pretty limiting... Also the body model I looked at, didnt seem to use transparency for anything but the hair.
     
  9. RoqueDemon

    RoqueDemon Avid Affiliate Content Creator

    Joined:
    Apr 16, 2012
    Messages:
    191
    Likes Received:
    5
    True and for some reason the injector isn't working with hair textures.
    I'm still positive that good mods will start rolling for this game.
     
  10. Eddyboy

    Eddyboy Avid Affiliate Content Creator

    Joined:
    Apr 25, 2012
    Messages:
    172
    Likes Received:
    17
    Great job so far. Game's pretty new, huh?
    Some texture editing might even make it possible to make em look actually female.
     
  11. Mharius

    Mharius Avid Affiliate Content Creator

    Joined:
    Oct 22, 2012
    Messages:
    194
    Likes Received:
    15
    I changed the DMG diff texture, but when injected it gets applied to their hair. Might be related. And I agree, some good nude mods are possible, even if not quite as great as one might have hoped.
     
  12. RoqueDemon

    RoqueDemon Avid Affiliate Content Creator

    Joined:
    Apr 16, 2012
    Messages:
    191
    Likes Received:
    5
    Thanks for that. I'm going to look over it tomorrow and that gives me a place to start.
     
  13. Mharius

    Mharius Avid Affiliate Content Creator

    Joined:
    Oct 22, 2012
    Messages:
    194
    Likes Received:
    15
    Actually after further testing, many of the textures are applied to the hair instead.

    So far the most important once that need fixing are: Pmsk, Spec, DMG_Diff
    (and most likely more, but if you can figure out the problem, it might fix them all at once anyways)
     
  14. RoqueDemon

    RoqueDemon Avid Affiliate Content Creator

    Joined:
    Apr 16, 2012
    Messages:
    191
    Likes Received:
    5
    GsVCP1n.jpg

    DMG_Diff painted with orange and green.
    Hair_DiffA painted with pink and blue.
    Other textures should be fixed as well.

    I just need to solve small issues before release.
     
  15. Rich246

    Rich246 Potential Patron

    Joined:
    Jul 8, 2013
    Messages:
    20
    Likes Received:
    0
    It's so cool to see that this game is getting the same treatment as the PS3 version, any chance of a GUI for the complete tool package besides umodel I guess... it would make things more simple and user friendly. :)

    kind of off topic question:
    Hypothetically, could Kratos' xxx be decompressed and recompressed as a PC xxx allowing him to be imported into the PC version?
     
  16. RoqueDemon

    RoqueDemon Avid Affiliate Content Creator

    Joined:
    Apr 16, 2012
    Messages:
    191
    Likes Received:
    5
    V1.1 is now released
    All textures should import correctly now (hopefully).

    GUI for the complete tool package I doubt, but I might do one for the injector after I'm happy with it.
    About Kratos... I have no clue. It's something I'd have to look into.
     
  17. Rich246

    Rich246 Potential Patron

    Joined:
    Jul 8, 2013
    Messages:
    20
    Likes Received:
    0
    Anything would be appreciated. :)

    EDIT:
    If you can look into making the bosses playable like this:
    http://www.youtube.com/watch?v=HKE48s_b8WQ

    It would also be appreciated by a lot of people.
     
    Last edited by a moderator: Jul 8, 2013
  18. RoqueDemon

    RoqueDemon Avid Affiliate Content Creator

    Joined:
    Apr 16, 2012
    Messages:
    191
    Likes Received:
    5
    I'm done with modding today. I may look into that tomorrow, if nothing about the injector pops up, and if I feel like it :p
     
  19. Mharius

    Mharius Avid Affiliate Content Creator

    Joined:
    Oct 22, 2012
    Messages:
    194
    Likes Received:
    15
    The other textures work now but theres still a problem, the NormHQA textures (Normal Maps) are not applied and are just ignored.
     
  20. RoqueDemon

    RoqueDemon Avid Affiliate Content Creator

    Joined:
    Apr 16, 2012
    Messages:
    191
    Likes Received:
    5
    That was working, last time I checked :/ I'm going to add it to the list of things to go over