Hacking R4 Homebrew games

chrisstan0

Active Member
OP
Newcomer
Joined
Oct 6, 2007
Messages
25
Trophies
0
Location
Australia, VIC
Website
Visit site
XP
33
Country
dlditut.jpg

Official DLDI Website
Linux DLDI Tutorial

What is DLDI? (how did it come about?)

DLDI stands for ‘Dynamically Linked Device Interface’. It is an interface for libfat that homebrew developers attached to their projects.

I’ll break it down to more understandable terms. Let’s say a homebrew developer makes a DS game where you can draw a picture and save the image to your flash cart. To save this image on the flash cart the developer would have to know the specific piece of code that allows you to write things to the cart. And if you wanted to read the image so you can edit it again you’d need access to the read capabilities of the flash cart. This forms the read/write commands which are essentially what libfat is.

There is a big problem however. Every flash cart uses different read/write commands. That would mean to get your game working on four different flashcarts you’d need to code it with all four different write/write methods. This is a big hassle for developers and flash cart owners a like. Under the old system homebrew projects that used read/write commands (FAT access) only worked on the flashcarts they were specifically coded for. As there are so many flash carts on the market many were left out because to keep your homebrew project working on 15 + different kits would be a nightmare!

Along came DLDI. This interface developed by Chishm unifies everything. It is a single interface that homebrew developers attach to their projects. The developers don’t have to worry about making their project compatible with a whole range of different carts. Instead each flashcart has a specific DLDI patch made for it which houses all the read/write commands. You would then simply patch the homebrew game or application with your cart’s DLDI patch and it will work on your cart. So if you have an R4 DS you apply the R4 DS DLDI patch to the homebrew .nds file. The beauty is that once a DLDI patch has been made for your cart it’ll be compatible with every piece of homebrew that has DLDI support.


What carts are supported?

As of the time of writing the following carts have a DLDI patch:

AceKard+
DSLink
DS-Xtreme
Ewin2
EZ-Flash IV
EZ-Flash V
G6-Flash (Lite)
M3 Adapter (CF)
M3 Adapter (SD)
Max Media Dock
GBA Movie Player (CF)
GBA Movie Player (SD)
NEO flash MK2 & MK3
NEO2
Ninja DS
NinjaPass X9
R4 DS
M3 DS Simply
Supercard (CF)
Supercard (SD)
Supercard Lite
Supercard DS One

You can download DLDI patches from the official site here.

Important note
: many of the current slot-1 flashcarts now patch homebrew automatically, so you won't need to patch anything (providing you have the latest firmware/loader/updates for your cart). These carts feature automatic DLDI patching: CycloDS evolution, R4, M3 Simply, and other might add up to this list later.


What Homebrew games/apps do I need to patch?[/color]

Any homebrew game or application that uses FAT access and supports DLDI. Homebrew games/apps that do not read or write to your card do not need to be patched.


How do I patch my homebrew games/apps?

1. Download a DLDI patcher from the homepage. I recommend this one.
2. Download the appropriate DLDI patch for your flash cart.
3. Select the DLDI file you want to use.
4. Select the homebrew you want to patch in the ‘binaries’ section.
5. Click ‘Patch’ and you’re done.

dldipatcher.gif


Note: EZ-Flash V users will need to use a separate DLDI patcher to make DLDI work. If you have an EZ-Flash V please use this DLDI patcher. No other files are needed, simply drag and drop the homebrew onto the exe file.







This guide didn't really help me so can someone tell me step by step how to use wi-fi homebrew games........

Thanks
 

ZAFDeltaForce

Specialist
Member
Joined
Sep 9, 2006
Messages
2,794
Trophies
1
XP
597
Country
Singapore
Just patch them normally with DLDI and fire them up on your card.

However, if they still don't work, you probably need to patch them with the NDSL WiFi Patcher (http://www.mediafire.com/?fmynxiqd9nn)
 

ZAFDeltaForce

Specialist
Member
Joined
Sep 9, 2006
Messages
2,794
Trophies
1
XP
597
Country
Singapore
im not able to patch my wifichat with DLDI patcher and the other one u gave me didn't do anything...........
The DLDI patcher didn't work probably because you didn't download a DLDI file. In any case, rather than using DLDI Patcher, I recommend using DLDIrc. Its more convenient.

And about the WiFi patcher, it is said to fix the WiFi connection issues with certain DSs. If your homebrew isn't able to connect to WiFi, use it.

A thanks would be nice too.
 

ZAFDeltaForce

Specialist
Member
Joined
Sep 9, 2006
Messages
2,794
Trophies
1
XP
597
Country
Singapore
Lol, its cool mate
happy.gif


Ok, to use DLDIrc, right-click on your homebrew and select your DLDI file for your flashcart (R4 in this case). If the DLDI file does not appear, reinstall the software and ensure that you install the R4 DLDI file in the process (click the DLDI file from a list within the install)

After that, run the "Setup" file (the one that came with the wifivoicechat zip file) and select the wifivoicechat file. Click "Auto" or similar and let it run. After the setup completes what it needs to do, get the wifivoicechat file in your your R4 and report back
 

Zeld

Member
Newcomer
Joined
Oct 3, 2007
Messages
17
Trophies
0
Website
www.freewebs.com
XP
77
Country
United States
I recall speaking with chishm about some of this stuff (I was asking him about the possibilities of being able to successfully complete some potentially wicked hacks I wanted to attempt). It's very appealing.

It sure is nice that the DS is both a relatively powerful system and yet it's still very accessible for independent developers. It's a shame systems like the Wii are so hard to get into.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://youtu.be/Hn-gx9VjRt8?t=153