libertyernie / brawltools

BrawlBox and BrawlLib
http://forums.kc-mm.com/index.php?topic=67847.0
142 stars 31 forks source link

Export all problem #196

Closed ad48hp closed 5 years ago

ad48hp commented 5 years ago

Exporting a folder "Attraction/At015" that contained about 15 brres files. https://1drv.ms/u/s!ApTusXylYbest1g-JxZo7453GJa0 Noice bug report system m9 tho. I used it to report the bug, but i would rather write it myself here too. ( ͡° ͜ʖ ͡°)

Unable to cast object of type 'BrawlLib.SSBB.ResourceNodes.U8FolderNode' to type 'BrawlLib.SSBB.ResourceNodes.BRRESNode'.
   at BrawlBox.NodeWrappers.U8FolderWrapper.ExportAll()
   //Unimportant bulšit from now on xdýdýdý
   at BrawlBox.NodeWrappers.U8FolderWrapper.ExportAllAction(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Also, when i export an entire brres file, it asks me which format i want to save the textures in, but don't ask to save the models as dae..

libertyernie commented 5 years ago

I don't really know how to fix this.

@Sammi-Husky @BlackJax96 @soopercool101 any ideas?

soopercool101 commented 5 years ago

Okay figured out it appears to be due to an invalid cast. It casts all these as ARCs and BRRES's and runs their equivalent functions, which doesn't work proper. Writing actual ExportAll functions for U8 and U8 Folders will more than likely fix this. I'll give it a crack and make a pull request if it works.