Seite 303 von 340 ErsteErste ... 203 253 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 ... LetzteLetzte
Zeige Ergebnis 9.061 bis 9.090 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; Zitat von Digikid13 I still need a way to dev for psp without cgwin emulator. There are several ways about ...

  
  1. #9061
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Digikid13 Beitrag anzeigen
    I still need a way to dev for psp without cgwin emulator.
    There are several ways about this.

    - Keep Cygwin to compile and update the toolchain but setup an IDE with the toolchain so you can build directly from the IDE without Cygwin running.
    - Download a precompiled toolchain and setup an IDE with it so you can bulid directly from the IDE.

    I have done this before but it requires some knowledge on how the toolchain works and how the current makefile creates the PBP.

    Search on this forum on how to setup Code::Blocks with DevkitPSP to get you started.



  2. #9062
    QJ Gamer Green
    Points: 5.646, Level: 48
    Level completed: 48%, Points required for next Level: 104
    Overall activity: 54,0%

    Registriert seit
    Sep 2007
    Beiträge
    743
    Points
    5.646
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von yaustar Beitrag anzeigen
    It is a matter of opinion but the general consensus is to learn programming and the language on the easiest platform possible to minimise the possible number of 'distractions' that get in the way.
    But a question, what happens when you don't have the particular platform that is useful for 'beginners?' When I first started out months ago, I think you said the same thing to me. You claim Windows is easiest, but the closest that some people might get to doing real programming might be on a more complicated platform.

    You call it the general consensus, but I have a good feeling that its not. Yeah, Window's is the pretty much mainstream platform atm, but that doesn't mean everyone uses it.

    What if a beginner wanted to learn programming, but didn't own any computer, nor was able to purchase one? Of course he had a small platform-type device (in this case, a PSP) to work with. If all he could code for, was the PSP.... wouldn't he take whatever advantage he could take?

    The point of the story is that you use the resources you have. And that you don't have to deal with what everyone else tells you whats best, and whats not.
    [QUOTE=Archaemic]
    [size=1]My manwich![/size][/QUOTE]
    [QUOTE=mohaas05]lol i can't say d*ck?[/QUOTE]

  3. #9063
    Banned for LIFE
    Points: 18.744, Level: 86
    Level completed: 79%, Points required for next Level: 106
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    East London, England
    Beiträge
    2
    Points
    18.744
    Level
    86
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von spike021 Beitrag anzeigen
    What if a beginner wanted to learn programming, but didn't own any computer
    You need a computer to compile your code genius.

  4. #9064
    QJ Gamer Green
    Points: 5.875, Level: 49
    Level completed: 63%, Points required for next Level: 75
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Ort
    In your pocket.
    Beiträge
    192
    Points
    5.875
    Level
    49
    My Mood
    Angelic
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von yaustar Beitrag anzeigen
    There are several ways about this.

    - Keep Cygwin to compile and update the toolchain but setup an IDE with the toolchain so you can build directly from the IDE without Cygwin running.
    - Download a precompiled toolchain and setup an IDE with it so you can bulid directly from the IDE.

    I have done this before but it requires some knowledge on how the toolchain works and how the current makefile creates the PBP.

    Search on this forum on how to setup Code::Blocks with DevkitPSP to get you started.
    Thanks I'm going to try it now, and cgwin and toolchain didn't work for me that is why I needed a different way.
    AIM: Digikid91 | PSN: Digikid13 | GaiaOnline: Digikid13

  5. #9065
    QJ Gamer Blue
    Points: 3.795, Level: 38
    Level completed: 97%, Points required for next Level: 5
    Overall activity: 27,0%

    Registriert seit
    Jul 2007
    Beiträge
    296
    Points
    3.795
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    It didn't work for you, or you just couldn't figure what you did wrong while installing it?

  6. #9066
    Points: 2.658, Level: 31
    Level completed: 39%, Points required for next Level: 92
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    47
    Points
    2.658
    Level
    31
    Downloads
    0
    Uploads
    0

    Standard

    Yeah, I used the VS debugger in college. That's how a debugger ought to work. Now if I can just get psplink to run my programs correctly I can use GDB. XD

    Digikid, why isn't cygwin working for you? What's it doing?

  7. #9067
    QJ Gamer Blue
    Points: 4.268, Level: 41
    Level completed: 59%, Points required for next Level: 82
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    497
    Points
    4.268
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    Hey does anybody know how to change what the home button does when using OSLib?? I've looked in the OSLib documentation, but haven't had any luck yet. I would really appreciate it, thanks.

  8. #9068
    Banned for LIFE
    Points: 18.744, Level: 86
    Level completed: 79%, Points required for next Level: 106
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    East London, England
    Beiträge
    2
    Points
    18.744
    Level
    86
    Downloads
    0
    Uploads
    0

    Standard

    If you dont implement the callbacks the home button will do nothing anyway. So check the functions for key presses in oslib. If there is one for home then use it.

  9. #9069
    QJ Gamer Blue
    Points: 4.268, Level: 41
    Level completed: 59%, Points required for next Level: 82
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    497
    Points
    4.268
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    acctually I don't need to set all of the call backs in the beggi ning with OSLib to make the home button work, but I'll look into the control functions, and see what i can come up with, thanks.

  10. #9070
    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

    IIRC, you need kernel mode to use the home button for other uses than home the button
    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

  11. #9071
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von spike021 Beitrag anzeigen
    What if a beginner wanted to learn programming, but didn't own any computer, nor was able to purchase one?
    Then what do you code on? Sure, you can script on your PSP and fine, given that there are no other choices, you play the hand you are dealt.

    But a question, what happens when you don't have the particular platform that is useful for 'beginners?' When I first started out months ago, I think you said the same thing to me. You claim Windows is easiest, but the closest that some people might get to doing real programming might be on a more complicated platform.
    I don't see how not having the resources changes the opinion on the 'easiest' platform.
    Geändert von yaustar (09-06-2008 um 02:58 PM Uhr)

  12. #9072
    QJ Gamer Blue
    Points: 4.268, Level: 41
    Level completed: 59%, Points required for next Level: 82
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    497
    Points
    4.268
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    how do i use kernel mode???

  13. #9073
    QJ Gamer Silver
    Points: 8.475, Level: 62
    Level completed: 9%, Points required for next Level: 275
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Perth, Scotland
    Beiträge
    1.094
    Points
    8.475
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von PSProgramer Beitrag anzeigen
    how do i use kernel mode???
    Export from a kernel mode prx (0x1000).

  14. #9074
    QJ Gamer Blue
    Points: 4.268, Level: 41
    Level completed: 59%, Points required for next Level: 82
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    497
    Points
    4.268
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    hmm, ok, thanks.

  15. #9075
    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

    not possible on 3xx fw, will it is, but you'd need to start a prx first, and it's far more complicated(not rly to those who know how to do it) than i've ever explored, however i've never needed the home button so...
    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

  16. #9076
    QJ Gamer Blue
    Points: 4.268, Level: 41
    Level completed: 59%, Points required for next Level: 82
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    497
    Points
    4.268
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    yeah, wasn't really a nessecity, just an idea i had. I probobly will not mess with it right now.

  17. #9077
    QJ Gamer Silver
    Points: 8.475, Level: 62
    Level completed: 9%, Points required for next Level: 275
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Perth, Scotland
    Beiträge
    1.094
    Points
    8.475
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slicer4ever Beitrag anzeigen
    not possible on 3xx fw, will it is, but you'd need to start a prx first, and it's far more complicated(not rly to those who know how to do it) than i've ever explored, however i've never needed the home button so...
    It's not complex at all...


    Code:
    SceUID modid = pspSdkLoadStartModule("somekernelprx", 1);
    Returns < 0 on Error.

  18. #9078
    QJ Gamer Green
    Points: 5.646, Level: 48
    Level completed: 48%, Points required for next Level: 104
    Overall activity: 54,0%

    Registriert seit
    Sep 2007
    Beiträge
    743
    Points
    5.646
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von yaustar
    Then what do you code on? Sure, you can script on your PSP and fine, given that there are no other choices, you play the hand you are dealt.
    But the part I left out, is that they may have the opportunity to program some simple apps on a school computer, or work computer. But as it's not personally theirs, they don't have the full allowance on what they can do.

    Although its not a problem anymore for myself because I obtained a cheap Compaq Presario laptop used.

    Zitat Zitat von yaustar
    I don't see how not having the resources changes the opinion on the 'easiest' platform.
    Actually, it does. Maybe someone is from a really poor country, but they get the opportunity to go to a foreign university/school. That school might not have Windows, and the person might not have enough money to purchase their own.
    [QUOTE=Archaemic]
    [size=1]My manwich![/size][/QUOTE]
    [QUOTE=mohaas05]lol i can't say d*ck?[/QUOTE]

  19. #9079
    QJ Gamer Silver
    Points: 14.087, Level: 77
    Level completed: 10%, Points required for next Level: 363
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Ort
    Germany
    Beiträge
    926
    Points
    14.087
    Level
    77
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von spike021 Beitrag anzeigen
    But the part I left out, is that they may have the opportunity to program some simple apps on a school computer, or work computer. But as it's not personally theirs, they don't have the full allowance on what they can do.
    As long as you don't have your own PC to play around with, you won't come very far concerning programming anyway... so that's not really an argument IMO. If you just want to sneak into programming concepts from a school PC, you really shouldn't choose C as your first language, at least unless the PC has an IDE pre installed (in which case there's just yet another reason to keep at PC programming rather then aiming at PSP). There's things like basic, lua or other scripting languages that are easily setup to have your code being run. Or you could start with some web programming in PHP. There's lots of easier choices in that case.


    Actually, it does. Maybe someone is from a really poor country, but they get the opportunity to go to a foreign university/school. That school might not have Windows, and the person might not have enough money to purchase their own.
    You still don't get the point, do you? It's not a thing about Windows or LINUX or OSX or any specific OS at all. It's about having a PC (that you need anyway to get in contact with programming, as I doubt anyone will hear about 'programming' and just be interested if he never really used a PC to some extent) which is easily setup to compile C code for PC (if you have the permissions), and hence learn programming IN that environment first. It's the easiest solution to avoid overcomplicating things and not having to deal with things that are not specific to basic programming (special hardware and hence behaviour, special libraries, etc.).
    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.

  20. #9080
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Raphael Beitrag anzeigen
    ...
    I agree. The lack of resources does not change what is the easiest path, it just changes the paths that are available.

  21. #9081
    QJ Gamer Bronze
    Points: 6.517, Level: 52
    Level completed: 84%, Points required for next Level: 33
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Ort
    Ireland
    Beiträge
    978
    Points
    6.517
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    Is there and Sceio tutorials or samples?

    I mainly want to copy a file from flash0 and paste it in a folder in ms0:/

    Thanks for help.

  22. #9082
    Banned for LIFE
    Points: 18.744, Level: 86
    Level completed: 79%, Points required for next Level: 106
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    East London, England
    Beiträge
    2
    Points
    18.744
    Level
    86
    Downloads
    0
    Uploads
    0

    Standard

    Look
    At
    The
    Headers

  23. #9083
    QJ Gamer Bronze
    Points: 6.517, Level: 52
    Level completed: 84%, Points required for next Level: 33
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Ort
    Ireland
    Beiträge
    978
    Points
    6.517
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    arrgh you make things sound so simple :) lol

  24. #9084
    QJ Gamer Silver
    Points: 8.475, Level: 62
    Level completed: 9%, Points required for next Level: 275
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Perth, Scotland
    Beiträge
    1.094
    Points
    8.475
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von MiKeY188 Beitrag anzeigen
    arrgh you make things sound so simple :) lol
    Well, they relatively are....

    http://psp.jim.sh/pspsdk-doc/group__FileIO.html

    Read pl0x

  25. #9085
    QJ Gamer Green
    Points: 5.875, Level: 49
    Level completed: 63%, Points required for next Level: 75
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Ort
    In your pocket.
    Beiträge
    192
    Points
    5.875
    Level
    49
    My Mood
    Angelic
    Downloads
    0
    Uploads
    0

    Standard

    Um im not really sure what happened I think that it was something with the svn update. also some folders were missing.
    -=Double Post Merge =-
    Zitat Zitat von _dysfunctional Beitrag anzeigen
    It didn't work for you, or you just couldn't figure what you did wrong while installing it?
    That too XP I just read what it said. The directions.
    Geändert von Digikid13 (09-09-2008 um 10:40 AM Uhr) Grund: Automerged Doublepost
    AIM: Digikid91 | PSN: Digikid13 | GaiaOnline: Digikid13

  26. #9086
    No longer a community member.
    Points: 46.662, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Beiträge
    22
    Points
    46.662
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von MiKeY188 Beitrag anzeigen
    Is there and Sceio tutorials or samples?

    I mainly want to copy a file from flash0 and paste it in a folder in ms0:/

    Thanks for help.
    There's some examples on psp-programming.com in the wiki. Additionally, I believe that harleyg elaborated on those wiki posts in the forums (at psp-programming).

  27. #9087
    Points: 2.381, Level: 29
    Level completed: 54%, Points required for next Level: 69
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Sep 2008
    Ort
    Everywhere
    Beiträge
    11
    Points
    2.381
    Level
    29
    Downloads
    0
    Uploads
    0

    Standard Alpha image help in gum

    Okay, I've been stuck on this for a while I have a png and it has an alpha layer.
    When i draw it in 2d its fine.

    I've been trying to rotate it. So I textured it to a quad.

    But on the quad in 3d the outlines of the solid image are stretched over the alpha parts.

    So basically how do you make a textured alpha image, draw its alpha channel.

  28. #9088
    Points: 2.658, Level: 31
    Level completed: 39%, Points required for next Level: 92
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    47
    Points
    2.658
    Level
    31
    Downloads
    0
    Uploads
    0

    Standard

    @cutch:
    Are you saying that there's an outline being drawn around the object, like it's being blended with whatever's behind it around the edges? I ran into a similar problem recently. I haven't tested it yet, but I think you can solve the problem by disabling blending before drawing the primitive (just set your alpha test to reject zero-alpha pixels) and then just turn it back on when you're done with the rotated primitives. The only real problem there is that you lose blending. I think the 'proper' way to do it would be to use the stencil buffer but my stencil-fu is still in the theoretical area until I finish reading this stupid book, so I can't help you there.

    Am I understanding what you're saying correctly?

    @Digikid13:
    If you PM me maybe I can walk through the install with you and we can find/fix the problem?

    @PSP gurus:
    Does anyone know a link to some info about the PSAR format that I can actually use to write programs that deal with the format? I've been googling around and haven't found any format-specific info. I thought about trying to get ahold of Red Squirrel or PspPet but I thought I'd ask here first to avoid bothering them. I don't need any crypt info. I just want to know if the format uses any compression/etc and how the data in it is stored. I'd like to create my own PSAR files to store metadata in and I just want to know if I should try to use the existing format or just create my own.

  29. #9089
    QJ Gamer Bronze
    Points: 4.543, Level: 42
    Level completed: 97%, Points required for next Level: 7
    Overall activity: 0%

    Registriert seit
    Jun 2007
    Beiträge
    232
    Points
    4.543
    Level
    42
    Downloads
    0
    Uploads
    0

  30. #9090
    Points: 2.658, Level: 31
    Level completed: 39%, Points required for next Level: 92
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    47
    Points
    2.658
    Level
    31
    Downloads
    0
    Uploads
    0

    Standard

    Thanks, PN. I can't tell from this whether the format is ridiculous or if this is just people experimenting with it. I'll just proceed with the custom format then.


 

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 08:56 PM Uhr.

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