Bad parameters. Usage :
dpspatcher.exe
How do you use this now? Well, it's quite simple. First you type in "dpspatcher.exe"
Now you want the original rom file. Add a space, then type out the path to the rom file. If the rom is in the same folder, you can just type it's name. If the name has spaces, MAKE SURE TO ADD QUOTES AROUND THE NAME! Do not leave out extensions! Oh, and feel free to just drag the rom file onto the command prompt. This will give you its full path in quotes. ^,^
Code:
dpspatcher.exe "Jump! Ultimate Stars.nds"
Note: Your name will probably differ.
Now you want the "patched rom file". This doesn't exist, does it? This means you're just telling the command line where you want to save it and what you want the file to be called. Feel free to type in a certain path for the file to be saved in. For this example, I'm just going to enter in a name. The file will be saved in the same folder as "dpspatcher.exe".
Code:
dpspatcher.exe "Jump! Ultimate Stars.nds" "Jump! Ultimate Stars (Patched).nds"
Finally, you want input the dps patch to apply. Input this similarly to how you inputted the original rom. (Type in its path/name OR drag and drop it)
Code:
dpspatcher.exe "Jump! Ultimate Stars.nds" "Jump! Ultimate Stars (Patched).nds" "jus-eng-dev01_03_08.dps"
Now you have all the parameters. Press enter and let it rip!
Creating a "batch" file:
There's not enough room to give you full instructions in creating batch files, so I'll just give you some hints if you actually want to learn...
1) %0 gives the path and name of the BATCH FILE.
2) %1 gives the path and the name of a file dragged onto the batch file.
3) You can add parameters to these...
"%~d0" Would give the drive of the batch file. (Replacing 0 with 1 will give the drive of the file dragged onto the batch file)
You can stack parameters (like "%~dp0")
d = drive
p = path
n = name
That's all you should really need. There are more parameters for this command, but I never memorized them.
4) Double colons denote "comments" that are ignored when the programs actually runs.
Code:
@echo off
echo PIE ::Will display "PIE"
pause ::Pauses the script. Useful for checking errors!
5) Create variables!
[code]@echo off
set ilikepie=You said
echo Say something!
set /p %variablename=
ÂÂÂÂ::%variablename will be changed into the inputted text.
echo.
echo %ilikepie%, "%variablename%".
ÂÂÂÂ:Will display... You said, "input".
pause
Putting this all together...
Code:
@echo off
cd %~dp0
ÂÂÂÂ::Navigates to the directory of the batch file
cls
ÂÂÂÂ::Clears the screen
echo Enter in a new name!
ÂÂÂÂ::Displays "Enter in a new name!"
set /p %pname=
ÂÂÂÂ::Sets variable %pname to inputted text.
echo.
ÂÂÂÂ::Line break
dpspatcher.exe %1 "%pname%.nds" jus-eng-dev*.dps
ÂÂÂÂ::Runs dpspatcher.exe (must be in the same folder as the batch file, because we navigated to that directory at the beginning of the script...). %1 is the path to the file dragged on it, remember? This will automatically put that into the parameters. %pname% is the name that was entered just before. See how ".nds" is appended and quotes were added? This is because text with spaces NEEDS quotes around it or it will be interpreted incorrectly. The final touch was "jus-eng-dev*.dps". * is a wildcard. If ANYTHING (no matter how long) is in place of that * but the surrounding text is the same, it will be interpreted! Alternatively, you can use ? as a single character wildcard.
For Mac users...
1) Open up Terminal. (/Applications/Utilities/Terminal.app)
2) MacOSX is Unix-based, so the commands will be essentially identical (please correct me if I'm wrong) to Unix commands.
You can actually use the Windows instructions I gave above to patch files! (Drag and Drop, even)
Minor differences...
dir -> ls (use "ls" to display directory contents, not "dir"!)
Starts in "/Users/YOURUSERNAME"
Uses slashes instead of back slashes
dpspatcher instead of dpspatcher.exe
If you want to know more commands, type in "help". If you want to know more about a command, type in "help COMMAND" (replace COMMAND with the command name, obviously). If that doesn't work, use "man -k COMMAND".
If the resulting "help" text just blows your mind, feel free to search online for some simpler explanation of these commands. >,>
You cannot create batch files in MacOSX. Instead, you'll probably want to try creating an AppleScript. I'm not very familiar with the language, because it's TOO simple. That's right. It's so simple that I'm having trouble with it. I'm used to simple coding languages, but this is even easier. The syntax is just bizarre to me.
Code:
display dialog "Oh noes!" buttons {"No more steak!", "No more pie!"} default button 2
Simple, no?
If you want to learn more about AppleScript, I recommend that you go and look up some guides online (or use the built-in documentation). It's a nifty language to start with. I'm not sure I would recommend it if you want to be a serious coder, but I think it's perfect for those who just want to dabble in text. It's very... human.
I hope this helped you guys actually understand some of the commands you'll be using. From here on out, it's up to you to discover more tricks and commands you can use.
I'll finish with a nifty way to use %~n1. (Windows Batch File)
Code:
@echo off
cd %~dp0
ciso.exe 9 %1 "%~dpn1.cso"
Notice something? The output extension is different from the input extension. If you're using a command line program to convert videos from one format to another, this will also be the case. What does this script do, then? It simply makes the output name the same as the input name, but changes the extension to the appropriate one.
Wondering why I added "dp" in there? GOOD! Now you're thinking creatively. In fact, the script would work fine if it read.
CODE@echo off
cd %~dp0
ciso.exe 9 %1 "%~n1.cso"