• Welcome to SCdev.org. Please log in.

Welcome to the new SCdev forums!

Homebrew not loading when binary over 3MB

Started by crs, June 20, 2007, 11:15:37 PM

Previous topic - Next topic

crs

Hi all,

Bit of a unique problem here, I've started adding level data to my game and suddenly the game is no longer booting up.

I'm using a supercard one (the 'About' screen shows: moonshell 1.41, SuperCard 2.00)

I have narrowed it down to the binary working when at 3,478,080 bytes  but anything more and it hangs moonshell.

The strange thing is that while my game doesn't work on the supercard one, with all the level data, it works fine on my supercard rumble (slot2 card) ?

Is moonshell taking up precious RAM which it wont release?

Any solution to this limitation? (apart from using a fat lib type thing).

Thanks.

arctic_flame

The DS has 4MB of RAM. Therefore the binary has to fit into this ram, not all of which is available. I would recommend loading the levels on the fly with libfat.

crs

Thought as much, weird that it worked fine from the SC rumble cart though.  Got it working fine with DLDI.

Thanks for your reply, wasn't sure anyone would answer for a sec there :)

dantheman

Complete guess ahead:
I'd imagine that your guess about Moonshell taking up the remaining space is probably correct.  Moonshell is a full-fledged homebrew program, while the slot-2 Supercard loaders are meant to be just loaders, so they take up less RAM.