ROM Hack [WIP] Ohana3DS tool

  • Thread starter Thread starter gdkchan
  • Start date Start date
  • Views Views 351,935
  • Replies Replies 858
  • Likes Likes 40
i got some bch files from fire emblem fates and they won't open in Ohana at all.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadInt16()
at Ohana3DS_Rebirth.Ohana.Models.BCH.getVector(BinaryReader input, attributeFormat format)
at Ohana3DS_Rebirth.Ohana.Models.BCH.load(MemoryStream data)
at Ohana3DS_Rebirth.FrmMain.open(Stream data, String name)
at Ohana3DS_Rebirth.FrmMain.open(String fileName)

[...]
Send me the files and Ill try to take a look.

is it possible to add support for exporting to FBX?
Maybe, but I dont like to use external libraries. They add extra hassle when trying to compile the project.
 
Hi! I try to opem bcmdl from castlevania mirror of fate 3ds and get unsupported file format. Please i need help with this. Thanks!
 
Hi! I try to opem bcmdl from castlevania mirror of fate 3ds and get unsupported file format. Please i need help with this. Thanks!
You asked about this 3 times already, but without the files I can only guess about whats wrong. Since you get "unsupported file format", and the file have a .bcmdl extension, I can see three possibilities: 1 - The file is compressed with a compression format that is currently unsupported, 2 - It is actually a container format with one or more bcmdls inside, and 3 - The file isn't actually the nintendo bcmdl, and got this extension just by coincidence. Eitherway, I need the files to answer for sure.
 
I guess i'll supply u the models from Castlevania Mirror of Fate. I'll send em to ya when i get the game unpacked.

edit:
sent ya some castlevania files courtesy of Claudiuboy83... even tho ripped it myself lol
 
Last edited by Demonslayerx8,
I have a problem with that tool, when I open, It says "Unhandled exception in the application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately. Object reference not set to an instance of an object"
Any solution??
 
I have a problem with that tool, when I open, It says "Unhandled exception in the application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately. Object reference not set to an instance of an object"
Any solution??
Post the complete error log.
 
either do a print screen, or just highlight the whole error message (by hitting more details), and copy/pasta it here.
 
It's in Spanish,
"Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración
Just-In-Time (JIT) en lugar de a este cuadro de diálogo.

************** Texto de la excepción **************
Error en la aplicación.
-2005530518 (D3DERR_NOTAVAILABLE)
en Microsoft.DirectX.Direct3D.Device..ctor(Int32 adapter, DeviceType deviceType, IntPtr renderWindowHandle, CreateFlags behaviorFlags, PresentParameters[] presentationParameters)
en Ohana3DS_Rebirth.Ohana.RenderEngine.initialize(IntPtr handle, Int32 width, Int32 height)
en Ohana3DS_Rebirth.GUI.OViewportWindow.initialize(RenderEngine renderEngine)
en Ohana3DS_Rebirth.FrmMain.launchModel(OModelGroup model, String name)
en Ohana3DS_Rebirth.FrmMain.open(Stream data, String name)
en Ohana3DS_Rebirth.FrmMain.open(String fileName)
en Ohana3DS_Rebirth.FrmMain.mnuOpen_Click(Object sender, EventArgs e)
en System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
en System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
en System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
en System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
en System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
en System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
en System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
en System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
en System.Windows.Forms.ToolStrip.WndProc(Message& m)
en System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Ensamblados cargados **************
mscorlib
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Ohana3DS Rebirth
Versión del ensamblado: 1.0.0.0
Versión Win32: 1.0.0.0
Código base: file:///C:/Users/Adri%E1n/Desktop/o3ds_09_12_2015/Ohana3DS%20Rebirth.exe
----------------------------------------
System.Windows.Forms
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5492 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Core
Versión del ensamblado: 3.5.0.0
Versión Win32: 3.5.30729.5420 built by: Win7SP1
Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Microsoft.DirectX
Versión del ensamblado: 1.0.2902.0
Versión Win32: 5.04.00.2904
Código base: file:///C:/Windows/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll
----------------------------------------
Microsoft.DirectX.Direct3D
Versión del ensamblado: 1.0.2902.0
Versión Win32: 9.05.132.0000
Código base: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.Direct3D/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3D.dll
----------------------------------------
System.Configuration
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Microsoft.DirectX.Direct3DX
Versión del ensamblado: 1.0.2911.0
Versión Win32: 9.12.589.0000
Código base: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.Direct3DX/1.0.2911.0__31bf3856ad364e35/Microsoft.DirectX.Direct3DX.dll
----------------------------------------
System.Windows.Forms.resources
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_es_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Depuración JIT **************
Para habilitar la depuración Just In Time (JIT), el archivo de configuración de esta
aplicación o equipo (machine.config) debe tener el
valor jitDebugging establecido en la sección system.windows.forms.
La aplicación también se debe compilar con la depuración
habilitada

Por ejemplo:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

Cuando esté habilitada la depuración JIT, cualquier excepción no controlada
se enviará al depurador JIT registrado en el equipo
en lugar de controlarlo mediante el cuadro de diálogo."
 
Last edited by darkalex004,
It's in Spanish, "
Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración
Just-In-Time (JIT) en lugar de a este cuadro de diálogo.

************** Texto de la excepción **************
Error en la aplicación.
-2005530518 (D3DERR_NOTAVAILABLE)
en Microsoft.DirectX.Direct3D.Device..ctor(Int32 adapter, DeviceType deviceType, IntPtr renderWindowHandle, CreateFlags behaviorFlags, PresentParameters[] presentationParameters)
en Ohana3DS_Rebirth.Ohana.RenderEngine.initialize(IntPtr handle, Int32 width, Int32 height)
en Ohana3DS_Rebirth.GUI.OViewportWindow.initialize(RenderEngine renderEngine)
en Ohana3DS_Rebirth.FrmMain.launchModel(OModelGroup model, String name)
en Ohana3DS_Rebirth.FrmMain.open(Stream data, String name)
en Ohana3DS_Rebirth.FrmMain.open(String fileName)
en Ohana3DS_Rebirth.FrmMain.mnuOpen_Click(Object sender, EventArgs e)
en System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
en System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
en System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
en System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
en System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
en System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
en System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
en System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
en System.Windows.Forms.ToolStrip.WndProc(Message& m)
en System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Ensamblados cargados **************
mscorlib
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Ohana3DS Rebirth
Versión del ensamblado: 1.0.0.0
Versión Win32: 1.0.0.0
Código base: file:///C:/Users/Adri%E1n/Desktop/o3ds_09_12_2015/Ohana3DS%20Rebirth.exe
----------------------------------------
System.Windows.Forms
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5492 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Core
Versión del ensamblado: 3.5.0.0
Versión Win32: 3.5.30729.5420 built by: Win7SP1
Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Microsoft.DirectX
Versión del ensamblado: 1.0.2902.0
Versión Win32: 5.04.00.2904
Código base: file:///C:/Windows/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll
----------------------------------------
Microsoft.DirectX.Direct3D
Versión del ensamblado: 1.0.2902.0
Versión Win32: 9.05.132.0000
Código base: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.Direct3D/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3D.dll
----------------------------------------
System.Configuration
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
Código base: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Microsoft.DirectX.Direct3DX
Versión del ensamblado: 1.0.2911.0
Versión Win32: 9.12.589.0000
Código base: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.Direct3DX/1.0.2911.0__31bf3856ad364e35/Microsoft.DirectX.Direct3DX.dll
----------------------------------------
System.Windows.Forms.resources
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_es_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Depuración JIT **************
Para habilitar la depuración Just In Time (JIT), el archivo de configuración de esta
aplicación o equipo (machine.config) debe tener el
valor jitDebugging establecido en la sección system.windows.forms.
La aplicación también se debe compilar con la depuración
habilitada

Por ejemplo:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

Cuando esté habilitada la depuración JIT, cualquier excepción no controlada
se enviará al depurador JIT registrado en el equipo
en lugar de controlarlo mediante el cuadro de diálogo."
please try to put long posts inside a spoiler lol

anyways, from the looks of that error... you dont have DirectX installed on ur pc, or ur graphics card may not be supported?
 
Sorry, Thanks for the warning. I have Directx installed and my graphic card is a NVIDIA GeForce GTX770
mmmm not sure then.. ask gdkchan


Hi! I try to opem bcmdl from castlevania mirror of fate 3ds and get unsupported file format. Please i need help with this. Thanks!
the reason they won't open is cause they're packed inside a .pkg file, which Ohana doesn't have support for. im sure there's a .pkg unpacker somewhere.. not sure if 1 was made for the 3ds version unlike the PS3 version, which doesn't work with it.
 
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:
iz1MVK4.gif

EqAHvyx.gif

P0qB6gn.gif

TZhbL30.gif

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/0ahvw2mc17p521p/o3ds_09_12_2015.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/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.
You asked about this 3 times already, but without the files I can only guess about whats wrong. Since you get "unsupported file format", and the file have a .bcmdl extension, I can see three possibilities: 1 - The file is compressed with a compression format that is currently unsupported, 2 - It is actually a container format with one or more bcmdls inside, and 3 - The file isn't actually the nintendo bcmdl, and got this extension just by coincidence. Eitherway, I need the files to answer for sure.
I guess i'll supply u the models from Castlevania Mirror of Fate. I'll send em to ya when i get the game unpacked.

edit:
sent ya some castlevania files courtesy of Claudiuboy83... even tho ripped it myself lol

You asked about this 3 times already, but without the files I can only guess about whats wrong. Since you get "unsupported file format", and the file have a .bcmdl extension, I can see three possibilities: 1 - The file is compressed with a compression format that is currently unsupported, 2 - It is actually a container format with one or more bcmdls inside, and 3 - The file isn't actually the nintendo bcmdl, and got this extension just by coincidence. Eitherway, I need the files to answer for sure.
You asked about this 3 times already, but without the files I can only guess about whats wrong. Since you get "unsupported file format", and the file have a .bcmdl extension, I can see three possibilities: 1 - The file is compressed with a compression format that is currently unsupported, 2 - It is actually a container format with one or more bcmdls inside, and 3 - The file isn't actually the nintendo bcmdl, and got this extension just by coincidence. Eitherway, I need the files to answer for sure.
mmmm not sure then.. ask gdkchan



the reason they won't open is cause they're packed inside a .pkg file, which Ohana doesn't have support for. im sure there's a .pkg unpacker somewhere.. not sure if 1 was made for the 3ds version unlike the PS3 version, which doesn't work with it.

--------------------- MERGED ---------------------------

I upload here two .bcmdl from Castlevania Mirror of Fate! Hope you to help me with this. Thanks in advance!

--------------------- MERGED ---------------------------

mmmm not sure then.. ask gdkchan



the reason they won't open is cause they're packed inside a .pkg file, which Ohana doesn't have support for. im sure there's a .pkg unpacker somewhere.. not sure if 1 was made for the 3ds version unlike the PS3 version, which doesn't work with it.
I extract the files from .pkg 3ds i use BMS script to extract but i can't view with ohana. I upload two .bcmdl files hope to gdkchan help me whit this.
 

Attachments

On Latest Version of Ohana3DS, I realised the Model has messed up eyes when I Import Mario or Luigi. It was really fine on previous one (19_11_2015_#2), but I deleted it, now I can't Download it back as the Link is down. :(
 
Thank you so much and i have animation .bcskla same problem can't importem to ohana...what can i do with that?
for the animation files... do the same as the bcmdl.. delete the value's in front of CGFX
xAd2Xc9.png


edit:
i probably shouldve tested before replying lmao... well doing that doesn't seem to make it import...
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.ReadByte()
at Ohana3DS_Rebirth.Ohana.IOUtils.readString(BinaryReader input, UInt32 address, UInt32 count)
at Ohana3DS_Rebirth.Ohana.Models.CGFX.getDictionary(BinaryReader input, UInt32 dictionaryOffset)
at Ohana3DS_Rebirth.Ohana.Models.CGFX.getDictionary(BinaryReader input)
at Ohana3DS_Rebirth.Ohana.Models.CGFX.load(Stream data)
at Ohana3DS_Rebirth.FrmMain.open(Stream data, String name)
at Ohana3DS_Rebirth.FrmMain.open(String fileName)
 
Last edited by Demonslayerx8,

Site & Scene News

Popular threads in this forum