Advertising (This ad goes away for registered users. You can Login or Register)

program in c on psp "homebrew snake"

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
yave
Posts: 5
Joined: Tue Dec 19, 2017 9:25 pm

program in c on psp "homebrew snake"

Post by yave » Wed Dec 20, 2017 9:56 am

Hello,

I'm learning to develop on classic psp, but a lot of tutorials and sources no longer exist :o

All tools (pspsdk) are installed, I know compiled an eboot.pbp and run it on my psp.

However I would need help to understand all the methods, for example I would like to display (a bit like a snake) a cursor and just move it with the pad or the stock.
But I can not find a clear and up-to-date doc on this point.

move shapes, put a picture in the background, colored a text, made menu etc, in short the basics ... I do not ask for code done! But a boost to learn.

Thank you very much for your help with this great project!

EDIT: up

157 views and no answer?

a gesture, thank you;)
Advertising
Last edited by NNNRT on Mon Dec 25, 2017 8:04 pm, edited 1 time in total.
Reason: merged double post

ivo2376
Posts: 30
Joined: Wed Jan 14, 2015 10:17 pm

Re: program in c on psp "homebrew snake"

Post by ivo2376 » Sun Dec 24, 2017 5:13 am

go to sololearn register and login
click on profileselect courses
and start learning
https://www.sololearn.com/

for the snake sourcelookup popular
codes playground
and have fun porting them to the sdk

allso psp-samples and vita samples are an excellent start!
Advertising

ivo2376
Posts: 30
Joined: Wed Jan 14, 2015 10:17 pm

Re: program in c on psp "homebrew snake"

Post by ivo2376 » Sun Dec 24, 2017 5:18 am

for compiling the samples
the psp samples could use
one version is cygwin
one version is msys2
one version is linux
and run psptoolchain
or just skip that
and run minpspw
or devkitpsp
or how u like it to compile ur psp samples

for vita the same environments but with vdpm
could allso need a port minvitaw or vitadevkit lol
how u flavor or like it

yave
Posts: 5
Joined: Tue Dec 19, 2017 9:25 pm

Re: program in c on psp "homebrew snake"

Post by yave » Sun Dec 24, 2017 12:48 pm

Hello,
@ ivo2376:
The link that you give me concerns only the language c and unless I am mistaken, I do not see any example concerning the PSP.
But I wish as already explained in my post above, learn the development on PSP with the language c / c ++ therefore, libraries pspkernel types or others.
I'm just asking for the basics to manipulate, to move a cursor on the screen of the PSP, or to display a text with different colors at different positions, in short the basis of what.

I still want to remember that I have installed all the functional tools on my PC, I can compile (example a hello world) but I would just like to discover native functions to the PSP

Thank you for your help and interest.

I wish everyone a merry Christmas!

Edit:
if a moderator goes through there, why have I deleted my last post?

Because my last message was purely and simply deleted without reason
I had just added my whole main.c for you to see why my application crash on my PSP.

ivo2376
Posts: 30
Joined: Wed Jan 14, 2015 10:17 pm

Re: program in c on psp "homebrew snake"

Post by ivo2376 » Sun Dec 24, 2017 4:51 pm

i'll give some h.bin examples based on hbl ancestors in psp vita etc
turn off all antivirus as its only gonna conpromiscunis ur code and bins compiled
it scamples pkg and pup and dumpers and nor/nand flesh
there is simple ways on windows called msys2 or cygwin or minpspw or devkitpsp

if this usb disk works seems this usb broke yesterday
i'll try some more
the example covers compiling a h.bin from a.out

yave
Posts: 5
Joined: Tue Dec 19, 2017 9:25 pm

Re: program in c on psp "homebrew snake"

Post by yave » Sun Dec 24, 2017 5:09 pm

I do not see where you are coming from;)
i use pspsdk more successfully oslib and i get very well compiled ...
My osucis come from the fact that oslib does not recognize certraines method at the compilation, as for example
oslLoadImageFilePNG
that does not work, but if I use oslLoadImageFileJPG

there, it works ... and I have lots of other errors in the compilation with this bookstore, where do I start my question, what stable graphical livrebire and not obsolete used?

ivo2376
Posts: 30
Joined: Wed Jan 14, 2015 10:17 pm

Re: program in c on psp "homebrew snake"

Post by ivo2376 » Sun Dec 24, 2017 5:22 pm

https://www.sendspace.com/file/p0uvy0
have phun porting snake to tiff or to hello sample

yave
Posts: 5
Joined: Tue Dec 19, 2017 9:25 pm

Re: program in c on psp "homebrew snake"

Post by yave » Sun Dec 24, 2017 8:19 pm

in fact you downloaded me the basic example of pspsdk :) C:\pspsdk\psp\sdk\samples

but I still do not see the answer to my question.

ivo2376
Posts: 30
Joined: Wed Jan 14, 2015 10:17 pm

Re: program in c on psp "homebrew snake"

Post by ivo2376 » Sun Dec 24, 2017 11:07 pm

i guess nobody is really here to solve your main.c prob lol

ivo2376
Posts: 30
Joined: Wed Jan 14, 2015 10:17 pm

Re: program in c on psp "homebrew snake"

Post by ivo2376 » Sun Dec 24, 2017 11:09 pm

maybe have libpng installed via libraries libchain installer script after psptoolchain is done
for oslib maybe allso use a version or a patch u know it works

Post Reply

Return to “Programming and Security”