Zeige Ergebnis 5.491 bis 5.520 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; well, you learn something new every day :)...
-
07-13-2007, 05:59 PM #5491QJ Gamer Platinum
- Registriert seit
- Dec 2005
- Ort
- h0000000rj
- Beiträge
- 12.867
- Points
- 57.528
- Level
- 100
- Downloads
- 0
- Uploads
- 0
well, you learn something new every day :)
[I fail @ life]
-
07-13-2007, 09:03 PM #5492QJ Gamer Green
- Registriert seit
- Jul 2007
- Beiträge
- 88
- Points
- 3.606
- Level
- 37
- Downloads
- 0
- Uploads
- 0
Argh that code didnt work.
Could you use the code I sent on page 546 please?
-
07-13-2007, 11:39 PM #5493words 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
Beat_Bob - If you actually heard yourself, youd realize why no one can help you. Right now i have 40 post p/page, making this page 138. Id rater not do the math just to find your problem, if all else fails give us the post number, or better yet a quote of the damn post to save us the trouble, thats the least you could do if you are asking for help. Lazy *******...
yaustar - does your job accept things like that (assuming C doesnt support passing by reference, so assumptions really)?
off topic:
btw, G4 had a big harry potter OotP special the other day, it talked about the game and how they walked on the set and took tons of pictures of 'hogwarts' (and were given blue prints) and have been able to recreate 'hogwarts' to match the movie's scenery. All of if for a game... shows alot of dedication. big props to the development team
(last thing, are you a harry potter fanatic? or are you just in it for the pay... i can only find myself on projects that im very interested and dedicated to... is that bad? id say yes as dedication fades as time flows, resulting in a flop... :'()

...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
-
07-14-2007, 01:04 AM #5494QJ Gamer Green
- Registriert seit
- Sep 2006
- Ort
- Cape Town, South Africa
- Beiträge
- 714
- Points
- 5.795
- Level
- 49
- Downloads
- 0
- Uploads
- 0
Zitat von Beat_Bob
Those are all of Beat_Bob's posts on page 546.
Zitat von Beat_Bob
-
07-14-2007, 02:19 AM #5495QJ Gamer Green
- Registriert seit
- Apr 2006
- Ort
- England ~¦¦¦|+|¦¦¦~
- Beiträge
- 1.112
- Points
- 9.165
- Level
- 64
- My Mood
-
- Downloads
- 0
- Uploads
- 0
please help me, everyone just ignored me before...
Zitat von JaSo PsP
...Just Returned To The Scene...
-
07-14-2007, 02:37 AM #5496QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
my mate made snake before, but its in debug screen... i have src if you are interested...
[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]
-
07-14-2007, 02:42 AM #5497QJ Gamer Green
- Registriert seit
- Sep 2006
- Ort
- Cape Town, South Africa
- Beiträge
- 714
- Points
- 5.795
- Level
- 49
- Downloads
- 0
- Uploads
- 0
My idea would be to move each segment forward each time instead of just moving the last segment to the front. That way, you'd always be in the "original state".
-
07-14-2007, 02:59 AM #5498QJ Gamer Silver

- Registriert seit
- Jan 2006
- Ort
- Germany
- Beiträge
- 926
- Points
- 14.087
- Level
- 77
- Downloads
- 0
- Uploads
- 0
You sure you didn't compile it with -libstdc++ linked or sth? I'm 95% sure C (as in ANSI-C and C-99) don't support the by-reference ampersand modifier in function declarations:
Zitat von yaustar
Compiler gives (as expected):Code:void byreference( int& x, int& y ) { }
EDIT:$ make
psp-gcc -I. -Ic:/cygwin/usr/local/pspdev/psp/sdk/include -O2 -G3 -g -Wall -D_PSP
_FW_VERSION=150 -c -o test.o test.c
test.c:11: error: expected ';', ',' or ')' before '&' token
test.c: In function 'main':
test.c:32: warning: implicit declaration of function 'byreference'
test.c:36: warning: too many arguments for format
make: *** [test.o] Error 1
I searched the C99 spec from open-std.org and couldn't find anything about "by-reference" parameters as in the C++ standard.
http://www.open-std.org/JTC1/SC22/WG...docs/n1124.pdfGeändert von Raphael (07-14-2007 um 03:37 AM Uhr)
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.
-
07-14-2007, 03:27 AM #5499QJ Gamer Green
- Registriert seit
- Apr 2006
- Ort
- England ~¦¦¦|+|¦¦¦~
- Beiträge
- 1.112
- Points
- 9.165
- Level
- 64
- My Mood
-
- Downloads
- 0
- Uploads
- 0
yeh, i read up on the main concept of a snake game, if i move the snake using the rear block first, moving to the co-ordinates of the one in front of it, i would not have to store the x and x variables in any other structure.
Zitat von coolguy5678
...Just Returned To The Scene...
-
07-14-2007, 04:06 AM #5500QJ Gamer Green
- Registriert seit
- Sep 2006
- Ort
- Cape Town, South Africa
- Beiträge
- 714
- Points
- 5.795
- Level
- 49
- Downloads
- 0
- Uploads
- 0
Yes, that's what I was thinking of.
Zitat von JaSo PsP
-
07-14-2007, 05:46 AM #5501QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
AdjutantReflex: I am not a Harry Potter fanatic although I don't detest it either. The pay is relatively irrelevant, I like the team, the technology we are working with is cool and the story allows for interesting game mechanics and challenges.
Raphael: Hmm, Code::Blocks was using g++ even though it was a C file which was probably why it worked :/. I though it seemed weird when it did work.[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]
-
07-14-2007, 07:02 AM #5502QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
@yauster GJ with the game
@beat_bob
i'll look over your code and try and find the prob although i'm sticking to my old post as the reason
although i rly hate the way you place ur bracket's it makes it hard(for me anyways) to determine the open and clossing of brackets sometimes1. 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
-
07-14-2007, 07:21 AM #5503QJ Gamer Green
- Registriert seit
- Sep 2006
- Ort
- Cape Town, South Africa
- Beiträge
- 714
- Points
- 5.795
- Level
- 49
- Downloads
- 0
- Uploads
- 0
I think the indentation just got broken when copy-pasting it into the forum or something.
-
07-15-2007, 05:10 AM #5504
To the 3D developers: What do I have to learn to make a 3D game? Are there any good tutorials?
Thanks, sony_psp_player
-
07-15-2007, 05:13 AM #5505QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
psp-programming.com i'll give a direct link to the tut in 1 sec
-= Double Post =-
here:
http://www.psp-programming.com/code/...id=c:tutorialsGeändert von slicer4ever (07-15-2007 um 05:14 AM 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
-
07-15-2007, 05:15 AM #5506
No... Learn Basics of OpenGL first... Trust me.
Zitat von sony psp player
-
07-15-2007, 05:17 AM #5507QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
why? i learned 3d first on psp...well actual first using flash but still
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
-
07-15-2007, 06:10 AM #5508
Yes, I know this one, but how, for example, can I draw a car and display it with the PSP? It wouldn't be easy if I had to define every triangle myself.
-
07-15-2007, 06:12 AM #5509
use slicers .x loader.
Zitat von sony psp player
-
07-15-2007, 06:12 AM #5510QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
look into pspjunkie(i believe it's his) md2 loader
@mr305 i'm still working on it it's been a little post poned as i'm working on celestial cunning right now1. 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
-
07-15-2007, 06:19 AM #5511
I can't find it, please give me a link.
Btw: how do I create md2 files?
-
07-15-2007, 06:29 AM #5512QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
u need an 3d modeler(calagary gamespace 1.5 is what i use but costs a little bit) but there are free one's like blender and...well i only know of blender also one moment i'll find it
-= Double Post =-
heres the link:
http://jparishy.com/wp/source-code/
however the site appears to be temporarily disabledGeändert von slicer4ever (07-15-2007 um 06:38 AM 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
-
07-15-2007, 06:57 AM #5513It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Um, www.blender.org
You'll need to install Python 2.5, too.pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
07-15-2007, 07:02 AM #5514
a quick google search for md2
http://tfc.duke.free.fr/coding/md2-specs-en.html
thats everything you'll need to know...i think...
I made an md2 loader/animator but pspjunkie did too
At the same time i think cuz he showed his without animation while I was working on mine and I made animation the same day lol I'm sure he's got animation too.
Rendering shouldn't be hard as long as ur familiar with PSPGU and GL
Gmax is a good modeling program too (so is 3d studio max) but gmax doesn't export md2 so u will have to get a pluginCurrent releases:
Icon Action Replacer v1.5- latest release
Current projects:
PSP C++ IDE - Currently v1.6
RPG Paradise - Latest version at my website
-
07-15-2007, 07:36 AM #5515
Ok, I will play around with this. Thanks for your quick replies!
-
07-15-2007, 09:41 AM #5516QJ Gamer Bronze
- Registriert seit
- Jun 2007
- Ort
- somewhere on this planet
- Beiträge
- 218
- Points
- 4.113
- Level
- 40
- Downloads
- 0
- Uploads
- 0
can someone help me I am tring to figure out how to patch a source code.
it is just to fix one thing.Spoiler for july 2 2007 marks the day Dark-Alex leaves the scene.:
Spoiler for donations to me made by nice people thank you:
-
07-15-2007, 09:44 AM #5517QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
can't help you if you give us nothing
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
-
07-15-2007, 09:58 AM #5518QJ Gamer Bronze
- Registriert seit
- Jun 2007
- Ort
- somewhere on this planet
- Beiträge
- 218
- Points
- 4.113
- Level
- 40
- Downloads
- 0
- Uploads
- 0
ok all I need to do is this,
char * standardkeys[4][3] =
{
{ ".,[email protected]\"'`:;()<>[]{}1", "abcABC2", "defDEF3" },
{ "ghiGHI4", "jklJKL5", "mnoMNO6" },
{ "pqrsPQRS7", "tuvTUV8", "wxyzWXYZ9" },
{ "", "/-~=_*xx+###$c€£S%&\\^| 0", "" }
};
to this
// Note: \001 indicates a char we can't type directly (e.g 'multiply').
char * standardkeys[4][3] =
{
{ ".,[email protected]\"'`:;()<>[]{}1", "abcABC2", "defDEF3" },
{ "ghiGHI4", "jklJKL5", "mnoMNO6" },
{ "pqrsPQRS7", "tuvTUV8", "wxyzWXYZ9" },
{ "", "/-~=_*\001\001+#\001\001$\0 01\001\001\001%&\\^| 0", "" }
};
all it is is fixing a problem with pikey
instead of x I get x(multiply) so urls don't work.
-= Double Post =-
how do I resave the file in c
since the it is a c file
-= Double Post =-
or would I just have to use cygwin and have it make it?Geändert von cosito (07-15-2007 um 10:06 AM Uhr) Grund: Automerged Doublepost
Spoiler for july 2 2007 marks the day Dark-Alex leaves the scene.:
Spoiler for donations to me made by nice people thank you:
-
07-15-2007, 10:48 AM #5519QJ Gamer Green
- Registriert seit
- Sep 2006
- Ort
- Cape Town, South Africa
- Beiträge
- 714
- Points
- 5.795
- Level
- 49
- Downloads
- 0
- Uploads
- 0
Yes. Change the C file, save it, then run make again.
-
07-15-2007, 11:04 AM #5520QJ Gamer Green
- Registriert seit
- Jul 2007
- Beiträge
- 88
- Points
- 3.606
- Level
- 37
- Downloads
- 0
- Uploads
- 0
Do I really have to tell you? Just look at the last post of mine on that page. Not really that difficult.Didnt work. But I tried another way by converting a lua tutorial (just jumping, same method) to this way:
Spoiler for while(1) loop::
Its weird. When I press X he jumps (incredibly fast....) and hes just stuck in the air then.
He wont fall back down. Why not? Ive made it so I can move left and right, and when im stuck in the air im able to move
left and right by the way, just so you know.


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