Seite 7 von 340 ErsteErste 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 57 107 ... LetzteLetzte
Zeige Ergebnis 181 bis 210 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; Umm... I've heard of the ogg player lib and a couple of other libs out there, but I have no ...

  
  1. #181
    QJ Gamer Bronze
    Points: 5.650, Level: 48
    Level completed: 50%, Points required for next Level: 100
    Overall activity: 0%

    Registriert seit
    Feb 2006
    Beiträge
    338
    Points
    5.650
    Level
    48
    Downloads
    0
    Uploads
    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?



  2. #182
    Developer
    Points: 10.075, Level: 67
    Level completed: 7%, Points required for next Level: 375
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Ort
    Sweden
    Beiträge
    941
    Points
    10.075
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von 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!

  3. #183
    QJ Gamer Bronze
    Points: 5.650, Level: 48
    Level completed: 50%, Points required for next Level: 100
    Overall activity: 0%

    Registriert seit
    Feb 2006
    Beiträge
    338
    Points
    5.650
    Level
    48
    Downloads
    0
    Uploads
    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*

  4. #184
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    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

  5. #185
    QJ Gamer Green
    Points: 6.586, Level: 53
    Level completed: 18%, Points required for next Level: 164
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    766
    Points
    6.586
    Level
    53
    Downloads
    0
    Uploads
    0

    Standard

    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]

  6. #186
    Points: 4.297, Level: 41
    Level completed: 74%, Points required for next Level: 53
    Overall activity: 0%

    Registriert seit
    Apr 2006
    Beiträge
    49
    Points
    4.297
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    Has anyone toyed with or have examples of pspgl code?

  7. #187
    QJ Gamer Bronze
    Points: 5.650, Level: 48
    Level completed: 50%, Points required for next Level: 100
    Overall activity: 0%

    Registriert seit
    Feb 2006
    Beiträge
    338
    Points
    5.650
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von 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 :icon_bigg

  8. #188
    Art
    Art ist offline
    Bush Programmer
    Points: 60.149, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Beiträge
    3.658
    Points
    60.149
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    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.

  9. #189
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    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


  10. #190
    Art
    Art ist offline
    Bush Programmer
    Points: 60.149, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Beiträge
    3.658
    Points
    60.149
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    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.

  11. #191
    Mushroom Man
    Points: 7.283, Level: 56
    Level completed: 67%, Points required for next Level: 67
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Ort
    UK
    Beiträge
    318
    Points
    7.283
    Level
    56
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von 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 :icon_bigg
    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 :)
    Geändert von Psilocybeing (04-24-2006 um 12:20 PM Uhr)

  12. #192
    Art
    Art ist offline
    Bush Programmer
    Points: 60.149, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Beiträge
    3.658
    Points
    60.149
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    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.

  13. #193
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

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

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


  14. #194
    Developer
    Points: 10.075, Level: 67
    Level completed: 7%, Points required for next Level: 375
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Ort
    Sweden
    Beiträge
    941
    Points
    10.075
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    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() ??

  15. #195
    Mushroom Man
    Points: 7.283, Level: 56
    Level completed: 67%, Points required for next Level: 67
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Ort
    UK
    Beiträge
    318
    Points
    7.283
    Level
    56
    Downloads
    0
    Uploads
    0

    Standard

    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.

  16. #196
    Developer
    Points: 7.058, Level: 55
    Level completed: 54%, Points required for next Level: 92
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    408
    Points
    7.058
    Level
    55
    Downloads
    0
    Uploads
    0

    Standard

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

  17. #197
    QJ Gamer Silver
    Points: 14.944, Level: 79
    Level completed: 19%, Points required for next Level: 406
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    Montana
    Beiträge
    954
    Points
    14.944
    Level
    79
    Downloads
    0
    Uploads
    0

    Standard

    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)

  18. #198
    Developer
    Points: 10.075, Level: 67
    Level completed: 7%, Points required for next Level: 375
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Ort
    Sweden
    Beiträge
    941
    Points
    10.075
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    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

  19. #199
    Developer
    Points: 7.058, Level: 55
    Level completed: 54%, Points required for next Level: 92
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    408
    Points
    7.058
    Level
    55
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von 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);

  20. #200
    Developer
    Points: 10.075, Level: 67
    Level completed: 7%, Points required for next Level: 375
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Ort
    Sweden
    Beiträge
    941
    Points
    10.075
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

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

  21. #201
    Developer
    Points: 7.058, Level: 55
    Level completed: 54%, Points required for next Level: 92
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    408
    Points
    7.058
    Level
    55
    Downloads
    0
    Uploads
    0

    Standard

    That's where you've lost me. What exactly do you mean by "ascii"?

  22. #202
    Developer
    Points: 10.075, Level: 67
    Level completed: 7%, Points required for next Level: 375
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Ort
    Sweden
    Beiträge
    941
    Points
    10.075
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Samstag
    That's where you've lost me. What exactly do you mean by "ascii"?
    Ascii

  23. #203
    Developer
    Points: 7.058, Level: 55
    Level completed: 54%, Points required for next Level: 92
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    408
    Points
    7.058
    Level
    55
    Downloads
    0
    Uploads
    0

    Standard

    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?

  24. #204
    Developer
    Points: 10.075, Level: 67
    Level completed: 7%, Points required for next Level: 375
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Ort
    Sweden
    Beiträge
    941
    Points
    10.075
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von 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?

    Zitat Zitat von 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).
    Geändert von SodR (04-26-2006 um 07:43 AM Uhr)

  25. #205
    Mushroom Man
    Points: 7.283, Level: 56
    Level completed: 67%, Points required for next Level: 67
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Ort
    UK
    Beiträge
    318
    Points
    7.283
    Level
    56
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von 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 :)
    Geändert von Psilocybeing (04-26-2006 um 07:46 AM Uhr)

  26. #206
    Developer
    Points: 7.058, Level: 55
    Level completed: 54%, Points required for next Level: 92
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    408
    Points
    7.058
    Level
    55
    Downloads
    0
    Uploads
    0

    Standard

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

  27. #207
    Developer
    Points: 10.075, Level: 67
    Level completed: 7%, Points required for next Level: 375
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Ort
    Sweden
    Beiträge
    941
    Points
    10.075
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

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

  28. #208
    Developer
    Points: 7.058, Level: 55
    Level completed: 54%, Points required for next Level: 92
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    408
    Points
    7.058
    Level
    55
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von 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.
    Geändert von Samstag (04-26-2006 um 09:24 AM Uhr)

  29. #209
    Art
    Art ist offline
    Bush Programmer
    Points: 60.149, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Beiträge
    3.658
    Points
    60.149
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    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.

  30. #210
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    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



 
Seite 7 von 340 ErsteErste 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 57 107 ... LetzteLetzte

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 09:15 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .