How to extract MH4U models?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by ssdk, Mar 4, 2015.

  1. ssdk
    OP

    ssdk Member

    Newcomer
    10
    4
    Mar 4, 2015
    Gambia, The
    Anyone remember this mod for Brawl?

    Also: http://forum.xentax.com/viewtopic.php?p=103731

    I ran across a post on XeNTaX this morning with people having luck extracting models for MH3U on Wii U and I was wondering if this could be possible for MH4U? Unfortunately I don't have a XeNTaX account so I can't get in touch with zaramot (which would make life so much more easier :D).

    Anyone have progress at all in mh4u model extraction or would like to work together (...hopefully get some mods working)?
     


  2. Februarysn0w

    Februarysn0w School Idol Festival

    Member
    1,205
    518
    Oct 31, 2014
    Mino city Osaka
    I'm working for this since 2014,10,11 when MH4U released in Japan. but, still I cant extract all the ".arc" compressed files, other stuffs like sound files.
     
    ssdk likes this.
  3. _eyCaRambA_

    _eyCaRambA_ GBAtemp Advanced Fan

    Member
    522
    139
    Apr 22, 2009
    United States
    Right around the corner™
    Yeah, models are working but textures are swizzled and apparently nobody who is knowledgable enough to figure the image data format out cares for them / has enough time =\
    [​IMG]
     
    Margen67 and ssdk like this.
  4. deufeufeu

    deufeufeu GBAtemp Advanced Fan

    Member
    880
    0
    Nov 21, 2005
  5. minexew

    minexew ayy lmao

    Member
    228
    149
    Mar 16, 2013
    Is it the block-based native PICA format? That one is understood, see https://github.com/smealum/3dscraft/blob/master/texconv.py
     
  6. ssdk
    OP

    ssdk Member

    Newcomer
    10
    4
    Mar 4, 2015
    Gambia, The
    Son of Alatreon what is that? I'm guessing this is the end game boss? Damn I'm still doing village quests haha.

    Thanks for posting dude... I wasn't expecting much interest in modding mh4u around here. So are the Wii U textures stored differently from the 3DS titles?
     
  7. _eyCaRambA_

    _eyCaRambA_ GBAtemp Advanced Fan

    Member
    522
    139
    Apr 22, 2009
    United States
    Right around the corner™
    Yep, unfortunately they are.
     
  8. moghedien

    moghedien GBAtemp Fan

    Member
    411
    247
    Mar 9, 2015
    United States
    Obviously someone has figured out the .arc format if they were able to get a model from the game, does anyone have any links to relevant information?

    Edit: nevermind, the ARCTool in the first post seems to work

    I've decrypted the Japanese version of the game but I'm new to ARM assembly so I haven't been able to find anything interesting in the code yet. And unfortunately I have a New 3DS XL so I can't create xorpads for the English version of the game.

    I've done a lot of work on the PSP Monster Hunter games. I figured out their model format, texture format and most of the encryption they use for various things in those games.
    (This will be of no use for the 3DS games but if anyone is interested, here's my code: https://github.com/svanheulen/mhef and https://github.com/svanheulen/mhff)
     
    ssdk and Februarysn0w like this.
  9. Okeado

    Okeado Member

    Newcomer
    21
    6
    Feb 12, 2014
    United States
    So, someone ripped an model of Gogmazios, but nobody quite knows how they pulled it off?

    Have images, models, and or textures for this game been dumped or is still a mystery. Any help is appreciated!
     
  10. Februarysn0w

    Februarysn0w School Idol Festival

    Member
    1,205
    518
    Oct 31, 2014
    Mino city Osaka
    We are working for this and now can extract any texture! Please contact ssdk. He knows everything how to extract these files.
     
  11. Okeado

    Okeado Member

    Newcomer
    21
    6
    Feb 12, 2014
    United States
    Alright, thanks for letting me know! I've been trying to cosplay some armor, but since I'm bad at drawing it out, I usually need to move the armor model to a program that lets me print it out.
     
    Februarysn0w likes this.
  12. Februarysn0w

    Februarysn0w School Idol Festival

    Member
    1,205
    518
    Oct 31, 2014
    Mino city Osaka
    I'm waiting for your mod MH4G playing Video!
     
  13. moghedien

    moghedien GBAtemp Fan

    Member
    411
    247
    Mar 9, 2015
    United States
    This is what I've figured out so far about the texture format: https://github.com/svanheulen/mhff/wiki/Monster-Hunter-4-Ultimate-Textures
    I'm great with MIPS assembly but ARM assembly is quite different so it's taking me a while to wrap my head around the game's code.

    Edit: My goal is to make an open source Blender import script for the models/materials/textures so if you have any leads at all please share :)
    Also if anyone knows if there's some code available for ARCTool, that'll save me having to disassemble that... it makes me sad that so many people in the console hacking scene are so secretive :(
     
    Februarysn0w and _eyCaRambA_ like this.
  14. moghedien

    moghedien GBAtemp Fan

    Member
    411
    247
    Mar 9, 2015
    United States
    Well, I made some progress and uploaded some (very basic/bad) code to my github: https://github.com/svanheulen/mhff/blob/master/tex.py
    This works for most of the model textures which are just tiled ETC1. It only decodes the main image and ignores the alpha channel.
    Here's an example (Red Khezu):
    [​IMG]

    Also, ssdk sent me a 3D Studio Max script for importing the models so I'm looking over that and the game disassembly to convert that to a Blender script.

    Edit: also, you need the Pillow module and I'm using Python 3.4 but it might work on lower versions.
     
    Februarysn0w, ssdk and _eyCaRambA_ like this.
  15. ssdk
    OP

    ssdk Member

    Newcomer
    10
    4
    Mar 4, 2015
    Gambia, The
    Fantastic work moghedien! Yeah I personally would prefer open source (blender) import script rather than 3ds max.

    _eyCaRambA_ or anyone who has it working on 3ds max, are you able to get it working with textures now?
     
  16. kamesenin888

    kamesenin888 GBAtemp Advanced Fan

    Member
    560
    146
    Oct 20, 2007
    Heya ppl can we add the jap dlc to mh4u or this is an impossible task?
     
  17. ssdk
    OP

    ssdk Member

    Newcomer
    10
    4
    Mar 4, 2015
    Gambia, The
    You mean swap the models? I think they're already in the game, just dummied out.
     
  18. adragon123

    adragon123 GBAtemp Regular

    Member
    130
    20
    Jun 29, 2014
    United States
    we can add dlc quests, but i'm not sure how making armor or weapons work. Here is how you do it.
     
  19. kamesenin888

    kamesenin888 GBAtemp Advanced Fan

    Member
    560
    146
    Oct 20, 2007
    so we would need to hack the rom to re enable them?
     
  20. _eyCaRambA_

    _eyCaRambA_ GBAtemp Advanced Fan

    Member
    522
    139
    Apr 22, 2009
    United States
    Right around the corner™
    In theory yes, but it's not worth the effort. Other players won't see the model and probably not even the stats of the gear since it's been properly dummied out this time.

    In other news yes, using the model and texture script you can get them to show up, which is pretty neat :) Great work!
    UV Maps need some manual treatment and I'm not too confident with this kind of stuff so here's a simple weapon render lol
    http://i.imgur.com/zwBff98.png