PCEngine-FX.com

PCE-FX Homebrew Development => Localizations, Games, Apps, Docs => Topic started by: touko on 02/17/2012, 05:48 AM

Title: BANKS problem with huc
Post by: touko on 02/17/2012, 05:48 AM
Hi all, i have a big problem with huc ..

I'am not able to make a game larger than 192 ko ..

 ](*,)
HEEEEEEEEEEEEELP !!!

ÉDIT: fixed
Title: Re: BANKS problem with huc
Post by: touko on 02/18/2012, 01:36 PM
Not fixed , if someone have an explanation or a solution .
Title: Re: BANKS problem with huc
Post by: OldRover on 02/18/2012, 03:30 PM
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.
Title: Re: BANKS problem with huc
Post by: OldRover on 02/18/2012, 03:33 PM
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.
Title: Re: BANKS problem with huc
Post by: touko on 02/19/2012, 10:59 AM
Thanks Man ,For explanation ..   :dance:
I ll test That..
Title: Re: BANKS problem with huc
Post by: OldRover on 02/20/2012, 01:15 AM
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.
Title: Re: BANKS problem with huc
Post by: touko on 02/20/2012, 01:48 PM
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.
Title: Re: BANKS problem with huc
Post by: OldRover on 02/20/2012, 02:15 PM
I'm going to make note of it on obeybrew's docs. :)
Title: Re: BANKS problem with huc
Post by: touko on 02/23/2012, 05:43 AM
Yes would be cool .
If you can add more tips for begginers too .
Title: Re: BANKS problem with huc
Post by: OldRover on 02/23/2012, 12:01 PM
I'll try. :)