Zeige Ergebnis 8.221 bis 8.250 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; Hehe, you have a long way to go...
-
03-18-2008, 02:46 PM #8221It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Hehe, you have a long way to go
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
03-18-2008, 02:59 PM #8222QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
In C++, structs ARE classes but defaulted to public scope instead of private.
Zitat von slicer4ever
[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]
-
03-18-2008, 03:02 PM #8223QJ Gamer Platinum
- Registriert seit
- Feb 2006
- Ort
- National Front Disco
- Beiträge
- 13.057
- Points
- 66.627
- Level
- 100
- Downloads
- 0
- Uploads
- 0
How can I make a sound play when you hover over the game under GAME > Memory Stick? Is there a command in the makefile and what format would the sound have to be in?
-= Double Post =-
How can I make the PSP play a sound when my game is hovered over under GAME > Memory Stick? Is there a specific makefile command? If so what format would my sound have to be in?Geändert von Moose (03-18-2008 um 03:03 PM Uhr) Grund: Automerged Doublepost
-
03-18-2008, 03:07 PM #8224Developer

- Registriert seit
- Mar 2006
- Beiträge
- 1.026
- Points
- 7.577
- Level
- 58
- Downloads
- 0
- Uploads
- 0
PSP_EBOOT_SND0 = SND0.AT3 in your makefile.
The SND0.AT3 file is atrac3.
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
-
03-18-2008, 03:13 PM #8225I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
Ah thanks for that, I tried this exact method in the past, but foolishly forgot the address is backwards and wondered why I was getting weird (and wonderful?) results. Shame I deleted the code, oh well can't be too hard to get back again :)
Zitat von JumpR
-Aura
-
03-18-2008, 03:19 PM #8226QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
see that's where i get confused at, these public and private scopes i've yet to truly comprehend the diffrences so instead i ignore even declaring them to save myself the trouble
Zitat von yaustar
also i've semi-delved into the full functionality of a class on various other languages but i'm uncertain of how to fully use one to it's best optimazation's1. 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
-
03-18-2008, 03:23 PM #8227QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Read: Thinking in C++ Vol 1
http://www.mindviewinc.com/Books/[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]
-
03-18-2008, 03:34 PM #8228QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
well do
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
-
03-18-2008, 04:56 PM #8229
Ok, I have no idea in hell for why this isn't working:
My main.cpp is:
Spoiler for Code:
The errors that I just don't get:
1) From one compiler:

2) From another compiler:
Any help would be greatly appreciated because after a couple days of the same errors, I am greatly stressed. :Argh: :Argh:[QUOTE=Archaemic]
[size=1]My manwich![/size][/QUOTE]
[QUOTE=mohaas05]lol i can't say d*ck?[/QUOTE]
-
03-18-2008, 05:03 PM #8230It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Well, for one thing, there's no indentation. Another thing, where are the arguments to ai? A third thing. diff_x and diff_y are always 0 in the version you have there. The first part of the diffs are supposed to be the thing it's homing in on. Note the subtle difference between "homee" and "homer" in the code I gave you.
Also, I guess I ended up answering your question anyway. Bad me! I should be working on my midterm.pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
03-18-2008, 05:08 PM #8231words 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
spike - include cmath first...

...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
-
03-18-2008, 05:11 PM #8232
Zitat von Archaemic
Dam, I guess midterms are messing us both up. I wasn't even thinking I guess when I looked at your code :o
And my stupid C++ editor changed my code when I copy/pasted it from there to the message, I've got indentations, no worries there :)
I did change those things and as soon as I can, I will try to recompile it.
Thanks again Archaemic.
The other errors there, some of those may be unrelated though, so if anyone has an idea as to what there problem is... please fill me in! :humped:[QUOTE=Archaemic]
[size=1]My manwich![/size][/QUOTE]
[QUOTE=mohaas05]lol i can't say d*ck?[/QUOTE]
-
03-18-2008, 05:30 PM #8233
- Registriert seit
- Jul 2005
- Ort
- Canada, Ontario
- Beiträge
- 8
- Points
- 4.605
- Level
- 43
- Downloads
- 0
- Uploads
- 0
Well I searched about this and found many different things and got confused. I'd like to know how to change the color of a pixel. Is there a function for it or do you have to do it the long way and write your own function? lol
Thanks in advance guys! :)Geändert von Dre361224 (03-18-2008 um 06:01 PM Uhr)
-
03-18-2008, 06:14 PM #8234
Zitat von SG57
Only one unidentifiable error
On line 41 of the said main.cpp... hmmm.[QUOTE=Archaemic]
[size=1]My manwich![/size][/QUOTE]
[QUOTE=mohaas05]lol i can't say d*ck?[/QUOTE]
-
03-18-2008, 06:36 PM #8235It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Can you post the code that has only one error..using the code tag this time? And also put a comment on line 41 so we don't have to C+P into a text editor to find line 41?
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
03-18-2008, 06:40 PM #8236
Zitat von Archaemic
[QUOTE=Archaemic]
[size=1]My manwich![/size][/QUOTE]
[QUOTE=mohaas05]lol i can't say d*ck?[/QUOTE]
-
03-19-2008, 02:54 AM #8237QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Here is the root of your errors:
Zitat von spike021
If enemies variable is an int, then it DOESN'T have a x member variable.Code:int enemies; float theta, healthtemp; float diff_x = enemies.x-enemies.x;
[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]
-
03-19-2008, 03:37 AM #8238Developer

- Registriert seit
- Mar 2006
- Beiträge
- 1.026
- Points
- 7.577
- Level
- 58
- Downloads
- 0
- Uploads
- 0
Not to mention that diff_x will always be 0.

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
-
03-19-2008, 06:07 AM #8239
Dam, I can't believe I wrote int. Thanks for the help guys :o
[QUOTE=Archaemic]
[size=1]My manwich![/size][/QUOTE]
[QUOTE=mohaas05]lol i can't say d*ck?[/QUOTE]
-
03-19-2008, 06:43 AM #8240It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
That's supposed to be != 0.0f, also. That's what was in the code I gave you.
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
03-19-2008, 08:46 AM #8241QJ Gamer Platinum
- Registriert seit
- Feb 2006
- Ort
- National Front Disco
- Beiträge
- 13.057
- Points
- 66.627
- Level
- 100
- Downloads
- 0
- Uploads
- 0
Thanks.
Zitat von Insert_Witty_Name
-
03-19-2008, 11:12 AM #8242I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
I have a stupid annoying problem with pspSdkLoadStartModule... its returning 0x800200D1 which is SCE_KERNEL_ERROR_ILLEGAL_ PERM.
Code:
I can't see there being a problem there, so I've fiddled around and this one has me totally stumped. I've tried loading the module in PSPLink and I get the same error, so am I write in assuming its somewhere in my code/makefile/exports?Code:status = pspSdkLoadStartModule("p4ext.prx", PSP_MEMORY_PARTITION_USER); if(status < 0) errorMajor(status); else _printf("Successfully loaded and linked p4ext.prx\n");
Spoiler for P4Ext:
Spoiler for Makefile:
Spoiler for Exports (doubt this is the problem):
If anyone can shed any light onto whats going wrong here, I would greatly apprechiate it, its now affecting 3 modules...
-Aura
-
03-19-2008, 11:22 AM #8243It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
What's the 0x800 for?Code:PSP_MODULE_INFO("Ext", 0x800, 0, 1);
Also, have you tried the ku functions?pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
03-19-2008, 11:35 AM #8244QJ Gamer Platinum
- Registriert seit
- Feb 2006
- Ort
- National Front Disco
- Beiträge
- 13.057
- Points
- 66.627
- Level
- 100
- Downloads
- 0
- Uploads
- 0
Shouldn't it be 0x0800 for an updater application?
-
03-19-2008, 12:37 PM #8245
It's updater mode, it's the same as user mode but with added write access to flash0 ;) It requires a updater PARAM.SFO though, and it needs to be in ms0:/PSP/GAME/UPDATE.
Zitat von Archaemic
I extracted the 1.51 PARAM.SFO using PBP Unpacker, then opened it in a HEX-editor and changed the last '1.51' to '3.91':

I'm not sure if it's legal to post that PARAM.SFO here though..
-
03-19-2008, 01:00 PM #8246I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
I always wondered what the "offical" term was, I just know it gives flash access and so I use it for flashing apps without the pain of making kernel modules.
Zitat von Archaemic
Whats the point in using KU functions? It appears to be the modules and not the way the function is loading them, I have tried, as all suggestions are worth trying, but it didn't do anything bar return the same error. I've also tried running in user mode, but to no avail.
I also had the thought that it may be because I'm running in 3.XX and not 1.50 (like trying to use sceLoadExec returns a similar error) but I attempted on 1.50 and had the same problem.
-Aura
-
03-19-2008, 01:44 PM #8247QJ Gamer Gold
- Registriert seit
- Feb 2007
- Ort
- Houston, Texas
- Beiträge
- 3.349
- Points
- 20.111
- Level
- 89
- Downloads
- 0
- Uploads
- 0
Hey guys, I am quite happy with my first homebrew, even if it is a hello world.
I cannot wait to go further with this.
But I have a few questions, I am new to C and C++, so please bear with me.
After using the "make" command, it generated some files in where my project was. Can anyone please tell me what they are?
hello.elf - What does that do?
main.o - What does that do?
PARAM.SFO - I know what this is and does.
EBOOT.PBP - I know what this is and does.
Thanks to anyone that helps me.
PSN: TrueDef
AIM: TrueDef91
Prestige 7 On COD4
-
03-19-2008, 01:48 PM #8248QJ Gamer Bronze

- Registriert seit
- Aug 2007
- Ort
- Australia
- Beiträge
- 659
- Points
- 8.045
- Level
- 60
- Downloads
- 0
- Uploads
- 0
Hey man,
The Hello.elf is the executable which is packed inside the eboot. As in this is the game data, not XMB picture or music or anything. Main.o is your compiled Main.c
-
03-19-2008, 02:30 PM #8249I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
In laymans terms, until you get the a bit more knowledgable, *.elf is a fully compiled and linked peice of code, a non-compressed exe file for PSPs if you will. *.PBP is a compressed packaged version of the *.elf, it contains the elf file and other files such as images and sounds for the XMB. *.sfo is an information package, so to speak, that contains the information detailed in the XMB when an EBOOT is selected, it shows the name (and in some things extra data that is relavent to that program). The *.o is the compiled and linked file of the .c source code of the same name, once this is compiled and linked it becomes a binary file, and will be packaged into the final program at the end.
You may also eventually notice *.prx files, these are 3.XX versions of the *.elf files, they work the same to the common user but have some big changes that probably wouldn't make much sence right now
-Aura
-
03-19-2008, 02:39 PM #8250QJ Gamer Platinum
- Registriert seit
- Feb 2006
- Ort
- National Front Disco
- Beiträge
- 13.057
- Points
- 66.627
- Level
- 100
- Downloads
- 0
- Uploads
- 0
How would I add a cursor to a menu/application? Is there a built in one or do I have to load an image and have it move with the analog stick?


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