Seite 284 von 340 ErsteErste ... 184 234 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 334 ... LetzteLetzte
Zeige Ergebnis 8.491 bis 8.520 von 10174

C/C++ Programming Help Thread

This is a discussion on C/C++ Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; bleh IWN already took care of the 1.5 starting issue by putting a nice little message saying please start your ...

  
  1. #8491
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    bleh IWN already took care of the 1.5 starting issue by putting a nice little message saying please start your game under 3xx kernel

    anyways sg57 i'm already on IRC ton's you should join us, it's how IWN helped me with getting circle collision working on my Impact game

    which i love the method IWN(and i feel stupid for what i had come up with) i can apply it to nearly any basic geometry shape=-)

    anywho hope to see you on irc sg=-)


    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  2. #8492
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    What channel are you on lol im on psp-programming and pspdev pretty regularly.

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  3. #8493
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    o i thought you went to irc.malloc.us, or defiance, etc, etc on #exo (redirection of #psp), bleh but IWN told me that you went on freenode and not the servers i cruise so i'll pop on #psp-programming on freenode from now on
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  4. #8494
    Points: 2.517, Level: 30
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Registriert seit
    May 2008
    Beiträge
    2
    Points
    2.517
    Level
    30
    Downloads
    0
    Uploads
    0

    Standard

    I'm fairly new to c programming (in general) and I want to know how you can give a defined variable a value by reading a .txt file (something like the dofile() function in LUA)
    example:I need to give a value to a certain variable (F) I've declared in the program by reading a .txt file that has ,for instance, a line that says F = 1

    --swizl

  5. #8495
    QJ Gamer Bronze
    Points: 5.583, Level: 48
    Level completed: 17%, Points required for next Level: 167
    Overall activity: 0%

    Registriert seit
    May 2007
    Beiträge
    127
    Points
    5.583
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von swizl
    I'm fairly new to c programming (in general) and I want to know how you can give a defined variable a value by reading a .txt file (something like the dofile() function in LUA)
    example:I need to give a value to a certain variable (F) I've declared in the program by reading a .txt file that has ,for instance, a line that says F = 1

    --swizl
    fgets your line of text into a buffer. run atoi or strtoul or its friends at the right offset to the number.... strchr/isspace etc are your friends. or get a string library like bstring.
    -- Code Monkey : Sarien, Fishguts, Cracks and Crevices --

    "Did IQ's just drop sharply while I was away?" (Ripley)

  6. #8496
    Points: 2.517, Level: 30
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Registriert seit
    May 2008
    Beiträge
    2
    Points
    2.517
    Level
    30
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von _df_
    run atoi or strtoul or its friends at the right offset to the number....
    its friends? care to explain?

  7. #8497
    QJ Gamer Bronze
    Points: 5.583, Level: 48
    Level completed: 17%, Points required for next Level: 167
    Overall activity: 0%

    Registriert seit
    May 2007
    Beiträge
    127
    Points
    5.583
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    ato_i == integer. it has friends for float..
    -- Code Monkey : Sarien, Fishguts, Cracks and Crevices --

    "Did IQ's just drop sharply while I was away?" (Ripley)

  8. #8498
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    By 'friends', he/she means 'similar functions'.

  9. #8499
    QJ Gamer Bronze
    Points: 5.583, Level: 48
    Level completed: 17%, Points required for next Level: 167
    Overall activity: 0%

    Registriert seit
    May 2007
    Beiträge
    127
    Points
    5.583
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    hey yauster... nice to see familiar people ;) i dont go much anymore to the gp32x forums... are you mostly working on psp stuff now over gp2x? I think pandora will be out of my price range (and I dont quite like its aesthetics)..
    -- Code Monkey : Sarien, Fishguts, Cracks and Crevices --

    "Did IQ's just drop sharply while I was away?" (Ripley)

  10. #8500
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Honestly I am waiting on the Pandora, I am just working on some cross platform stuff at the moment and actual work.

  11. #8501
    Points: 5.711, Level: 48
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Beiträge
    39
    Points
    5.711
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    I tried using SG57's fading in and out example(that he gave me a few posts ago) with Psilocybeing's graphics.h and here's what i got:
    Spoiler for code:

    #define RGBA(r,g,b,a) ((r) | ((g)<<8) | ((b)<<16) | ((a)<<24))
    #define RGB(r,g,b) ((r) | ((g)<<8) | ((b)<<16))

    void FadeIn(int speed,Image* img, int width , int height,int imgx,int imgy){
    int i = 255;
    Color Alpha = RGBA(0,0,0,i);
    while(1){
    fillImageRect(Alpha,0,0,w idth,height,img);
    blitAlphaImageToScreen(0, 0,width,height,img,imgx,i mgy);
    i -= speed;
    if(i < 0.0f){
    break;
    }
    }
    }
    void FadeOut(float speed,Image* img,int width,int height,int imgx,int imgy){
    int i = 0;
    Color Alpha = RGBA(0,0,0,i);
    while(1){
    fillImageRect(Alpha,0,0,w idth,height,img);
    blitAlphaImageToScreen(0, 0,width,height,img,imgx,i mgy);
    i += speed;
    if(i < 255.0f){
    break;
    }
    }
    }

    I have 2 questions and 1 problem:
    Question: Is there a better way to do this?
    Question: Does graphics.h allow Alpha as part of a color?
    Problem: I tried running this code as part of a project I'm helping a friend with and when I try running the program my PSP crashes (yes I've checked if the .png's are interlaced or not(like the last time I had a prob like this))
    PLZ HELP
    EDIT: Sorry for the code formatting for some reason it's not coming in the spoiler the way it's supposed to.

  12. #8502
    QJ Gamer Bronze
    Points: 5.354, Level: 47
    Level completed: 2%, Points required for next Level: 196
    Overall activity: 0%

    Registriert seit
    Jan 2007
    Ort
    Right here
    Beiträge
    179
    Points
    5.354
    Level
    47
    Downloads
    0
    Uploads
    0

    Standard

    how can i use a custom module_start in a prx. when i compile it, i get the error "multiple definition of `module_start'"

    here is my main.c

    Code:
    #include <pspsdk.h>
    #include <pspkernel.h>
    #include <pspdebug.h>
    
    #define printf pspDebugScreenPrintf
    
    PSP_MODULE_INFO("prx", 0, 1, 0);
    
    int module_start(SceSize args, void *argp)
    {
    // variable initialization
    return 0;
    }
    
    int module_stop(SceSize args, void *argp)
    {
    return 0;
    }
    sudo rm -rf /

    PSN ID: FigMan13

  13. #8503
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Replace "build.mak" with "build_prx.mak" in the Makefile.
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  14. #8504
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    Zitat Zitat von bnc9
    I tried using SG57's fading in and out example(that he gave me a few posts ago) with Psilocybeing's graphics.h and here's what i got:
    Spoiler for code:

    #define RGBA(r,g,b,a) ((r) | ((g)<<8) | ((b)<<16) | ((a)<<24))
    #define RGB(r,g,b) ((r) | ((g)<<8) | ((b)<<16))

    void FadeIn(int speed,Image* img, int width , int height,int imgx,int imgy){
    int i = 255;
    Color Alpha = RGBA(0,0,0,i);
    while(1){
    fillImageRect(Alpha,0,0,w idth,height,img);
    blitAlphaImageToScreen(0, 0,width,height,img,imgx,i mgy);
    i -= speed;
    if(i < 0.0f){
    break;
    }
    }
    }
    void FadeOut(float speed,Image* img,int width,int height,int imgx,int imgy){
    int i = 0;
    Color Alpha = RGBA(0,0,0,i);
    while(1){
    fillImageRect(Alpha,0,0,w idth,height,img);
    blitAlphaImageToScreen(0, 0,width,height,img,imgx,i mgy);
    i += speed;
    if(i < 255.0f){
    break;
    }
    }
    }

    I have 2 questions and 1 problem:
    Question: Is there a better way to do this?
    Question: Does graphics.h allow Alpha as part of a color?
    Problem: I tried running this code as part of a project I'm helping a friend with and when I try running the program my PSP crashes (yes I've checked if the .png's are interlaced or not(like the last time I had a prob like this))
    PLZ HELP
    EDIT: Sorry for the code formatting for some reason it's not coming in the spoiler the way it's supposed to.
    Are you sure that's the code i gave you... I wrote mine in OSlib, and tested it, and it appears that in your attempt to convert it to graphics.h you kinda didn't see what was actually happening :P Try again, it's a good learning experience.btw, use code tags ([code])
    Geändert von SG57 (05-07-2008 um 05:14 PM Uhr)

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  15. #8505
    QJ Gamer Bronze
    Points: 5.354, Level: 47
    Level completed: 2%, Points required for next Level: 196
    Overall activity: 0%

    Registriert seit
    Jan 2007
    Ort
    Right here
    Beiträge
    179
    Points
    5.354
    Level
    47
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Archaemic
    Replace "build.mak" with "build_prx.mak" in the Makefile.
    thanks :)
    sudo rm -rf /

    PSN ID: FigMan13

  16. #8506
    Points: 5.711, Level: 48
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Beiträge
    39
    Points
    5.711
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    arghh.. still refuses to work I know I should have asked this question earlier but SG57:what is really going on in the code you gave me ?!?

  17. #8507
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    lol I don't have the code i gave you stored, can you PM me it? I'll help you that way a little bit more :)

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  18. #8508
    QJ Gamer Gold
    Points: 14.678, Level: 78
    Level completed: 57%, Points required for next Level: 172
    Overall activity: 0%

    Registriert seit
    Nov 2006
    Beiträge
    1.523
    Points
    14.678
    Level
    78
    Downloads
    0
    Uploads
    0

    Standard

    What do Analog stick values range at?

    For Lx & Ly
    Code:
    0 - 128(in centre) - 255
    Correct?

  19. #8509
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    I think 127 is the center.

    But yeah, it's unsigned, so that is indeed the range.
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  20. #8510
    Points: 2.505, Level: 30
    Level completed: 37%, Points required for next Level: 95
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    May 2008
    Beiträge
    3
    Points
    2.505
    Level
    30
    Downloads
    0
    Uploads
    0

    Standard What is wrong?

    Hello, I am new to programming for the PSP and have started my own game but I want to add sound. Using the library in Lesson 06 of the tutorial (libmad, I think it was) made my game slow.

    I want to use the player from this sample code. However when I try to compile the code I get
    Code:
    players/pspaudiolib.o: In function `audioOutpuBlocking':
    pspaudiolib.c:(.text+0x80): undefined reference to `sceAudio_E0727056'
    players/pspaudiolib.o: In function `pspReleaseAudio':
    pspaudiolib.c:(.text+0xa0): undefined reference to `sceAudio_5C37C0AE'
    players/pspaudiolib.o: In function `setFrequency':
    pspaudiolib.c:(.text+0xb0): undefined reference to `sceAudio_38553111'
    players/pspaudiolib.o: In function `pspAudioOutBlocking':
    pspaudiolib.c:(.text+0xe8): undefined reference to `sceAudio_E0727056'
    players/pspaudiolib.o: In function `AudioChannelThread':
    pspaudiolib.c:(.text+0x190): undefined reference to `sceAudio_E0727056'
    players/pspaudiolib.o: In function `pspAudioSetFrequency':
    pspaudiolib.c:(.text+0x2fc): undefined reference to `sceAudio_5C37C0AE'
    pspaudiolib.c:(.text+0x30c): undefined reference to `sceAudio_38553111'
    players/pspaudiolib.o: In function `pspAudioEnd':
    pspaudiolib.c:(.text+0x3f4): undefined reference to `sceAudio_5C37C0AE'
    players/pspaudiolib.o: In function `pspAudioInit':
    pspaudiolib.c:(.text+0x4f8): undefined reference to `sceAudio_5C37C0AE'
    pspaudiolib.c:(.text+0x508): undefined reference to `sceAudio_38553111'
    pspaudiolib.c:(.text+0x778): undefined reference to `sceAudio_5C37C0AE'
    players/player.o: In function `audioOutput':
    player.c:(.text+0x1c4): undefined reference to `sceAudio_E0727056'
    players/player.o: In function `releaseAudio':
    player.c:(.text+0x1e4): undefined reference to `sceAudio_5C37C0AE'
    players/player.o: In function `setAudioFrequency':
    player.c:(.text+0x1f4): undefined reference to `sceAudio_38553111'
    /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libFLAC.a(ogg_decoder_aspect.o): In function `FLAC__ogg_decoder_aspect_read_callback_wrapper':
    ogg_decoder_aspect.c:(.text+0x160): undefined reference to `ogg_sync_buffer'
    /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libFLAC.a(ogg_decoder_aspect.o): In function `FLAC__ogg_decoder_aspect_finish':
    ogg_decoder_aspect.c:(.text+0x33c): undefined reference to `ogg_sync_clear'
    ogg_decoder_aspect.c:(.text+0x350): undefined reference to `ogg_stream_clear'
    /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libFLAC.a(ogg_decoder_aspect.o): In function `FLAC__ogg_decoder_aspect_init':
    ogg_decoder_aspect.c:(.text+0x36c): undefined reference to `ogg_stream_init'
    ogg_decoder_aspect.c:(.text+0x394): undefined reference to `ogg_sync_init'
    collect2: ld returned 1 exit status
    make: *** [softwareplayers.elf] Error 1
    Any help? What causes this?
    Thanks a lot,
    Justin

  21. #8511
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Install libogg, and also add -lpspaudio to the LIBS line in your makefile.
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  22. #8512
    QJ Gamer Bronze
    Points: 5.826, Level: 49
    Level completed: 38%, Points required for next Level: 124
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Everywhere
    Beiträge
    206
    Points
    5.826
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Hi. I am trying to start coding in c/c++...

    I've finally got the toolchain and stuff setup to compile some stuff successfully.
    I followed a short tutorial on writing a Hello World and it compiled and ran fine on the psp.
    But I wanted to code in the 3.xx kernel instead of getting into the 1.5 kernel. So, I looked up how to do this and found this http://www.ghoti.nl/PSPtutorialm0.php.

    I followed all the instructions and compiled fine, but it wont run on the psp. I'm thinking it's because of this...

    Code:
    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;
    }
    Won't having functions that deal with kernel not work in 3.xx?
    What would I replace these functions with if this is whats causing the crash?

    I'm sorry if this is a stupid question. This is my first time messing with c/c++.
    I've been messing with lua, and I use to write Java a bunch (not for psp, for pc), but this is a bit different.

    My source code is very simple and short, if this isn't the problem you could take a quick look at it.
    main.c
    Makefile

    I appreciate any help.
    Thanks!
    Geändert von chrisp6825 (05-12-2008 um 01:23 PM Uhr) Grund: wrong link.. :P

  23. #8513
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Those are all usermode functions. They just call on the kernel to do something.
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  24. #8514
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    Describe what is happening chrisp, because if you are running that app in 3.xx kernel it should display "Hello World" and do nothing. You can press home and exit though...

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  25. #8515
    QJ Gamer Bronze
    Points: 5.826, Level: 49
    Level completed: 38%, Points required for next Level: 124
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Everywhere
    Beiträge
    206
    Points
    5.826
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SG57
    Describe what is happening chrisp, because if you are running that app in 3.xx kernel it should display "Hello World" and do nothing. You can press home and exit though...
    Well, basically nothing is happening. I made the changes that it says to in that page, then I compiled it and stuck it in the GAME folder on my psp and it says the game can't be started. Before I changed it at all, it ran fine. I had it in the GAME folder and it still ran.
    My psp is fat 3.71-4 m33 with 1.5 kernal 2 on 3.71 kernel.

    I moved it to the GAME150 folder and it just freezes in the gameboot.

    When I made those changes and compiled, it gave me a prx file, so... maybe I might have to put it in with the game too? I don't think it's the problem but I'll try it.

    Edit -
    No, it didn't fix it. Does this page say to do everything I need to do? Is it leaving anything out?

    Thanks for the help guys.
    Geändert von chrisp6825 (05-12-2008 um 01:27 PM Uhr)

  26. #8516
    QJ Gamer Gold
    Points: 14.678, Level: 78
    Level completed: 57%, Points required for next Level: 172
    Overall activity: 0%

    Registriert seit
    Nov 2006
    Beiträge
    1.523
    Points
    14.678
    Level
    78
    Downloads
    0
    Uploads
    0

    Standard

    What is the Fastest way to check if a string has an ending "\n", if not add one?

    I'm doing this:

    Code:
    if(text_lists[currprintnum][strlen(pb_text_lists[currprintnum])-1]!='\n')

    Correct? :)

    Or Am I supposed to use strcmp?

  27. #8517
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von chrisp6825
    Well, basically nothing is happening. I made the changes that it says to in that page, then I compiled it and stuck it in the GAME folder on my psp and it says the game can't be started. Before I changed it at all, it ran fine. I had it in the GAME folder and it still ran.
    My psp is fat 3.71-4 m33 with 1.5 kernal 2 on 3.71 kernel.

    I moved it to the GAME150 folder and it just freezes in the gameboot.

    When I made those changes and compiled, it gave me a prx file, so... maybe I might have to put it in with the game too? I don't think it's the problem but I'll try it.

    Edit -
    No, it didn't fix it. Does this page say to do everything I need to do? Is it leaving anything out?

    Thanks for the help guys.
    Can we see your Makefile?
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  28. #8518
    QJ Gamer Bronze
    Points: 5.826, Level: 49
    Level completed: 38%, Points required for next Level: 124
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Everywhere
    Beiträge
    206
    Points
    5.826
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Archaemic
    Can we see your Makefile?
    Sure..
    Spoiler for Makefile:
    Code:
    TARGET = hello
    OBJS = main.o
    
    CFLAGS = -O2 -G0 -Wall
    CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
    ASFLAGS = $(CFLAGS)
    
    EXTRA_TARGETS = EBOOT.PBP
    PSP_EBOOT_TITLE = Hello World
    
    BUILD_PRX = 1
    PSP_FW_VERSION = 371
    
    PSPSDK=$(shell psp-config --pspsdk-path)
    include $(PSPSDK)/lib/build.mak

    And heres the main.c just in case...
    Spoiler for main.c:
    Code:
    // Hello World!
    
    #include <pspkernel.h>
    #include <pspdebug.h>
    
    //PSP_MODULE_INFO("Hello World", 1, 1, 1);	//1.50 kernel
    PSP_MODULE_INFO("Hello World", 0, 1, 1);		//3.xx kernel
    PSP_HEAP_SIZE_KB(20480);				//3.xx kernel
    
    /* 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;
    }
    
    //-------------------------------------------------------------------------------------
    
    #define printf pspDebugScreenPrintf
    
    int main() {
    	pspDebugScreenInit();
    	SetupCallbacks();
    	
    	printf("Hello World");
    	
    	sceKernelSleepThread();
    	return 0;
    }

  29. #8519
    QJ Gamer Bronze
    Points: 5.583, Level: 48
    Level completed: 17%, Points required for next Level: 167
    Overall activity: 0%

    Registriert seit
    May 2007
    Beiträge
    127
    Points
    5.583
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Mr305
    What is the Fastest way to check if a string has an ending "\n", if not add one?

    I'm doing this:

    Code:
    if(text_lists[currprintnum][strlen(pb_text_lists[currprintnum])-1]!='\n')

    Correct? :)

    Or Am I supposed to use strcmp?
    no. that will fault if your string is ""...

    try if(strchr(foo, '\n') != NULL)
    -- Code Monkey : Sarien, Fishguts, Cracks and Crevices --

    "Did IQ's just drop sharply while I was away?" (Ripley)

  30. #8520
    Points: 2.505, Level: 30
    Level completed: 37%, Points required for next Level: 95
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    May 2008
    Beiträge
    3
    Points
    2.505
    Level
    30
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Archaemic
    Install libogg, and also add -lpspaudio to the LIBS line in your makefile.
    I installed libogg by following the directions here but I still get the same ogg errors. Also -lpspaudio is already there.
    Thanks,
    Justin


 

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 09:27 PM Uhr.

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