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; check the sdk samples in the gu folder, there maybe something there ?...
-
04-08-2007, 05:33 AM #3751Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
check the sdk samples in the gu folder, there maybe something there ?
-
04-08-2007, 05:44 AM #3752
Help including pspmath.h
Hey everyone or anyone,
I'm trying to include pspmath.h into one of my projects, but I have no idea how to accomplish this.
Tried search these forums and Google without luck so I decided to ask here.
Hope someone can help me out.
Thanks in advance,
Gh0sT
-
04-08-2007, 05:45 AM #3753QJ Gamer Blue
- Registriert seit
- Feb 2007
- Ort
- Florida
- Beiträge
- 214
- Points
- 4.031
- Level
- 40
- Downloads
- 0
- Uploads
- 0
Can't find an example there. What I'm trying to do is move away from LUA. So I'm making a game in C, got the menu to show up, but nothing is rendering so I can't use it.
Gh0st,
#include <pspmath.h> ?Geändert von MrChaos (04-08-2007 um 05:46 AM Uhr) Grund: Automerged Doublepost
-
04-08-2007, 05:46 AM #3754Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
ghost try <math.h>
-
04-08-2007, 05:47 AM #3755
Thanks, but obviously I tried that. Think I don't have the appropriate lib installed.
Zitat von MrChaos
EDIT:Code:main.c:8:21: error: pspmath.h: No such file or directory
OMG, that actually worked!
Zitat von eldiablov
Thanks alot!
Greets,
Gh0sT
-
04-08-2007, 05:48 AM #3756QJ Gamer Blue
- Registriert seit
- Feb 2007
- Ort
- Florida
- Beiträge
- 214
- Points
- 4.031
- Level
- 40
- Downloads
- 0
- Uploads
- 0
Oh, and I got another question. Can you include images in a EBOOT, instead of having to put them in a folder?
(Meaning PSP/GAME/[Gamefolder])Geändert von MrChaos (04-08-2007 um 06:03 AM Uhr) Grund: Automerged Doublepost
-
04-08-2007, 06:25 AM #3757Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
np Ghost :)
Anyway mr chaos when you compile an eboot images are compiled aswell so you wont see them in a folder.
Do you have the toolchain and cygwin installed MrChaos ?
-
04-08-2007, 06:31 AM #3758QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Finland
- Beiträge
- 752
- Points
- 7.385
- Level
- 57
- Downloads
- 0
- Uploads
- 0
He didn't mean that....
Zitat von eldiablov
MrChaos: Yeah, use bin2c <filename>, that creates an unsigned char of the file, then you include <filename>.c in your makefile as <filename>.o. After that, you just load the image from a buffer instead of a file.wheeee =:D
-
04-08-2007, 07:16 AM #3759QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
is there anyway to test your eboots made in C on your computer?
-
04-08-2007, 07:20 AM #3760QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Short answer, no. Long answer, yes but you have to design your code so it can be compiled on different platforms.
Zitat von michaelp
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
04-08-2007, 07:40 AM #3761Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
so specific app's no , games are a bit possible
-
04-08-2007, 02:18 PM #3762QJ Gamer Blue
- Registriert seit
- Feb 2007
- Ort
- Florida
- Beiträge
- 214
- Points
- 4.031
- Level
- 40
- Downloads
- 0
- Uploads
- 0
I still need help rendering something in a program.
Ex. Making a menu render, so I could swap bettwen menu options. What am I missing, cases?Geändert von MrChaos (04-08-2007 um 02:33 PM Uhr)
-
04-08-2007, 04:32 PM #3763QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
hey when you make an EBOOT.PBP, can you edit what you put in later, or would you have to make a whole new EBOOT?
-
04-08-2007, 04:45 PM #3764QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
new eboot
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
-
04-08-2007, 05:18 PM #3765QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
damn
well, i think i'm gonna quit lua and start learning C, because it'll help in the long run
-
04-08-2007, 07:09 PM #3766words 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
Does anyone know whether or not the psp-gcc will support Obj-C at some point? Itd be a great new learning experience for me to learn Obj-C, but I dont want to as my main console i develpe for is the PSP :-\
Thanks.
...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
-
04-08-2007, 07:34 PM #3767QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
ok i need some help as i'm very close to release my beta of celestial cunning but i've come up 2 a prob which i can't seem to find a solution 2(probably well after i post)
now then i believe the following code goes somehow into an infinite loop because normally when my program stops it quits after a moment but this just freezes all movement and the home button quits working so that is why i conclude it enters an infinite loop anyways any1 who can help me would be much appreciated
Spoiler for code:
thats not the full function but the part that i've concluded enters the infinite loop or slows down the program an extreme amount(unlikly more likly of infinite loop 2 me)
anyways don't tip me on optimising just help me fix it and thanks
(also good 2 be back)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
-
04-08-2007, 08:14 PM #3768words 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
I dont see a problem there, however i have only looked at the conditions for the statements.
However, one thingi might add is that when you setup your callbacks, your setting up an entirely new thread that the home button is hooked to and starts it. Having teh home button stop from working means a crash stopping the polling for Home button pressed. If that is wrong, please correct me, as thats how ive seen it.
...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
-
04-08-2007, 08:24 PM #3769QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
i don't see a prob either yet after many tests i know thats the source, although i'm not 100% sure if it is a crash as like i said after a moment it usually shuts down when crashed from what your saying it sounds like it crashes yet i can't find the source to this crash (which has to be there somewhere) which rly sucks cause if i can get this 2 work then i can release a beta of celestial cunning
-= Double Post =-
ok i fixed it which is good but now i have a few new bugs so hopefully my beta well be out by tommorow or maybe later tonightGeändert von slicer4ever (04-08-2007 um 08:42 PM Uhr) Grund: Automerged Doublepost
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
-
04-09-2007, 03:35 AM #3770
I want to create a app that will change the firmware system version. What im thinking of doing is having a TXT file with the system version yuo want written into it then the app will covert it to unicode and overwrite the offsets in the vshctrl.prx in flash0:/kn. how would i go about doing this
BTW: Yes i know there are apps that can change system version but i am a trying to improve my coding and want to create one myself
-
04-09-2007, 10:45 AM #3771QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
Okay, I want to start learning C, so I need CYGWIN right?
I transfered the PSPtool chain and CYGWIN to a computer in my room that DOES NOT HAVE internet.
So I tried the option "install from local directory"
But when it ask where to save the install files or whatever it is, a message comes up say that I have performed an illegal operation.
It's a Windows '98 computer.
Also, could I install CYGWIN on a computer, than transfer the files that were installed to the '98 computer?
-
04-09-2007, 10:47 AM #3772QJ Gamer Blue
- Registriert seit
- Apr 2007
- Beiträge
- 172
- Points
- 3.680
- Level
- 38
- Downloads
- 0
- Uploads
- 0
you need the internet unfortuantly for toolchain and to use the setup of cygwin
-
04-09-2007, 10:49 AM #3773Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
michael i have told you countless times to use THE PRECOMPILED ENVIRONMENT !!!
-
04-09-2007, 11:06 AM #3774QJ Gamer Blue
- Registriert seit
- Mar 2007
- Ort
- Holland..
- Beiträge
- 154
- Points
- 4.022
- Level
- 40
- Downloads
- 0
- Uploads
- 0
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
i am like 20% sure this is going to workCode: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; }
but ok it's something to work on
-
04-09-2007, 11:06 AM #3775QJ Gamer Silver

- Registriert seit
- May 2006
- Ort
- Behind you.
- Beiträge
- 1.814
- Points
- 10.921
- Level
- 69
- Downloads
- 0
- Uploads
- 0
Hey guys,
1000th post!!!! YES! Anyways, i need help with this code:
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 ); sceGumRotateY( rquad ); 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?Code:{ ScePspFVector3 move = { 0.0f, 0.0f, -3.0f }; sceGumTranslate( &move ); double PI = 3.14159265358979323846264338327; sceGumRotateY(90*(PI/180.0f)); }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...)
-
04-09-2007, 11:06 AM #3776QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
where is this precompiled environment
-
04-09-2007, 11:07 AM #3777Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
-
04-09-2007, 11:08 AM #3778QJ Gamer Silver

- Registriert seit
- May 2006
- Ort
- Behind you.
- Beiträge
- 1.814
- Points
- 10.921
- Level
- 69
- Downloads
- 0
- Uploads
- 0
Can anyone help?
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...)
-
04-09-2007, 11:11 AM #3779QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
thanks

i won't need to use anything else will i?
this is all i need for developing in C
edit: got an error when downloding it
-
04-09-2007, 11:15 AM #3780Developer

- Registriert seit
- Jul 2006
- Beiträge
- 262
- Points
- 11.815
- Level
- 71
- Downloads
- 0
- Uploads
- 0
michaelp, I installed cygwin and toolchain on a lab pc at school on to my jumpdrive and then took it home and copied it to my own Win XP box. Trying to run things compiled for XP on 9x causes problems. But it is good if you found a solution for your problem.


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