Page 1 of 2

program in c on psp "homebrew snake"

Posted: Wed Dec 20, 2017 9:56 am
by yave
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;)

Re: program in c on psp "homebrew snake"

Posted: Sun Dec 24, 2017 5:13 am
by ivo2376
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!

Re: program in c on psp "homebrew snake"

Posted: Sun Dec 24, 2017 5:18 am
by ivo2376
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

Re: program in c on psp "homebrew snake"

Posted: Sun Dec 24, 2017 12:48 pm
by yave
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.

Re: program in c on psp "homebrew snake"

Posted: Sun Dec 24, 2017 4:51 pm
by ivo2376
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

Re: program in c on psp "homebrew snake"

Posted: Sun Dec 24, 2017 5:09 pm
by yave
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?

Re: program in c on psp "homebrew snake"

Posted: Sun Dec 24, 2017 5:22 pm
by ivo2376
https://www.sendspace.com/file/p0uvy0
have phun porting snake to tiff or to hello sample

Re: program in c on psp "homebrew snake"

Posted: Sun Dec 24, 2017 8:19 pm
by yave
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.

Re: program in c on psp "homebrew snake"

Posted: Sun Dec 24, 2017 11:07 pm
by ivo2376
i guess nobody is really here to solve your main.c prob lol

Re: program in c on psp "homebrew snake"

Posted: Sun Dec 24, 2017 11:09 pm
by ivo2376
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