• Steam recently changed the default privacy settings for all users. This may impact tracking. Ensure your profile has the correct settings by following the guide on our forums.

[HowTo] (Windows) Prepare for DS Programming

Darkchild

The Doctor
Well :) here I am with yet another tutorial.

What I'm going to teach you first is how to ready your computer to program and compile DS homebrews!

DOWNLOADING THE DEVKIT
You can download the devkit from HERE
(Don't want other sites stealin' my work, I'll chop you dingaling off if you do!)
After extracting, place it on your C: drive (The root of the c: drive!) like:
c:\devkitpro\

if you want it in another partition, put it there, but it has to be IN THE ROOT of the partition

and there! its installed :D

ENVIRONMENT VARIABLES

there are 3 variables you need to add, and 1 to change.
to do this:
(For windows XP)

Right click My Compyter > Proprieties > Advanced (tab) > Environment Variables (Button)

you should now see all the environment variables on your OS.

Warning! Be carefull with what you do now! You can remove certain functionallities from your os if you do this wrong

First, in the "User Variables for <username>"
Add a new Variable (Click the "NEW" button)
Code:
Variable name : PAPATH 
Variable value : C:/devkitPro/palib/lib
Note : Where "C" put the drive letter in which your copy of the devkit is in

Then in the "System Variables"
Add a new variable (Click the "NEW" button)
Code:
Variable name : DEVKITARM 
Variable value : /c/devkitPro/devkitARM
..And another one...
Code:
Variable name : DEVKITPROM 
Variable value : /c/devkitPro
(remember to replace "C" with the drive you copied devkitpro to)

And lastly, edit the "PATH" variable and add this to the ending:
Note: if your path variable doesn't end with a ";" put one there BEFORE you add the above code.
Code:
c:\devkitPro\msys\bin;
TESTING IT'S AWESOMNESS

ok, so devkit is installed and configured, now its time to test it!

Open the devkit folder.
Then go to PAlib > examples > Text > Normal > HelloWorld

and open "Make.bat"

if all went well, you should see a fle called "HelloWorld.nds" created,
open it!

if it asks for a program to open with (in other words, you don't have an emulator)
open it with the emulators packaged in the devkit, they are in:

(Devkitfolder) > Palib > Emulators > No$gba (you can choose others, but this one is the best) > No$Gba.exe

you should see a DS Saying "hello World" and other data.

Programming IDE

This pack comes with Programmer's Notepad,
it has some things already preconfigured with it,
so, let's open it up!

Open your Devkit folder and you should see another one called "Programmers Notepad"
Open it!

Find an application called "pn.exe" and open it!

Now, to check if it already made the file Associations for you!

With Programmers Notepad opened, look for "Tools" in the menu bar and select "Proprieties"

a new window should open, look for the "Files" section on the left and press "File Associations"

if there's an entry there saying pnproj you're ok to go! if not! In the Textbox type "pnproj" and press the "ADD" button

Now! Check ALT+3 (you'll see!)

go to the tools section (still in the preferences window)
select "Project Tools"

You should see an entry saying "Open with No$Gba"
if not:
Press "ADD"
And put these in:
Code:
Name : Open With No$Gba
Command : C:\devkitPro\palib\emulators\no$gba\NO$GBA.EXE
(This can be any emulator, and at any location, just point it to the emulator you want to use!)
Folder: $(ProjectPath)
Paramaters: $(ProjectPath)$(ProjectName).nds
Shortcut (Press ALT+3)
Now, go to the "Console I/O" tab and disable "Capture Output?"
Press OK, and you are done!

Starting to program

Go to the devkit folder > Palib
Copy the folder called "Template" to anywhere you want (As long as the path to it isn't big, I recommend it staying at your patition's root)
rename the folder to anything, its going to be your project's name!
then open the "Template.pnproj" file inside
and start programming!

WAIT!!!!!!

You might be wondering now... How the EFF am I going to learn this?

Simple! there's a whole wiki on Palib!

Have fun :)
 
I'm curious, does the DS have major kernel changes in its firmware updates?
 
Back
Top