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 Digikid13 I still need a way to dev for psp without cgwin emulator. There are several ways about ...
-
09-06-2008, 02:21 AM #9061QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
There are several ways about this.
- Keep Cygwin to compile and update the toolchain but setup an IDE with the toolchain so you can build directly from the IDE without Cygwin running.
- Download a precompiled toolchain and setup an IDE with it so you can bulid directly from the IDE.
I have done this before but it requires some knowledge on how the toolchain works and how the current makefile creates the PBP.
Search on this forum on how to setup Code::Blocks with DevkitPSP to get you started.
[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]
-
09-06-2008, 12:49 PM #9062
But a question, what happens when you don't have the particular platform that is useful for 'beginners?' When I first started out months ago, I think you said the same thing to me. You claim Windows is easiest, but the closest that some people might get to doing real programming might be on a more complicated platform.
You call it the general consensus, but I have a good feeling that its not. Yeah, Window's is the pretty much mainstream platform atm, but that doesn't mean everyone uses it.
What if a beginner wanted to learn programming, but didn't own any computer, nor was able to purchase one? Of course he had a small platform-type device (in this case, a PSP) to work with. If all he could code for, was the PSP.... wouldn't he take whatever advantage he could take?
The point of the story is that you use the resources you have. And that you don't have to deal with what everyone else tells you whats best, and whats not.[QUOTE=Archaemic]
[size=1]My manwich![/size][/QUOTE]
[QUOTE=mohaas05]lol i can't say d*ck?[/QUOTE]
-
09-06-2008, 12:53 PM #9063Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
-
09-06-2008, 01:57 PM #9064QJ Gamer Green
- Registriert seit
- Jul 2008
- Ort
- In your pocket.
- Beiträge
- 192
- Points
- 5.875
- Level
- 49
- My Mood
-
- Downloads
- 0
- Uploads
- 0
-
09-06-2008, 02:32 PM #9065QJ Gamer Blue
- Registriert seit
- Jul 2007
- Beiträge
- 296
- Points
- 3.795
- Level
- 38
- Downloads
- 0
- Uploads
- 0
It didn't work for you, or you just couldn't figure what you did wrong while installing it?
-
09-06-2008, 02:33 PM #9066
- Registriert seit
- Apr 2008
- Beiträge
- 47
- Points
- 2.658
- Level
- 31
- Downloads
- 0
- Uploads
- 0
Yeah, I used the VS debugger in college. That's how a debugger ought to work. Now if I can just get psplink to run my programs correctly I can use GDB. XD
Digikid, why isn't cygwin working for you? What's it doing?
-
09-06-2008, 02:35 PM #9067QJ Gamer Blue
- Registriert seit
- Apr 2008
- Beiträge
- 497
- Points
- 4.268
- Level
- 41
- Downloads
- 0
- Uploads
- 0
Hey does anybody know how to change what the home button does when using OSLib?? I've looked in the OSLib documentation, but haven't had any luck yet. I would really appreciate it, thanks.
-
09-06-2008, 02:36 PM #9068Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
If you dont implement the callbacks the home button will do nothing anyway. So check the functions for key presses in oslib. If there is one for home then use it.
-
09-06-2008, 02:39 PM #9069QJ Gamer Blue
- Registriert seit
- Apr 2008
- Beiträge
- 497
- Points
- 4.268
- Level
- 41
- Downloads
- 0
- Uploads
- 0
acctually I don't need to set all of the call backs in the beggi ning with OSLib to make the home button work, but I'll look into the control functions, and see what i can come up with, thanks.
-
09-06-2008, 02:47 PM #9070QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
IIRC, you need kernel mode to use the home button for other uses than home the button
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
-
09-06-2008, 02:48 PM #9071QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Then what do you code on? Sure, you can script on your PSP and fine, given that there are no other choices, you play the hand you are dealt.
I don't see how not having the resources changes the opinion on the 'easiest' platform.But a question, what happens when you don't have the particular platform that is useful for 'beginners?' When I first started out months ago, I think you said the same thing to me. You claim Windows is easiest, but the closest that some people might get to doing real programming might be on a more complicated platform.Geändert von yaustar (09-06-2008 um 02:58 PM Uhr)
[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]
-
09-06-2008, 02:57 PM #9072QJ Gamer Blue
- Registriert seit
- Apr 2008
- Beiträge
- 497
- Points
- 4.268
- Level
- 41
- Downloads
- 0
- Uploads
- 0
how do i use kernel mode???
-
09-06-2008, 03:01 PM #9073QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
-
09-06-2008, 03:08 PM #9074QJ Gamer Blue
- Registriert seit
- Apr 2008
- Beiträge
- 497
- Points
- 4.268
- Level
- 41
- Downloads
- 0
- Uploads
- 0
hmm, ok, thanks.
-
09-06-2008, 03:11 PM #9075QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
not possible on 3xx fw, will it is, but you'd need to start a prx first, and it's far more complicated(not rly to those who know how to do it) than i've ever explored, however i've never needed the home button so...
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
-
09-06-2008, 03:16 PM #9076QJ Gamer Blue
- Registriert seit
- Apr 2008
- Beiträge
- 497
- Points
- 4.268
- Level
- 41
- Downloads
- 0
- Uploads
- 0
yeah, wasn't really a nessecity, just an idea i had. I probobly will not mess with it right now.
-
09-06-2008, 05:54 PM #9077QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
-
09-06-2008, 06:00 PM #9078
But the part I left out, is that they may have the opportunity to program some simple apps on a school computer, or work computer. But as it's not personally theirs, they don't have the full allowance on what they can do.
Zitat von yaustar
Although its not a problem anymore for myself because I obtained a cheap Compaq Presario laptop used.
Actually, it does. Maybe someone is from a really poor country, but they get the opportunity to go to a foreign university/school. That school might not have Windows, and the person might not have enough money to purchase their own.
Zitat von yaustar
[QUOTE=Archaemic]
[size=1]My manwich![/size][/QUOTE]
[QUOTE=mohaas05]lol i can't say d*ck?[/QUOTE]
-
09-06-2008, 06:15 PM #9079QJ Gamer Silver

- Registriert seit
- Jan 2006
- Ort
- Germany
- Beiträge
- 926
- Points
- 14.087
- Level
- 77
- Downloads
- 0
- Uploads
- 0
As long as you don't have your own PC to play around with, you won't come very far concerning programming anyway... so that's not really an argument IMO. If you just want to sneak into programming concepts from a school PC, you really shouldn't choose C as your first language, at least unless the PC has an IDE pre installed (in which case there's just yet another reason to keep at PC programming rather then aiming at PSP). There's things like basic, lua or other scripting languages that are easily setup to have your code being run. Or you could start with some web programming in PHP. There's lots of easier choices in that case.
You still don't get the point, do you? It's not a thing about Windows or LINUX or OSX or any specific OS at all. It's about having a PC (that you need anyway to get in contact with programming, as I doubt anyone will hear about 'programming' and just be interested if he never really used a PC to some extent) which is easily setup to compile C code for PC (if you have the permissions), and hence learn programming IN that environment first. It's the easiest solution to avoid overcomplicating things and not having to deal with things that are not specific to basic programming (special hardware and hence behaviour, special libraries, etc.).Actually, it does. Maybe someone is from a really poor country, but they get the opportunity to go to a foreign university/school. That school might not have Windows, and the person might not have enough money to purchase their own.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.
-
09-06-2008, 06:35 PM #9080QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
[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]
-
09-09-2008, 09:35 AM #9081QJ Gamer Bronze
- Registriert seit
- Apr 2008
- Ort
- Ireland
- Beiträge
- 978
- Points
- 6.517
- Level
- 52
- Downloads
- 0
- Uploads
- 0
Is there and Sceio tutorials or samples?
I mainly want to copy a file from flash0 and paste it in a folder in ms0:/
Thanks for help.
-
09-09-2008, 09:41 AM #9082Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
Look
At
The
Headers
-
09-09-2008, 09:42 AM #9083QJ Gamer Bronze
- Registriert seit
- Apr 2008
- Ort
- Ireland
- Beiträge
- 978
- Points
- 6.517
- Level
- 52
- Downloads
- 0
- Uploads
- 0
arrgh you make things sound so simple :) lol
-
09-09-2008, 09:46 AM #9084QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
Well, they relatively are....
http://psp.jim.sh/pspsdk-doc/group__FileIO.html
Read pl0x
-
09-09-2008, 10:37 AM #9085QJ Gamer Green
- Registriert seit
- Jul 2008
- Ort
- In your pocket.
- Beiträge
- 192
- Points
- 5.875
- Level
- 49
- My Mood
-
- Downloads
- 0
- Uploads
- 0
Geändert von Digikid13 (09-09-2008 um 10:40 AM Uhr) Grund: Automerged Doublepost
AIM: Digikid91 | PSN: Digikid13 | GaiaOnline: Digikid13
-
09-09-2008, 11:18 AM #9086No longer a community member.
- Registriert seit
- Dec 2005
- Beiträge
- 22
- Points
- 46.662
- Level
- 100
- Downloads
- 0
- Uploads
- 0
-
09-14-2008, 06:24 AM #9087
Achievements:
- Registriert seit
- Sep 2008
- Ort
- Everywhere
- Beiträge
- 11
- Points
- 2.381
- Level
- 29
- Downloads
- 0
- Uploads
- 0
Alpha image help in gum
Okay, I've been stuck on this for a while I have a png and it has an alpha layer.
When i draw it in 2d its fine.
I've been trying to rotate it. So I textured it to a quad.
But on the quad in 3d the outlines of the solid image are stretched over the alpha parts.
So basically how do you make a textured alpha image, draw its alpha channel.
-
09-16-2008, 04:59 PM #9088
- Registriert seit
- Apr 2008
- Beiträge
- 47
- Points
- 2.658
- Level
- 31
- Downloads
- 0
- Uploads
- 0
@cutch:
Are you saying that there's an outline being drawn around the object, like it's being blended with whatever's behind it around the edges? I ran into a similar problem recently. I haven't tested it yet, but I think you can solve the problem by disabling blending before drawing the primitive (just set your alpha test to reject zero-alpha pixels) and then just turn it back on when you're done with the rotated primitives. The only real problem there is that you lose blending.
I think the 'proper' way to do it would be to use the stencil buffer but my stencil-fu is still in the theoretical area until I finish reading this stupid book, so I can't help you there.
Am I understanding what you're saying correctly?
@Digikid13:
If you PM me maybe I can walk through the install with you and we can find/fix the problem?
@PSP gurus:
Does anyone know a link to some info about the PSAR format that I can actually use to write programs that deal with the format? I've been googling around and haven't found any format-specific info. I thought about trying to get ahold of Red Squirrel or PspPet but I thought I'd ask here first to avoid bothering them. I don't need any crypt info. I just want to know if the format uses any compression/etc and how the data in it is stored. I'd like to create my own PSAR files to store metadata in and I just want to know if I should try to use the existing format or just create my own.
-
09-17-2008, 09:15 AM #9089QJ Gamer Bronze

- Registriert seit
- Jun 2007
- Beiträge
- 232
- Points
- 4.543
- Level
- 42
- Downloads
- 0
- Uploads
- 0
About the PSAR format:
http://forums.ps2dev.org/viewtopic.p...ht=psar+format
-
09-17-2008, 03:07 PM #9090
- Registriert seit
- Apr 2008
- Beiträge
- 47
- Points
- 2.658
- Level
- 31
- Downloads
- 0
- Uploads
- 0
Thanks, PN. I can't tell from this whether the format is ridiculous or if this is just people experimenting with it. I'll just proceed with the custom format then.


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