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, ...
-
08-10-2007, 11:50 AM #5971I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
Yup, that worked well, but for future reference... what documents?
Zitat von Archaemic
-Aura
Geändert von Auraomega (08-10-2007 um 12:01 PM Uhr)
-
08-10-2007, 11:56 AM #5972Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
whats the svn for oslib ? or how do i go about installing it ?
-
08-10-2007, 11:59 AM #5973I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
Quick Google search threw this up, don't blame me if it doesn't work though as I already have it installed...
Zitat von eldiablov
-AuraCode:svn co https://ro-oslib.svn.sourceforge.net/svnroot/ro-oslib/trunk oslib
-
08-10-2007, 12:00 PM #5974It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
http://psp.jim.sh/pspsdk-doc/
Zitat von Auraomega
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
08-10-2007, 12:03 PM #5975I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
Ah thanks, I use this once before but lost the link :Argh:
Zitat von Archaemic
*Bookmarks page*
Cheers.
-Aura
-
08-10-2007, 12:03 PM #5976Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
isnt that the svn for pc useage not psp ?
-
08-10-2007, 12:04 PM #5977I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
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).
Zitat von eldiablov
-Aura
-
08-10-2007, 12:08 PM #5978Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
kk cheers
-
08-10-2007, 04:22 PM #5979I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
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
-
08-10-2007, 05:13 PM #5980QJ Gamer Blue
- Registriert seit
- Jul 2007
- Beiträge
- 296
- Points
- 3.795
- Level
- 38
- Downloads
- 0
- Uploads
- 0
Look at the DSX source, it shows how to set up the GU for the VSH.
-
08-10-2007, 08:49 PM #5981Photoshop CS3 Intermed.

- Registriert seit
- Jun 2006
- Ort
- Behind You
- Beiträge
- 757
- Points
- 10.132
- Level
- 67
- Downloads
- 0
- Uploads
- 0
-
08-11-2007, 12:42 AM #5982words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
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
-
08-11-2007, 12:44 AM #5983QJ Gamer Blue
- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 499
- Points
- 5.848
- Level
- 49
- Downloads
- 0
- Uploads
- 0
No need for the Web, the manual sits on your computer when you install the SDK anyway.
Zitat von Auraomega
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...
)
-
08-11-2007, 02:13 AM #5984I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
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
Zitat von MiG
-Aura
-
08-11-2007, 04:01 AM #5985words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
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
-
08-11-2007, 04:25 AM #5986I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
Zitat von _dysfunctional
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 codebut 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.Code:sceGuDispBuffer( SCR_WIDTH, SCR_HEIGHT, (void*)0x88000, BUF_WIDTH);
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
Zitat von SG57
.
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
-
08-11-2007, 04:44 AM #5987Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
Do you live in London, if so what part ?
-
08-11-2007, 05:05 AM #5988I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
Nah, I live in the East Midlands. Why?
Zitat von eldiablov
-Aura
-
08-11-2007, 05:44 AM #5989Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
i had the same sort of trouble ...
-
08-11-2007, 09:05 AM #5990QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
hello ppl, can anyone help:
i set my app to kernel mode, but then i cant use stdio.h ... does anyone know solution... ?[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
08-11-2007, 11:25 AM #5991Developer

- Registriert seit
- Mar 2006
- Beiträge
- 1.026
- Points
- 7.577
- Level
- 58
- Downloads
- 0
- Uploads
- 0
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
-
08-11-2007, 12:11 PM #5992QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
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
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
08-11-2007, 12:23 PM #5993Developer

- Registriert seit
- Mar 2006
- Beiträge
- 1.026
- Points
- 7.577
- Level
- 58
- Downloads
- 0
- Uploads
- 0
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
-
08-11-2007, 12:54 PM #5994QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
is there a special rule when making prx in kernel? because the it wont react :/ but it compiles without errors... o_O
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
08-11-2007, 01:04 PM #5995QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Finland
- Beiträge
- 752
- Points
- 7.385
- Level
- 57
- Downloads
- 0
- Uploads
- 0
Try to make a deal with someone that could give you WLAN access until you get broadband over there? :)
Zitat von Auraomega
wheeee =:D
-
08-11-2007, 01:27 PM #5996I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
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...).
Zitat von MaTiAz
-Aura
-
08-11-2007, 01:38 PM #5997QJ Gamer Silver

- Registriert seit
- Jan 2006
- Ort
- Germany
- Beiträge
- 926
- Points
- 14.087
- Level
- 77
- Downloads
- 0
- Uploads
- 0
Only the USE_KERNEL_LIBC :P
Zitat von Insert_Witty_Name
Else the kernel mode prx won't work in anything > 3.40Raphs 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.
-
08-11-2007, 01:50 PM #5998QJ Gamer Blue
- Registriert seit
- Feb 2007
- Ort
- Florida
- Beiträge
- 214
- Points
- 4.031
- Level
- 40
- Downloads
- 0
- Uploads
- 0
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)
-
08-11-2007, 03:51 PM #5999
i would do something like
Zitat von MrChaos
of course u would have to add stuff, thats just a basic start i guessCode://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; } }Current releases:
Icon Action Replacer v1.5- latest release
Current projects:
PSP C++ IDE - Currently v1.6
RPG Paradise - Latest version at my website
-
08-11-2007, 04:50 PM #6000
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


LinkBack URL
About LinkBacks

Mit Zitat antworten


Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum