[ANN] Python for PSP
[ANN] Python for PSP
is ready, and the PSP modules are somewhat usable. Downloads and documentation here:
http://fraca7.free.fr/pythonpsp/
http://fraca7.free.fr/pythonpsp/
php is not as good as python as standalone language, it's mainly used for web applications, an intresting stuff can be porting spidermonkey js engine, I've yet made a js shell with addons command for win32/unix, I may look for a psp port, I can re-use python psp module and convert it for use with js
psp python idea
why not porting pygame to python/psp. this lib is a frontend to sdl and is growing in popularity : there are more and more games created with it. (http://www.pygame.org)
-
- Posts: 10
- Joined: Tue Oct 18, 2005 6:47 pm
Transformations are a half-assed attempt to generalize pixel-based effects on an image, or the screen. Since they operate pixel by pixel and each pixel may be affected arbitrarily through a user-defined callback, there is no way it can be hardware accelerated. It's only intended to pre-calculate some sophisticated visual effects.
As a matter of fact, I don't even know if this class will make it in the final release, I'm not sure it's actually of any use in practice :)
I'll update the wiki tomorrow with detailed information and examples of the stuff that is not covered int the tutorial, including tranformations.
As a matter of fact, I don't even know if this class will make it in the final release, I'm not sure it's actually of any use in practice :)
I'll update the wiki tomorrow with detailed information and examples of the stuff that is not covered int the tutorial, including tranformations.
-
- Posts: 10
- Joined: Tue Oct 18, 2005 6:47 pm
Any hints on how to build Python? I put together this command line but I just get errors:
CXX=psp-g++ LDFLAGS="-L`psp-config --pspsdk-path`/lib -lstdc++ -lpsplibc -lpspkernel -lpspuser" ./configure --host=psp --prefix=`psp-config --psp-prefix`
...
psp-gcc -c -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Modules/python.o Modules/python.c
psp-gcc: unrecognized option '-no-cpp-precomp'
cc1: error: unrecognized command line option "-Wno-long-double"
make: *** [Modules/python.o] Error 1
See http://fraca7.free.fr/pspwiki/doku.php?id=installation, "Building Python for PSP"
Ok i just recently d-loaded the python interpreter for PSP and i want to contribute to the scene but I cannot seem to find anywhere a PSP2D module that is for PSP. I cannot compile one but would like to develope in Python. can anyone please post a link or tell me where to get it. I went to the PSP Python wiki and looked all over with no luck for d-load anything but source code.
I know that the psp-python site is down temporarily for construction, but has anyone mirrored the old site or made files available for doing development in the interim while the "official" site is down?
I'd like to try some PSP development and python would be my preferred language. Based on googling and searching here, it seems like the port was pretty stable/usable before the site went down.
Thanks for any info/ideas!! :)
I'd like to try some PSP development and python would be my preferred language. Based on googling and searching here, it seems like the port was pretty stable/usable before the site went down.
Thanks for any info/ideas!! :)
Can VPython be used with this?
http://www.vpython.org/
http://www.vpython.org/
Well, I'm glad I got the stuff when I did (Jan 11, 2007). Hopefully it isn't down long.Elric wrote:I know that the psp-python site is down temporarily for construction, but has anyone mirrored the old site or made files available for doing development in the interim while the "official" site is down?
I'd like to try some PSP development and python would be my preferred language. Based on googling and searching here, it seems like the port was pretty stable/usable before the site went down.
Thanks for any info/ideas!! :)
I play the solitaire game that was on that site quite often. It's definately stable.
Anyone have a pointer to a spot where the last stable build can be downloaded while the main site is down? Thanks!sakya wrote:Hi!The last release fixed a memory leak in fonts, but broke drawing fonts over images....but it's stable. :)J.F. wrote:I play the solitaire game that was on that site quite often. It's definately stable.
Ciaooo
Sakya
Hi!
It's not the "original" release...I've only converted it for FW 1.50 and added the icon.
http://www.MegaShare.com/112221
Ciaooo
Sakya
You can download from here the latest eboot with a test script that shows the font bug. :)Elric wrote:Anyone have a pointer to a spot where the last stable build can be downloaded while the main site is down? Thanks!
It's not the "original" release...I've only converted it for FW 1.50 and added the icon.
http://www.MegaShare.com/112221
Ciaooo
Sakya
I just fixed the font drawing bug. Binary release at the usual place:
http://fraca7.free.fr/EBOOT.PBP
http://fraca7.free.fr/EBOOT.PBP
I just fixed the font drawing bug. Binary release at the usual place:
http://fraca7.free.fr/EBOOT.PBP
http://fraca7.free.fr/EBOOT.PBP
Hi!
I think I found some bugs in this release.
Check this script:
1.When you start a new thread (press X) the main thread hangs waiting for the child thread to finish.
2.Sometimes when the script starts the video is corrupted. Launching the application with the wifi switch on seems to fix this problem. Avoiding to import pspnet seems to fix this problem. I think it's the function to check the wlan switch. I had the same problem trying to add this function on my own.
Many thanks for your work.
Ciaooo
Sakya
I think I found some bugs in this release.
Check this script:
Code: Select all
import thread
import psp2d
import pspnet
from time import time, sleep
from pspos import freemem, getclock, setclock, getbus, setbus, battery
msg = ""
clock = getclock()
def newThread(pNumber):
global msg
msg = "Started thread " + str(pNumber)
sleep(2)
msg = "Finished thread " + str(pNumber)
def connectionCB(state):
global msg
msg = "STATE: " + str(state)
#Main:
screen = psp2d.Screen()
font = psp2d.Font('font.png')
background_image = psp2d.Image(480,272)
background_image.clear(psp2d.Color(0,0,0))
oldPad = None
number = 0
padTime = None
while True:
screen.blit(background_image, 0, 0, background_image.width, background_image.height, 0, 0)
font.drawText(screen, 20, 120, "CLOCK SET TO: " + str(clock))
font.drawText(screen, 20, 140, "TIME: " + str(time()))
font.drawText(screen, 20, 160, "MESSAGE: " + msg)
newText = "MEM: " + str(freemem() / 1024) + "kb CPU:" + str(getclock()) + "Mhz BUS:" + str(getbus()) + "Mhz BATT:" + str(battery()[3]) + "%"
font.drawText(screen, 0, 0, newText)
screen.swap()
pad = psp2d.Controller()
if pad != oldPad \
and not padTime or time() - padTime >= 0.2:
padTime = time()
if pad.cross:
number += 1
thread.start_new_thread(newThread, (number,))
elif pad.circle:
msg = "Connecting"
pspnet.connectToAPCTL(2, connectionCB)
elif pad.r and clock < 333:
clock += 1
setclock(clock)
elif pad.l and clock > 0:
clock -= 1
setclock(clock)
oldPad = pad
2.Sometimes when the script starts the video is corrupted. Launching the application with the wifi switch on seems to fix this problem. Avoiding to import pspnet seems to fix this problem. I think it's the function to check the wlan switch. I had the same problem trying to add this function on my own.
Many thanks for your work.
Ciaooo
Sakya