Homebrew SaveGame Manager GX

Delete Save one by one fonction

  • Yes

    Votes: 34 81.0%
  • No

    Votes: 8 19.0%

  • Total voters
    42
  • Poll closed .

mike333

Well-Known Member
Member
Joined
Aug 30, 2010
Messages
718
Trophies
0
XP
258
Country
Poland
Hi dj_skual,

Is there any chance that SGM-GX might work in unattended scenario?

Something like this:
- without any user intervention/help
- extract all saves from Wii
- saves them in compressed form 7z/zip
- in folder sd:/whatever
- under name YYYYMMDD-HHMM
- wait 5s then quit to HBC
- pushing data to ftp/smb/http-form/nfs share is optional

I've tried to use SGM-GX and encountered following problems:

1.
Is there any special magic required to browse SD (non SDHC) card under SGM-GX?
"Reload SD" icon does nothing. Screen only fades out/in very fast.
From top menu i can only choose "usb1/Wii/Mii".
SGM-GX uses IOS249 which is d2x v8 IOS56 based.
This is main SD card which works under HBC/Cfg/BootMii/d2x installer.
There is no partition table on card (super floppy mode) so I guess it might be accessed "sd:/" instead of "sd1:/".

Code:
# fsck.vfat -v /dev/sde
dosfsck 3.0.12 (29 Oct 2011)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkdosfs"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
65536 bytes per cluster
128 reserved sectors
First FAT starts at byte 65536 (sector 128)
2 FATs, 16 bit entries
65536 bytes per FAT (= 128 sectors)
Root directory starts at byte 196608 (sector 384)
2048 root directory entries
Data area starts at byte 262144 (sector 512)
30012 data clusters (1966866432 bytes)
62 sectors/track, 61 heads
0 hidden sectors
3842048 sectors total
Checking for unused clusters.
/dev/sde: 329 files, 7862/30012 clusters

SGM-GX fails to run when no usb device is present (only my SD card).
WindowPrompt(tr("Error:"), tr("No Storage Device Found"), tr( "OK" ));

2.
Another issue is related to "custom paths" from "settings menu".
I'm unable to clear current path, letter "u" stays from "usb1:/".
Even hitting "clear" icon won't help.

Thanks for help.

edit1: added fsck of my SD card
edit2: added no usb scenario
 

dj_skual

Code & Mix
OP
Member
Joined
Mar 9, 2008
Messages
1,014
Trophies
1
Website
sourceforge.net
XP
2,621
Country
France
Hi dj_skual,

Is there any chance that SGM-GX might work in unattended scenario?

Something like this:
- without any user intervention/help
- extract all saves from Wii
- saves them in compressed form 7z/zip
- in folder sd:/whatever
- under name YYYYMMDD-HHMM
- wait 5s then quit to HBC
- pushing data to ftp/smb/http-form/nfs share is optional
i don't think it is something i will add to the app, but post a request on the googlecode issue page, i will keep that in mind ;)

I've tried to use SGM-GX and encountered following problems:
......
please, try a fresh install of the app on your sd and load with official channel or HBC (you can find thoses files on the google code download page)
and if the problem with your card is not fixed, please report the issue on the googlecode issue page.

thx for your report.
 

mike333

Well-Known Member
Member
Joined
Aug 30, 2010
Messages
718
Trophies
0
XP
258
Country
Poland
please, try a fresh install of the app on your sd and load with official channel or HBC (you can find thoses files on the google code download page)
and if the problem with your card is not fixed, please report the issue on the googlecode issue page.
This is first time I've tried SGM-GX so it was fresh install using HBC_SetUp_R123.zip as source running from latest HBC.
 

mike333

Well-Known Member
Member
Joined
Aug 30, 2010
Messages
718
Trophies
0
XP
258
Country
Poland
This is first time I've tried SGM-GX so it was fresh install using HBC_SetUp_R123.zip as source running from latest HBC.
can you try with a fresh sd card with just my app on the card?
Please define fresh word:
- new one from ebay. sd or sdhc? kingston/sandisk? what capacity?
- empty without any other files
- formatted different way, for eg. fat32, with partition table
Please also note that my SD card in current state works fine under: HBC/Cfg_usb_loader/BootMii/d2x_installer.
 

dj_skual

Code & Mix
OP
Member
Joined
Mar 9, 2008
Messages
1,014
Trophies
1
Website
sourceforge.net
XP
2,621
Country
France
Please define fresh word:
- new one from ebay. sd or sdhc? kingston/sandisk? what capacity?
- empty without any other files
- formatted different way, for eg. fat32, with partition table
Please also note that my SD card in current state works fine under: HBC/Cfg_usb_loader/BootMii/d2x_installer.

before done anything, please, try to boot WiiXplorer from your SD card.
if wiixplorer boot, report to me, if wiixplorer don't boot, there is a problem with your card.

by "fresh", i think a fresh formatted FAT card with only the complete HBC_Setup_R123.zip extracted on the root.
try with sd or sdhc but it work with both at home.
 

mike333

Well-Known Member
Member
Joined
Aug 30, 2010
Messages
718
Trophies
0
XP
258
Country
Poland
Please define fresh word:
- new one from ebay. sd or sdhc? kingston/sandisk? what capacity?
- empty without any other files
- formatted different way, for eg. fat32, with partition table
Please also note that my SD card in current state works fine under: HBC/Cfg_usb_loader/BootMii/d2x_installer.
before done anything, please, try to boot WiiXplorer from your SD card.
if wiixplorer boot, report to me, if wiixplorer don't boot, there is a problem with your card.
Wiiexplorer r212 was unable to show SD content.
by "fresh", i think a fresh formatted FAT card with only the complete HBC_Setup_R123.zip extracted on the root.
try with sd or sdhc but it work with both at home.

First change. Formatted using default cluster size.

Code:
#mkfs.vfat -I -F16 /dev/sde
# fsck.vfat -rv /dev/sde
dosfsck 3.0.12 (29 Oct 2011)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkdosfs"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
32768 bytes per cluster
64 reserved sectors
First FAT starts at byte 32768 (sector 64)
2 FATs, 16 bit entries
131072 bytes per FAT (= 256 sectors)
Root directory starts at byte 294912 (sector 576)
1024 root directory entries
Data area starts at byte 327680 (sector 640)
60022 data clusters (1966800896 bytes)
62 sectors/track, 61 heads
0 hidden sectors
3842048 sectors total
Checking for unused clusters.
/dev/sde: 0 files, 0/60022 clusters

No luck.
Second try. Made partition table on card:
Code:
   Device Boot	  Start		 End	  Blocks   Id  System
/dev/sde1			2048	 3842047	 1920000	e  W95 FAT16 (LBA)
And forrmated regular way:
Code:
# mkfs.vfat  -F16 /dev/sde1
# fsck.vfat -rv /dev/sde1
dosfsck 3.0.12 (29 Oct 2011)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkdosfs"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
32768 bytes per cluster
64 reserved sectors
First FAT starts at byte 32768 (sector 64)
2 FATs, 16 bit entries
131072 bytes per FAT (= 256 sectors)
Root directory starts at byte 294912 (sector 576)
1024 root directory entries
Data area starts at byte 327680 (sector 640)
59990 data clusters (1965752320 bytes)
62 sectors/track, 61 heads
0 hidden sectors
3840000 sectors total
Checking for unused clusters.
/dev/sde1: 0 files, 0/59990 clusters
Success.
Wiiexplorer and GSM-GX were able to see card. I made save backup on card. Worked fine.

Looks like my card is supported from SD protocol standpoint but there is some bug in libfat module (?) which prevents accessing card when formatted in partition less mode (aka superfloppy mode).

Regards,
mike333.
 

dj_skual

Code & Mix
OP
Member
Joined
Mar 9, 2008
Messages
1,014
Trophies
1
Website
sourceforge.net
XP
2,621
Country
France
Success.
Wiiexplorer and GSM-GX were able to see card. I made save backup on card. Worked fine.

Looks like my card is supported from SD protocol standpoint but there is some bug in libfat module (?) which prevents accessing card when formatted in partition less mode (aka superfloppy mode).

Regards,
mike333.
happy to see you have find the problem.
i don't know anymore about libfat module, you can look the lib i use here (LibFat) and if you can find a fix to the problem, that will be a very good thing.
or perhaps here: DeviceControl
 

mike333

Well-Known Member
Member
Joined
Aug 30, 2010
Messages
718
Trophies
0
XP
258
Country
Poland
happy to see you have find the problem.
i don't know anymore about libfat module, you can look the lib i use here (LibFat) and if you can find a fix to the problem, that will be a very good thing.
or perhaps here: DeviceControl
I'm reading https://code.google....itionHandle.cpp and looks like superfloppy mode case is not supported at all.

At end of PartitionHandle::PartitionHandle I would change a bit:
Code:
FindPartitions();
// sometimes there is no partition table
if ( PartitionList.size() == 0 )
{
FindPartitions_detectsuperfloppymode();
}
}
Some pseudo code.
Code:
void PartitionHandle::FindPartitions_detectsuperfloppymode()
{
char * name;
u8 part_type;
u8 buffer[BYTES_PER_SECTOR];

//read first (0) sector of device
if (!interface->readSectors(0, 1, buffer))
return;

//detect supported filesystems
if((memcmp(buffer + 0x36, "FAT", 3) == 0 || memcmp(buffer + 0x52, "FAT", 3) == 0) &&
strncmp(PartFromType(part_type), "FAT", 3) != 0) // what is this additional check for?
{
name = "FAT32";
part_type = 0x0c;
}
else if (memcmp(buffer + 0x03, "NTFS", 4) == 0)
{
name = "NTFS";
part_type = 0x07;
}
else
{
//nothing interesting found
return;
}
//lets add this "partition"

int part = PartitionList.size();
PartitionList.resize(part+1);
PartitionList[part].FSName = name;
PartitionList[part].LBA_Start = 0;
PartitionList[part].SecCount = sector_count_of_whole_device;
PartitionList[part].Bootable = false;
PartitionList[part].PartitionType = part_type;

// dunno about these fields
PartitionList[part].PartitionNum = part_num; // I guess "1"
PartitionList[part].EBR_Sector = EBR_Sector;
}

Should I get some achievement for coding at Saturday night?
Turbonerd? :)
 

dj_skual

Code & Mix
OP
Member
Joined
Mar 9, 2008
Messages
1,014
Trophies
1
Website
sourceforge.net
XP
2,621
Country
France
Revision 124 avalaible:

Download dol file here: R124.dol
Download HBC install pack here: HBC_SetUp_R124.zip

r124:

* Fixed Issue 158
* Fixed CustomPath create problem
* Fixed SearchBar for Emulated Saves Browser
* Added Fix_EmuDB() fonction to allow you to fix or create the FaceLib file inside your emulated nand path
* Added Emulated Mii Browser to browser your miis inside your emulated nand path
* Added Emulated Mii Window to allow you to manage your miis installed inside your emulated nand path
* Added InstallMiiToEmu() fonction to FileMiiWindow, to install a mii from device to your emulated nand path
* Added InstallMii() fonction to MiiWindow, to install a mii from your real nand to your emulated nand path
* Added DeleteEmuSave() fonction to EmuSaveWindow, to install a save from your emulated nand path
* Changed ManageAll Window to add all new saves and miis emulated nand fonctions

Enjoy!!!
:yaywii:
 
  • Like
Reactions: 2 people

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Wheat flour has a lower chance at survival