Seite 200 von 340 ErsteErste ... 100 150 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 250 300 ... LetzteLetzte
Zeige Ergebnis 5.971 bis 6.000 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 Archaemic Code: SceUID vsh_graphics; pspSdkReferThreadStatusByName("SCE_VSH_GRAPHICS",&vsh_graphics,0); sceKernelSuspendThread(vsh_graphics); Try that. If not...well, dig through the docs. They're REALLY helpful. Yup, ...

  
  1. #5971
    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 Archaemic
    Code:
    SceUID vsh_graphics;
    pspSdkReferThreadStatusByName("SCE_VSH_GRAPHICS",&vsh_graphics,0);
    sceKernelSuspendThread(vsh_graphics);
    Try that. If not...well, dig through the docs. They're REALLY helpful.
    Yup, that worked well, but for future reference... what documents?

    -Aura


    Geändert von Auraomega (08-10-2007 um 12:01 PM Uhr)
    Last.fm | Deviant Art | First working OS picture

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

  2. #5972
    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

    whats the svn for oslib ? or how do i go about installing it ?

  3. #5973
    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 eldiablov
    whats the svn for oslib ? or how do i go about installing it ?
    Quick Google search threw this up, don't blame me if it doesn't work though as I already have it installed...

    Code:
    svn co https://ro-oslib.svn.sourceforge.net/svnroot/ro-oslib/trunk oslib
    -Aura
    Last.fm | Deviant Art | First working OS picture

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

  4. #5974
    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 Auraomega
    Ugh... don't shoot but... what documents?

    -Aura
    http://psp.jim.sh/pspsdk-doc/
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  5. #5975
    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 Archaemic
    Ah thanks, I use this once before but lost the link :Argh:

    *Bookmarks page*

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

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

  6. #5976
    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

    isnt that the svn for pc useage not psp ?

  7. #5977
    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 eldiablov
    isnt that the svn for pc useage not psp ?
    No idea, as I said I didn't install, all I did was a google search, but honestly, for something like OSLib, I'd suggest doing a google search there are plenty of places you can find it (even right here on QJ you can find a download).

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

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

  8. #5978
    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

    kk cheers

  9. #5979
    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

    I've been trying to get a bit of GU code to work in the XMB for the past... well too long, and I've whittled it down to something in my InitGU, and I was just wondering if theres anything I specifically shouldn't use in the VSH.

    Just as a quick note, before I load my GU stuff I suspend the SCE_VSH_GRAPHICS thread, it only crashes when I resume the thread again. If I don't suspend the thread it crashes as soon as I load the GU code.

    If its not possible to do it this way, is there any way I can stop a module, and then start it again, and if that was possible, would stopping the scePaf_Module and starting it again sort out these problems?

    I'd keep trying different things myself, but my eyes have become a blur

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

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

  10. #5980
    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

    Look at the DSX source, it shows how to set up the GU for the VSH.

  11. #5981
    Photoshop CS3 Intermed.
    Points: 10.132, Level: 67
    Level completed: 21%, Points required for next Level: 318
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    Behind You
    Beiträge
    757
    Points
    10.132
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Crosby
    How would I find out how much space is left in the ms?



    edit

    Another question...Shouldn't this in theory delete a filesystem? Why is it freezing on me?
    Code:
    void build_path(char *output, const char *root, const char *path, int append)
    {
    	while(*root != 0)
    	{
    		*output++ = *root++;
    	}
    
    	if(*(root-1) != '/')
    	{
    		*output++ = '/';
    	}
    
    	while(*path != 0)
    	{
    		*output++ = *path++;
    	}
    	if(append)
    		*output++ = '/';
    
    	*output++ = 0;
    }
    
    void delete_filesystem(const char *root)
    {
    	int dfd;
    	char next_root[256];
    
    	dfd = sceIoDopen(root);
    
    	if (dfd > 0)
    	{
    		SceIoDirent dir;
    
    		while (sceIoDread(dfd, &dir) > 0)
    		{
    			if (dir.d_stat.st_attr & FIO_SO_IFDIR)
    			{
    				if (dir.d_name[0] != '.')
    				{
    					build_path(next_root, root, dir.d_name, 1);
    					delete_filesystem(next_root);
    				}
    			}
    			else
    			{
    				char pathh[256];
    				sprintf(pathh, "%s/%s", root, dir.d_name);
    				sceIoRemove(pathh);
    			}
    		}
    	}
    
    	sceIoDclose(dfd);
    	sceIoRmdir(root);
    }
    Why isn't it working?
    RESTATED

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

    If you would LEARN from the SDK samples instead of copy and pasting you'd learn why. Take sometime to look over it and see how it works and it'll be quite obvious ;)

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


  13. #5983
    MiG
    MiG ist offline
    QJ Gamer Blue
    Points: 5.848, Level: 49
    Level completed: 49%, Points required for next Level: 102
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    499
    Points
    5.848
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Auraomega
    Ah thanks, I use this once before but lost the link :Argh:

    *Bookmarks page*

    Cheers.
    -Aura
    No need for the Web, the manual sits on your computer when you install the SDK anyway.

    Located at: X:/Cygwin/usr/local/pspdev/psp/sdk/doc/html/index.html

    (Posted since QJ was complaining I haven't posted for a few weeks... )

  14. #5984
    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 MiG
    No need for the Web, the manual sits on your computer when you install the SDK anyway.

    Located at: X:/Cygwin/usr/local/pspdev/psp/sdk/doc/html/index.html

    (Posted since QJ was complaining I haven't posted for a few weeks... )
    I don't actually have that, but I guess its because I can't install any of the things like everyone else (dialup user), so instead brethren burns everything I need to a DVD

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

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

  15. #5985
    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

    Sorry to pester, but why dial up? Broadband is now low as $20 or so am onth - are you in a suburb or something?

    By the way - They aren't that big of packages - 56kb won take long to get most libraries (except lua... that one is a beast)

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


  16. #5986
    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 _dysfunctional
    Look at the DSX source, it shows how to set up the GU for the VSH.

    I've looked at the source, but I think I have an incomplete source because I can't find anything helpful, I've downloaded from a couple of places and got the same each time... you could like me to somewhere that has the entire source?

    I've also narrowed down the crash to this line of code
    Code:
    sceGuDispBuffer( SCR_WIDTH, SCR_HEIGHT, (void*)0x88000, BUF_WIDTH);
    but my knowledge on GU is about as limited as a mules, so I'm not sure what I can change the values to for it to work safely.

    Zitat Zitat von SG57
    Sorry to pester, but why dial up? Broadband is now low as $20 or so am onth - are you in a suburb or something?

    By the way - They aren't that big of packages - 56kb won take long to get most libraries (except lua... that one is a beast)
    A rhortical question, but do you think I want to be on dialup? Unfortunatly there is no broadband on the street I live (yet around the corner they can get it), and no, I live in a large community, so there really is no valid reasons to not have broadband wire to my house .

    Downloading each library would be quick, but downloading them as a whole is pritty darn slow, when your download speed is lucky to ever reach 4kb/s.

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

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

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

    Do you live in London, if so what part ?

  18. #5988
    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 eldiablov
    Do you live in London, if so what part ?
    Nah, I live in the East Midlands. Why?

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

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

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

    i had the same sort of trouble ...

  20. #5990
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    hello ppl, can anyone help:

    i set my app to kernel mode, but then i cant use stdio.h ... does anyone know solution... ?

  21. #5991
    Developer
    Points: 7.577, Level: 58
    Level completed: 14%, Points required for next Level: 173
    Overall activity: 0%

    Registriert seit
    Mar 2006
    Beiträge
    1.026
    Points
    7.577
    Level
    58
    Downloads
    0
    Uploads
    0

    Standard

    There's no reason you can't use stdio.h with kernel mode.

    Check out my homebrew & C tutorials at http://insomniac.0x89.org/
    Coder formerly known as Insomniac197

    tshirtz: what is irshell ??
    Atarian_: it's where people who work for the IRS go when they die

  22. #5992
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    mmm strange...

    in main:

    #include <stdio.h>

    PSP_MODULE_INFO("blah",0x 1000,1,1);

    using some file functions

    in makefile:

    USE_KERNEL_LIBC = 1
    USE_KERNEL_LIBS = 1



    and when i compile i get error undefined reference (or something similar) to all my file functions



  23. #5993
    Developer
    Points: 7.577, Level: 58
    Level completed: 14%, Points required for next Level: 173
    Overall activity: 0%

    Registriert seit
    Mar 2006
    Beiträge
    1.026
    Points
    7.577
    Level
    58
    Downloads
    0
    Uploads
    0

    Standard

    Remove the USE_KERNEL_* from the Makefile.

    Check out my homebrew & C tutorials at http://insomniac.0x89.org/
    Coder formerly known as Insomniac197

    tshirtz: what is irshell ??
    Atarian_: it's where people who work for the IRS go when they die

  24. #5994
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    is there a special rule when making prx in kernel? because the it wont react :/ but it compiles without errors... o_O

  25. #5995
    QJ Gamer Silver
    Points: 7.385, Level: 57
    Level completed: 18%, Points required for next Level: 165
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Finland
    Beiträge
    752
    Points
    7.385
    Level
    57
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Auraomega

    A rhortical question, but do you think I want to be on dialup? Unfortunatly there is no broadband on the street I live (yet around the corner they can get it), and no, I live in a large community, so there really is no valid reasons to not have broadband wire to my house
    -Aura
    Try to make a deal with someone that could give you WLAN access until you get broadband over there? :)
    wheeee =:D

  26. #5996
    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 MaTiAz
    Try to make a deal with someone that could give you WLAN access until you get broadband over there? :)
    Supprisingly theres no-one around here that actually uses a wireless network (even if there was I doubt they'd let me use it)... otherwise I would have been using their connection a long time ago (I would pay if available, but seeing as its not I'd do the next best thing...).

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

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

  27. #5997
    QJ Gamer Silver
    Points: 14.087, Level: 77
    Level completed: 10%, Points required for next Level: 363
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Ort
    Germany
    Beiträge
    926
    Points
    14.087
    Level
    77
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Insert_Witty_Name
    Remove the USE_KERNEL_* from the Makefile.
    Only the USE_KERNEL_LIBC :P
    Else the kernel mode prx won't work in anything > 3.40
    Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron.
    Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not.
    Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down.
    Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them.

  28. #5998
    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

    I'm making a sidescroller.

    How would I set a jumping/walking speed?

    (If I set a speed to walking, I wouldnt need to use lastpad...right?)

    EDIT:

    I think if I just make a varible, and make it go to a certain number, then move the charecter...(then reset the varible), it should work..

    Lol, anyone understand that?
    Geändert von MrChaos (08-11-2007 um 03:10 PM Uhr)

  29. #5999
    QJ Gamer Green
    Points: 4.824, Level: 44
    Level completed: 37%, Points required for next Level: 126
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    317
    Points
    4.824
    Level
    44
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von MrChaos
    I'm making a sidescroller.

    How would I set a jumping/walking speed?

    (If I set a speed to walking, I wouldnt need to use lastpad...right?)

    EDIT:

    I think if I just make a varible, and make it go to a certain number, then move the charecter...(then reset the varible), it should work..

    Lol, anyone understand that?
    i would do something like

    Code:
    //declare all ours values first
    int movespeed = 2;
    float maxspeed = 10;
    float xspeed, yspeed, friction;
    xspeed = yspeed = 0.0f;
    friction = .98f;
    
    
    bool onGround = false;
    //done declaring
    
    //start processing run
    if(right button pressed)
    {
           xspeed += (float)movespeed;
    }
    if(left button pressed)
    {
           xspeed -= (float)movespeed;
    }
    if(xspeed > maxspeed){xspeed = maxspeed;}
    if(xspeed < -maxspeed){xspeed = -maxspeed;}
    xspeed *= friction;
    
    playerXposition += xspeed;
    //done with run
    
    if(onGround) //onGround can be set to true when there is a collision with the floor
    {
        if(jump button pressed)
        {
             //do the same as with the xspeed but instead of friction u can subtract gravity
             onGround = false;
         }
    }
    of course u would have to add stuff, thats just a basic start i guess
    Current releases:
    Icon Action Replacer v1.5- latest release
    Current projects:
    PSP C++ IDE - Currently v1.6
    RPG Paradise - Latest version at my website

  30. #6000
    QJ Gamer Bronze
    Points: 5.402, Level: 47
    Level completed: 26%, Points required for next Level: 148
    Overall activity: 0%

    Registriert seit
    Apr 2007
    Beiträge
    468
    Points
    5.402
    Level
    47
    Downloads
    0
    Uploads
    0

    Standard

    i'm using psplink for the first time and i'm wondering if theres a command that you type in pcterm to start the vsh so i can look at what modules are loaded and basically just have a look round

    btw i'm on 3.52 m33


 

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

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