|
ForumsSega Master System / Mark III / Game GearSG-1000 / SC-3000 / SF-7000 / OMV |
Home - Forums - Games - Scans - Maps - Cheats - Credits Music - Videos - Development - Hacks - Translations - Homebrew |
Author | Message |
---|---|
|
Making Own Theme :: Divide by Zero?!?
Posted: Sun Aug 23, 2009 12:45 am
|
After playing Sonic Adventure DX on the PC for some time, it made me want to come back to Game Gear emulation. I remember Meka and all, but whatever...
The reason why I'm here is because I'm making my own theme. I'm editing the THM file along-side with the Configurator to create a theme based on an anime. Now, I got everything right (it seems, lol). Here's a portion of my THM file: [Asuka]
authors=rjsec4ever background_color=#D82312 window_background_color=#D82312 window_border_color=#151515 window_titlebar_color=#D82312 window_titlebar_text_color=#000000 window_titlebar_text_unactive_color=#00515A window_titlebar_gradient=100%-100% #D82312 window_text_color=#00007A window_text_highlight_color=#000000 menu_background_color=#D82312 menu_border_color=#151515 menu_selection_color=#000000 menu_text_color=#FFFFFF menu_text_unactive_color=#00515A menu_gradient=50%-50% #D82312 widget_generic_background_color=#00AAB3 widget_generic_selection_color=#009A9A widget_listbox_background_color=#00AAB3 widget_listbox_selection_color=#009A9A widget_listbox_text_color=#000000 widget_scrollbar_background_color=#00868A widget_scrollbar_scroller_color=#009A9A widget_statusbar_text_color=#000000 effect=blood I used a background image too, but I thought that was the cause of this odd "divide by zero" error. When I started making the theme, the configurator couldn't recognize my PNG; 640x400. When I included the instruction to use that as my background, MEKA wouldn't boot. So I took it out, still no boot. I realized the configurator forgot the ";-------" line. After adding that it booted. Default theme was set, so I switched to my theme, and gave me the following: The exception Integer division by zero. (0xc0000094) occurred in the application at location 0x00430b05.
Any help is greatly appreciated. I want an Asuka theme for MEKA. Red goes with Blue, right? |
|
|
Posted: Sun Aug 23, 2009 9:12 am |
This is a bug in MEKA because you specified empty range for gradients (100%-100% and 50%-50%) the code crash on a division per zero.
I will fix that but in the meanwhile if you don't want a gradient don't use those directives (you can comment the lines). |
|
|
Posted: Mon Aug 24, 2009 7:57 am |
It sounds like the configurator ought to handle it a bit better too. Can you send the problem PNG file? http://www.smspower.org/contact.html#maxim | |