Seite 237 von 340 ErsteErste ... 137 187 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 287 337 ... LetzteLetzte
Zeige Ergebnis 7.081 bis 7.110 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; Zitat von TMNT How? Could you show me? Replace the first 0 in sceKernelCreateThread with PSP_THREAD_ATTR_USER....

  
  1. #7081
    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 TMNT
    How? Could you show me?
    Replace the first 0 in sceKernelCreateThread with PSP_THREAD_ATTR_USER.


    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  2. #7082
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Oh, i tried that. But now, when i click X on yes, it says please wait...but does not exit the app (freezes). Thanks for trying to help me, but i am going to put my app back into user mode though.
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  3. #7083
    QJ Gamer Blue
    Points: 5.871, Level: 49
    Level completed: 61%, Points required for next Level: 79
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Beiträge
    432
    Points
    5.871
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    im having some problems trying to ,after i open a file, make the string of text in it into a variable that i can use anytime, even after the files is closed.


    here is my code for opening the file.
    Code:
     // Opens pass
      {
     	ifstream OpenFile("pass.conn");
    
    	char pass;
    	while(!OpenFile.eof())
    	{
    		OpenFile.get(pass);
    		cout <<  pass;
    	}
    
       }
    -= Double Post =-
    o..is this thread for psp's only ( im talking about a windows file.)
    -= Double Post =-
    o..is this thread for psp's only ( im talking about a windows file.)
    Geändert von Blackbelttcon (12-13-2007 um 03:12 PM Uhr) Grund: Automerged Doublepost

  4. #7084
    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

    Code:
    #include <iostream>
    #include <string>
    #include <fstream>
    
    using namespace std;
    
    int main()
    {
        ifstream fin( "readme.txt" );
        
        if ( !fin )
        {
            cerr << "Error opening input stream" << endl;
            return -1;
        }
    
        string textFileContents = "";
        string line = "";
        while( getline( fin, line ); )
        {		
            textFileContents += line;
        }
    	
        fin.close();
        cout << textFileContents << endl;
    }

  5. #7085
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Hey,
    I have created a timer for shooting bullets. However, how do i put multiple bullets? Do i need an array? Do i need to blit the bullet more than once (obviously, since there are more than one, but still...)?
    Btw, my current code (for one bullet on screen) is very smooth and works great.
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  6. #7086
    QJ Gamer Blue
    Points: 5.871, Level: 49
    Level completed: 61%, Points required for next Level: 79
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Beiträge
    432
    Points
    5.871
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von yaustar
    Code:
    #include <iostream>
    #include <string>
    #include <fstream>
    
    using namespace std;
    
    int main()
    {
        ifstream fin( "readme.txt" );
        
        if ( !fin )
        {
            cerr << "Error opening input stream" << endl;
            return -1;
        }
    
        string textFileContents = "";
        string line = "";
        while( getline( fin, line ); )
        {		
            textFileContents += line;
        }
    	
        fin.close();
        cout << textFileContents << endl;
    }




    omg thanx ive been working on that for about 10 hours now and havent found anything till now.


    thanx if i could donate, i would :Punk:


    thanx

  7. #7087
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von TMNT
    Hey,
    I have created a timer for shooting bullets. However, how do i put multiple bullets? Do i need an array? Do i need to blit the bullet more than once (obviously, since there are more than one, but still...)?
    Btw, my current code (for one bullet on screen) is very smooth and works great.

    Btw, here's my current bullet code (works flawlessly). But i need to find out how to shoot multiple bullets.

    Code:
    //Square
    if (pad.Buttons & PSP_CTRL_SQUARE)
    {
       //Shoot
       FireTimer++;
    }
    
    /*******************
        Shooting
    ********************/
    //Fresh Shot Ready
    if (FireTimer < 1)
    {
    WeaponPosX = SpaceshipPosX + SpaceshipWidth;
    WeaponPosY = SpaceshipPosY + 15;
    FireTimer = 0;
    }
    
    //Active Shoot
    if (FireTimer > 1) {    
       if (FireTimer < 4) { WAV_Play(fire1); }             
       blitAlphaImageToScreen(0, 0, WeaponWidth, WeaponHeight, Weapon, WeaponPosX, WeaponPosY);
       FireTimer++;
       WeaponPosX += WeaponSpeed;
    }
    
    //Refresh Shooting
    if (FireTimer > WeaponDistance)
    {
    WeaponPosX = SpaceshipPosX + SpaceshipWidth;
    WeaponPosY = SpaceshipPosY + 15;
    FireTimer = 0;
    }
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  8. #7088
    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 TMNT
    Hey,
    I have created a timer for shooting bullets. However, how do i put multiple bullets? Do i need an array? Do i need to blit the bullet more than once (obviously, since there are more than one, but still...)?
    Btw, my current code (for one bullet on screen) is very smooth and works great.
    Think 'for' loop,
    for (i = 1; i <= active_bullets; i++)
    {
    if (bullet[i].active)
    {

    }
    }
    etc

    I'm sure there's a more productive way of doing it, but that's one way.

  9. #7089
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Just posted my current code. Anything wrong with it?
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  10. #7090
    QJ Gamer Blue
    Points: 5.871, Level: 49
    Level completed: 61%, Points required for next Level: 79
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Beiträge
    432
    Points
    5.871
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    when i run the program the variables pass comes out with a line and a half of spaces after it. how do i get rid of that.

    Gets the variable from the Conn file
    Code:
         // Opens pass
      {
     	ifstream OpenFile("pass.conn");
    
    	char pass1;
    	while(!OpenFile.eof())
    	{
    		OpenFile.get(pass1);
    
             pass += pass1;
    	}
    
       }
    this is were the line and a half of spaces comes after this is your password=
    Code:
         cout << " this is your password= " << pass <<endl;

  11. #7091
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Slasher
    Think 'for' loop,
    for (i = 1; i <= active_bullets; i++)
    {
    if (bullet[i].active)
    {

    }
    }
    etc

    I'm sure there's a more productive way of doing it, but that's one way.
    I'm still confused. What are you trying to say?
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  12. #7092
    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

    Well make your bullets into a struct, then use a for loop to go through them and draw them, update them, etc.
    Code:
    #define MAX_BULLETS 128
    
    typedef struct
    {
    	int x, y;
    	int speed;
    
    	int active;
    
    } bullets[MAX_BULLETS];
    
    int curBullet = 0;
    
    // Before your loop
    int i;
    for (i = 1; i <= MAX_BULLETS; i++)
    	bullets[i].active = 0;
    
    // In your code
    int i;
    for (i = 1; i <= MAX_BULLETS; i++)
    {
    	if (bullets[i].active)
    	{
    		// Update (Your 'Refresh Shooting' section)
    		bullets[i].x += bullets[i].speed;
    		
    		// Draw
    		blitAlphaImageToScreen
    	}
    }
    
    // Button press (You might want to put a delay on this)
    if (pad.Buttons & PSP_CTRL_SQUARE)
    {
    	if (curBullet < MAX_BULLETS)
    		curBullet++;
    	else
    		curBullet = 1;
    
    	bullets[curBullet].active = 1;
    	bullets[curBullet].x = xvalue;
    	bullets[curBullet].y = yvalue;
    	bullets[curBullet].speed = speedvalue;
    }
    Hopefully you get the jist of it through that. You'll want to 'deactivate' the bullet after a set time, or perhaps if it goes off the screen. Just keep track of the x value through that for loop.

  13. #7093
    Points: 3.340, Level: 35
    Level completed: 94%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    May 2007
    Beiträge
    31
    Points
    3.340
    Level
    35
    Downloads
    0
    Uploads
    0

    Standard

    i need help hope someone can help me out.

    this is how i would read 10 characters in a string from test file:

    char mystring [5];
    pFile = fopen ("ms0:/test.txt" , "r");
    fgets (mystring , 5, pFile);
    puts (mystring);
    fclose (pFile);

    but how would i set a own string for each of the 5 characters inside the txt ??? :Argh:


    also is it possible to merge 5 variables in one string?
    need to merge all 5 together in one string which i can compare laters.

    mychar[0] = 0;
    mychar[1] = 0;
    mychar[2] = 0;
    mychar[3] = 0;
    mychar[4] = 0;
    mychar[5] = 0;


    thanks

  14. #7094
    Ænima
    Points: 6.447, Level: 52
    Level completed: 49%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Sep 2007
    Beiträge
    587
    Points
    6.447
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von ultimate-psp
    i need help hope someone can help me out.

    this is how i would read 10 characters in a string from test file:

    char mystring [5];
    pFile = fopen ("ms0:/test.txt" , "r");
    fgets (mystring , 5, pFile);
    puts (mystring);
    fclose (pFile);

    but how would i set a own string for each of the 5 characters inside the txt ??? :Argh:


    also is it possible to merge 5 variables in one string?
    need to merge all 5 together in one string which i can compare laters.

    mychar[0] = 0;
    mychar[1] = 0;
    mychar[2] = 0;
    mychar[3] = 0;
    mychar[4] = 0;
    mychar[5] = 0;


    thanks
    As for your first question, you don't need to. To access the first character, use mystring[0]. For the second, use mystring[1], etc. Also, if you're reading 5 characters, it should be mystring[6] for the null terminator. And as for your second, use sprintf.

    char buf[20];
    sprintf(buf,"%i %i %s",mychar[2],mychar[5],mystring);
    [IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG]

    Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs.

  15. #7095
    QJ Gamer Blue
    Points: 5.941, Level: 49
    Level completed: 96%, Points required for next Level: 9
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Beiträge
    171
    Points
    5.941
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von ultimate-psp
    i need help hope someone can help me out.

    this is how i would read 10 characters in a string from test file:

    char mystring [5];
    pFile = fopen ("ms0:/test.txt" , "r");
    fgets (mystring , 5, pFile);
    puts (mystring);
    fclose (pFile);

    but how would i set a own string for each of the 5 characters inside the txt ??? :Argh:


    also is it possible to merge 5 variables in one string?
    need to merge all 5 together in one string which i can compare laters.

    mychar[0] = 0;
    mychar[1] = 0;
    mychar[2] = 0;
    mychar[3] = 0;
    mychar[4] = 0;
    mychar[5] = 0;


    thanks
    It's easy :)

    Code:
    char buf[6];
    void ReadFile(const char *filename)
    {
      
      FILE *read = fopen(filename, "r");
      sprintf(buf, "%s", fgets(buf, 6, read));
      fclose(read);
    }
    Then, check characters of the buf using...
    Code:
    // Example
    if(strcmp(buf[0], "a") == 0)
    // ...
    or...
    Code:
    // Another example xD
    if(buf[0] == 0x20)
    // ...
    Cheers :)

  16. #7096
    QJ Gamer Blue
    Points: 3.795, Level: 38
    Level completed: 97%, Points required for next Level: 5
    Overall activity: 27,0%

    Registriert seit
    Jul 2007
    Beiträge
    296
    Points
    3.795
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Dark_Moon
    It's easy :)

    Code:
    char buf[6];
    void ReadFile(const char *filename)
    {
      
      FILE *read = fopen(filename, "r");
      sprintf(buf, "%s", fgets(buf, 6, read));
      fclose(read);
    }
    Then, check characters of the buf using...
    Code:
    // Example
    if(strcmp(buf[0], "a") == 0)
    // ...
    or...
    Code:
    // Another example xD
    if(buf[0] == 0x20)
    // ...
    Cheers :)
    Except that strcmp() expects a string, and not a char.

  17. #7097
    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

    Zitat Zitat von Auraomega
    Don't complain, I've been asking for a few days about how to load a pspbtcnf file, and no reply...

    I've got this so far, I basically copied from the 3.40OE-A source code, and commented out the stuff I didn't need, but no luck:

    Code:
        struct SceKernelLoadExecVSHParam param;
        //u32 vshmain_args[0x20/4];
    
        memset(&param, 0, sizeof(param));
        //memset(vshmain_args, 0, sizeof(vshmain_args));
    
        //vshmain_args[0/4] = 0x0400;
        //vshmain_args[4/4] = 0x20;
        //vshmain_args[0x14/4] = error;
    
        param.size = sizeof(param);
        //param.args = 0x400;
        //param.argp = vshmain_args;
        //param.vshmain_args_size = 0x400;
        //param.vshmain_args = vshmain_args;
        param.configfile = &quot;/kn/pspbtcnf_p4bu.bin&quot;;
    Am I missing something blindingly obvious?

    -Aura
    Check macspoofer sources; it patches pspbtcnf.bin. :)

  18. #7098
    QJ Gamer Bronze
    Points: 8.045, Level: 60
    Level completed: 48%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Australia
    Beiträge
    659
    Points
    8.045
    Level
    60
    Downloads
    0
    Uploads
    0

    Standard

    hey, i wqas just wondering if anyone knows if there has been a program that hides/blocks homebrew games like there is for videos/pictures?

  19. #7099
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    hello world

    well i have finally got my cygwin/psptoolchain/some libs working and i can now compile luaplayer 0.20 - the others have one or two problems but it is just one line that i haven't bothered to change

    anyway i was just wondering which libs i need to compile the luaplayer when mp3 and ogg have been added in

    basically which libs contain the mp3 and ogg

    thanks
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  20. #7100
    QJ Gamer Bronze
    Points: 8.045, Level: 60
    Level completed: 48%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Australia
    Beiträge
    659
    Points
    8.045
    Level
    60
    Downloads
    0
    Uploads
    0

    Standard

    Discard previous post.

    Anyways, i was wondering if anyone knew a library i could use to load .WAV's. I've previously used OSLib but now i've moved away from it and WAVLoader gets a stack of errors for me when compiling even the samples. Any help would be great
    -= Double Post =-
    by previous post i mean mine, not FaT3oYCG

    @FaT3oYCG Isnt ogg playback already in LUAPlayer?
    Geändert von Xsjado7 (12-15-2007 um 05:57 AM Uhr) Grund: Automerged Doublepost

  21. #7101
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    not sure but anyway i would like to be able to compile my own version of the lua player with mp3 support at least which im sure requires a library that i haven't installed yet and i would just like to know which one that it is thanks
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  22. #7102
    QJ Gamer Bronze
    Points: 8.045, Level: 60
    Level completed: 48%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Australia
    Beiträge
    659
    Points
    8.045
    Level
    60
    Downloads
    0
    Uploads
    0

    Standard

    i thought it had mp3 as well

  23. #7103
    Ænima
    Points: 6.447, Level: 52
    Level completed: 49%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Sep 2007
    Beiträge
    587
    Points
    6.447
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von FaT3oYCG
    not sure but anyway i would like to be able to compile my own version of the lua player with mp3 support at least which im sure requires a library that i haven't installed yet and i would just like to know which one that it is thanks
    Cools Mod #4 already has MP3 and OGG support.
    [IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG]

    Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs.

  24. #7104
    QJ Gamer Bronze
    Points: 8.045, Level: 60
    Level completed: 48%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Australia
    Beiträge
    659
    Points
    8.045
    Level
    60
    Downloads
    0
    Uploads
    0

    Standard

    i thought so

  25. #7105
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    hmm i probably didn't explain properly

    - i want to be able to compile cools mod 4 with my cygwin and was asking which libs that i would need please

    thanks

    sorry for the long reply

    im integrating pikey into lua player

    its quite easy dont know why it hasn't been done and released before

    thanks again

    Craig
    Geändert von FaT3oYCG (12-15-2007 um 09:13 AM Uhr)
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  26. #7106
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    Whats libs does it tell you you need?

  27. #7107
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    it doesn't

    Code:
    $ make
    psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -Wall -O2 -fno-strict-aliasi
    ng  -I/usr/include/freetype2 -I. -I/usr/local/pspdev/psp/sdk/include -G0 -Wall -
    O2 -fno-strict-aliasing  -I/usr/include/freetype2 -fno-exceptions -fno-rtti -D_P
    SP_FW_VERSION=150   -c -o src/graphics.o src/graphics.cpp
    psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -G0 -Wall -O2 -fno-strict-aliasi
    ng  -I/usr/include/freetype2 -D_PSP_FW_VERSION=150   -c -o src/mp3.o src/mp3.c
    In file included from src/mp3.c:14:
    src/mp3.h:9:17: error: mad.h: No such file or directory
    src/mp3.c:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Fi
    lter'
    src/mp3.c:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Ti
    mer'
    src/mp3.c:57: error: 'MAD_BUFFER_GUARD' undeclared here (not in a function)
    src/mp3.c:86: warning: 'struct mad_header' declared inside parameter list
    src/mp3.c:86: warning: its scope is only this definition or declaration, which i
    s probably not what you want
    src/mp3.c: In function 'PrintFrameInfo':
    src/mp3.c:91: error: dereferencing pointer to incomplete type
    src/mp3.c:92: error: 'MAD_LAYER_I' undeclared (first use in this function)
    src/mp3.c:92: error: (Each undeclared identifier is reported only once
    src/mp3.c:92: error: for each function it appears in.)
    src/mp3.c:95: error: 'MAD_LAYER_II' undeclared (first use in this function)
    src/mp3.c:98: error: 'MAD_LAYER_III' undeclared (first use in this function)
    src/mp3.c:107: error: dereferencing pointer to incomplete type
    src/mp3.c:108: error: 'MAD_MODE_SINGLE_CHANNEL' undeclared (first use in this fu
    nction)
    src/mp3.c:111: error: 'MAD_MODE_DUAL_CHANNEL' undeclared (first use in this func
    tion)
    src/mp3.c:114: error: 'MAD_MODE_JOINT_STEREO' undeclared (first use in this func
    tion)
    src/mp3.c:117: error: 'MAD_MODE_STEREO' undeclared (first use in this function)
    src/mp3.c:129: error: dereferencing pointer to incomplete type
    src/mp3.c:130: error: 'MAD_EMPHASIS_NONE' undeclared (first use in this function
    )
    src/mp3.c:133: error: 'MAD_EMPHASIS_50_15_US' undeclared (first use in this func
    tion)
    src/mp3.c:136: error: 'MAD_EMPHASIS_CCITT_J_17' undeclared (first use in this fu
    nction)
    src/mp3.c: In function 'ApplyFilter':
    src/mp3.c:163: warning: implicit declaration of function 'MAD_NSBSAMPLES'
    src/mp3.c:163: error: dereferencing pointer to incomplete type
    src/mp3.c:164: error: dereferencing pointer to incomplete type
    src/mp3.c:164: error: 'MAD_MODE_SINGLE_CHANNEL' undeclared (first use in this fu
    nction)
    src/mp3.c:168: error: dereferencing pointer to incomplete type
    src/mp3.c:169: warning: implicit declaration of function 'mad_f_mul'
    src/mp3.c:169: error: dereferencing pointer to incomplete type
    src/mp3.c:169: error: 'Filter' undeclared (first use in this function)
    src/mp3.c:173: error: dereferencing pointer to incomplete type
    src/mp3.c:173: error: dereferencing pointer to incomplete type
    src/mp3.c: At top level:
    src/mp3.c:180: error: expected ')' before 'Fixed'
    src/mp3.c: In function 'MP3Callback':
    src/mp3.c:232: error: invalid use of undefined type 'struct mad_stream'
    src/mp3.c:232: error: invalid use of undefined type 'struct mad_stream'
    src/mp3.c:232: error: 'MAD_ERROR_BUFLEN' undeclared (first use in this function)
    
    src/mp3.c:238: warning: implicit declaration of function 'mad_stream_buffer'
    src/mp3.c:239: error: invalid use of undefined type 'struct mad_stream'
    src/mp3.c:242: warning: implicit declaration of function 'mad_frame_decode'
    src/mp3.c:243: warning: implicit declaration of function 'MAD_RECOVERABLE'
    src/mp3.c:243: error: invalid use of undefined type 'struct mad_stream'
    src/mp3.c:249: error: invalid use of undefined type 'struct mad_stream'
    src/mp3.c:249: error: 'MAD_ERROR_LOSTSYNC' undeclared (first use in this functio
    n)
    src/mp3.c:249: error: invalid use of undefined type 'struct mad_stream'
    src/mp3.c:252: error: invalid use of undefined type 'struct mad_stream'
    src/mp3.c:266: error: invalid use of undefined type 'struct mad_frame'
    src/mp3.c:281: warning: implicit declaration of function 'mad_timer_add'
    src/mp3.c:281: error: 'Timer' undeclared (first use in this function)
    src/mp3.c:281: error: invalid use of undefined type 'struct mad_frame'
    src/mp3.c:294: warning: implicit declaration of function 'mad_synth_frame'
    src/mp3.c:303: error: invalid use of undefined type 'struct mad_synth'
    src/mp3.c:307: warning: implicit declaration of function 'MadFixedToSshort'
    src/mp3.c:307: error: invalid use of undefined type 'struct mad_synth'
    src/mp3.c:315: warning: implicit declaration of function 'MAD_NCHANNELS'
    src/mp3.c:315: error: invalid use of undefined type 'struct mad_frame'
    src/mp3.c:316: error: invalid use of undefined type 'struct mad_synth'
    src/mp3.c:323: error: invalid use of undefined type 'struct mad_synth'
    src/mp3.c:327: error: invalid use of undefined type 'struct mad_frame'
    src/mp3.c:328: error: invalid use of undefined type 'struct mad_synth'
    src/mp3.c: In function 'MP3_Init':
    src/mp3.c:352: warning: implicit declaration of function 'mad_stream_init'
    src/mp3.c:353: warning: implicit declaration of function 'mad_frame_init'
    src/mp3.c:354: warning: implicit declaration of function 'mad_synth_init'
    src/mp3.c:355: warning: implicit declaration of function 'mad_timer_reset'
    src/mp3.c:355: error: 'Timer' undeclared (first use in this function)
    src/mp3.c: In function 'MP3_FreeTune':
    src/mp3.c:373: warning: implicit declaration of function 'mad_synth_finish'
    src/mp3.c:374: warning: implicit declaration of function 'mad_frame_finish'
    src/mp3.c:375: warning: implicit declaration of function 'mad_stream_finish'
    src/mp3.c:412: warning: implicit declaration of function 'mad_timer_string'
    src/mp3.c:412: error: 'Timer' undeclared (first use in this function)
    src/mp3.c:412: error: 'MAD_UNITS_MINUTES' undeclared (first use in this function
    )
    src/mp3.c:412: error: 'MAD_UNITS_MILLISECONDS' undeclared (first use in this fun
    ction)
    src/mp3.c: In function 'MP3_GetTimeString':
    src/mp3.c:496: error: 'Timer' undeclared (first use in this function)
    src/mp3.c:496: error: 'MAD_UNITS_HOURS' undeclared (first use in this function)
    src/mp3.c:496: error: 'MAD_UNITS_MILLISECONDS' undeclared (first use in this fun
    ction)
    make: *** [src/mp3.o] Error 1
    
    [email protected]@craigs_computer ~/LuaPlayer0.16_mod
    $
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  28. #7108
    Banned for LIFE
    Points: 18.744, Level: 86
    Level completed: 79%, Points required for next Level: 106
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    East London, England
    Beiträge
    2
    Points
    18.744
    Level
    86
    Downloads
    0
    Uploads
    0

    Standard

    im guessing an error saying mad means you need to install libmad

    Im guessing you'll need mikmod for it support.

    Remember this is all guess work. Doesnt the makefile tell you which libs ?

  29. #7109
    I'm back!
    Points: 8.236, Level: 61
    Level completed: 29%, Points required for next Level: 214
    Overall activity: 99,0%

    Registriert seit
    Feb 2007
    Ort
    England
    Beiträge
    902
    Points
    8.236
    Level
    61
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Mr305
    Check macspoofer sources; it patches pspbtcnf.bin. :)
    ...I asked how to load a pspbtcnf.bin file, not edit one, thats easy enough and I've done it already, I want to load a new one I've made.

    -Aura
    Last.fm | Deviant Art | First working OS picture

    Zitat Zitat von nickxab Beitrag anzeigen
    I will beat myself. :p

  30. #7110
    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

    Zitat Zitat von Auraomega
    ...I asked how to load a pspbtcnf.bin file, not edit one, thats easy enough and I've done it already, I want to load a new one I've made.

    -Aura
    Not exactly of what you mean by "'Load' a new one".

    ----
    If you are already able to edit one, replace the old one with the edited one on flash0,0.

    or
    Is it a problem of 3.xx flashing?


 

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 .