I can help with better GUI design, yet I will not code it. ^^
nice work, a UI will help a lot for people who don't get on with command line/terminal,
I wonder if a PYinstaller build could be made ? so that users don't need to download python and all the requirements (or PyPI or any other way of making a stand alone exe or program)
nice work, a UI will help a lot for people who don't get on with command line/terminal,
I wonder if a PYinstaller build could be made ? so that users don't need to download python and all the requirements (or PyPI or any other way of making a stand alone exe or program)
Hey Ronnie, well its fairly straight forward with "pyinstaller", i have made a test build, i had to change the source slightly since windows doesn't like some of the syntax used (the first line of the GUI for example gave some errors, also ./ in windows command line causes problems before executing a program, so edited it to run .exe versions instead, im including the source anyway so you can see)I have no idea how to do that :-( But yeah if we can get some help and someone that would build an installer for windows then that would be great.
Hey Ronnie, well its fairly straight forward with "pyinstaller", i have made a test build, i had to change the source slightly since windows doesn't like some of the syntax used (the first line of the GUI for example gave some errors, also ./ in windows command line causes problems before executing a program, so edited it to run .exe versions instead, im including the source anyway so you can see)
This has only been tested on my system (win10) and was compiled in msys2, if anyone can test i would appreciate it.
TO USE UNPACK THE FOLDER THEN RUN
pop-fe-ps3.exe
7z Windows Build
https://mega.nz/file/i9lyHIBS#U-WrqSEgWRkgSjHovC92Y32AgCDKabKF3-wuZzhf2o4
Zip Windows Build (same as above but for those without 7z)
https://mega.nz/file/W0llQAjb#xV34Cb92iKQW1OwFpKR4yjr3WpPwqNcYRVibDvtadqQ
SRC (modded source code for compiling including spec files for pyinstaller)
https://mega.nz/file/KttyAYZb#dFI2CGpOv0rZrvrikJT_EfCImkmzd6MfaWj3-oIJSqU
EDIT:- Also included the original pop-se and the GUI version so people can choose the one they want
Awesome!
For the ./prog.py vs prog.exe changes,
os.name will tell us at runtime if it is linux 'posix' or windows 'nt', so we can determine whether to use ./prog.py or prog.exe at runtime likw this
if os.name == 'posix':
my current calls
else:
your modified calls to .exe
Can you make those changes and also create this as a patch that I can merge, that way you get proper credit in the git history.
well i would prefer if some people could test it first to make sure its working(if it only works for me it would be pointless)
And i have used github to push changes to my own git but i have never made a patch before so not sure how to do that, i will look into it later, and being able to use different calls depending on OS seems useful, i will have to take a look at that too, im not experianced in python so its kinda new to me, i only know about pyinstaller because i have used a few programs in the past that have used it (or py2exe).
Do you use any particular program for making patches ?
I tested it on a Windows 2016 VM. It worked except for atrackdenc. It complained about not finding this executable.well i would prefer if some people could test it first to make sure its working(if it only works for me it would be pointless)
Thanks for testing, looking at the source again i think i missed atracdec as a exe, i think i fixed it now but i don't have time to test right now (its 1am), anyway i tried what you said above, adding if os.name == 'posix': and else: to the source and it seems to be working on my first test, im attaching the patch file below (renamed to .txt from .patch) and i will try and rebuild again tomorrow with the missing exe hopefully fixed, also looking into PYinstallers onefile command so its not as messyI tested it on a Windows 2016 VM. It worked except for atrackdenc. It complained about not finding this executable.
(This is not a fatal error in pop-fe, it just prints a warning and then creates a package without the CDDA tracks)
But except for atracdec executable missing it seems to work fine. Great work!
I used Wipeout3 to test with as it has 9 CDDA tracks.
pyinstaller PSL1GHT/tools/ps3py/pkg.py
pyinstaller cue2cu2.py
pyinstaller binmerge
pyinstaller sign3.py
pyinstaller --add-data "PS3LOGO.DAT;." pop-fe.py
pyinstaller --add-data "PS3LOGO.DAT;." --add-data "pop-fe-ps3.ui;." pop-fe-ps3.py --hidden-import pop-fe --hidden-import pygubu.builder.tkstdwidgets --hidden-import pygubu.builder.ttkstdwidgets --hidden-import pygubu.builder.widgets.dialog --hidden-import pygubu.builder.widgets.editabletreeview --hidden-import pygubu.builder.widgets.scrollbarhelper --hidden-import pygubu.builder.widgets.scrolledframe --hidden-import pygubu.builder.widgets.tkscrollbarhelper --hidden-import pygubu.builder.widgets.tkscrolledframe --hidden-import pygubu.builder.widgets.pathchooserinput
Made a small error in that revision (it was late and i was sleepy), 1 of the else commands i added space next to a few files that shouldn't in pop-fe-ps3.py, so made a patch to fix that
EDIT:- also here the pyinstaller commands i use to compile the exe's in pyinstaller, i am working on a "onefile" version but having a few small issues
then i merge all the foldersCode:pyinstaller PSL1GHT/tools/ps3py/pkg.py pyinstaller cue2cu2.py pyinstaller binmerge pyinstaller sign3.py pyinstaller --add-data "PS3LOGO.DAT;." pop-fe.py pyinstaller --add-data "PS3LOGO.DAT;." --add-data "pop-fe-ps3.ui;." pop-fe-ps3.py --hidden-import pop-fe --hidden-import pygubu.builder.tkstdwidgets --hidden-import pygubu.builder.ttkstdwidgets --hidden-import pygubu.builder.widgets.dialog --hidden-import pygubu.builder.widgets.editabletreeview --hidden-import pygubu.builder.widgets.scrollbarhelper --hidden-import pygubu.builder.widgets.scrolledframe --hidden-import pygubu.builder.widgets.tkscrollbarhelper --hidden-import pygubu.builder.widgets.tkscrolledframe --hidden-import pygubu.builder.widgets.pathchooserinput
Got the exe working with atracdec now so i made a patch with the spec files, also changed the readme to add how to build the windows executable, also removed the bit telling people to download atracdec and instead made it a wget command to just download it, and added unzip for it to extract the exe from it, im not finished with pyinstaller (still working on trying to get a single exe, or if not 1 exe just less then the current messy folder) but its working with the commands i have right now so added it all into a patch, uploading hereAwesome. I merged the patches (using "git am patch-1.txt" and "git am patch2-txt")
When you finish with the spec files for pyinstaller, please send a patch that adds the specfiles and a small section to the README on how to generate the packages.
(to add a file to the git repository, run "git add ..filename..")
Awesome! Thankyou so much.
it does seem possible, i tested it manually and it "seems" to work but how to get the game to automatically rip the audio out would need to be done, otherwise it will require a lot of user steps, Ronnie might be able to think of something (if he is interested in bringing the size down, if not then you will just have to do it manually using the old method of making ps1classics)Can build CDDA PBP without using the full ISO?
Extract TRACK 01 to build PBP,PBP can be smaller
Can build CDDA PBP without using the full ISO?
Extract TRACK 01 to build PBP,PBP can be smaller
ok checked atracdec and its working in this build (with the changes i made yesterday), posting a working build for those who want it
7z
https://mega.nz/file/35NE2ZYL#131ZDtV6M2PNNvlDwVddNCc3oqnCS8AYTsyet_xoASM
Zip (same as above but in zip format for those without 7z)
https://mega.nz/file/X0kXkKDT#Nm9WdJR81Keacirka9bIdhl4ajPrlq7ur_DU3NtB7Mo
Im working on making a single exe for it but having a few issues, working on solving those.
Got the exe working with atracdec now so i made a patch with the spec files, also changed the readme to add how to build the windows executable, also removed the bit telling people to download atracdec and instead made it a wget command to just download it, and added unzip for it to extract the exe from it, im not finished with pyinstaller (still working on trying to get a single exe, or if not 1 exe just less then the current messy folder) but its working with the commands i have right now so added it all into a patch, uploading here