![]() |
|
|
|
#1
|
|||||||||||||
|
|||||||||||||
|
So you you check out the front page of PSP-Hacks everyday and see a lot of new games and applications created for the PSP... And, you're thinking, "Man! I wish I could do that!" But then you say to yourself, "There is no way I'm going to go through all the hassle of downloading and setting up cygwin and compiling toolchains and all that." Well now you don't need to do all that and you can become a PSP dev in only a few. steps.
Setting up the PSP Dev Environment First download this: http://www.mediafire.com/?nnwemenmzzd FYI: It's a precompiled PSPDev environnment for the PC. There is no need for cygwin which emulates Linux on your Windows PC. The PSPSDK and toolchain are already compiled and transfered to your Windows machine with this package. Once you install it, it will ask you what directory you would like to install into. Just let it install in the default directory of PSPDEV. Then it will ask how you want to set up your environmental variables. Just click on the all users options and click next. Now it is installed on your computer. Next goto where the package was installed on your computer which is C:\pspdev. This is presuming that your hard drive is the C: drive. If it is not, then change C: to whatever your hard drive letter is. In that folder you should see a batch file called pspdev.bat Right click that file and select Edit It should open the file with some commands inside. Erase everything that is inside the file and copy and paste this into the file. Quote:
Then click on File then Save at the top of the file and close it. Now you have the basics of your PSP dev environment set up. Testing the PSP Dev Environment Now you can test your setup by trying to compile a couple of samples that are included in your installation. Your test samples are located in your C:\pspdev\psp\sdk\samples directory. Take a look at them and lets try to compile one of them. Goto your C:\pspdev folder and double click on the pspdev.bat file we edited earlier. Now a command prompt should appear. Type this into your dos screen Quote:
Quote:
Now type Make and hit the enter key to compile that sample in that directory. When you type Make, it does all the commands that are in the makefile to compile your program. Every PSP program needs to have a makefile. More about that later. IF you did it correctly, you should see an EBOOT.PBP in your wavegen folder. Now you can transfer that eboot to your PSP and see the program that you just compiled. Quote:
Now it's time to add libraries to your setup. So you are asking, what are libraries? Well as of right now you can compile basic PSP samples and programs for your PSP, however, to take full advantage of creating programs, there have been libraries that have been made for the PSP which do added functions for your programs, such as loading and unloading graphics and playing sound as effects or background music. For example, there is a library for the PSP called libmad. What it does is loads and plays your MP3 clips and songs. All you would have to do to play an MP3 would be to use the function MP3_Play(); Now if you didn't have that library to use, you could still load and play an MP3 in your program, but it would take like an extra 50 lines of code. Why not save yourself the trouble, and just use one line of code, MP3_Play(); to do the work for you? Now all the libraries made for the PSP need to be compiled under cygwin and then installed into the right directories. However, none of you need to do this. There is an installer already that has already compiled some libraries for you and it installs them directly into the folders that it needs to be. Download that installer here: http://www.mediafire.com/?doaimyfqytm (2.51MB) To be honest with you, this installer is not all that good. It says that it installs these libraries into your pspdev folders: SDL, SDL_Mixer, PSPGL, LibBulletMl, LibTremor, Jpeg, libpsp2d, libpng, libmad, zlib, and libmikmod. However, SDL, SDL_Mixer and Jpeg libraries are not correctly installed and have many bugs in them. I am going to create my own installer soon to correct these bugs and add even more libraries to your setup. It does, however, for the meantime, give you enough libraries to work with to create pretty good programs and go through the entire Programming tutorial that I will post in a minute. Once you install it, it will ask you what directory you would like to install the files. Just install it in the default directory of pspdev. Now you are ready to go. To test out your new library setup, go to the folder that you downloaded with the build.mak and the invader folder and daedalus folder. You should now be able to compile the space invader game and also be able to compile the latest Daedalus n64 emulator release R8 XD. Simply place the invader folder and the daedalus folders in your pspdev folder at C:\pspdev. Then dpuble click the pspdev.bat file to open up your command line and type this to compile the space invader game: Quote:
Quote:
You should then see your EBOOT file in that folder or 2 folders with 2 EBOOTs if you used the make kxploit command. To compile the daedalus n64 emulator, just type Quote:
Quote:
cd means change directories for those who do not know. Then type either make or make kxploit to create your daedalus EBOOTs. _________________________________________________________________ __________________ Starting to Program So you want to learn more about libraries? You want to actually see a library and read the files in it? Not a problem. Download subversion here: http://subversion.tigris.org/files/d....4.2-setup.exe (3.4MB) This program will allow you to download PSP libraries and PSPware that are stored off the internet through your command line. Now just install it. Take a look at all the psp libraries here: http://svn.ps2dev.org/listing.php?re...%2F&rev=0&sc=0 You can browse through them by clicking on each one. Now say you want to download the library libmad (which allows you to load MP3s into your program). Once you already installed subversion, double click your pspdev.bat file to open up your command line. Then type this: Quote:
Open it up, take a look at it, read the documentations, and try to learn what that library does and how it works. You can do this with all of the libraries. To download a different library, just take out the word libmad and add the library that you wanted to download. For example, if you wanted to download the library libpng (which allows you to add .png files to your program), type this in your command screen: Quote:
Quote:
http://www.psp-hacks.com/forums/f141...ost478381.html (Start off with lesson 1 as I show you how to print HelloWorld on your PSP) I will also be going over each of these lessons in detail and making my own games and demos for you to understand and develop your PSP programming. Remember that the more advanced we get, the more you will need to understand C and C++. Try to brush up by reading my C++ tutorial listed in my sig. So now you all can do the banana dance <insert RaiderX"s banana dance gif> because you are all offical PSP devs XD.
__________________
Want to become a PSP Dev the easy way? Check out my tutorial for the PSP here http://www.psp-hacks.com/forums/f141...orial-t152466/ Want to learn how to create your own games on the PSP? Check out my tutorial here http://www.psp-hacks.com/forums/f141...-your-t153653/ Want to learn how to program C++ ? Check out that tutorial here http://www.psp-hacks.com/forums/f124...ram-c-t122337/ Last edited by Oyabun; 10-01-2009 at 03:21 AM. Reason: Links updated |
|
#2
|
|||
|
|||
|
shank you, good sir.
|
|
#3
|
|||
|
|||
|
I read about half of the tutorial... and then I got lost... and didn't understand what the hell half of any of it it meant, or was talking about.
The sad part? I want to make games one day lol. |
|
#4
|
||||
|
||||
|
What don't you understand?
__________________
|
|
#5
|
|||
|
|||
|
The question is, what DO I understand lol.
Hmm... the fact that making games seems to be some sort of elaborate task involving a "development evironment" (which... I still don't quite get), and involves many lines of "code" that does something to something to get something to do something. None of these lines do I understand, nor do I understand why they have to be so elaborate. It's mind boggling. If there was like some baby step, complete retard's guide to coding and developing... then maybe I might actually learn something... but looking at all of this stuff confuses me, and makes me feel tired. lol |
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
||||
|
||||
|
Quote:
"that does something to something to get something to do something." ![]() anyway.. you if your not understanding that i guess maybe you should try LUA..(god i hate lua..... at least non-compiled lua, and i just HATE python, period) Quote:
lol C++ isn't hard at all!!!... since i program in C++ i think i have sturdy ground when i say that the language is not hard, there are many ways to do one task. however, certain features of C++ ARE hard if you do not understand them. (lucky me i have an interest in this and when i find out something new, i learn it instantly normally.) some of those advanced features are just a better and more efficient way to do something you could do with basic code. hmm... @ slackbabbath, maybe you shouldn't learn LUA, as 1. i dislike the language lol. 2. more serious of a reason, C++ will get you further in life. i've only seen LUA used on the psp for homebrew, i looked it up a while ago and i think its a dead language really... learn C++. A bad idea but maybe easier way to start, aside from LUA would be to learn C. buy a book(a C++ book.), they are really good at walking you through with baby steps if you get the right one. but if your like me, BROKE and have a huge interest in programming.. you can do it the hardway like i did when i first started. search the internet for bits and peices of information and eventually learn enough to do just about anything you can think of. then get some money to finally get a book and magically boost your ability by alot just by simply learning the advanced features of C++. post is getting long so im cutting it here. but.. sites you should look at are. C programming.com and http://www.cplusplus.com/ they should help. (i started on psp programming and used http://www.psp-programming.com/tutorials/ to help me creat my first ever program.) EDIT: OH!!! one more thing... http://forums.qj.net/showthread.php?t=145883 ^^ pre-compiled cygwin && toolchain. since you seem to be the ultimate noob. this could be an easy-yet-advance dev environment for you.
__________________
http://levoneprojects.net23.net/
![]() ++rep me if i helped you please. Ahh, shit. Stupidity is on the rise again. went legit Oct. 31, 09' piracy is wrong, please don't do it. Last edited by pspjoke; 11-18-2008 at 04:25 AM. |
|
#8
|
||||
|
||||
|
lol. you saw how far I got with C++.
anything past that confused the shit out of me. |
|
#9
|
|||
|
|||
|
Any book recommendations? I'll start looking around and see if I can figure stuff out. Someone I know said start with a basic calculator as a first program, so I guess if I can't figure out how to make that I'm screwed lol.
|
|
#10
|
||||
|
||||
|
Sams Teach Yourself C++ in One Hour a Day, 6th Edition
![]() thats the book i have. its pretty good, and i think it would be a good book for you. when i got it a lot of the start was review. now im startingto learn stuff that i didn't know. http://www.informit.com/store/produc...=9780672329418
__________________
http://levoneprojects.net23.net/
![]() ++rep me if i helped you please. Ahh, shit. Stupidity is on the rise again. went legit Oct. 31, 09' piracy is wrong, please don't do it. |
![]() |
|
|
|||
|
|||
|
|
| Thread Tools | |
| Display Modes | |
|
|