WebMAN-MOD pkg handling commands

There's one problem I can think of with that though....
What if the user initiates background download... Files get moved automatically & there's no page to close...
We would also need to check if there is any change with the loaded sprx system plugins when the system switches to background downloading. If there is a change then we can detect it & act consequently...

I think when the background download button is pressed and it says "preparing" whats its actually doing is creating the folder and 2 pdb files inside vsh/game_pkg. Maybe the creation of these files can be used as a indication that background download has been selected . BTW: On a related note, I looked at the 2 pdb files with a hex editor and they look quite simple, just the date and link and package name, and content ID.
CFRN0BF.png
If it was possible to use this built in system instead of the package manager for .pkgs it would be much better, everything in one place, delete, install etc, with extras like information, filesize, system type icon , bubble icons, etc
 
Good idea... [emoji6]
Need to look into this...

@aldostools
Given your impressive experience with ps3 tools writing, I need to ask.. [emoji5]️
Are you already familiar with those files?

Sent with Tapatalk
 
The only obstacle to background downloading that I have noticed so far is when the server doesn't provide a file size to the download plugin. In that case background downloading cannot be initiated...
Unfortunately this happens with a number of well known servers...
There might also be a minimum file size to initiate background downloading, I am not 100% sure...

Yeah I think with very small pkgs it could be an issue, timing wise... as they download so quick , the button barely has time to appear, I know its hard to select background download on a small pkg like PrepNTFS for example, but that is manually, maybe with an auto button press event it will be super quick and be able to catch it..

Another thing that could maybe be done (?) is automatically detecting a few common filetypes and having them download to certain folders (it could be a post download move operation from a temp download folder, that happens at the same time as the rename operation), So .pkgs download (or get moved) to hdd0/packages, ISO's download to hdd0/PS3ISO, with another location for unknown filetypes and zips and stuff like that.
 
Last edited:
@DeViL303

This works for me:

http://localhost/download.ps3?url=https://www.dropbox.com/s/sxqijf5z70wy6mq/wMM.pkg?dl=1

And I just downloaded successfully the Mega_Drive_Genesis.pkg file hosted on your Dropbox account (as per the urls you posted earlier) using the same syntax.
Am not sure what's wrong on your side...

However my attempts to download a xml file from Dropbox have all failed, just like you, no matter the intended storage path. Different error code though, not really sure why...
I also tried with a Google Drive direct link & I get a 503 html status code....

Need to look into this.
Tomorrow though, gotta sleep now....

Also when thinking about those files created by background downloading to produce a bubble, I remembered that it's exactly what multiman Install Package feature does if you select PSN Bubble installation type in Settings.

Sent with Tapatalk
 
Last edited:
Updated the binaries with the support for pkg download & auto install
https://github.com/aldostools/webMAN-MOD/releases/

The syntax is: /install.ps3?url=<pkg-address>

The pkg now is downloaded temporarily to /dev_hdd0/tmp/downloader and moved to /dev_hdd0/packages when the download is completed.

If the download was started with /install.ps3, the pkg will be auto installed after it's moved to 'packages' folder.

If the user selects background download, the polling process that moves the pkg and auto installs it is stopped and the file should be installed with the bubble.
 
I had a feeling your silence meant you were working on it... [emoji3]
That's great... Can't wait to test it...
Using install.ps3 for download & auto-install was the best possible choice. Much better than adding a parameter to download.ps3... And it makes perfect sense too.

Sent with Tapatalk
 
Last edited:
@DeViL303

This works for me:

http://localhost/download.ps3?url=https://www.dropbox.com/s/sxqijf5z70wy6mq/wMM.pkg?dl=1

And I just downloaded successfully the Mega_Drive_Genesis.pkg file hosted on your Dropbox account (as per the urls you posted earlier) using the same syntax.
Am not sure what's wrong on your side...

However my attempts to download a xml file from Dropbox have all failed, just like you, no matter the intended storage path. Different error code though, not really sure why...
I also tried with a Google Drive direct link & I get a 503 html status code....

Need to look into this.
Tomorrow though, gotta sleep now....

Also when thinking about those files created by background downloading to produce a bubble, I remembered that it's exactly what multiman Install Package feature does if you select PSN Bubble installation type in Settings.

Sent with Tapatalk

Still havnt got a single dropbox link to work here. strange. The only difference I can see is you used "localhost" instead of "127.0.0.1" , I tried that just in case and it made no difference. As soon as I put in my own non dropbox link it works straight away..

Ill try reinstall CFW and WMM later.
 
Last edited:
Very strange...
I tested a Dropbox link again 5mn ago (on 1.43.33 Full Edition) & it worked.
Later on I will give it another go with Aldo's latest release.

Sent with Tapatalk
 
Maybe its related to my ISP or Router. I don't know. Strange alright.
Also when thinking about those files created by background downloading to produce a bubble, I remembered that it's exactly what multiman Install Package feature does if you select PSN Bubble installation type in Settings.

If the source is available (or maybe you could write something similar) maybe it could be used somehow to do a scan of the package folders, and create bubbles for them too, so the end result would be a package manager where delete and install are all available in one section, with the extras I mentioned before.
 
Last edited:
Aldo hasn't mentioned yet whether or not he is familiar with this PSN bubble process already...
The only source code that I have for multiman is a very very old version. I shall check if this feature was already implemented back then.
If not, it should not be too difficult to reproduce anyway....

While talking about multiman's source, I don't think deank released it but I will ask anyway, does anyone have the source of a fairly recent multiman?
Or the source for deank's "* Install Package Files" brew?

Sent with Tapatalk
 
Last edited:
@aldostools

I found a little bug with the auto install feature.
If a pkg is already installed (a movian update for example), the installation begins & you get a "Same version... Do you want to continue" message. If you choose NOT to continue the installation stops but starts again a moment later (at polling time interval I assume). It keeps going this way in a never ending loop because the polling doesn't stop. The only way out is to install the pkg or reboot!
Of course, users changing their mind at that stage may be rare but still, if they realised they made a mistake, their only way out would currently be a reboot/shutdown during 2 cancelled installations....

Sent with Tapatalk
 
@aldostools

I found a little bug with the auto install feature.
If a pkg is already installed (a movian update for example), the installation begins & you get a "Same version... Do you want to continue" message. If you choose NOT to continue the installation stops but starts again a moment later (at polling time interval I assume). It keeps going this way in a never ending loop because the polling doesn't stop. The only way out is to install the pkg or reboot!
Of course, users changing their mind at that stage may be rare but still, if they realized they made a mistake, their only way out would currently be a reboot/shutdown during 2 cancelled installations....

Sent with Tapatalk

Could you double check the bug? I don't understand how the installation can starts again if the installPKG is called only when the pkg is moved to /dev_hdd0/packages. The polling is done only pkg files found in /dev_hdd0/tmp/downloader. So when the folder is polled again, the pkg is already moved to /dev_hdd0/packages. Is the file staying the pkg in /dev_hdd0/tmp/downloader?

In this test build I added a check if cellFsRename fails.

About the PSN bubble process... You can find the source code to do that in IRISMAN's pkg_install.c

I think deank has a fairly recent copy of the source code of multiMAN and of Install Package Files too :)

OFF-TOPIC: @DeViL303 you can add the 1000 missing covers in this file to your server.

Also it would be nice if you could move the PNG files to a different folder to reduce the stress on the server side.
Take in count that the file system is accessed sequentially. So taking out the PNG should increase the perfomance in 100% ;)
 
Could you double check the bug? I don't understand how the installation can starts again if the installPKG is called only when the pkg is moved to /dev_hdd0/packages. The polling is done only pkg files found in /dev_hdd0/tmp/downloader. So when the folder is polled again, the pkg is already moved to /dev_hdd0/packages. Is the file staying the pkg in /dev_hdd0/tmp/downloader?
Am not sure Aldo because I didn't debug it at all. I found this problem & reproduced it a few times but that's all.
Give me a couple of hours to get home & I will give you some answers. [emoji6]

About the PSN bubble process... You can find the source code to do that in IRISMAN's pkg_install.c
Thanks a lot... I actually forgot that Irisman could do the same thing as multiman...


I think deank has a fairly recent copy of the source code of multiMAN and of Install Package Files too :)
Brilliant. [emoji5]️
Do you know where I could find this archive? I would prefer to avoid bothering deank with such queries...
 
OFF-TOPIC: @DeViL303 you can add the 1000 missing covers in this file to your server.

Also it would be nice if you could move the PNG files to a different folder to reduce the stress on the server side.
Take in count that the file system is accessed sequentially. So taking out the PNG should increase the perfomance in 100% ;)

Done and done, thanks for the covers and suggestion. ;)
 
Yes, you can find it in deank's HDD :)

The code in multiMAN and IRISMAN for building bubbles do practically the same, so why do you need the private code of MM?
So I would need to travel to Sofia & acquire his hdd. [emoji23]

I don't need the code per se. I would just like the multiman source for reference only & not for the bubble code in particular. [emoji6]
 
I see that still there are 2152 .PNG files ;) Most of them are NP*
ok, yeah, FTP client acting a bit strange. Think Its not loading them all for me, need to go in and out of the folder, I'll get them all now.

EDIT: ok, found part of the problem, seems filezilla is only bringing up 7998 files for me per folder. Ill get them with the file manager app of the site host, it is painfully slow to deal with lots of files though..
 
Last edited:
Back
Top