[WIP] Ohana3DS tool

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by gdkchan, Jul 11, 2015.

  1. gdkchan
    OP

    gdkchan GBAtemp Regular

    Member
    159
    189
    Jul 8, 2015
    Brazil
    What is:
    This is a small tool I've been working for some time. The goal is to open/edit the common files used on 3DS games, for now it only support viewing and exporting bch files, and other basic stuff.

    Screenshots:
    Warning: Spoilers inside!

    Source can be found on the following repository, for anyone willing to help or try it out:
    https://github.com/gdkchan/Ohana3DS-Rebirth

    To build/run it, is necessary to have .NET Framework 3.5 (already shiped with win), Managed Directx dlls (already shiped with win too, I think...), and a video card with support to Shader Model 3.0+. I didn't tried to build with Mono, but it probably wouldnt work due to DX dependency. Also, to run on 64 bits system, it's necessary to build it with x86 target platform.

    Build:


    You can download a compiled build here:

    Lastest version:

    https://www.dropbox.com/s/ch5oultgbic8d7o/o3ds_16_04_2016.zip?dl=0

    The github repository is always more up-to-date than those builds, so if you can compile it directly from the sources, do it!

    OLD, OUTDATED builds:
    (only use those if something was broken on a newer build, also please report any regressions so it can be fixed)
    https://www.dropbox.com/s/8w870oyy0h5one2/o3ds_24_02_2016.zip?dl=0
    https://www.dropbox.com/s/y6556kzrrfy5cav/o3ds_22_02_2016.zip?dl=0
    https://www.dropbox.com/s/0ahvw2mc17p521p/o3ds_09_12_2015.zip?dl=0
    https://www.dropbox.com/s/zufr21nnkxs8bpm/o3ds_19_11_2015_#2.zip?dl=0
    https://www.dropbox.com/s/b3200ai7yiur22s/o3ds_19_11_2015.zip?dl=0
    https://www.dropbox.com/s/cmdy5gceeftj7ov/o3ds_18_11_2015.zip?dl=0
    https://www.dropbox.com/s/ws1b46rj3t8krog/o3ds_11_11_2015.zip?dl=0
    https://www.dropbox.com/s/20uo2919a7j3mbk/o3ds_10_11_2015.zip?dl=0

    Please note that the tool is still WIP, so expect lots of issues.
    Note: The fragment shader can be toggled on/off using the Settings window inside the menu. Is necessary to re-open the model to make changes take effect.
    Some users had problems with it, this is why the fshader is disabled by default.
    This program is distributed as-is, I don't take any responsibility for possible damage or data loss it may cause.

    Features:
    - Load pretty much everything from BCH files (but not everything is current implemented on the UI or the RenderEngine, only model, textures, some animations...)
    - Load model, textures and skeleton animations from CGFX files (.bcres/.bcmdl/.bctex/.bcskla and such extensions)
    - Load ZMDL/ZTEX models from Fantasy Life
    - Load MBN models from Super Smash Bros for 3DS
    - Load DMP textures from... err... I forgot the game.
    - Load PACK container from Dragon Quest VII
    - Load some compressed files (like .lz, .cx, .cmp (used on Stella Glow))
    - Some custom containers from games like Pokémon and Forbidden Magna are also supported.

    Note: All model formats can be exported to SMD, DAE or OBJ. It have original skeleton and rigging too (except on .obj that doesn't support it). Skeletal animations can also be exported as SMD.

    For the lastest changes please see to the github repository.

    NOTE: This tool can't create/modify 3ds files. It is a viewer/exporter only!
    Ill let you guys know when and if, any creator is added.
     
    Last edited by gdkchan, Apr 16, 2016


  2. Dartz150

    Dartz150 GBATemp Official Lolicon Onii-chan™

    Member
    1,406
    845
    May 5, 2010
    Mexico
    On a Strange Journey
    Wasn't this from Reisiukaku? I feel confused now.
     
  3. Kliffcom

    Kliffcom GBAtemp Regular

    Member
    144
    76
    Aug 26, 2014
    Gambia, The
    "WIP new version of Ohana3DS in C#"
    I think its a mod from the orginal with more features
     
  4. Dartz150

    Dartz150 GBATemp Official Lolicon Onii-chan™

    Member
    1,406
    845
    May 5, 2010
    Mexico
    On a Strange Journey
    OK, but anyway, I have read in Rei's twitter account that him is still working on it, that's why I got confused.
     
  5. Kliffcom

    Kliffcom GBAtemp Regular

    Member
    144
    76
    Aug 26, 2014
    Gambia, The
    "Will be pushed to the old repository when it is usable"
    I think Rei work in the moment mostly on reinand so i dont think the repository will change much.
    gdkchan will add the stuff that he created to the orginal repository when it is usable.
     
  6. Dartz150

    Dartz150 GBATemp Official Lolicon Onii-chan™

    Member
    1,406
    845
    May 5, 2010
    Mexico
    On a Strange Journey
    Well that makes this even more clear, thank you, looking forward to this project, it will be VERY usefull for romhacks.
     
  7. Kaphotics

    Kaphotics badc0ded

    Member
    611
    460
    Sep 10, 2010
    United States
    Contribution volume (lines of code) shows that gdkchan is the person behind both the original and the rewrite; Rei is only helping with Map Properties and other various things.

    I am glad to see the BCH animations!
     
  8. st4rk

    st4rk nah

    Member
    545
    672
    Feb 11, 2014
    Brazil
    gdkChan is the guy behind of Ohanah3DS (old/new), Rei only helped with somethings : p
     
  9. Asia81

    Asia81 In my Ecchi World <3

    Member
    4,956
    2,447
    Nov 15, 2014
    France
    Albi
    someone can post a compiled version ?
     
  10. gdkchan
    OP

    gdkchan GBAtemp Regular

    Member
    159
    189
    Jul 8, 2015
    Brazil
    No, I created it. Rei joined after I released the first versions of "Ohana3DS". He only works on the small stuff through, like the Pokémon Tile Map editor on the old version of the tool.

    Thanks :)
     
    Dartz150 likes this.
  11. gdkchan
    OP

    gdkchan GBAtemp Regular

    Member
    159
    189
    Jul 8, 2015
    Brazil
    Just a quick update, I recently added support for ZMDL (models) and ZTEX (textures) used on Fantasy Life, if anyone is interested.
     
    st4rk likes this.
  12. TheMaxynator

    TheMaxynator Advanced Member

    Newcomer
    99
    16
    Oct 27, 2014
    Netherlands
    The Netherlands
    Awesome! Could you release a compiled version? Also, maybe you should make a changelog/features list somewhere so people know what this is capable of doing :) Keep up the good work!
     
  13. gdkchan
    OP

    gdkchan GBAtemp Regular

    Member
    159
    189
    Jul 8, 2015
    Brazil
    Ok, I added a pre-compiled build on the main post.
     
    TheMaxynator and st4rk like this.
  14. Demonslayerx8

    Demonslayerx8 GBAtemp Regular

    Member
    157
    34
    Mar 17, 2011
    United States
    How exactly do I get it to open on 64bit? Kinda lost on how to build it with a x86 target platform... whatever that is.
     
  15. TheGrayShow1467

    TheGrayShow1467 屈折

    Member
    934
    1,201
    Oct 12, 2014
    United States
    How do I extract the models & textures from banners?
     
  16. gdkchan
    OP

    gdkchan GBAtemp Regular

    Member
    159
    189
    Jul 8, 2015
    Brazil
    http://i.imgur.com/SgPZzVR.png
    Its at the dropdown list on the right side of the "Run" button.
     
  17. Demonslayerx8

    Demonslayerx8 GBAtemp Regular

    Member
    157
    34
    Mar 17, 2011
    United States
    yeah im lost... idk what program ur using to do that... and most likely i dont have it :|

    edit:
    seems like exporting as dae's doesn't store its objects or something.. makes noesis crash when opening, and vertex colors doesn't get exported inside SMD either. Had my friend export some .gr files for me due to his 32bit pc.
     
    Last edited by Demonslayerx8, Aug 3, 2015
  18. Dan_Tsukasa

    Dan_Tsukasa GBAtemp Regular

    Member
    172
    41
    Oct 14, 2014
    Tokyo Japan
    You don't need to run a 64bit program on a 64bit OS, you can just run the 32 bit exe linked in the original post.
    The program being used there is Visual Studio 2013 (0r another year).

    If you're unsure how to build software, then you'd be best off grabbing the exe.

    it appears DAE exports are broken, 1 from popolocrois causes an out of index error in the program and another I tried from Bravely Default causes noesis to crash.

    SMD opens in Noesis but noesis itself doesn't support vertex colouring anyway, you'd be best off trying another piece of software that supports SMD files. This aside, outside of Fantasy Life, all the other games that've stated to be supoorted, don't really make any use of the vertex colours


    That goes for Bravely Default, Dragon quest VIII, Forbidden Magna, Attack of the Friday Monsters, Stella Glow, Dragon Quest Monsters and Dragon Quest Slime. I can't say anything about more than that though as I don't know.
     
  19. Asia81

    Asia81 In my Ecchi World <3

    Member
    4,956
    2,447
    Nov 15, 2014
    France
    Albi
    @gdkchan : Could you add a support for bclim files (like mugshot a160 in Pokémon) ?
    The old Ohana have the support.
     
  20. gdkchan
    OP

    gdkchan GBAtemp Regular

    Member
    159
    189
    Jul 8, 2015
    Brazil
    Yes, it works fine on bot x86 and x64 systems, as long you build in as x86.

    I use Visual Studio 2012, any latter version is fine through.

    Rei started to implement the DAE format, but didn't finished it yet. So it dont actually export anything relevant. I may take a look at it soon.

    The SMD format doesn't support Vertex Colors, idk about Noesis through.

    Actually maps from most games does use Vertex Coloring to do some fancy effects, like projected shadows and whatnot.

    This is not supported yet. Since it uses CGFX for model and textures, should be easy to implement through. If someone send a cbmd file to me, I can add support soon.

    Ill implement OBJ export today, it does support vertex colors, and should be compatiblee with most 3D related softwares out there. It doesnt support bones through, but should be alright for maps.

    Yes, its a simple format, Ill try to add viewer/exporter for it soon.