libertyernie / goombasav

Extract/replace Game Boy SRAM data stored in SRAM of Goomba emulator (C/C++/.NET)
GNU General Public License v3.0
51 stars 5 forks source link

Error : "Array length is smaller than 65536 bytes" #2

Closed Dasha-98 closed 8 years ago

Dasha-98 commented 8 years ago

Hi,

I tried to load a save file. When I select it, I get the error "Array length is smaller than 65536 bytes".

I attached to the file to the ticket. The file is generated from SuperCard SD integrated emulator (firmware 1.85, the latest). The file is readable in TGB Dual 1.21 (which is using Goomba Save Manager code).

Dasha-98 commented 8 years ago

Pokemon Version Rouge (FR).zip

libertyernie commented 8 years ago

I see the problem - goombasav expects a file to be 64 KB and that's only 32 KB. I'll take out the minimum filesize limit. (TGB Dual always feeds goombasav a 64 KB file internally.)

Dasha-98 commented 8 years ago

Hi,

Indeed. TGB Dual created a 64kb file (compared to the original 32kb file used by Goomba).

The file created by TGB Dual can be read by Goomba Save Manager.

libertyernie commented 8 years ago

I posted a new version that can load 32KB files or smaller. Do the 64KB files work in SuperCard SD? If so, I'll close this issue.

Dasha-98 commented 8 years ago

I don't see new version, only the 25th June one. If you route me to it, I'll retest.

Yes, 64kb files are working on SuperCard SD.

libertyernie commented 8 years ago

Oops. Just uploaded it. https://github.com/libertyernie/goombasav/releases/tag/v20160628

Dasha-98 commented 8 years ago

Thanks, I'll test this evening and close the issue.

Dasha-98 commented 8 years ago

This issue is now solved with your latest release. Thanks.