Seite 21 von 40 ErsteErste ... 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ... LetzteLetzte
Zeige Ergebnis 601 bis 630 von 1193

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 ...

  
  1. #601
    Developer
    Points: 5.085, Level: 45
    Level completed: 68%, Points required for next Level: 65
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    206
    Points
    5.085
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Yeldarb
    xigency - pgblit.h I've heard, but back in the day (haha, I make it sound so long ago, but really it was only like a month ago), I used Shine's blitting code to draw directly to vram. I'll find a link of an example file that I made for someone, hang on a second and I'll edit my post.

    Edit: Argh, the forum must prune posts. My example is no more.

    I'll attach it again.

    Edit 2: I don't have the original, only a modification that I made of it. But it should show you the basics ;)
    (be sure to look at the Makefile, it's important)
    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.

    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)

  2. #602
    QJ Gamer Gold
    Points: 18.914, Level: 87
    Level completed: 13%, Points required for next Level: 436
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Beiträge
    984
    Points
    18.914
    Level
    87
    Downloads
    0
    Uploads
    0

    Standard

    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.

  3. #603
    ...
    Points: 10.603, Level: 68
    Level completed: 39%, Points required for next Level: 247
    Overall activity: 0%

    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

    Standard

    Zitat Zitat von sumpaintballer41
    Man i would love to see a good tutorial on loading images in Lua, Its alot different than C++
    to load:
    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)
    ...

  4. #604
    QJ Gamer Gold
    Points: 18.914, Level: 87
    Level completed: 13%, Points required for next Level: 436
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Beiträge
    984
    Points
    18.914
    Level
    87
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von HaxxBlaster
    Okey, great tutorial anyway, it would be the best if you butted in some pictures also, like (Now, the code looks like this) so there is no missunderstanding.
    And what file should the Makefile be? I thought you said .ie but the shell dident see it.
    The makefile has no extension, it's just "Makefile" (no "." anything)

  5. #605
    Points: 7.352, Level: 57
    Level completed: 1%, Points required for next Level: 198
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Ware, MA
    Beiträge
    868
    Points
    7.352
    Level
    57
    Downloads
    0
    Uploads
    0

    Standard

    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!!
    Halo2 Gamertag~PSPH4X0R

    7/17/06
    ~The Day My PSP Almost Died~
    Thank you
    GrandTheftAutoJunkie

  6. #606
    ...
    Points: 10.603, Level: 68
    Level completed: 39%, Points required for next Level: 247
    Overall activity: 0%

    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

    Standard

    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
    ...

  7. #607
    Points: 4.752, Level: 44
    Level completed: 1%, Points required for next Level: 198
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Ort
    Hull Uni
    Beiträge
    27
    Points
    4.752
    Level
    44
    Downloads
    0
    Uploads
    0

    Standard

    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!

  8. #608
    ...
    Points: 10.603, Level: 68
    Level completed: 39%, Points required for next Level: 247
    Overall activity: 0%

    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

    Standard

    you need to use kxploit, its somewhere in the downloads section on this site
    ...

  9. #609
    Points: 7.352, Level: 57
    Level completed: 1%, Points required for next Level: 198
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Ware, MA
    Beiträge
    868
    Points
    7.352
    Level
    57
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von xigency
    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
    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?

    Thanx alot man!
    Cover your eyes and run...
    gmansixfo= STEPMANIA LEGEND!!
    Halo2 Gamertag~PSPH4X0R

    7/17/06
    ~The Day My PSP Almost Died~
    Thank you
    GrandTheftAutoJunkie

  10. #610
    QJ Gamer Green
    Points: 6.520, Level: 52
    Level completed: 85%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Ort
    Sweden
    Beiträge
    460
    Points
    6.520
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    Can someone please answer my question? What format should the "MakeFile.?" be?
    The tutorial diden't put that you clearly.

  11. #611
    Points: 4.752, Level: 44
    Level completed: 1%, Points required for next Level: 198
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Ort
    Hull Uni
    Beiträge
    27
    Points
    4.752
    Level
    44
    Downloads
    0
    Uploads
    0

    Standard

    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.

  12. #612
    QJ Gamer Gold
    Points: 18.914, Level: 87
    Level completed: 13%, Points required for next Level: 436
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Beiträge
    984
    Points
    18.914
    Level
    87
    Downloads
    0
    Uploads
    0

    Standard

    Ahem: PSP Programming Tutorials
    And from the tutorial:
    So create a new file called "Makefile" with no extention (ie, no .txt)

  13. #613
    QJ Gamer Green
    Points: 6.520, Level: 52
    Level completed: 85%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Ort
    Sweden
    Beiträge
    460
    Points
    6.520
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von meridimus
    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.
    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..
    Geändert von HaxxBlaster (11-06-2005 um 04:24 AM Uhr)

  14. #614
    Developer
    Points: 9.573, Level: 65
    Level completed: 75%, Points required for next Level: 77
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Ort
    United Kingdom Occupation: PSP-Eater
    Beiträge
    664
    Points
    9.573
    Level
    65
    Downloads
    0
    Uploads
    0

    Standard

    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

  15. #615
    Points: 4.485, Level: 42
    Level completed: 68%, Points required for next Level: 65
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    40
    Points
    4.485
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    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?

  16. #616
    Points: 7.352, Level: 57
    Level completed: 1%, Points required for next Level: 198
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Ware, MA
    Beiträge
    868
    Points
    7.352
    Level
    57
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Serneum
    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?
    Sorry you never got your question answered, can you give us a screenshot?
    Cover your eyes and run...
    gmansixfo= STEPMANIA LEGEND!!
    Halo2 Gamertag~PSPH4X0R

    7/17/06
    ~The Day My PSP Almost Died~
    Thank you
    GrandTheftAutoJunkie

  17. #617
    Developer
    Points: 5.085, Level: 45
    Level completed: 68%, Points required for next Level: 65
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    206
    Points
    5.085
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von JustChris
    And now to something else: I'm wondering if most people here won't mind if I start a new programming tutorial thread (not lua based), one based on how to display graphics to the screen? And other people are welcome to add their own tutorials and advice as well.
    Second call, if anyone's interested.

  18. #618
    OMFG
    Points: 19.453, Level: 88
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Toronto
    Beiträge
    2.814
    Points
    19.453
    Level
    88
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Slasher
    Ok i've got it working but when I try to compile my hello world application I'm getting the error
    "main.c:15: error: parse error before 'args'
    make: *** [main.o] Error 1"


    line 15 looks like this
    "int CallbackThread(sceSize args, void *argp) {"

    help please
    I wouldn't mind getting this error fixed by anyone willing to help, do you need more information or is this enough?

  19. #619
    QJ Gamer Gold
    Points: 18.914, Level: 87
    Level completed: 13%, Points required for next Level: 436
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Beiträge
    984
    Points
    18.914
    Level
    87
    Downloads
    0
    Uploads
    0

    Standard

    Try SceSize instead of sceSize; it's case sensitive.

  20. #620
    OMFG
    Points: 19.453, Level: 88
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Toronto
    Beiträge
    2.814
    Points
    19.453
    Level
    88
    Downloads
    0
    Uploads
    0

    Standard

    Code:
    #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;
    }
    this is EXACtly what I put, and im still getting the same error

    EDIT: it shows a few spaces in the code but they aren't really there, its just the forum glitch

  21. #621
    Points: 4.485, Level: 42
    Level completed: 68%, Points required for next Level: 65
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    40
    Points
    4.485
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von sumpaintballer41
    Sorry you never got your question answered, can you give us a screenshot?
    sure here you go


  22. #622
    Points: 7.352, Level: 57
    Level completed: 1%, Points required for next Level: 198
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Ware, MA
    Beiträge
    868
    Points
    7.352
    Level
    57
    Downloads
    0
    Uploads
    0

    Standard

    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!!
    Halo2 Gamertag~PSPH4X0R

    7/17/06
    ~The Day My PSP Almost Died~
    Thank you
    GrandTheftAutoJunkie

  23. #623
    Points: 7.352, Level: 57
    Level completed: 1%, Points required for next Level: 198
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Ware, MA
    Beiträge
    868
    Points
    7.352
    Level
    57
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von JustChris
    Second call, if anyone's interested.
    Im extremely interested!!

    Zitat Zitat von Slasher
    /* Callback thread */
    int CallbackThread(SceSize args, void *argp) {
    int cbid;

    cbid = sceKernelCreateCallback(" Exit Callback", exit_callback, NULL);
    sceKernelRegisterExitCall back(cbid);

    sceKernelSleepThreadCB();

    return 0;
    hey slasher, your callback function is spaced out, thats not a forum error..
    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!!
    Halo2 Gamertag~PSPH4X0R

    7/17/06
    ~The Day My PSP Almost Died~
    Thank you
    GrandTheftAutoJunkie

  24. #624
    Advanced PSP Coder
    Points: 7.141, Level: 55
    Level completed: 96%, Points required for next Level: 9
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Ort
    Down South
    Beiträge
    426
    Points
    7.141
    Level
    55
    Downloads
    0
    Uploads
    0

    Standard

    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]

  25. #625
    Advanced PSP Coder
    Points: 7.141, Level: 55
    Level completed: 96%, Points required for next Level: 9
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Ort
    Down South
    Beiträge
    426
    Points
    7.141
    Level
    55
    Downloads
    0
    Uploads
    0

    Standard

    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]

  26. #626
    ...
    Points: 10.603, Level: 68
    Level completed: 39%, Points required for next Level: 247
    Overall activity: 0%

    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

    Standard

    Zitat Zitat von JustChris
    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.

    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...
    what is pg.h or pg.c and where do you get it? does it support loading of images and does it support transparency?

    edit: nvm, i just found the psp sdk samples, so i think i can figure gfx stuf out
    Geändert von xigency (11-08-2005 um 08:54 PM Uhr)
    ...

  27. #627
    QJ Gamer Green
    Points: 6.520, Level: 52
    Level completed: 85%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Ort
    Sweden
    Beiträge
    460
    Points
    6.520
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von HaxxBlaster
    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..
    Please do answer my question. I really need you guys help.

  28. #628
    OMFG
    Points: 19.453, Level: 88
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Toronto
    Beiträge
    2.814
    Points
    19.453
    Level
    88
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von sumpaintballer41
    Im extremely interested!!



    hey slasher, your callback function is spaced out, thats not a forum error..
    At least i think its not, try removing that spaces between sceKernelRegisterExitCall and back..Double check your code for that error!

    Hope it helps!
    It is the forum glitch, there isn't a space there

  29. #629
    Asleep...
    Points: 11.516, Level: 70
    Level completed: 67%, Points required for next Level: 134
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    1.383
    Points
    11.516
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    whats the code for a sprite?

  30. #630
    Points: 7.352, Level: 57
    Level completed: 1%, Points required for next Level: 198
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Ware, MA
    Beiträge
    868
    Points
    7.352
    Level
    57
    Downloads
    0
    Uploads
    0

    Standard

    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! haha
    Geändert von sumpaintballer41 (11-09-2005 um 08:35 PM Uhr)
    Cover your eyes and run...
    gmansixfo= STEPMANIA LEGEND!!
    Halo2 Gamertag~PSPH4X0R

    7/17/06
    ~The Day My PSP Almost Died~
    Thank you
    GrandTheftAutoJunkie


 
Seite 21 von 40 ErsteErste ... 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ... LetzteLetzte

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 08:48 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .