Hacking How to DLDI patch - Linux

Azimuth

Chicken Teriyaki Boy!
OP
Member
Joined
Feb 23, 2006
Messages
637
Trophies
0
Website
Visit site
XP
110
Country
Canada
Heres another small guide to help all those who use Linux and who dont have the time to read through the various readme files included with the patcher.

Grab the patching software and the patch for your flashcart from here

Extract the patching software and the patch and place them in one folder

Now place the .nds file you want to patch in the same folder.

screenshot1qu2.png


Open up the terminal

go to the folder we just created: cd ~/folder containing files
Execute program: ./dlditool ./Your Cart.dldi ./Your NDS File.nds

This should be the final result( i patched scummvm-b with g6fl.dldi)

screenshot2qd6.png


Note: There is a t parameter that can be added to patch specific extensions such as .ds.gba, this is useless
since the patcher auto-detects the extension and the patches the file accordingly

it takes 2 secs to patch a file on average

Hope this helped you, id like to here your feedback
 

axx

New Member
Newbie
Joined
Feb 8, 2007
Messages
1
Trophies
0
XP
1
Country
France
the patching seems to work fine, but even though I'm using sclt.dldi as a patch, my .nds file still won't launch.. frustrating

very neat guide though!
smile.gif
 

KDH

Well-Known Member
Member
Joined
Apr 26, 2007
Messages
241
Trophies
0
Age
36
Location
Kansas
Website
Visit site
XP
238
Country
United States
Hello.
I don't understand, but it doesn't work with me 
cry.gif




Ubuntu feisty, M3ds simply


NOTE: Every command below should be run as a normal user, not as root or using sudo.

It looks like you haven't actually extracted the archive. Open the file in your archive manager (Ark/File Roller/etc.) and extract it to ~/bin. Now open a terminal, cd to ~/bin and run:

Code:
chmod +x dlditool

Then you should be able to run it as you would any other command line program (assuming that ~/bin is in your PATH)

Code:
dlditool r4tf.dldi foo.nds


If you need to add ~/bin to your PATH then make sure the following is in either ~/.bashrc or ~/.bash_profile:

Code:
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ]; then
   PATH=~/bin:"${PATH}"
fi

That will make sure that as long as ~/bin exists it will be added to your PATH every time you login. To get it to work immediately, without having to logout run:

CODEexport PATH=~/bin:"$PATH"

See if that works for you.
 

Azimuth

Chicken Teriyaki Boy!
OP
Member
Joined
Feb 23, 2006
Messages
637
Trophies
0
Website
Visit site
XP
110
Country
Canada
@KDH

an easier method:

extract dldi tool to desktop,
chmod +x /home/user/Desktop/dldi
su
cp /home/user/Desktop/dldi /usr/bin/
now just type dldi to execute dldi in bash

this is a bit risky because you login as root. I see no need to do this unless you use the patcher a lot.
 

foobar

Member
Newcomer
Joined
Nov 13, 2006
Messages
20
Trophies
1
XP
82
Country
I seem to remember a Really Good Reason? for being careful of the permissions set on files in /usr/bin

You definitely want to make root the owner and group for these files, and set permissions so that only root can write to them. Otherwise another user could just overwrite that file with, say, a script containing "rm -rf ~/".

chmod 755 filename
sudo chown root filename
sudo chgrp root filename
 

KDH

Well-Known Member
Member
Joined
Apr 26, 2007
Messages
241
Trophies
0
Age
36
Location
Kansas
Website
Visit site
XP
238
Country
United States
@Azimuth

True, it is easier, assuming that a person using the method I posted happens to be using a distro that doesn't already have

Code:
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ]; then
 ÂPATH=~/bin:"${PATH}"
fi

in ~/.bashrc or ~/.bash_profile by default, or they haven't already added it themselves for another reason.

Both methods have the same end result, as you said, so its just personal preference. I prefer to keep programs that only I will use in my own ~/bin.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    [He will] only make $1.5 million per night after taxes. Poor guy
  • BigOnYa @ BigOnYa:
    My stupid computer chair keeps slowly going down, but I don't notice it goes down, until I'm like reaching up to my desk. I just bought this f er last year.
  • BakerMan @ BakerMan:
    Does Bruno Mars is gay?
  • BigOnYa @ BigOnYa:
    K3nv2 would know...
  • K3Nv2 @ K3Nv2:
    Only for Bakers
    +1
  • BigOnYa @ BigOnYa:
    I heard he has a Wario fetish, but only if no Wizards are around.
  • BigOnYa @ BigOnYa:
    jk with you Bakerman, much love. fist bump.
  • K3Nv2 @ K3Nv2:
    He really knows how to kneed the dough
  • BigOnYa @ BigOnYa:
    Man. I can't wait til CTGP 8 comes out on Switch, been waiting forever.
  • BigOnYa @ BigOnYa:
    Boners Makes me wanna play Duck Hunt NES
    +1
  • K3Nv2 @ K3Nv2:
    Pooping nice
  • BigOnYa @ BigOnYa:
    What is a "Poop de Boop"? I've heard it mentioned several times now but have no idea and can't find anything online bout it. Is it a British term for restroom/bathroom or something?
  • Psionic Roshambo @ Psionic Roshambo:
    It is a perfume
    +1
  • K3Nv2 @ K3Nv2:
    Why do we have virgin islands if it's populated
    +1
  • BigOnYa @ BigOnYa:
    They should change the name to K3Nv2's Mom islands. (Or before he responds, My Wifeys Islands)
  • K3Nv2 @ K3Nv2:
    Nah me saying that's more predictable than you talking about my mom
    +1
  • K3Nv2 @ K3Nv2:
    Hence urewifes so predictable she'd buy every man on the virgin islands
  • K3Nv2 @ K3Nv2:
    Or they buy her
  • BigOnYa @ BigOnYa:
    true dat, on that note I'ma try go get some myself, peace!
  • K3Nv2 @ K3Nv2:
    Guess she doesn't need to be bought she has your money
    +1
    K3Nv2 @ K3Nv2: https://youtube.com/shorts/-GDjDECLDG0?si=MNEjk8rkmioj1xE2