Hacking Wii Layout Editor

  • Thread starter Thread starter Gericom
  • Start date Start date
  • Views Views 13,238
  • Replies Replies 18
  • Likes Likes 4

Gericom

Well-Known Member
Member
Joined
Jun 30, 2011
Messages
1,409
Reaction score
2,740
Trophies
2
Age
27
XP
5,092
Country
Netherlands
Maybe you know that I started some time ago with a wii layout editor. But because it was a bit messy, I decided to rewrite it.
It edits brlyt files and also supports the fonts used. (As long as you place the needed files in the same directory as the brlyt). It will also support animations.
Todo List:
  • Reading Brlyt
  • Reading Brfnt
  • Reading Brlan
  • Rendering Brlyt
  • Rendering Brlyt with Animation
  • Playing Animation
  • Writing Brlyt
  • Material and Animation Editing
  • Picking
Not fully finished, but first beta!
Features:
  • View, Edit and Save Brlyt (Not everything is editable yet, but the most is
  • Play Brlan animations (No editing yet)
  • Picking in the Layout (Selecting) (No selection rectangle or something yet and when playing animation, it is diabled)
Download: http://florian.nouwt.com/WiiLayoutEditor.zip
Source: http://florian.nouwt.com/WiiLayoutEditorSrc.zip

.Net Framework 4.0: http://www.microsoft.com/en-us/download/details.aspx?id=17851
 
Got a chance to play with it a little, seems pretty good. Nice to be able to see what changes things are making instantly instead of having to rebuild a channel and test it with wii-banner-player or Dolphin. Plays animations nicely.

Couple of suggestions: Perhaps make it possible to edit a WAD? i.e. load a WAD, have it unpacked in a temporary directory or something and load the brlyt(s) [and brlan(s), I guess] from it for editing? (If this was done, I'd suggest probably also adding the ability to swap out the TPLs within the program, instead of having to resort to another program e.g. CustomizeMii to do that; if this did happen, I'd say this could easily replace CustomizeMii as the go-to app for custom channel builders)

Also, adding panes and materials would be handy, so one could add an additional image to a channel or whatever. (And I guess deleting panes/materials could also be useful).

Besides that, the only other useful feature I can think of is already mentioned in the first post (editing animations).

I can see this becoming a very useful app in the future, it's already pretty good.
 
Got a chance to play with it a little, seems pretty good. Nice to be able to see what changes things are making instantly instead of having to rebuild a channel and test it with wii-banner-player or Dolphin. Plays animations nicely.

Couple of suggestions: Perhaps make it possible to edit a WAD? i.e. load a WAD, have it unpacked in a temporary directory or something and load the brlyt(s) [and brlan(s), I guess] from it for editing? (If this was done, I'd suggest probably also adding the ability to swap out the TPLs within the program, instead of having to resort to another program e.g. CustomizeMii to do that; if this did happen, I'd say this could easily replace CustomizeMii as the go-to app for custom channel builders)

Also, adding panes and materials would be handy, so one could add an additional image to a channel or whatever. (And I guess deleting panes/materials could also be useful).

Besides that, the only other useful feature I can think of is already mentioned in the first post (editing animations).

I can see this becoming a very useful app in the future, it's already pretty good.
Thanks! Animation editing is an upcoming feature. I need to make it. Also, the next version supports AVI -> THP conversion! With sound support. Very nice for mkwii for example. Then the revolution sdk isn't needed anymore.
 
Oh, thought of another (comparatively much smaller) suggestion: Would it be possible to add a scale along the bottom and side of preview, to make it a little easier to gauge positions etc.? Currently if I wanted to move one pane, I'd take a fairly random guess as to how much I want to move it, see how far it goes, try another number etc. It'd be handy if I could look at where I wanted it to go, look at the bottom of the preview and see a rough value of how much to move it.

I think something like that should be fairly straightforward to add, but if not, ignore this. It's not a huge issue and if I was less lazy I could probably do a quick calculation to work out how far I want to move things.
 
I get this error when I load the program.

'Unable to find an entry point named 'glCreateShader' in dll 'opengl32.dll'.
 
Works fine for me. Do you have opengl installed and the dlls in the same folder as the program?
 
You said that. Again, you need OpenGL and the .NET Framework 4.0 installed and it needs the dll files in the zip in the same folder as the exe.
 
  • Like
Reactions: malekmaroc7
I don't think this is currently working, every time I try and open a .brlyt file, it shows this error:

"Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

The given key was not present in the dictionary."

Every time I click "Continue", it closes the box and nothing happens. I'm not sure what I'm doing wrong. (When I click "Open", I select a banner.brlyt file.) Any help?

Edit: I have .NET Framework v4 installed.
 
Last edited by Braiden,
  • Like
Reactions: Alexander1970
I don't think this is currently working, every time I try and open a .brlyt file, it shows this error:

"Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

The given key was not present in the dictionary."

Every time I click "Continue", it closes the box and nothing happens. I'm not sure what I'm doing wrong. (When I click "Open", I select a banner.brlyt file.) Any help?

Edit: I have .NET Framework v4 installed.
Since this project is so old (and crappy code) I'm not providing any support anymore. Btw, it is useful if you post the stack trace when you report an error.

Note that the source code can be found here: https://github.com/Gericom/WiiLayoutEditor
 
Since this project is so old (and crappy code) I'm not providing any support anymore. Btw, it is useful if you post the stack trace when you report an error.

Note that the source code can be found here: https://github.com/Gericom/WiiLayoutEditor

Thanks for the reply, is there any chance that you will go back to working on this project?

Edit: I think this is the stack trace: (not sure how to use spoilers yet, apologies.)

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

************** Exception Text **************
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at WiiLayoutEditor.IO.BRLYT.txl1..ctor(EndianBinaryReader er, Dictionary`2 Files)
at WiiLayoutEditor.IO.BRLYT..ctor(Byte[] file, Dictionary`2 Files)
at WiiLayoutEditor.Form1.openToolStripButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.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.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.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)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3468.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
WiiLayoutEditor
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/braid/Desktop/Wii%20Things/WiiLayoutEditor/WiiLayoutEditor.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3451.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Tao.Platform.Windows
Assembly Version: 1.0.0.5
Win32 Version: 1.0.0.5
CodeBase: file:///C:/Users/braid/Desktop/Wii%20Things/WiiLayoutEditor/Tao.Platform.Windows.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3490.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Tao.OpenGl
Assembly Version: 2.1.0.12
Win32 Version: 2.1.0.12
CodeBase: file:///C:/Users/braid/Desktop/Wii%20Things/WiiLayoutEditor/Tao.OpenGl.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.
 
Last edited by Braiden,
  • Like
Reactions: Alexander1970

Site & Scene News

Popular threads in this forum