Zeige Ergebnis 5.131 bis 5.160 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; hello...
-
06-24-2007, 10:35 AM #5131QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
hello
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
-
06-24-2007, 10:38 AM #5132QJ Gamer Silver

- Registriert seit
- Jan 2006
- Ort
- Germany
- Beiträge
- 926
- Points
- 14.087
- Level
- 77
- Downloads
- 0
- Uploads
- 0
bye
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.
-
06-24-2007, 10:42 AM #5133QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
ok
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
-
06-24-2007, 10:58 AM #5134QJ Gamer Silver

- Registriert seit
- Jan 2006
- Ort
- Germany
- Beiträge
- 926
- Points
- 14.087
- Level
- 77
- Downloads
- 0
- Uploads
- 0
no, not ok. Have patience or try to find out yourself.
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.
-
06-24-2007, 11:00 AM #5135QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
i have been working on the problem for the past few hours and still haven't returned anything that can help me
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
-
06-24-2007, 11:36 AM #5136QJ Gamer Silver

- Registriert seit
- Jan 2006
- Ort
- Germany
- Beiträge
- 926
- Points
- 14.087
- Level
- 77
- Downloads
- 0
- Uploads
- 0
Then you have to be patient. Full stop.
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.
-
06-24-2007, 07:30 PM #5137
how would i get lua to print " or , to the screen...when i try printing those to screen i get an error?
-
06-24-2007, 07:32 PM #5138QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
wrong thread
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
-
06-24-2007, 07:34 PM #5139words 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
Because those are reserved characters (" to end/start a string, ' to end/start a character)
I believe it's the same as in C, but I'm not %100 sure, just give it a try, if not then try the second example
Code:-- 1st example screen:print(0,0,"\"I was here\", I said") -- 2nd example screen:print(0,0,'"' .. "I was here" .. '"' .. ", I said")

...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
-
06-24-2007, 07:36 PM #5140
thanks!! sorry i could have sworn i clicked on the lua help thread
-
06-24-2007, 07:38 PM #5141QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
it's ok
-= Double Post =-
jw what are the advantages of using a bool over an int with 0 and 1 as true and falseGeändert von slicer4ever (06-24-2007 um 09:00 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
-
06-24-2007, 09:38 PM #5142
I need some help....when I go to display a half transparent image, it works but....when it draws the next frame, the 2 half alpha transparent images(1 from previous frame and another from current frame) are blended. I don't know why because I clear the screen too. (NOTE: I'm usin graphics.h)
Help?
-= Double Post =-
bool is like light switch and only use this kind if u only need whether somethings true or false.
Zitat von slicer4ever
if u have to use a specific number then use int.
if ur unsure then use int because int can do everything a bool can doGeändert von pspballer07 (06-24-2007 um 09:43 PM Uhr) Grund: Automerged Doublepost
Current releases:
Icon Action Replacer v1.5- latest release
Current projects:
PSP C++ IDE - Currently v1.6
RPG Paradise - Latest version at my website
-
06-24-2007, 10:04 PM #5143words 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
With booleans you have type-safety. (ex, you can't set a boolean to 2 or 22, else the compiler gives you an error about it, where as an integer it doesnt)

...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
-
06-24-2007, 10:29 PM #5144QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
ok so mostly just a safety cjeck thanks adjutant
@pspballer i think u misunderstood i knew what a bool was i was jw what it had over just plainly using an int
and for your question i can't be 100% sure what is wrong without some type of code it is possible you r accidentally re-drawing both which is the only conclusion i can draw from for 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
-
06-25-2007, 01:17 AM #5145QJ Gamer Blue
- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 499
- Points
- 5.848
- Level
- 49
- Downloads
- 0
- Uploads
- 0
with a bool:
Zitat von slicer4ever
can't really do that with an int, it'll always return true ;)Code:if (playing) { //Game Loop }
-
06-25-2007, 01:30 AM #5146Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
wrong ,
int true;
..
IF(true)
...
if(!true)
is the same as
if(true == 1)
if(true == 0)
-
06-25-2007, 01:39 AM #5147words 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
Hence why he used the qualifier 'really'

...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
-
06-25-2007, 02:07 AM #5148Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
he did
but he said
"it'll always return true"
and why are always giving stupid answers , there is no need for
-
06-25-2007, 02:10 AM #5149QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Not quite, the expression for true checks if the integer is not equal to 0.
Zitat von hallo007
The whole point of a bool is to clarify to the programmers working on the code that it can only be two values, true or false. Working with ints for on/off expressions is ambiguous to a programmer looking at it for the first time.Code:if( -1 ) // true if( 3487324344 ) // true if( -34593243 ) // true if( 0 ) // false
[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]
-
06-25-2007, 02:12 AM #5150Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
i use macro's for true/false value's
-
06-25-2007, 02:12 AM #5151QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
anyways i was just wondering if their were any advantages other than a safety precaution when assigning the variable also i've spent the last few hours on completly re-writing my xfileloader but it still randomly breaks near the beginning heres what i've made which works perfectly on the pc:
Spoiler for code:
any1 see a reason as to why please post i just don't understand why it works on the computer yet refuses to work on the psp and i don't think i'm running out of memory but it is a posibility1. 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
-
06-25-2007, 02:28 AM #5152QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
@slice4ever: Two wild guesses:
1) You are over running/under running some arrays which is crashing the PSP. The fact that it works on the PC is irrelevant in this case, you need to debug on the PC with asserts and bounds checking.
2) You are overflowing the stack memory judging by the size of the arrays for the polygons and vertices that you are creating.
-= Double Post =-
Don't use #defines, use enums lists and then the enum type instead of ints.
Zitat von hallo007
Geändert von yaustar (06-25-2007 um 02:29 AM Uhr) Grund: Automerged Doublepost
[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]
-
06-25-2007, 02:34 AM #5153QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
well i guess i'll check it in the afternoon as it's 6:30 am where i live so night ever1
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
-
06-25-2007, 05:13 AM #5154QJ Gamer Green
- Registriert seit
- Apr 2006
- Ort
- England ~¦¦¦|+|¦¦¦~
- Beiträge
- 1.112
- Points
- 9.165
- Level
- 64
- My Mood
-
- Downloads
- 0
- Uploads
- 0
Are you making a program to load .x files? Thats cool if you could incorporate it into the PSP GU then i would be more interested in using PSP GU.
...Just Returned To The Scene...
-
06-25-2007, 11:01 AM #5155I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
I'm having problems multi-threading and using the controls... whenever I try to move my charactor in any direction, it moves a random amount of spaces before it stops...I've also tried allowing the charactor to only after the button has been pressed and released, but that makes no difference. This only happens when multi-threading, I've launched that single thread on its own and everything works fine, so I was wondering if anyone could give me any sort of advice.
So far I've tried giving the problem thread a higher priority, but nothing, and I've tried changing the cycle rate (and whatever the other rate was) for the controls, but none of those has made any difference.
I've done very little multi-thread work, and I've not really used a lot of the commands in the pspctrl.h file, so I'm probably quite oblivious to an answer thats staring me in the face, but I've tried everything that comes to mind.
Well anyway, thanks for any help in advance.
-Aura
-
06-25-2007, 11:11 AM #5156QJ Gamer Green
- Registriert seit
- Dec 2006
- Ort
- main();
- Beiträge
- 1.071
- Points
- 11.300
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Why is that?
Zitat von JaSo PsP
-
06-25-2007, 11:13 AM #5157QJ Gamer Green
- Registriert seit
- Apr 2006
- Ort
- England ~¦¦¦|+|¦¦¦~
- Beiträge
- 1.112
- Points
- 9.165
- Level
- 64
- My Mood
-
- Downloads
- 0
- Uploads
- 0
The PSP GU tutorials ive been using dont tell me how to load meshes, plus i know how to make/work with .x files because ive been leraning DirectX.
Zitat von Junkie
...Just Returned To The Scene...
-
06-25-2007, 11:14 AM #5158QJ Gamer Green
- Registriert seit
- Dec 2006
- Ort
- main();
- Beiträge
- 1.071
- Points
- 11.300
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Zitat von hallo007
-= Double Post =-Code:#define FALSE 0 #define TRUE !FALSE
I did MD2 using the GU. Also, making a GU powered .x loader would have no relevance to DirectX.
Zitat von JaSo PsP
By the way, the MD2 loader can be found here.Geändert von PSPJunkie_ (06-25-2007 um 11:18 AM Uhr) Grund: Automerged Doublepost
-
06-25-2007, 12:45 PM #5159QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
@jaso yes i plan to make a library with many functions that the gu doesn't provide include loading .x files coloring different meshs of the object and playing animation, which i have the rest down it just requires me getting this load x file to fully work
edit: also it's not using directx i'm writing it from scratch so like junkie said:
Zitat von junkie
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
-
06-25-2007, 01:14 PM #5160
i am new to c++ i need a good compiler can anyone help me? i havent even been able to make "hello world" yet


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