PSP Programming Tutorials
This is a discussion on PSP Programming Tutorials within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Zitat von Yeldarb xigency - pgblit.h I've heard, but back in the day (haha, I make it sound so long ...
-
11-04-2005, 09:36 AM #601
This must be Shine's code derived from the Snake game. I have two questions. Is his blitting code more efficient than pg.h and pg.c (what I typically use), and does it support 32-bit color? Also, do you really need to run the Java program in order to compile this? I was thinking of leaving that out in the makefile.
Zitat von Yeldarb
Edit: wait, it somehow compiled succefully with the javac command and ran the Java code. I don't even have the Java SDK installed! Well, my other question is still pending...
Geändert von JustChris (11-04-2005 um 09:40 AM Uhr)
-
11-04-2005, 01:50 PM #602
Yes, it is Shine's code, and I don't know if it's more efficient than pg, I've never used it (I haven't programmed any significant in a while)
It should support 32 bit color.. but I don't think the blitting code does it, if there is any transparency it will (i believe) blit it as fully transparent.
Edit: The java file converts the picture.
-
11-04-2005, 01:51 PM #603...

- Registriert seit
- Oct 2005
- Ort
- The US of A Hombrew: Quak Arena Projects: RIFT
- Beiträge
- 381
- Points
- 10.603
- Level
- 68
- Downloads
- 0
- Uploads
- 0
to load:
Zitat von sumpaintballer41
imageHandleVariable = Image.load("something.png ")
to draw:
screen:blit(xPosition, yPosition, imageHandleVariable)
and for animations:
screen:blit(xPos, yPos, imageHandle, imageXPos, imageYPos, Width, Height)
example:
screen:blit(x, y, explosion, frameWidth*frame, 0, frameWidth, frameHeight)...
-
11-04-2005, 01:52 PM #604
The makefile has no extension, it's just "Makefile" (no "." anything)
Zitat von HaxxBlaster
-
11-04-2005, 04:18 PM #605
I learned some REALLY basic lua from here and tried to do some on my own, we def need a good tutorial on images. THANX SO MUCH XIGENCY! Im venturing into lua with my first game I'm calling SEIZURE, its just gunna count how long you can last while loading black and white images at decreasing intervals..does lua have a wait function??
Thanx!!Cover your eyes and run...gmansixfo= STEPMANIA LEGEND!!
-
11-04-2005, 04:44 PM #606...

- Registriert seit
- Oct 2005
- Ort
- The US of A Hombrew: Quak Arena Projects: RIFT
- Beiträge
- 381
- Points
- 10.603
- Level
- 68
- Downloads
- 0
- Uploads
- 0
you can just use screen.waitVblankStart( x ) where i think x is the number of times to wait. each wait is 1/60 of a second
...
-
11-04-2005, 04:53 PM #607
Hi, I just made my EBOOT.PBP file, really pleased! But the PSP goes black after I select the Hello World app, then comes back saying "Game could not be loaded".
My directory structure is:
ms0:/PSP/GAME/HELLO/EBOOT.PBP
is that wrong?
I also tried:
ms0:/PSP/GAME/HELLO%/EBOOT.PBP
I'm using version 1.5 firmware. Cheers for any help!
-
11-04-2005, 04:55 PM #608...

- Registriert seit
- Oct 2005
- Ort
- The US of A Hombrew: Quak Arena Projects: RIFT
- Beiträge
- 381
- Points
- 10.603
- Level
- 68
- Downloads
- 0
- Uploads
- 0
you need to use kxploit, its somewhere in the downloads section on this site
...
-
11-04-2005, 08:44 PM #609
Oh so its pretty much like C in that case..thanx man!...Im just making a little self app becuase me and my friend were laughing at DDR saying its like SEIZURE THE GAME..hahaha NOW IM GUNNA MAKE IT!! haha Ill try at least, now to get some FUN-KAY techno music on there...which type of music do you think works best, mod or ogg vorbis?
Zitat von xigency
Thanx alot man!Cover your eyes and run...gmansixfo= STEPMANIA LEGEND!!
-
11-05-2005, 04:33 AM #610QJ Gamer Green
- Registriert seit
- Nov 2005
- Ort
- Sweden
- Beiträge
- 460
- Points
- 6.520
- Level
- 52
- Downloads
- 0
- Uploads
- 0
Can someone please answer my question? What format should the "MakeFile.?" be?
The tutorial diden't put that you clearly.
-
11-05-2005, 05:18 AM #611
The makefile must have no extension. If you are using windows to see the extensions of file types goto any explorer window (e.g. My Computer) and goto Tools > Folder Options > View and then untick "Hide extensions for known file types"
You will see if the makefile has an extension, if so, right click and rename the file to just "makefile" from "makefile.txt" or whatever.
Hope that answers your question.
-
11-05-2005, 08:10 AM #612
Ahem: PSP Programming Tutorials
And from the tutorial:
So create a new file called "Makefile" with no extention (ie, no .txt)
-
11-06-2005, 04:15 AM #613QJ Gamer Green
- Registriert seit
- Nov 2005
- Ort
- Sweden
- Beiträge
- 460
- Points
- 6.520
- Level
- 52
- Downloads
- 0
- Uploads
- 0
Thanks man, very understandable. But now i get this error, am i missing the file, or are there some other explanation? I installed all the required packages. Uhh..
Zitat von meridimus
Geändert von HaxxBlaster (11-06-2005 um 04:24 AM Uhr)
-
11-06-2005, 02:09 PM #614Developer
- Registriert seit
- Oct 2005
- Ort
- United Kingdom Occupation: PSP-Eater
- Beiträge
- 664
- Points
- 9.573
- Level
- 65
- Downloads
- 0
- Uploads
- 0
incase anyones interested, i got my cygwin fixed, the bat was pointing the sdk to the wrong place, and it dont like MAKEFILE's and MAIN.C's in caps so i had to make them lowercase
-
11-06-2005, 04:13 PM #615
i posted this already and it never got answered:
when i run CYGWIN it says there is an error with the server greeting, anyone know what the problem is?
-
11-06-2005, 05:36 PM #616
Sorry you never got your question answered, can you give us a screenshot?
Zitat von Serneum
Cover your eyes and run...gmansixfo= STEPMANIA LEGEND!!
-
11-06-2005, 09:46 PM #617
Second call, if anyone's interested.
Zitat von JustChris
-
11-06-2005, 11:26 PM #618OMFG

- Registriert seit
- Jul 2005
- Ort
- Toronto
- Beiträge
- 2.814
- Points
- 19.453
- Level
- 88
- Downloads
- 0
- Uploads
- 0
I wouldn't mind getting this error fixed by anyone willing to help, do you need more information or is this enough?
Zitat von Slasher
-
11-07-2005, 05:16 AM #619
Try SceSize instead of sceSize; it's case sensitive.
-
11-07-2005, 10:36 AM #620OMFG

- Registriert seit
- Jul 2005
- Ort
- Toronto
- Beiträge
- 2.814
- Points
- 19.453
- Level
- 88
- Downloads
- 0
- Uploads
- 0
this is EXACtly what I put, and im still getting the same errorCode:#include <pspkernel.h> #include <pspdebug.h> PSP_MODULE_INFO("Hello World", 0, 1, 1); #define printf pspDebugScreenPrintf /* Exit callback */ int exit_callback(int arg1, int arg2, void *common) { sceKernelExitGame(); return 0 ; } /* Callback thread */ int CallbackThread(SceSize args, void *argp) { int cbid; cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL); sceKernelRegisterExitCallback(cbid); sceKernelSleepThreadCB(); return 0; } /* Sets up the callback thread and returns its thread id */ int SetupCallbacks(void) { int thid = 0; thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0); if(thid >= 0) { sceKernelStartThread(thid, 0, 0); } return thid; } int main() { pspDebugScreenInit(); SetupCallbacks(); printf("Slasher pwns you"); sceKernelSleepThread(); return 0; }
EDIT: it shows a few spaces in the code but they aren't really there, its just the forum glitch
-
11-07-2005, 12:21 PM #621
sure here you go
Zitat von sumpaintballer41
-
11-08-2005, 12:20 AM #622
It looks like it worked logging you in as anonymous! Did it just stop after that?? Have you tried setting up your environment first?
Cover your eyes and run...gmansixfo= STEPMANIA LEGEND!!
-
11-08-2005, 12:21 AM #623
Im extremely interested!!
Zitat von JustChris
hey slasher, your callback function is spaced out, thats not a forum error..
Zitat von Slasher
At least i think its not, try removing that spaces between sceKernelRegisterExitCall and back..Double check your code for that error!
Hope it helps!Geändert von sumpaintballer41 (11-08-2005 um 12:30 AM Uhr)
Cover your eyes and run...gmansixfo= STEPMANIA LEGEND!!
-
11-08-2005, 04:47 PM #624Advanced PSP Coder
- Registriert seit
- Oct 2005
- Ort
- Down South
- Beiträge
- 426
- Points
- 7.141
- Level
- 55
- Downloads
- 0
- Uploads
- 0
When I try installing Cygwin with the setup, the FTP server I Choose eventually stops working I guess. Sometimes at 16%, 54%, I've never made it to 100. I tried many of them, but then all of a sudden it will stop and say "Connecting..." and never return to installing the files.
Can anyone PLEASE help me?[center][COLOR=Green][B]- PM Me if you need help with anything - [/B] [/COLOR]
[B][SIZE=3][COLOR=DarkOrange][U]Homebrew I've Made[/U][/COLOR][/SIZE][/B]
[B]Applications:
[URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi?0,0,0,0,17,1667]PSP Alarm v0.5[/URL] [/b]
[B]Games:
[URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi?0,0,0,0,12,1669] Virtual Escape DEMO[/URL] [w/ Lancer]
[URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi?0,0,0,0,12,1577]PSP Dodge v1.0[/URL][/b]
[img]http://img517.imageshack.us/img517/4735/sig3qu.jpg[/img][/center]
-
11-08-2005, 06:51 PM #625Advanced PSP Coder
- Registriert seit
- Oct 2005
- Ort
- Down South
- Beiträge
- 426
- Points
- 7.141
- Level
- 55
- Downloads
- 0
- Uploads
- 0
Nevermind, I got it.
[center][COLOR=Green][B]- PM Me if you need help with anything - [/B] [/COLOR]
[B][SIZE=3][COLOR=DarkOrange][U]Homebrew I've Made[/U][/COLOR][/SIZE][/B]
[B]Applications:
[URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi?0,0,0,0,17,1667]PSP Alarm v0.5[/URL] [/b]
[B]Games:
[URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi?0,0,0,0,12,1669] Virtual Escape DEMO[/URL] [w/ Lancer]
[URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi?0,0,0,0,12,1577]PSP Dodge v1.0[/URL][/b]
[img]http://img517.imageshack.us/img517/4735/sig3qu.jpg[/img][/center]
-
11-08-2005, 07:26 PM #626...

- Registriert seit
- Oct 2005
- Ort
- The US of A Hombrew: Quak Arena Projects: RIFT
- Beiträge
- 381
- Points
- 10.603
- Level
- 68
- Downloads
- 0
- Uploads
- 0
what is pg.h or pg.c and where do you get it? does it support loading of images and does it support transparency?
Zitat von JustChris
edit: nvm, i just found the psp sdk samples, so i think i can figure gfx stuf outGeändert von xigency (11-08-2005 um 08:54 PM Uhr)
...
-
11-09-2005, 01:40 AM #627QJ Gamer Green
- Registriert seit
- Nov 2005
- Ort
- Sweden
- Beiträge
- 460
- Points
- 6.520
- Level
- 52
- Downloads
- 0
- Uploads
- 0
Please do answer my question. I really need you guys help.
Zitat von HaxxBlaster
-
11-09-2005, 08:38 AM #628OMFG

- Registriert seit
- Jul 2005
- Ort
- Toronto
- Beiträge
- 2.814
- Points
- 19.453
- Level
- 88
- Downloads
- 0
- Uploads
- 0
It is the forum glitch, there isn't a space there
Zitat von sumpaintballer41
-
11-09-2005, 05:36 PM #629Asleep...

- Registriert seit
- Oct 2005
- Beiträge
- 1.383
- Points
- 11.516
- Level
- 70
- Downloads
- 0
- Uploads
- 0
whats the code for a sprite?
-
11-09-2005, 08:24 PM #630
Hmm slash, ill look at it right now..
*yeah, when I rewrote it and reposted it, it came up with a space...hmm...*
Ill overview the code again..
hmm, well it says parse error...Im more of a C guy myself, but to me this seems like an invalid syntax causing an error in the parsing of the stream.... the thing is..I DONT SEE ANY INVALID SYNTAX! this is a very small error, cuz i don't even see it! hahaGeändert von sumpaintballer41 (11-09-2005 um 08:35 PM Uhr)
Cover your eyes and run...gmansixfo= STEPMANIA LEGEND!!


LinkBack URL
About LinkBacks
Mit Zitat antworten

Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum