Tutorials Navigation
CodeMii Tutorial #1 - Setting up the Environment
Tutorial Name: CodeMii Tutorial #1 - Setting up the Environment
Category: Nintendo Tutorials
Submitted By: hoot
Date Added:
Comments: 1
Views: 3,145
Related Forum: Gaming Discussion
Share:
This is the first tutorial of programming for the Wii and it will cover setting up our environment. These tutorials will be as detailed as I can make them and will try to cover different programming subjects.
Our first step in order to code for the Wii is to set up the programming environment and for this we are required to download DevKitPro. DevKitPro is a compilation of compilers, useful applications and example source code which will all be set up for us at a click of a button. For those wondering what a compiler is, a compiler is an application which can convert our code into a machine executable format.
[ Register or Signin to view external links. ]
So let's go to [ Register or Signin to view external links. ] , select Downloads, then select Windows Installer. This will take you to the sourceforge devkitpro page where you should click on the .exe file to download it.
Once in the installer, say yes to downloading and installing files and yes to keeping the files we download. When it gets to the screen where it's asking you which components you want to install, you only need to check the minimal system box, devkitPPC box and Programmer's notepad box. PPC (PowerPC) is the computer hardware which our compiler will compile our source code to. Leave the installation directory as c:\devkitpro.
[ Register or Signin to view external links. ]
So now we've set up the programming environment which was pretty simple wasn't it?
I will give you a run down of the things included in DevKitPro that will be useful for us.
Firstly we have Programmers Notepad (devkitpro/Programmers Notepad) which is where we will be writing our code in. Programmers notepad makes things a whole lot easier for us by using syntax highlighting, showing line numbers, grouping files into a project, etc.
[ Register or Signin to view external links. ]
The next application we have is called gcube (devkitpro/emulators/gcube) which is a gamecube emulator. This application is quite handy as you can test most of the code that you develop on it. I find it much easier when writing code to test things out on gcube instead of having to turn on the Wii and test it that way. I used gcube to test out the two homebrew games that I made, which were Simon and Matching Cards.
[ Register or Signin to view external links. ]
The last thing that is handy is the gamecube and Wii example source code (devkitpro/examples). The source code gives us a template which we can start our applications on. Example source code for the gamecube includes how to access the dvd, memory card, network, etc.
In the next tutorial I'll cover Makefiles, compiling your first source using the template example, dealing with errors and a very basic run down on the C programming language.
Our first step in order to code for the Wii is to set up the programming environment and for this we are required to download DevKitPro. DevKitPro is a compilation of compilers, useful applications and example source code which will all be set up for us at a click of a button. For those wondering what a compiler is, a compiler is an application which can convert our code into a machine executable format.
[ Register or Signin to view external links. ]
So let's go to [ Register or Signin to view external links. ] , select Downloads, then select Windows Installer. This will take you to the sourceforge devkitpro page where you should click on the .exe file to download it.
Once in the installer, say yes to downloading and installing files and yes to keeping the files we download. When it gets to the screen where it's asking you which components you want to install, you only need to check the minimal system box, devkitPPC box and Programmer's notepad box. PPC (PowerPC) is the computer hardware which our compiler will compile our source code to. Leave the installation directory as c:\devkitpro.
[ Register or Signin to view external links. ]
So now we've set up the programming environment which was pretty simple wasn't it?
I will give you a run down of the things included in DevKitPro that will be useful for us.
Firstly we have Programmers Notepad (devkitpro/Programmers Notepad) which is where we will be writing our code in. Programmers notepad makes things a whole lot easier for us by using syntax highlighting, showing line numbers, grouping files into a project, etc.
[ Register or Signin to view external links. ]
The next application we have is called gcube (devkitpro/emulators/gcube) which is a gamecube emulator. This application is quite handy as you can test most of the code that you develop on it. I find it much easier when writing code to test things out on gcube instead of having to turn on the Wii and test it that way. I used gcube to test out the two homebrew games that I made, which were Simon and Matching Cards.
[ Register or Signin to view external links. ]
The last thing that is handy is the gamecube and Wii example source code (devkitpro/examples). The source code gives us a template which we can start our applications on. Example source code for the gamecube includes how to access the dvd, memory card, network, etc.
In the next tutorial I'll cover Makefiles, compiling your first source using the template example, dealing with errors and a very basic run down on the C programming language.
Ratings
Comments
Related Tutorials
- 01. How To Fix A Nintendo Switch That Won't Charge(5,358)
- 02. How-To Backup, Swap, and Update Your Wii Game Saves(3,914)
- 03. Super Mario Maker 2: how to unlock night mode(1,774)
- 04. Super Mario Maker 2 How to change character to play as Luigi(2,661)
- 05. Super Mario Bros. 35: How to Unlock Luigi in the Game(1,799)
- 06. How to Play Wii Games from a USB Drive or Thumb Drive(70,328)
- 07. How to SoftMod a Wii to Play Backup Wii, Gamecube and Wiiwar(21,572)
- 08. LEGO Marvel Super Heroes Cheat Codes(5,115)
- 09. How to Block Online Updates and Play Online with CCProxy(7,202)
- 10. How to Convert GCI, GCS, or SAV saves to RAW(27,681)
- 11. How To Hack Nintendo Wii & Install Homebrew Channel Wiibrand(8,728)
- 12. Minecraft - When Pigs Fly - 40G(3,069)
- 13. Forgot Parental Controls PINs(3,452)
- 14. Smash Bros Wii U Challenge: Score 85 in Rival Smash(3,483)
- 15. Super Smash Wii U: Unlock All Secret Characters & Stages(3,578)
"CodeMii Tutorial #1 - Setting up the Environment" :: Login/Create an Account :: 1 comment