Author Topic: [lib] libgbpak - a Transfer Pak beta library and dumping-tool v0.63.2  (Read 43103 times)

0 Members and 1 Guest are viewing this topic.

Offline saturnu

  • ヽ(^o^)丿
  • Hero Member
  • *****
  • Posts: 1167
  • Karma: +149/-0
    • View Profile
    • :D

Hi,
here is my transfer pak source and demonstration program :D

EDIT 1: bugifx - something important was commented out ^^
EDIT 2: v0.2 ram reading/writing
EDIT 3: demo tool update
EDIT 4: demo tool bugfix on newer os
EDIT 5: v0.62 MBC2 RAM dump fix
EDIT 6: v0.63 tv_mode force off - some experimental stuff

if you want to try out the lib, it seems that this tool is "save" to use anyway. :D

WARNING: this isn't tested on any retail cart until now.

keep in mind that the transfer pak isn't a flagship in engineering at all.
better clean the contacts, don't shake it to much and make a test-dump before writing to it. ^^
i mean it should work. :D - just be careful ^^


i was a bit to lazy to program a proper file selection screen, so the restore function is
enabled in the menu, if a file is found that matches up the way the tool is doing it's backup.

e.g.
TITLE: THE GAME
FILE: /GB64/THEGAME.srm

gb64_latest_version

(force tv type, if the picture is running wild)

good luck! :3

I got it to work and was able to repeat it one or two more times. I have everdrive64 v2. Here are the steps I took:

1. System was turned off
2. Plugged both gb camera and transfer pack SNUGGLY into the controller on port 1.
3. Turn on and start  libgbpak beta v.6 (with sram write)
4. Libgbpak makes the gb ding sound and shows the "check connection" message on the bottom and NO -1 or -4
5. If requirements in step 4 has been met, then slightly pull the gb camera out JUST A LITTLE BIT instead of it being all the way in the transfer pack. I am talking about 1 or 2 mm.
6. Press the reset button on the system - not powering it off.
7. Start libgbpak again with a little prayer...
8. Once it shows the name of the game, press B to dump the SRAM, and be patient because it is about 128KB.

Can this information be added to the main post or the readme file or something? I was having the same issue, and pulling the cartridge out just a tiny bit really did the trick.

compatibility list

green - supported
red - currently unsupported
yellow - does this even exist?
purple - for the brave and faithful  ^^

00ROM ONLYsupported
01MBC1 supported
02MBC1+RAM  supported
03MBC1+RAM+BATTERY  supported
04???
05MBC2 supported
06MBC2+BATTERYsupported - since v0.62
07???
08ROM+RAM supported
09ROM+RAM+BATTERYsupported
0A???
0BMMM01not supported - but possible
0CMMM01+RAM not supported - but possible
0DMMM01+RAM+BATTERY not supported - but possible
0E???
0FMBC3+TIMER+BATTERY  supported
10MBC3+TIMER+RAM+BATTERY/MBC30supported
11MBC3  supported
12MBC3+RAMsupported
13MBC3+RAM+BATTERYsupported
14???
15MBC4experimental - since v0.63
16MBC4+RAMexperimental - since v0.63
17MBC4+RAM+BATTERYexperimental - since v0.63
18???
19MBC5supported
1AMBC5+RAMsupported
1BMBC5+RAM+BATTERYsupported
1CMBC5+RUMBLEsupported
1DMBC5+RUMBLE+RAMsupported
1EMBC5+RUMBLE+RAM+BATTERYsupported
1FMBC6 ?not supported
20MBC6+RAM (e.g. Net de Get Minigame@100)not supported - need more info
21MBC6+RAM+BATTERY ?not supported
22MBC7 (Kirby's Tilt n' Tumble, Command Master)not supported - but possible
23MMBC7+RAM ?not supported
24MBC7+RAM+BATTERY ?not supported
[...]
59MBC1 Game Boy Smart Cardnot supported - but possible
[...]
97???
99???
[..]
BEMBC5 Pocket Voice Recordernot supported
EAMBC1 SONIC5not supported - but possible
FCPOCKET CAMERAsupported - since v0.60
FDBANDAI TAMA5 (Tamagotchi 3)not supported - but possible
FEHuC3not supported - need more info
FFHuC1+RAM+BATTERY/HuC1Aexperimental - since v0.63
??G-MMC1not supported - need more info
« Last Edit: April 08, 2018, 08:17 AM by saturnu »

Offline BolinCaker

  • Full Member
  • ***
  • Posts: 136
  • Karma: +4/-0
    • View Profile
    • CakerBaby
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #1 on: April 14, 2014, 06:16 PM »
I don't understand what this is. Is it so you could upload like your game save from Pokemon gameboy to pokemon stadium?

Offline saturnu

  • ヽ(^o^)丿
  • Hero Member
  • *****
  • Posts: 1167
  • Karma: +149/-0
    • View Profile
    • :D
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #2 on: April 14, 2014, 07:02 PM »
basically it's library, so developers could use of the transfer pak.

the transfer pak can:
- read rom
- read ram
- write ram
(- read/set rtc - activate rumble)

atm. it could only read the rom, but not the ram (savegame)

Offline meneerbeer

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #3 on: April 14, 2014, 10:06 PM »
Isn't this similar: http://lacklustre.net/n64/agbd/

Not sure if it works on Everdrive though.

Offline reprep

  • Sr. Member
  • ****
  • Posts: 299
  • Karma: +14/-1
    • View Profile
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #4 on: April 15, 2014, 01:21 AM »
thanks saturnu. if you release a binary, i would gladly help testing.

all gbc games are mbc5 and usually super cheap, so you can use one for testing.
PM me if you want to sell your Everdrive MD.

Offline Cybertronic

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +3/-0
    • View Profile
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #5 on: April 15, 2014, 09:03 PM »
What game uses Ram? Maybe I have one I could just mail to you.

Offline saturnu

  • ヽ(^o^)丿
  • Hero Member
  • *****
  • Posts: 1167
  • Karma: +149/-0
    • View Profile
    • :D
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #6 on: April 19, 2014, 01:15 AM »
there is still process on this... but i takes time to get it more reliable.
even the original implementation seems to double check connections power state etc... ^^
just dumped a rom over usb today, which is working on an emulator :D

Offline robneal81

  • Jr. Member
  • **
  • Posts: 89
  • Karma: +8/-1
    • View Profile
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #7 on: April 19, 2014, 02:10 AM »
I'm excited to see what can come of this!  The ultimate goal would be to play GB/GBC games on an N64, but even ROM dumping is awesome.  Looking forward to seeing how far you go and I'll happily test anything you'd like.

Offline reprep

  • Sr. Member
  • ****
  • Posts: 299
  • Karma: +14/-1
    • View Profile
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #8 on: April 19, 2014, 02:15 AM »
there is still process on this... but i takes time to get it more reliable.
even the original implementation seems to double check connections power state etc... ^^
just dumped a rom over usb today, which is working on an emulator :D

that is great news.
PM me if you want to sell your Everdrive MD.

Offline nuu

  • Hero Member
  • *****
  • Posts: 949
  • Karma: +45/-2
    • View Profile
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #9 on: April 19, 2014, 11:36 AM »
Good job Saturnu! :D

Offline saturnu

  • ヽ(^o^)丿
  • Hero Member
  • *****
  • Posts: 1167
  • Karma: +149/-0
    • View Profile
    • :D
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #10 on: April 19, 2014, 01:29 PM »
I'm excited to see what can come of this!  The ultimate goal would be to play GB/GBC games on an N64, but even ROM dumping is awesome.  Looking forward to seeing how far you go and I'll happily test anything you'd like.

this would be a pokemon stadium romhacking job, 'cause it's the only good emulator out there.
gnuboy64 has some sound issues and gblator has no sound at all. ^^

i think a cool features could be the possibility to transfer savegames from your original carts to the edgb or sdcard. :>
or maybe a savegame cheat tool which allows you to search for and alter some values inside the savegame.

atm. i have a modified version of my menu with a modified version of my loader64 to transfer the romdata from sdram to the pc.

i would be grateful if someone would help testing. ^^
i'm planing to realease some tools you could play with, but today my sd2snes has arrived so this will have to wait. :D

Offline saturnu

  • ヽ(^o^)丿
  • Hero Member
  • *****
  • Posts: 1167
  • Karma: +149/-0
    • View Profile
    • :D
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #11 on: April 20, 2014, 11:28 PM »
on the top left is my usb loader client in the terminal, dumping the ed64 sdram.
the ed64 is running alt64.
on the right you can see geany with the the library source. ^^
it's great that it's possible to use the ed64 sdram as extended ram, 'cause the n64 only has 4 or 8Mbyte rdram. :>



EDIT: today i implemented ram bankswitching and reading/writing (untested) :>
« Last Edit: April 21, 2014, 05:32 PM by saturnu »

Offline saturnu

  • ヽ(^o^)丿
  • Hero Member
  • *****
  • Posts: 1167
  • Karma: +149/-0
    • View Profile
    • :D
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #12 on: April 22, 2014, 03:58 AM »
hi,
perhaps someone could test this for me?
i'm unsure if there is a timing error in my disk saving or if it's just caused by my new micro sdcard.
most of the time the files are ending up in 0-byte but sometimes it's working. ^^
the dumping is allright, i could print out the correct bytes... it's just an saving error, somehow. -_-


install: copy the GB64 folder to the root of the sdcard.
(warning: writes to the false sectors) :>


usage:
insert the transfer pak and the rom before starting the rom.
if you could read the title push 'A' to dump.

« Last Edit: April 22, 2014, 03:53 PM by saturnu »

Offline Paulweeze

  • Video Game Connoisseur
  • Hero Member
  • *****
  • Posts: 1028
  • Karma: +41/-0
  • Music and Games are good for the soul.
    • View Profile
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #13 on: April 22, 2014, 05:26 AM »
Im gonna test it out for ya with a few different titles :D. What do the error messages corespond to? I assume that -4 means no transfer pack and -1 means no rom?
« Last Edit: April 22, 2014, 05:43 AM by Paulweeze »
Everdrives I own: ED64, Mega Everdrive, EDGB, EDGG, N8, Master Everdrive

Other Flashcarts: SD2SNES

Offline Paulweeze

  • Video Game Connoisseur
  • Hero Member
  • *****
  • Posts: 1028
  • Karma: +41/-0
  • Music and Games are good for the soul.
    • View Profile
Re: [lib] libgbpak - a Transfer Pak beta library
« Reply #14 on: April 22, 2014, 05:53 AM »
I got it to show up with a name (had to use a different controller) and dumped it but I can't find the dump. Where does the program dump the rom to? Btw, does this require a microsd card?
« Last Edit: April 22, 2014, 06:03 AM by Paulweeze »
Everdrives I own: ED64, Mega Everdrive, EDGB, EDGG, N8, Master Everdrive

Other Flashcarts: SD2SNES