Hacking R4 Commander V2.0

  • Thread starter Thread starter TrolleyDave
  • Start date Start date
  • Views Views 71,844
  • Replies Replies 353
EZCBuilder.png


EZC Pack Builder!

For anyone who wanted to create their own packs I've written a simple utility to do it.

-----------------------------------------------------

Entering the information

Entering the details about the pack is simple and straightforward but here is some basic information. Tips are always displayed on the right hand side of the window.

Enter EZC Pack Name field
This is the title that will displayed in R4 Commanders homebrew library. I usually use the full name of the homebrew program as well as the version number. So if you were making a pack for SNEmulDS I would fill the field in with SNEmulDS V0.6alpha.

Enter Brief Description field
Enter a brief description of what the homebrew program is or does. For example SNES emulator if yu were making a SNEmulDS pack.

Pack Type field
Simply select what category of homebrew the pack belongs to.

Your notes field
This can be anything you want. Put your signature in all your packs to let people know who made them!

Output folder for pack on MicroSD card settings
This is the area on the MicroSD card you want the pack installed into. It's broken up into Games for homebrew games, Emulators for emulators and Applications for all others. For any homebrew application that needs to be run from the root of the card or a folder off the root there's an option for it as well in the drop down list. If the NDS file needs to be in the root then leave the folder name blank.

File Types fields
Some homebrew applications like ComicBookDS or emulators allow you to load external files. Specially converted files called .CBDS files for ComicBookDS and a range of different file types for all the different emulators. R4 Commander V2.0 has the ability to let you drop these extra file types into the window and it will automatically copy them to the right folder. Enter up to 3 different file types in the fields and R4 Commander V2.0 will automatically add them when the pack is installed to the homebrew library. For example .SMC for SNES roms, .SMD for MegaDrive roms, .NES for NES roms.

Output folder for file types settings
This is the folder the extra file types will be copied to during a build. It works in the same way as the Output folder for pack settings.

----------------------------------------------

Adding A Picture

Adding an image couldn't be easier. All you have to is drop it in the top right hand corner panel of the window. Files can be .bmp, .jpg or .png. This is the image that will appear when browsing in the homebrew library.

-----------------------------------------------

Adding Files To The Pack

This is probably the trickiest part of the whole process. I've tried to keep it as simple as possible but you may still find it a bit fiddly. Adding files to the pack is pretty simple. As most downloads from the popular sites like DS-Scene and GBATemp come in .zip, .rar or .7z format you can drop these directly into the file browser in the bottom left corner of the window. You can also drag individual files into it as well, sorry but for the moment you can't drop entire folders in.

Working with archived homebrew

If you drop an archive into EZC Builder will then unpack it to it's work folder, including any sub-folders that are included in the archive. Sometimes the homebrew archives don't unpack directly into the WORKZIP folder, like the R4DS English firmware archives - they always unpack to a folder called English. If you find your archive does this EZC Builder can overcome that easily. When you build your pack EZC Pack Builder takes whichever folder the file browser is currently in to be the root directory. You can use the delete button to remove any files that aren't needed for the install.

DLDI Patching

Although most modern flash carts for the DS have auto-DLDI patching, alot of the only do it for .NDS files located in the root of the card. To be on the safe side I always patch my .NDS files manually before building the pack. To make it a simple process I've added a button in the file browser for DLDI patching. It uses dlditool.exe and drivers in a folder called DLDI for the actual patching. The program will pause after patching so you can make sure that it it was successful. At the moment the program only has R4/M3 Simply, Cyclo Evo, SC DS 1 and DS-X built into it.

Setting a picture

If you find a .bmp, .jpg or .png file in the archive that you'd like to use as the library image simply highlight it click the button.

-------------------------------------------------

Building Your Pack

Building the pack couldn't be simpler. Simply click on the Build Pack button. EZC Pack Builder will then prompt you for a file name and the location you want it saved in. Remember to add .ezc to the end of the file name as I haven't put the code in yet. The program will automatically put the card code as a prefix to the file name. Once the pack is compiled simply drop it into R4 Commander V2.0 and it will appear in the homebrew library.

------------------------------------------------

Download links

Click here to download EZC Builder in Rar format

Click here to download EZC Builder in Zip format
 
this is a great program dave, i'm able to fill my 1gb micro sd card with 44 games with this program
biggrin.gif


two thumbs up !!!

and i wanna ask, i have a very slow internet connection at work, is it possible to download the whole boxart pictures and put them in the gfx folder ? so that everytime i add new game the program doesn't have to download each picture invidually ??

thanks in advance
 
Cheers for the compliment mate. I'm going to be working on the app over the next couple of days, I want to add the ability to repack as either .7z or .zip when renaming so I'll look into that as well. I just did it individually cos I've only got a 40 gig drive on my machine so space is limited.

BTW for anyone who's interested I'm up to around 2100 or 2200 in the GBA releases. The pack I grabbed had alot of corrupt zips in it so theres around 1 in 25 games missing. I've also already added in GBA autorenaming. If you do a Check for updates you'll be able to grab it. Is anyone interested in adding the last 600 into the database while I do some more work on the actual program?
 
I've put beta10 online as a downloadable update.

+ You can now select whether you want the renamer to repack the archive as a zip or a 7zip archive. Set in Preferences->Autonamer (NDS)
+ Added a Genre drop-down list to the game library.
+ Fixed a bug when renaming 7zip files.
+ GBA Autorenaming. Set in Preferences->Autonamer (GBA)
 
does commander come with .7z or does it rely on it already being installed?

if it's previously installed, does the app assume it's in a certain spot? or can it just find it wherever?
 
Tikker said:
does commander come with .7z or does it rely on it already being installed?

if it's previously installed, does the app assume it's in a certain spot? or can it just find it wherever?

It doesn't have to be pre-installed, I include the 7z.dll library in the installs and it gets installed into the same folder as the app, then I just load it from there.
 
Beta11 now on-line as a downloadable upgrade. Just a quick fix, it now packs unarchived .NDS into .zip or .7z files.
 
Hi again!

Is there any possibility of providing a link to the latest EZ-Trim+ version? I love this program for the renaming function.

Thanks,

Z.
 
Thanks!... Yes I use it all the time. For some reason, it suits my purposes better than any other program for bulk renaming. Maybe this is because of the combination of network shares etc that I am using, but for me it's excellent.

Z.
 
zardoz said:
Thanks!... Yes I use it all the time. For some reason, it suits my purposes better than any other program for bulk renaming. Maybe this is because of the combination of network shares etc that I am using, but for me it's excellent.

Z.

Nice one. If there's anything you want added let me know and I'll see what I can do.
 
I just started using this and I'm having problems.

I can compile my library with no problems (except for a couple of games getting errors for artwork) but something is wrong with my library. When I rename a ROM, for example, it acts as if the ROM I clicked on is the on below it. Also, I'm unable to delete any ROM from my library. It gives me a "List index out of bounds (-1)" error.

Also, when I switch it to Build, the games I just loaded into the Library don't go away so I have to restart the program to start fresh. Is this normal?
 
AlexMoron said:
I just started using this and I'm having problems.

I can compile my library with no problems (except for a couple of games getting errors for artwork) but something is wrong with my library. When I rename a ROM, for example, it acts as if the ROM I clicked on is the on below it. Also, I'm unable to delete any ROM from my library. It gives me a "List index out of bounds (-1)" error.

Also, when I switch it to Build, the games I just loaded into the Library don't go away so I have to restart the program to start fresh. Is this normal?

Which version are you using?

It sounds to me like a corruption in the indexing system. I don't know why it's happened though, sorry. You'll have to reinitialize the program and re-add your games. Are they all in the same folder? Also, can you remember which games had corrupted game art? It's possible that's what caused the corruption so if I know the games I might be able to track it down.
 
TrolleyDave said:
AlexMoron said:
I just started using this and I'm having problems.

I can compile my library with no problems (except for a couple of games getting errors for artwork) but something is wrong with my library. When I rename a ROM, for example, it acts as if the ROM I clicked on is the on below it. Also, I'm unable to delete any ROM from my library. It gives me a "List index out of bounds (-1)" error.

Also, when I switch it to Build, the games I just loaded into the Library don't go away so I have to restart the program to start fresh. Is this normal?

Which version are you using?

It sounds to me like a corruption in the indexing system. I don't know why it's happened though, sorry. You'll have to reinitialize the program and re-add your games. Are they all in the same folder? Also, can you remember which games had corrupted game art? It's possible that's what caused the corruption so if I know the games I might be able to track it down.
Well, the only version I can use right now is 2.16beta2 as your blog is down and I can't find anything more up to date.

Two of my games loaded in gave me that error. Nanostray 2 and Puchi Puchi Virus. But I don't think that's the problem. I just loaded 5 ROMs and I would still get this problem. This is after initializing as well as reinstalling the whole program. I notice at one point while loading in my library it stalls on the artwork of Pac-Man World 3 for Sudoku Gridmaster and continues on after half a minute or so. But still, I get this problem with only a couple of ROMs in my library even.
 
AlexMoron said:
Well, the only version I can use right now is 2.16beta2 as your blog is down and I can't find anything more up to date.

Two of my games loaded in gave me that error. Nanostray 2 and Puchi Puchi Virus. But I don't think that's the problem. I just loaded 5 ROMs and I would still get this problem. This is after initializing as well as reinstalling the whole program. I notice at one point while loading in my library it stalls on the artwork of Pac-Man World 3 for Sudoku Gridmaster and continues on after half a minute or so. But still, I get this problem with only a couple of ROMs in my library even.

For the latest versions you have to use the Check for updates option in the Utils drop down menu. If that doesn't work I'll upload the newest version here at GBATemp and you can grab it that way. What OS are you using?
 
2.17 is officially released! The major addition being that it now fully supports GBA games. The library works/looks exactly the same as the NDS library. All files are auto-patched for SRAM before copying them onto the card just in case your loader doesn't support it.

You have to set the GBA Loader type in the Preferences drop down menu. At the moment it only supports 3in1 Tool and ExpLoader but if someone wants to tell me how other carts work with GBA I can add it in.

Link to download in the first post. If I get enough requests I'll add in a GBA release list similar to the NDS one.

Full list of changes/fixes!
-----------------------------
+ Added automattic GBA trimming
+ Added NDSS.NL to the Web Sites menu
+ Added DSTT mode (copies saves differently, shows different splash screen, accepts packs coded 'DSTT-')
+ Added code for homebrew packs coded 'ALLC-'
+ Added Languages field to the release list
+ Fixed 2000 files in folder on server limit problem
+ Fixed bug when renaming a game in library while list is sorted.
+ Fixed bug in GBA trimming.
- Removed all servers except TrolleyGuy
+ Fixed screenshot not displaying in Release List for releases higher than 1500
+ Fixed resizing in Classic Browser, Homebrew Library. MicroSD Browser windows
+ Fixed Year not displaying in Game Library
+ Added Save Library speed button to main window
+ Added Save/Load Build speed buttons to main window.
+ Added Delete Archive button for deleting Save archives created in library.
+ Fixed another offline mode bug.
+ Added option to make R4 Commander transparent while transferring a build to card (Preferences->Alpha Blend)
+ Fixed a bug when deleting a game from library and list is sorted by game name.
+ No longer displays dialog box for cheat.dat file when opening Paths Settings window.
+ Fixed Notes not displaying in Homebrew Library.
+ Added ability to download upgrades from within the program (Utils->Check for upgrades)
+ Added GBA ROM library, based off NDS library.
+ Made status text visible again!
+ Added improved GBA SRAM patching routines from BatchGBA 0.06.
+ Fixed a bug in boxart numbering.
+ Fixed a bug in Game Library renaming routine.
+ Fixed a bug in GBA Auto-SRAM Patching function.
+ Added ability to manage GBA saves in library.
+ Added support for Cyclo Evo, including splash screen and built-in skinner.
+ Fixed bug that stopped .SAV files in root of card being copied to save library.
+ Fixed bug in homebrew save importing.
+ Fixed bug in copying homebrew saves to card.
+ Fixed a bug that caused it to crash if you clicked on the last line of a filtered list in the Homebrew Library.
+ Moved some things around in the Preferences drop down menu.
+ Changed Games to NDS in the Library drop down menu.
+ Added GBA to the Library drop down menu. Selecting calls up the GBA rom library.
+ Added new TrolleyGuy blog address into program and install.
+ Tidied up various things.
+ Fixed a bug when renaming .7z files.
+ Add GBA auto-renaming.
+ Added ability to repack file as either zip or 7zip archive when renaming.
+ Added Genre drop down list to Game Library file.
+ Added GBA Loader menu option to drop down menu. Select whether you use 3 in 1 Tool or ExpLoader.
+ Fixed GBA save file copying.
+ Now removes the SAV file from the MicroSD Card when deleting using the MicroSD Card Browser util.
 
I've just put 2.17.1 online as an update. There was a bug that trashed the database when adding a renamed/repacked files from one type to another and it was a brand new install. It should be fine now.
 
2.17.4 now online.

+ Upgraded to new 7zip component and latest DLL. Fixes problem with File Not Found errors appearing when using large batches of 7zip files. It's also now 2-3x faster when repacking.

EDIT : Ok, so it seems the speed up in archiving was because upgrading the component reset all the packing settings to store so nothing was getting compressed. I've switched it back to compress and uploaded .5 to the server. It seems about the same speed as before but all the bugs in the component have been fixed. I've repacked a batch of 200 roms and there were no File not found errors.
 

Site & Scene News

Popular threads in this forum