Seite 127 von 340 ErsteErste ... 27 77 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 177 227 ... LetzteLetzte
Zeige Ergebnis 3.781 bis 3.810 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; i just have to downlaod it now; could someone upload it on sendspace?...

  
  1. #3781
    QJ Gamer Bronze
    Points: 8.665, Level: 62
    Level completed: 72%, Points required for next Level: 85
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Beiträge
    758
    Points
    8.665
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    i just have to downlaod it now; could someone upload it on sendspace?



  2. #3782
    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, it's my great friend (darkside)! Anyways, can anyone help me with this problem:


    Zitat Zitat von TMNT
    Hey guys,
    1000th post!!!! YES! Anyways, i need help with this code:

    Code:
    	{	
    		ScePspFVector3 move = { 0.0f, 0.0f, -3.0f };
    		
    		sceGumTranslate( &move );
    		sceGumRotateY( rquad );
    		double PI = 3.14159265358979323846264338327;
    		sceGumRotateY(90*(PI/180.0f));
    	}
    This code doesn't seem to work. It keeps rotating the cube. If i use this:

    Code:
    	{	
    		ScePspFVector3 move = { 0.0f, 0.0f, -3.0f };
    		
    		sceGumTranslate( &move );
    		double PI = 3.14159265358979323846264338327;
    		sceGumRotateY(90*(PI/180.0f));
    	}
    This code doesn't do anything. What do i use to make it rotate the cube (rquad) exactly 90 degrees left or right using radians?
    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. #3783
    QJ Gamer Blue
    Points: 4.022, Level: 40
    Level completed: 36%, Points required for next Level: 128
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Ort
    Holland..
    Beiträge
    154
    Points
    4.022
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    does anyone know if xorloser is ever going to release an update (for his win32 development tools) because you can't render .png and make kxploit isn't working.. but that's not problem actualy because Custom firmware accepts 1.00 firmware eboot's to..
    anyone looked at this :
    Zitat Zitat von Kwastie
    I creating a whooping Stopwatch XD:ROFL: just to improve my coding skill's but
    but the screen is flickering as hell, so does someone know at what rate i don't see it flickering any more?!?
    or is there a way i only have to refresh the numbers of my stopwatch , the whole menu get's

    sceKernelDelayThread(1000 000); = 1 seconde
    my pc has about 80 Hz so if I refresh the screen but for calculating 100 Hz is much better
    @ 1000000/100= 10000 so if I do
    sceKernelDelayThread(1000 0) it has 100 Hz?!?

    i'll give a example
    Code:
    printf(" Your running this program for");
    printf" i%", hour)
    printf":i%", minute)
    printf":i%", seconde);
    sceKernelDelayThread(10000)
    ms ++
    if (ms > 100)
    {
    seconde ++
    ms = 0;
    } 
    if (seconde >60)
    {
    minute ++
    seconde = 0;
    }
    if (minute >60)
    hour ++
    minute = 0;
    }
    if (hour >24)
    {
    hour = 0;
    }
    i am like 20% sure this is going to work but ok it's something to work on

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

    @tmnt the code is correct it's not constantly rotating it 90 degrees it's only rotated to 90 degrees if you want it to keep rotating 90 degrees place in your rquad rotate take out the 90 degree thing then go to where it says rquad+= number and make number 90*PI/180
    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

  5. #3785
    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

    Zitat Zitat von Kwastie
    does anyone know if xorloser is ever going to release an update (for his win32 development tools) because you can't render .png and make kxploit isn't working.. but that's not problem actualy because Custom firmware accepts 1.00 firmware eboot's to..
    anyone looked at this :
    Please look at the lib installer.

    http://dl.qj.net/PSP-Development-Lib...8603/catid/193

  6. #3786
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Code:
    while(1)
    {
           pspDebugScreenClear();
           printf(" Your running this program for");
           printf(" i%", hour);
           printf(":i%", minute);
           printf(":i%", seconde);
           
           while(1)
           {   
             
                    if (hour == 24)
                    {
                            hour = 0;
                    }    
                     if (minute == 60)
                     {
                            hour++;
                           minute = 0;
                           }             
                     if (seconde == 60)
                     {
                            minute++;
                            seconde = 0;
                     }
                     else seconde++;
     
    
    
                     sceKernelDelayThread(1000000);
                     break;
    }
    }

  7. #3787
    QJ Gamer Blue
    Points: 4.022, Level: 40
    Level completed: 36%, Points required for next Level: 128
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Ort
    Holland..
    Beiträge
    154
    Points
    4.022
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Thanks :) I'am going to test right now :)

  8. #3788
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    look back fixed it

  9. #3789
    QJ Gamer Green
    Points: 5.712, Level: 48
    Level completed: 81%, Points required for next Level: 38
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    USA SC/NC
    Beiträge
    699
    Points
    5.712
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von hallo007
    Code:
    while(1)
    {
           pspDebugScreenClear();
           printf(" Your running this program for");
           printf(" i%", hour);
           printf(":i%", minute);
           printf(":i%", seconde);
           
           while(1)
           {   
             
                    if (hour == 24)
                    {
                            hour = 0;
                    }    
                     if (minute == 60)
                     {
                            hour++;
                           minute = 0;
                           }             
                     if (seconde == 60)
                     {
                            minute++;
                            seconde = 0;
                     }
                     else seconde++;
     
    
    
                     sceKernelDelayThread(1000000);
                     break;
    }
    }
    uhh, whats the point in having another while loop if it never loops...
    [CODE]Random Facts:
    irc://irc.malloc.us #wtf #**********
    [/CODE]

    [SIZE="6"][FONT="Century Gothic"][COLOR="Blue"][URL="http://forums.**********.net"]http://forums.**********.net[/URL][/COLOR][/FONT][/SIZE]

  10. #3790
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    o yeah , stupid tradition for if i work with buttons;)

  11. #3791
    QJ Gamer Blue
    Points: 4.022, Level: 40
    Level completed: 36%, Points required for next Level: 128
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Ort
    Holland..
    Beiträge
    154
    Points
    4.022
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    what wrong with :
    if( seconde > 60)
    {
    minute ++;
    seconde = 0;
    }

  12. #3792
    QJ Gamer Green
    Points: 5.712, Level: 48
    Level completed: 81%, Points required for next Level: 38
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    USA SC/NC
    Beiträge
    699
    Points
    5.712
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    btw, you really don't need to clear the screen after every ****ing loop :\ .

    Just have it print the text in the exact same place or something.

    pspDebugScreenSetXY(0,0);

    -_-

    Thats why it flickers btw. You clear the screen so damn much.
    [CODE]Random Facts:
    irc://irc.malloc.us #wtf #**********
    [/CODE]

    [SIZE="6"][FONT="Century Gothic"][COLOR="Blue"][URL="http://forums.**********.net"]http://forums.**********.net[/URL][/COLOR][/FONT][/SIZE]

  13. #3793
    QJ Gamer Blue
    Points: 4.031, Level: 40
    Level completed: 41%, Points required for next Level: 119
    Overall activity: 91,0%

    Registriert seit
    Feb 2007
    Ort
    Florida
    Beiträge
    214
    Points
    4.031
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Kwastie
    what wrong with :
    if( seconde > 60)
    {
    minute ++;
    seconde = 0;
    }
    Looks fine, did you make a integer for both of them?

    EX. int minute
    int seconde?

    And btw, you spelled second wrong, and i think it could be better to use the math.h functions.

  14. #3794
    QJ Gamer Green
    Points: 5.712, Level: 48
    Level completed: 81%, Points required for next Level: 38
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    USA SC/NC
    Beiträge
    699
    Points
    5.712
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von MrChaos
    Looks fine, did you make a integer for both of them?

    EX. int minute
    int seconde?

    And btw, you spelled second wrong, and i think it could be better to use the math.h functions.
    Its spelled fine in HIS program :)

    btw, int minute;
    int second;
    [CODE]Random Facts:
    irc://irc.malloc.us #wtf #**********
    [/CODE]

    [SIZE="6"][FONT="Century Gothic"][COLOR="Blue"][URL="http://forums.**********.net"]http://forums.**********.net[/URL][/COLOR][/FONT][/SIZE]

  15. #3795
    QJ Gamer Blue
    Points: 4.031, Level: 40
    Level completed: 41%, Points required for next Level: 119
    Overall activity: 91,0%

    Registriert seit
    Feb 2007
    Ort
    Florida
    Beiträge
    214
    Points
    4.031
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Moca
    Its spelled fine in HIS program :)

    btw, int minute;
    int second;
    o yeah. my bad. And did he already define the minute and second so that they originaly equal zero?

  16. #3796
    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

    Is it advisable to fetch getVramDrawBuffer() per each use or once per loop[if it doesn't change]?
    I am using IWN's fontloader_2.

  17. #3797
    QJ Gamer Blue
    Points: 4.022, Level: 40
    Level completed: 36%, Points required for next Level: 128
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Ort
    Holland..
    Beiträge
    154
    Points
    4.022
    Level
    40
    Downloads
    0
    Uploads
    0

    Cool

    lol, reason why I wrote seconde instead of second because its dutch for second xD and minuut=minute and uur=hour
    lol now you can speak 3 words dutch

  18. #3798
    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

    Code:
    seconde > 60
    should be
    Code:
    seconde >= 60
    Because 60 seconds is equal to one minute, not 61 or more.

  19. #3799
    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

    Arachemic - Depends. Are you counting the 0-1 transition as one of hte seconds? If not, >= 60, else > 60.

    I say this because most dont count from 1 to 10 via:

    0...1...2...3...4...5...6 ...7...8...9 - ready or not here i come!

    ...erm...yyeeaaah....

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


  20. #3800
    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

    If you notice, he has
    Code:
    seconde = 0;
    So the seconds to reset to 0 and not to 1. It'd be counting like a clock: it goes from :59 to :00, not from :60 to :00.

  21. #3801
    QJ Gamer Green
    Points: 8.459, Level: 62
    Level completed: 3%, Points required for next Level: 291
    Overall activity: 32,0%

    Registriert seit
    Apr 2007
    Beiträge
    886
    Points
    8.459
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    the prx i am making works with no bugs on 3.10 OE but my 3.03 OE-C PSP will not boot when it is enabled. what must i do to laod my prx in 3.03 OE-C

    Code:
    #include <pspkernel.h>
    #include <pspdebug.h>
    #include <pspctrl.h>
    #include <stdio.h>
    #include <stdlib.h>
    
    
    PSP_MODULE_INFO("XXXX", 0x1000, 1, 1);
    
    
    #define XXXXX
    
    
     //Main function
    XXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXX
                    } 
                                    sceKernelDelayThread(100000);
                                                }     
    	return 0;
    }
    
    void* getModuleInfo(void)
    {
    	return (void *) &module_info;
    }

  22. #3802
    QJ Gamer Blue
    Points: 4.031, Level: 40
    Level completed: 41%, Points required for next Level: 119
    Overall activity: 91,0%

    Registriert seit
    Feb 2007
    Ort
    Florida
    Beiträge
    214
    Points
    4.031
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von vodkkaa
    the prx i am making works with no bugs on 3.10 OE but my 3.03 OE-C PSP will not boot when it is enabled. what must i do to laod my prx in 3.03 OE-C

    Code:
    #include <pspkernel.h>
    #include <pspdebug.h>
    #include <pspctrl.h>
    #include <stdio.h>
    #include <stdlib.h>
    
    
    PSP_MODULE_INFO("XXXX", 0x1000, 1, 1);
    
    
    #define XXXXX
    
    
     //Main function
    XXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXX
                    } 
                                    sceKernelDelayThread(100000);
                                                }     
    	return 0;
    }
    
    void* getModuleInfo(void)
    {
    	return (void *) &module_info;
    }
    First of all, on that code, your missing alot of { and your missing int main() {.

    Maybe that is your problem?

  23. #3803
    QJ Gamer Blue
    Points: 4.022, Level: 40
    Level completed: 36%, Points required for next Level: 128
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Ort
    Holland..
    Beiträge
    154
    Points
    4.022
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    what is the reason why i can't use this:
    Code:
    printf" i%", hour)
    printf":i%", minute)
    printf":i%", second);
    i am getting this warning:
    supurious trailing '%' in format and
    too many arguments for format
    btw and want to create an stopwatch ;)

  24. #3804
    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

    Zitat Zitat von Kwastie
    what is the reason why i can't use this:
    Code:
    printf" i%", hour)
    printf":i%", minute)
    printf":i%", second);
    i am getting this warning:
    supurious trailing '%' in format and
    too many arguments for format
    btw and want to create an stopwatch ;)
    Code:
    printf"%i", hour);
    printf":%i", minute);
    printf":%i", second);

  25. #3805
    QJ Gamer Blue
    Points: 4.022, Level: 40
    Level completed: 36%, Points required for next Level: 128
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Ort
    Holland..
    Beiträge
    154
    Points
    4.022
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    OMG realy stupid mistake XD, thanks!

  26. #3806
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Code:
    printf("%i", hour);
    printf(":%i", minute);
    printf(":%i", second);

  27. #3807
    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

    Zitat Zitat von MrChaos
    First of all, on that code, your missing alot of { and your missing int main() {.

    Maybe that is your problem?
    He was just giving the parts that are generating errors so nobody may steal his code.

  28. #3808
    QJ Gamer Bronze
    Points: 4.009, Level: 40
    Level completed: 30%, Points required for next Level: 141
    Overall activity: 0%

    Registriert seit
    Jan 2007
    Beiträge
    252
    Points
    4.009
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    how do i run/execute a eboot.pbp with c ?

  29. #3809
    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 SWE_PsYcHo
    how do i run/execute a eboot.pbp with c ?
    http://www.psp-programming.com/forum...ic,1477.0.html
    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...)

  30. #3810
    QJ Gamer Blue
    Points: 4.022, Level: 40
    Level completed: 36%, Points required for next Level: 128
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Ort
    Holland..
    Beiträge
    154
    Points
    4.022
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    ehh i don't realy understand your question..
    go to www.psp-programming.com maby your could learn something there


 

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

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