Random Homebrew: 69 Stopper
Stop a counter as close to 69 as possible
Friends: Coding 'n Cracking - Nymphaea - PS3 Forum - darkforestgroup - daxhordes.org - Tgames - coldbird - gopsp.it - pspstation.org - prometheus - hgoel.info - MakeSmartTV - ps vita

[WIP] pymenu, need beta-testers

Most of the homebrews discussed in this forum can be downloaded here

Re: [WIP] pymenu, need beta-testers

Postby Xian Nox » Sat Jun 16, 2012 2:17 pm

Actually, I think the idea to make a python menu is quite a good one, mostly because it allows very easy modding for end-users (python is newbie-safer than C/C++, doesn't require compiling, can be edited on a PSP too). It's obvious it's going to be slower on a PSP, but the performance difference shouldn't be too noticeable.
Spoiler
Disturbed0ne wrote:PS. EVERYONE should like girls. they're just so soft. :oops:
Moderator 80% corrupt. That's funny, I don't feel corrupt. In fact, I feel pretty good.
What looks like a blog of mine can be seen here.
User avatar
Xian Nox
Moderator
 
Posts: 6034
Joined: Fri Nov 05, 2010 5:27 pm
Location: /home/xian/n-field

Re: [WIP] pymenu, need beta-testers

Postby Acid_Snake » Sat Jun 16, 2012 2:48 pm

Xian Nox wrote:Actually, I think the idea to make a python menu is quite a good one, mostly because it allows very easy modding for end-users (python is newbie-safer than C/C++, doesn't require compiling, can be edited on a PSP too). It's obvious it's going to be slower on a PSP, but the performance difference shouldn't be too noticeable.

Thank you :) , it's exactly what I wanted to say
"V2h5IGFyZSB5b3UgcmVhZGluZyBteSBzaWduYXR1cmU/\n".decode("base64")
My forum:
Console Heaven
My Homebrews:
pyMenu 0.3.2, multiBootMenu V3, PSvid 3.0, PSP Tools 0.2
User avatar
Acid_Snake
Moderator
 
Posts: 2050
Joined: Tue May 01, 2012 11:32 am
Location: Behind you!

Re: [WIP] pymenu, need beta-testers

Postby Dutt » Tue Jun 19, 2012 8:38 am

(Copied from another topic)
Acid_Snake wrote:copy the savedata back to a pc, you should have a file called pytrace.txt, post that file here

Hi Acid_Snake. I have copied back to Pc but the file pytrace.txt does not exist..
1. PS Vita Wifi 2.01 fw - Pro-V/Ark
1. PS Vita 3G 2.02 fw - Pro/CEF
User avatar
Dutt
HBL Tester
 
Posts: 297
Joined: Mon Jan 16, 2012 7:41 am
Location: Queensland, Australia

Re: [WIP] pymenu, need beta-testers

Postby Acid_Snake » Tue Jun 19, 2012 9:57 am

then that means the problem is in the interpreter, probably a syscall that is not available in the motorstorm exploit.
If you have a psp try the menu with hbl itself (it might be a bad download or a missing file).

edit: I'll download motorstom and try it myself

re-edit: I can't dl motorstom until tomorow, for now I've found that the module pspos is a trouble maker in sc3, so it's quite possible that it's crashing on motorstorm. If you don't mind messing with source code you can edit menu.py and find the following line near the beginning:
Code: Select all
import os, pspos, psp2d, shutil, time, zipfile, os.path, glob, getopt, random, re

just remove pspos and save:
Code: Select all
import os, psp2d, shutil, time, zipfile, random, re

Note that I removed other modules, this line of code is a copy-paste of another project and those modules are unused so it's safe to remove them and speed up a bit.
I'll keep you posted.
"V2h5IGFyZSB5b3UgcmVhZGluZyBteSBzaWduYXR1cmU/\n".decode("base64")
My forum:
Console Heaven
My Homebrews:
pyMenu 0.3.2, multiBootMenu V3, PSvid 3.0, PSP Tools 0.2
User avatar
Acid_Snake
Moderator
 
Posts: 2050
Joined: Tue May 01, 2012 11:32 am
Location: Behind you!

Re: [WIP] pymenu, need beta-testers

Postby Dutt » Wed Jun 20, 2012 7:57 am

Ok on PSP Without the changes it crash's the same as Vita But creates the file you want but has nothing in it.
After the changes it still does not load but it exits to the XMB. and creates the pytrace.txt
On Vita with the changes still crashes the same. Does not create the pytrace.txt file.

PSP pytrace.txt file.

Code: Select all
-------------- Python-PSP started Wed Jun 20 17:46:19 2012

Free memory: 1772800
PyPSP running in: ms0:/PSP/SAVEDATA/UCES012500000
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Search path: python.zip;ms0:/lib/python21.zip;ms0:/python/site-packages;ms0:/python

--------------------------------------------------------------------------------
1. PS Vita Wifi 2.01 fw - Pro-V/Ark
1. PS Vita 3G 2.02 fw - Pro/CEF
User avatar
Dutt
HBL Tester
 
Posts: 297
Joined: Mon Jan 16, 2012 7:41 am
Location: Queensland, Australia

Re: [WIP] pymenu, need beta-testers

Postby Acid_Snake » Wed Jun 20, 2012 8:21 am

If the pytrace is created and finishes then python works fine, but some code in my program makes it crash. You say it exits to xmb? try opening a file called path.txt at the root of your MS, if it says "quit" then the problem is in the menu. Try using the debug version:
script_dbg.zip
(211 Bytes) Downloaded 13 times

btw thanks for your help

edit: I just saw another unused trouble-making module: time. Here is the code without it.
Code: Select all
import os, psp2d, shutil, zipfile, random, re

I you look at previous post time.sleep made the system crash, so I removed it, but I forgot to remove it from imported modules. Maybe time does something when imported that causes the crashes.
"V2h5IGFyZSB5b3UgcmVhZGluZyBteSBzaWduYXR1cmU/\n".decode("base64")
My forum:
Console Heaven
My Homebrews:
pyMenu 0.3.2, multiBootMenu V3, PSvid 3.0, PSP Tools 0.2
User avatar
Acid_Snake
Moderator
 
Posts: 2050
Joined: Tue May 01, 2012 11:32 am
Location: Behind you!

Re: [WIP] pymenu, need beta-testers

Postby Dutt » Thu Jun 21, 2012 4:54 am

Hi Acid_Snake heres the results..
This is with the Time module With your debug version.
Code: Select all
-------------- Python-PSP started Thu Jun 21 14:42:33 2012
Free memory: 1772800
PyPSP running in: ms0:/PSP/SAVEDATA/UCES012500000
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Search path: python.zip;ms0:/lib/python21.zip;ms0:/python/site-packages;ms0:/python
Traceback (most recent call last):
  File "script.py", line 5, in <module>
    import menu
  File "ms0:/PSP/SAVEDATA/UCES012500000/menu.py", line 6, in <module>
    pspos.setclock(333)
NameError: name 'pspos' is not defined
--------------------------------------------------------------------------------

This is without it.
Code: Select all
-------------- Python-PSP started Thu Jun 21 14:47:19 2012
Free memory: 1772800
PyPSP running in: ms0:/PSP/SAVEDATA/UCES012500000
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Search path: python.zip;ms0:/lib/python21.zip;ms0:/python/site-packages;ms0:/python
Traceback (most recent call last):
  File "script.py", line 5, in <module>
    import menu
  File "ms0:/PSP/SAVEDATA/UCES012500000/menu.py", line 6, in <module>
    pspos.setclock(333)
NameError: name 'pspos' is not defined
--------------------------------------------------------------------------------
1. PS Vita Wifi 2.01 fw - Pro-V/Ark
1. PS Vita 3G 2.02 fw - Pro/CEF
User avatar
Dutt
HBL Tester
 
Posts: 297
Joined: Mon Jan 16, 2012 7:41 am
Location: Queensland, Australia

Re: [WIP] pymenu, need beta-testers

Postby Acid_Snake » Thu Jun 21, 2012 6:24 am

pspos.setclock(333)

This line was removed long ago. You're using the beta version!
try this one: http://wololo.net/downloads/index.php/download/1339
then update it with this:
menu_fix.zip
(3.78 KiB) Downloaded 14 times

The first time you use it, it takes longer to load because it extracts all the icons from the eboots, the second time it loads faster.
"V2h5IGFyZSB5b3UgcmVhZGluZyBteSBzaWduYXR1cmU/\n".decode("base64")
My forum:
Console Heaven
My Homebrews:
pyMenu 0.3.2, multiBootMenu V3, PSvid 3.0, PSP Tools 0.2
User avatar
Acid_Snake
Moderator
 
Posts: 2050
Joined: Tue May 01, 2012 11:32 am
Location: Behind you!

Re: [WIP] pymenu, need beta-testers

Postby Dutt » Thu Jun 21, 2012 8:12 am

Ok Still exits to XMB.
Looks like a files is named wrong.
Heres the pytrace.txt.
Code: Select all
-------------- Python-PSP started Thu Jun 21 18:06:42 2012
Free memory: 1772800
PyPSP running in: ms0:/PSP/SAVEDATA/UCES012500000
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Search path: python.zip;ms0:/lib/python21.zip;ms0:/python/site-packages;ms0:/python
Traceback (most recent call last):
  File "script.py", line 5, in <module>
    import menu
  File "ms0:/PSP/SAVEDATA/UCES012500000/menu.py", line 47, in <module>
    fnt = psp2d.Font("font_.png")
IOError: Could not open file
--------------------------------------------------------------------------------

Useing those new files you just posted. With the debug script.py

EDIT: Just renamed font.png to font_.png and it now works on PSP..
EDIT2: Also works on Vita but crashed when i started a game.
1. PS Vita Wifi 2.01 fw - Pro-V/Ark
1. PS Vita 3G 2.02 fw - Pro/CEF
User avatar
Dutt
HBL Tester
 
Posts: 297
Joined: Mon Jan 16, 2012 7:41 am
Location: Queensland, Australia

Re: [WIP] pymenu, need beta-testers

Postby Acid_Snake » Thu Jun 21, 2012 8:40 am

Dutt wrote:Ok Still exits to XMB.
Looks like a files is named wrong.
Heres the pytrace.txt.
Code: Select all
-------------- Python-PSP started Thu Jun 21 18:06:42 2012
Free memory: 1772800
PyPSP running in: ms0:/PSP/SAVEDATA/UCES012500000
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Search path: python.zip;ms0:/lib/python21.zip;ms0:/python/site-packages;ms0:/python
Traceback (most recent call last):
  File "script.py", line 5, in <module>
    import menu
  File "ms0:/PSP/SAVEDATA/UCES012500000/menu.py", line 47, in <module>
    fnt = psp2d.Font("font_.png")
IOError: Could not open file
--------------------------------------------------------------------------------

Useing those new files you just posted. With the debug script.py

EDIT: Just renamed font.png to font_.png and it now works on PSP..
EDIT2: Also works on Vita but crashed when i started a game.

Does the game work with other menus? It's weird, the loading of the menu is done in C code and its mostly the same for every menu. Do you see a screen saying "Booting..."?

Edit: I once had a problem like yours, and it turned out I was using the normal interpreter instead of the custom one.
The custom interpreter has 4825629 bytes (the interpreter is the eboot.pbp).

Edit2: after doing some test with sc3 I believe the menu_fix.zip file I sent you contains an unstable, unreleased, being-tested menu version (0.2.3), which is still inmature, here is the latest stable version, with all the unused modules removed:
menu_fix.zip
Version 0.2.2 with unused modules removed
(3.78 KiB) Downloaded 8 times
"V2h5IGFyZSB5b3UgcmVhZGluZyBteSBzaWduYXR1cmU/\n".decode("base64")
My forum:
Console Heaven
My Homebrews:
pyMenu 0.3.2, multiBootMenu V3, PSvid 3.0, PSP Tools 0.2
User avatar
Acid_Snake
Moderator
 
Posts: 2050
Joined: Tue May 01, 2012 11:32 am
Location: Behind you!

PreviousNext

Return to Homebrews

Who is online

Users browsing this forum: seba!!!gshi and 3 guests