1. Wavy

    OP Wavy Advanced Member
    Newcomer

    Joined:
    Aug 24, 2020
    Messages:
    82
    Country:
    Australia
    I'm following nickthegamer5's 3D banner tutorial. I exported my obj and made it into a cgfx, but whenever I open Ohana3DS with my cgfx, it gives me an exeception error saying "Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection."
    If you want a full error log from the exception error here:
    Code:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
       at System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count)
       at Ohana3DS_Rebirth.Ohana.TextureCodec.decode(Byte[] data, Int32 width, Int32 height, OTextureFormat format)
       at Ohana3DS_Rebirth.Ohana.Models.CGFX.load(Stream data)
       at Ohana3DS_Rebirth.Ohana.FileIO.load(Stream data)
       at Ohana3DS_Rebirth.Ohana.FileIO.load(String fileName)
       at Ohana3DS_Rebirth.FrmMain.open(String fileName)
       at Ohana3DS_Rebirth.FrmMain.FrmMain_Shown(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnShown(EventArgs e)
       at System.Windows.Forms.Form.CallShownEvent()
       at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
       at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
       at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.9151 (WinRelRS6.050727-9100)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    Ohana3DS Rebirth
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Users/User/Desktop/HackingToolkit9DS/COMPILED/quaddamage/Ohana3DS/Ohana3DS%20Rebirth.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Configuration
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.9153 (WinRelRS6.050727-9100)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Core
        Assembly Version: 3.5.0.0
        Win32 Version: 3.5.30729.9141 built by: WinRelRS6
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    
    For example:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    I have been stumped on this for 2 days. Maybe I'm just being dumb and just missing something but idk.
    Any help would be awesome!
    I attached the obj file I'm using if that helps.
     

    Attached Files:

    Last edited by Wavy, Nov 22, 2020
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - banners, making,