QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

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 ...

Reply
 
LinkBack Thread Tools
Old 04-20-2006, 10:08 PM   #181
 
Devun_06's Avatar
 
Join Date: Feb 2006
Posts: 338
Trader Feedback: 0
Post

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?
Devun_06 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-21-2006, 06:46 AM   #182

Developer
 
SodR's Avatar
 
Join Date: Sep 2005
Location: Sweden
Posts: 941
Trader Feedback: 0
Default

Quote:
Originally Posted by Devun_06
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?
Here you go!
SodR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-22-2006, 09:58 PM   #183
 
Devun_06's Avatar
 
Join Date: Feb 2006
Posts: 338
Trader Feedback: 0
Cool

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*
Devun_06 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-22-2006, 11:50 PM   #184

Developer
 
slicer4ever's Avatar
 
Join Date: Jul 2005
Location: everywhere
Posts: 3,357
Trader Feedback: 0
Default

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
slicer4ever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-23-2006, 08:29 AM   #185
 
Paradox.psp's Avatar
 
Join Date: Jan 2006
Posts: 766
Trader Feedback: 0
Default

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]
Paradox.psp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-23-2006, 10:25 AM   #186
 
Join Date: Apr 2006
Posts: 49
Trader Feedback: 0
Default

Has anyone toyed with or have examples of pspgl code?
Feldor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-24-2006, 12:19 AM   #187
 
Devun_06's Avatar
 
Join Date: Feb 2006
Posts: 338
Trader Feedback: 0
Default

Quote:
Originally Posted by Paradox.psp
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
I used this to learn about bits and hex, but I still don't fully get it:
http://www.learn-c.com/data_lines.htm
Devun_06 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-24-2006, 01:09 AM   #188
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

Could someone pls post the file 'lmikmod' ??
I have the six include files that come with the mikmod download package,
but with the line:
Code:
LIBS = -lpspaudiolib -lpspaudio -lpspgu -lpsppower -lpng -lz -lm -lpspwlan -lmikmod
in my makefile, cygwin only complains about lmikmod, and it's definately not on my PC.
Cheers, Art.
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-24-2006, 01:47 AM   #189

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

Art - Try -lmod

Tell me if it works or not.
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-24-2006, 04:19 AM   #190
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

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.
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-24-2006, 05:13 AM   #191
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

Quote:
Originally Posted by Devun_06
I used this to learn about bits and hex, but I still don't fully get it:
http://www.learn-c.com/data_lines.htm
The AND operator compares the bits of each field, and if they are both 1 then it will output a 1.

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
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL]

[CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER]

Last edited by Psilocybeing; 04-24-2006 at 01:20 PM..
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-25-2006, 02:27 AM   #192
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

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.
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-25-2006, 07:43 AM   #193

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

Quote:
Originally Posted by Art
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.
Does the Windows Calc have ba source? Or even itf it does, itll be in VB?

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.
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-25-2006, 10:57 AM   #194

Developer
 
SodR's Avatar
 
Join Date: Sep 2005
Location: Sweden
Posts: 941
Trader Feedback: 0
Default

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() ??
SodR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-25-2006, 11:06 AM   #195
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

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.
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL]

[CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER]
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-25-2006, 09:44 PM   #196

Developer
 
Join Date: Oct 2005
Posts: 408
Trader Feedback: 0
Default

Quote:
Originally Posted by Psilocybeing
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.
Doh! I keep crediting that to you. Any idea who wrote it originally?

SodR: I'm not sure if I'm understanding your question correctly, but if you want simple font support look here.
Samstag is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-25-2006, 09:52 PM   #197
 
Racer_x124's Avatar
 
Join Date: Jun 2005
Location: Montana
Posts: 954
Trader Feedback: 0
Default

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)
__________________
[CENTER][IMG]http://img489.imageshack.us/img489/3284/untitled1copylr4.png[/IMG]
[URL="http://www.moola.com:80/moopubs/b2b/exc/join.jsp?sid=4d544d744e7a4d314e7a513d-2"] [SIZE="3"][FONT="Arial Black"][B]Moola invites[/URL] are back![/B][/FONT][/SIZE]
[COLOR="Black"][B]PSN ID: Racer_x124[/B][/COLOR][/CENTER]
Racer_x124 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 06:42 AM   #198

Developer
 
SodR's Avatar
 
Join Date: Sep 2005
Location: Sweden
Posts: 941
Trader Feedback: 0
Default

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:
Code:
 printTextScreen( 10, 10, "%s" ,src);
Is there any other way using ascii on a .png picture??

Racer_x124: That is because it is called iostream.h not iostaem.h
SodR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 07:03 AM   #199

Developer
 
Join Date: Oct 2005
Posts: 408
Trader Feedback: 0
Default

Quote:
Originally Posted by SodR
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:
Code:
 printTextScreen( 10, 10, "%s" ,src);
Is there any other way using ascii on a .png picture??
If you wanted to put text over an image using my routines, it would look something like this:

Code:
text_to_image("Text to print", my_image, x, y);
Samstag is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 07:28 AM   #200

Developer
 
SodR's Avatar
 
Join Date: Sep 2005
Location: Sweden
Posts: 941
Trader Feedback: 0
Default

Quote:
Originally Posted by Samstag
If you wanted to put text over an image using my routines, it would look something like this:

Code:
text_to_image("Text to print", my_image, x, y);
But I can't still use ascii with that...
SodR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 07:32 AM   #201

Developer
 
Join Date: Oct 2005
Posts: 408
Trader Feedback: 0
Default

That's where you've lost me. What exactly do you mean by "ascii"?
Samstag is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 08:01 AM   #202

Developer
 
SodR's Avatar
 
Join Date: Sep 2005
Location: Sweden
Posts: 941
Trader Feedback: 0
Default

Quote:
Originally Posted by Samstag
That's where you've lost me. What exactly do you mean by "ascii"?
Ascii
SodR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 08:31 AM   #203

Developer
 
Join Date: Oct 2005
Posts: 408
Trader Feedback: 0
Default

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?
Samstag is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 08:38 AM   #204

Developer
 
SodR's Avatar
 
Join Date: Sep 2005
Location: Sweden
Posts: 941
Trader Feedback: 0
Default

Quote:
Originally Posted by Samstag
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?
Didn't this describe what I wanted to to pretty good?

Quote:
Originally Posted by SodR
Code:
 printTextScreen( 10, 10, "%s" ,src);
The thing was that I didn't understod that your lib worked with ascii. But now I know, thanks!

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).

Last edited by SodR; 04-26-2006 at 08:43 AM..
SodR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 08:43 AM   #205
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

Quote:
Originally Posted by Samstag
Doh! I keep crediting that to you. Any idea who wrote it originally?here.
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.

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
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL]

[CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER]

Last edited by Psilocybeing; 04-26-2006 at 08:46 AM..
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 09:38 AM   #206

Developer
 
Join Date: Oct 2005
Posts: 408
Trader Feedback: 0
Default

Quote:
Originally Posted by SodR
Didn't this describe what I wanted to to pretty good?



The thing was that I didn't understod that your lib worked with ascii. But now I know, thanks!

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).
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.
Samstag is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 09:59 AM   #207

Developer
 
SodR's Avatar
 
Join Date: Sep 2005
Location: Sweden
Posts: 941
Trader Feedback: 0
Default

Samstag: When I try to compile with your lib I always get this error:

Code:
 
flib.h:27: error: syntax error before 'color'
flib.h:33: error: syntax error before 'Image'
What is wrong? I haven't even touched flib.h...
SodR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 10:11 AM   #208

Developer
 
Join Date: Oct 2005
Posts: 408
Trader Feedback: 0
Default

Quote:
Originally Posted by SodR
Samstag: When I try to compile with your lib I always get this error:

Code:
 
flib.h:27: error: syntax error before 'color'
flib.h:33: error: syntax error before 'Image'
What is wrong? I haven't even touched flib.h...
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.

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.

Last edited by Samstag; 04-26-2006 at 10:24 AM..
Samstag is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 11:01 AM   #209
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

Quote:
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.
Sorry to butt in, but what new features?
I backed up the whole op system with cygwin installed, so it shouldn't be a problem
going back to the current installation.
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 10:54 PM   #210

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

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.
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
c or c , c++ , c/c++ , code , coding , c_language , programming , psp , psp programming , thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 04:59 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us