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; Umm... I've heard of the ogg player lib and a couple of other libs out there, but I have no ...
-
04-20-2006, 09:08 PM #181
Umm... I've heard of the ogg player lib and a couple of other libs out there, but I have no clue where to find them. I've looked at psp-H*cks, here, & and ps2de\/.org* and I don't see anywhere at any place an area for downloading libs... could anyone let me know a place and/or how to find it?
-
04-21-2006, 05:46 AM #182Developer

- Registriert seit
- Sep 2005
- Ort
- Sweden
- Beiträge
- 941
- Points
- 10.075
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Here you go!
Zitat von Devun_06
-
04-22-2006, 08:58 PM #183
Thanx SodR, but is there also a way to get a description of what they are before I begin downloading a lot of them I don't need, or am I missing something...
*and how did you findout about this place... *just curious*
-
04-22-2006, 10:50 PM #184QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
is their away i can change the toolchain.sh script to new download places i tried the link and only managed to change 1 so that would work all the rest just said they already had the program but it still didn't work i believe the 1st one works but thats all i got from here anyways
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-23-2006, 07:29 AM #185
hmm can anyone explain to me the bitwise operater?
eg: 0110 & 0011
0010
and can someone explain hexadecimal.. it scare's me 0-0
eg:
123 = 7 * 161 + B * 160 = 7B16
btw the 161.. the end 1 is a powerand the 0 on 160 and the 16 at the end :P[CENTER][B]-[/B]----------------------------------------------[B]-[/B][/CENTER]
[COLOR="red"][FONT="Arial Black"][B][CENTER]'*.::Lua learning :.*'[/CENTER][/B][/FONT][/COLOR]
[CENTER][B]-[/B]----------------------------------------------[B]-[/B][/CENTER]
[QUOTE]
[CENTER][U][COLOR="SeaGreen"][B]"Humankind cannot gain anything without first giving something in return. To obtain, something of equal value must be lost. That is alchemy's First Law of Equivalent Exchange. In those days, we really believed that to be the world's one, and only, truth. —Alphonse Elric, Fullmetal Alchemist"[/B][/COLOR][/U][/CENTER][/QUOTE]
-
04-23-2006, 09:25 AM #186
- Registriert seit
- Apr 2006
- Beiträge
- 49
- Points
- 4.297
- Level
- 41
- Downloads
- 0
- Uploads
- 0
Has anyone toyed with or have examples of pspgl code?
-
04-23-2006, 11:19 PM #187
I used this to learn about bits and hex, but I still don't fully get it:
Zitat von Paradox.psp
http://www.learn-c.com/data_lines.htm :icon_bigg
-
04-24-2006, 12:09 AM #188Bush Programmer

- Registriert seit
- Nov 2005
- Beiträge
- 3.658
- Points
- 60.149
- Level
- 100
- Downloads
- 0
- Uploads
- 0
Could someone pls post the file 'lmikmod' ??
I have the six include files that come with the mikmod download package,
but with the line:
in my makefile, cygwin only complains about lmikmod, and it's definately not on my PC.Code:LIBS = -lpspaudiolib -lpspaudio -lpspgu -lpsppower -lpng -lz -lm -lpspwlan -lmikmod
Cheers, Art.
-
04-24-2006, 12:47 AM #189words 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
Art - Try -lmod
Tell me if it works or not.
...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-24-2006, 03:19 AM #190Bush Programmer

- Registriert seit
- Nov 2005
- Beiträge
- 3.658
- Points
- 60.149
- Level
- 100
- Downloads
- 0
- Uploads
- 0
The problem is solved thanx SG57, I had to dl mikmod from svn and install it seperately.
I have been able to compile the example and have it work.
Cheers, Art.
-
04-24-2006, 04:13 AM #191Mushroom Man
- Registriert seit
- Sep 2005
- Ort
- UK
- Beiträge
- 318
- Points
- 7.283
- Level
- 56
- Downloads
- 0
- Uploads
- 0
The AND operator compares the bits of each field, and if they are both 1 then it will output a 1.
Zitat von Devun_06
Here's an example:
0110
0011
||||
|||_0+1=0
||__1+1=1
|___1+0=0;
____0+0=0;
0010
Check out some binary math tutorials, they can come in pretty handy.
Here's something to get you started: http://everything2.com/index.pl?node_id=1365337
It explains 4 math functions in binary(addition, subtraction, multiplication and division).
As far as hex goes, you need to think about it as we think about our usual number system(Decimal). Each column corresponds to a certain value.
Decimal
_1000
| _100
|| _10
||| _1
||||
0010=10
The same goes for Hexadecimal, although the columns have different values, and the fields have more numeric(or alphanumeric) variables.
Hexadecimal
_64
| _32
|| _16
||| _1
||||
111F=(64+32+16+15)=127
The way this works is instead of changing over to the next field upon reaching 10, it will substitute the number with a letter from the alphabet starting at A=10, B=11, C=12 and so on up to F=15. F is the highest possible value in a hexadecimal field. It takes a bit of getting used to, but it's really just shifting your mind to incorporate this extra range of 'numbers' into your usual decimal system
If you want something to show an example of how useful hex is, check out the color codes used to make this site. They are constructed using triplets of hex numbers, as with 2 hex digits we can create numbers as high as 255, where as if we were working with 2 decimal columns the highest number we could achieve with two columns is 99.
RRGGBB
#FF0000
That would equal 255 into the green colour field, giving us a nifty sharp green color.
I hope that clears a few things up :)Geändert von Psilocybeing (04-24-2006 um 12:20 PM Uhr)
-
04-25-2006, 01:27 AM #192Bush Programmer

- Registriert seit
- Nov 2005
- Beiträge
- 3.658
- Points
- 60.149
- Level
- 100
- Downloads
- 0
- Uploads
- 0
The Windows Calculator (in Scientific mode) performs some bitwise operations which
might be good for learning/practice/checking results.
You can also use it to easily perform Hex/Decimal/Binary conversion.
Art.
-
04-25-2006, 06:43 AM #193words 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 the Windows Calc have ba source? Or even itf it does, itll be in VB?
Zitat von Art
OFF TOPIC: Any other Develpoers going to update? I def will,just not until i finish all the games and apps i hvae started. It is sooo tempting seeing all the new features. I bet some will do the same but i dunno. I will, just not until I finish all the stuff i started.
...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-25-2006, 09:57 AM #194Developer

- Registriert seit
- Sep 2005
- Ort
- Sweden
- Beiträge
- 941
- Points
- 10.075
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Is there any way to use ascii characters in printTextScreen() or something similar wich you can use with Psilocybeing's graphic library since you can't just use the good ol' printf() ??
-
04-25-2006, 10:06 AM #195Mushroom Man
- Registriert seit
- Sep 2005
- Ort
- UK
- Beiträge
- 318
- Points
- 7.283
- Level
- 56
- Downloads
- 0
- Uploads
- 0
The graphic library is not mine, I simply provided example code showing how to use it. I've not started to play with fonts yet, so while it's most likely possible it would take some heavy modification.
-
04-25-2006, 08:44 PM #196Developer

- Registriert seit
- Oct 2005
- Beiträge
- 408
- Points
- 7.058
- Level
- 55
- Downloads
- 0
- Uploads
- 0
Doh! I keep crediting that to you. Any idea who wrote it originally?
Zitat von Psilocybeing
SodR: I'm not sure if I'm understanding your question correctly, but if you want simple font support look here.
-
04-25-2006, 08:52 PM #197QJ Gamer Silver
- Registriert seit
- Jun 2005
- Ort
- Montana
- Beiträge
- 954
- Points
- 14.944
- Level
- 79
- Downloads
- 0
- Uploads
- 0
Ok what does it mean when the compiler cant find "iostaem.h"(Im on my other computer right now but its close to that)
sorry i just started (as you can tell)
-
04-26-2006, 05:42 AM #198Developer

- Registriert seit
- Sep 2005
- Ort
- Sweden
- Beiträge
- 941
- Points
- 10.075
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Samstag: Nice tutorial you have there! The thing is I wated to know if there was any way to print out ascii variables with printTextScreen over a picture. If it would work it could have looked something like this:
Is there any other way using ascii on a .png picture??Code:printTextScreen( 10, 10, "%s" ,src);
Racer_x124: That is because it is called iostream.h not iostaem.h
-
04-26-2006, 06:03 AM #199Developer

- Registriert seit
- Oct 2005
- Beiträge
- 408
- Points
- 7.058
- Level
- 55
- Downloads
- 0
- Uploads
- 0
If you wanted to put text over an image using my routines, it would look something like this:
Zitat von SodR
Code:text_to_image("Text to print", my_image, x, y);
-
04-26-2006, 06:28 AM #200Developer

- Registriert seit
- Sep 2005
- Ort
- Sweden
- Beiträge
- 941
- Points
- 10.075
- Level
- 67
- Downloads
- 0
- Uploads
- 0
But I can't still use ascii with that...
Zitat von Samstag
-
04-26-2006, 06:32 AM #201Developer

- Registriert seit
- Oct 2005
- Beiträge
- 408
- Points
- 7.058
- Level
- 55
- Downloads
- 0
- Uploads
- 0
That's where you've lost me. What exactly do you mean by "ascii"?
-
04-26-2006, 07:01 AM #202Developer

- Registriert seit
- Sep 2005
- Ort
- Sweden
- Beiträge
- 941
- Points
- 10.075
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Ascii
Zitat von Samstag
-
04-26-2006, 07:31 AM #203Developer

- Registriert seit
- Oct 2005
- Beiträge
- 408
- Points
- 7.058
- Level
- 55
- Downloads
- 0
- Uploads
- 0
Uh, my font library fully supports ascii. Maybe you need to rephrase your question or show an example of what you're trying to do. You do realize ascii is text, and text is just an array of characters?
-
04-26-2006, 07:38 AM #204Developer

- Registriert seit
- Sep 2005
- Ort
- Sweden
- Beiträge
- 941
- Points
- 10.075
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Didn't this describe what I wanted to to pretty good?
Zitat von Samstag
The thing was that I didn't understod that your lib worked with ascii. But now I know, thanks!
Zitat von SodR
btw. Why would I want to know how to use ascii on an image if I didn't know what ascii actually is??
I need to use ascii so I can display what file I'm dumping in my UMD Dumper function in UMD Tool (see sig).Geändert von SodR (04-26-2006 um 07:43 AM Uhr)
-
04-26-2006, 07:43 AM #205Mushroom Man
- Registriert seit
- Sep 2005
- Ort
- UK
- Beiträge
- 318
- Points
- 7.283
- Level
- 56
- Downloads
- 0
- Uploads
- 0
I really have no idea, I found it a few months ago when I started coding on the PSP and I can't for the life of me remember where I got it from. It must be a piece of homebrew that is at least 5-6 months old though. I'll do some digging.
Zitat von Samstag
edit: also, have you got a link to your font lib please Samstag? it could come in very handy for Traveller, as the font used in graphics.h cannot be changed easily in size or style. cheers :)
edit2: nevermind, I found it :)Geändert von Psilocybeing (04-26-2006 um 07:46 AM Uhr)
-
04-26-2006, 08:38 AM #206Developer

- Registriert seit
- Oct 2005
- Beiträge
- 408
- Points
- 7.058
- Level
- 55
- Downloads
- 0
- Uploads
- 0
Sorry I think it was my misunderstanding. I thought it would be obvious that it supported ascii so I thought you didn't understand what ascii really was. Look at the flibtest.c file and you'll see how easy it is to use.
Zitat von SodR
-
04-26-2006, 08:59 AM #207Developer

- Registriert seit
- Sep 2005
- Ort
- Sweden
- Beiträge
- 941
- Points
- 10.075
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Samstag: When I try to compile with your lib I always get this error:
What is wrong? I haven't even touched flib.h...Code:flib.h:27: error: syntax error before 'color' flib.h:33: error: syntax error before 'Image'
-
04-26-2006, 09:11 AM #208Developer

- Registriert seit
- Oct 2005
- Beiträge
- 408
- Points
- 7.058
- Level
- 55
- Downloads
- 0
- Uploads
- 0
I see the problem. In your code you have to put #include "graphics.h" before #include "flib.h" or you'll get that error. Or you can put "#include graphics.h" in flib.h anywhere before line 27.
Zitat von SodR
Thanks for the feedback. I'll fix that in the next release.
EDIT: Psilocybeing: It looks like that code is from an earlier version of Luaplayer.Geändert von Samstag (04-26-2006 um 09:24 AM Uhr)
-
04-26-2006, 10:01 AM #209Bush Programmer

- Registriert seit
- Nov 2005
- Beiträge
- 3.658
- Points
- 60.149
- Level
- 100
- Downloads
- 0
- Uploads
- 0
Sorry to butt in, but what new features?OFF TOPIC: Any other Develpoers going to update? I def will,just not until i finish all the games and apps i hvae started. It is sooo tempting seeing all the new features. I bet some will do the same but i dunno. I will, just not until I finish all the stuff i started.
I backed up the whole op system with cygwin installed, so it shouldn't be a problem
going back to the current installation.
-
04-27-2006, 09:54 PM #210words 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
Yea, I too want to know the features. Plus, is your font lib need installing, or is it just like the graphics.h/.c and its just an extra, no need to make or make install.
Now I justneed a decent rotating prototype!
PLEASE, someone please make/help me with rotation. I need to rotate an image via angles.
I have tried and failed 3 times. Ive been trying to make it rotate by even the smalledst angle change. 1 degree, etc. Please help since I need to rotate a 'cursor'. 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


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