Hi all, i have a big problem with huc ..
I'am not able to make a game larger than 192 ko ..
](*,)
HEEEEEEEEEEEEELP !!!
ÉDIT: fixed
Not fixed , if someone have an explanation or a solution .
If you're talking about for the first overlay, then that's for a very good reason... it can only BE 192KB because it has the 64KB regular CDROM subprogram as part of it (error program). That's why for the first overlay, I make it as a "bootstrap", so to speak... usually just to show a logo or something, and THEN load a normal overlay which can be 256KB.
Here's the overlay 1 code for Jungle Bros, for example:
#include "huc.h"
main()
{
set_font_pal(0);
set_font_color(1,0);
load_default_font();
put_string("PRODUCED BY OR",9,10);
put_string("UNDER LICENSE FROM",7,13);
put_string("FROZEN UTOPIA",9,16);
ad_reset();
ad_trans(2, 0x0, 4, 0x0);
cd_execoverlay(3);
}
It displays a Genesis-like startup screen, loads the custom ADPCM data bank from overlay 2, then does a cd-execoverlay() with the third overlay, which is another program.
Thanks Man ,For explanation .. :dance:
I ll test That..
I ran into the problem when expanding msong.c, which was originally the first overlay of MSR... it's got the title program, which at the time included a debug menu and some fancy option stuff. I don't remember how it got so large, but when it did, that's when it ran into the 192KB issue.
Msr has not only bad sides .. :wink:
But your solution word fine, tanks a lot man .
This issue needs to be documented on your new huc version.
I'm going to make note of it on obeybrew's docs. :)
Yes would be cool .
If you can add more tips for begginers too .
I'll try. :)