Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] webMAN lite #804

Open
LuanTeles opened this issue Nov 9, 2022 · 36 comments
Open

[Question] webMAN lite #804

LuanTeles opened this issue Nov 9, 2022 · 36 comments

Comments

@LuanTeles
Copy link

LuanTeles commented Nov 9, 2022

Aldo, i have a switch to change between webman full and lite

eg:

Full
/dev_blind?1/copy.ps3/dev_hdd0/plugins/webman/webftp_server_full.sprx|/dev_hdd0/plugins/webman/webftp_server.sprx;/copy.ps3/dev_hdd0/game/PS34KPROX/USRDIR/toolbox/icons/on.png&to=/dev_hdd0/game/PS34KPROX/USRDIR/toolbox/icons/plugins_icons/plugin_webman_full.png;/copy.ps3/dev_hdd0/game/PS34KPROX/USRDIR/toolbox/icons/off.png&to=/dev_hdd0/game/PS34KPROX/USRDIR/toolbox/icons/plugins_icons/plugin_webman_lite.png;/unloadprx.ps3?prx=WWWD;/loadprx.ps3/dev_hdd0/plugins/webftp_server_full.sprx;/popup.ps3?webMAN MOD Full;/browser.ps3$close_all_list

Lite
/dev_blind?1;/copy.ps3/dev_hdd0/plugins/webman/webftp_server_lite.sprx|/dev_hdd0/plugins/webman/webftp_server.sprx;/copy.ps3/dev_hdd0/game/PS34KPROX/USRDIR/toolbox/icons/on.png&to=/dev_hdd0/game/PS34KPROX/USRDIR/toolbox/icons/plugins_icons/plugin_webman_lite.png;/copy.ps3/dev_hdd0/game/PS34KPROX/USRDIR/toolbox/icons/off.png&to=/dev_hdd0/game/PS34KPROX/USRDIR/toolbox/icons/plugins_icons/plugin_webman_full.png;/unloadprx.ps3?prx=WWWD;/loadprx.ps3/dev_hdd0/plugins/webman/webftp_server_lite.sprx;/popup.ps3?webMAN MOD Lite;/browser.ps3$close_all_list

image

It unloads the webMAN mod and loads the webMAN MOD Lite just fine, but i can't do the oppositive way, seems it requires PS3MAPI features that are not present in the lite version, is there any way to load it back?

i also tried the pad combo /pad.ps3?l1_r1_triangle_hold but this pad combo doesn't work via web command

image

@LuanTeles
Copy link
Author

LuanTeles commented Nov 9, 2022

Edit: seems like many of the web commands i use does not work while in the lite version, so i'll leave it as a temporary toggle for the lite version.

Is there any web command for while on lite version to load the full one?

@aldostools
Copy link
Owner

webMAN Lite has very limited features in order to reduce the memory footprint.

You can load the full edition using:
/quit.ps3<prx-path>

@LuanTeles
Copy link
Author

LuanTeles commented Nov 13, 2022

I tried but it didn't work, it only unloads webMAN Mod

/quit.ps3/dev_flash/vsh/module/webftp_server_lite.sprx

I tried from full to lite and vice-versa but it didn't work

image
image

@LuanTeles LuanTeles reopened this Nov 13, 2022
@aldostools
Copy link
Owner

Try /quit.ps3<prx-path> alone.
Also try loading the prx from the internal HDD.

That was the way that I tested the command when I was developing it.

Also try an older version, just in case the feature was broken in recent versions.

@LuanTeles
Copy link
Author

LuanTeles commented Nov 13, 2022

Yeap, it works if the sprx is located in dev_hdd0 but not in flash.

Thanks Aldo, i'll move it to the standart location when the New Evilnat CFW comes out, i'm using it in dev_flash due to the cobra safefail feature that disables cobra if the recovery menu is accessed making the user to lose cobra features without knowing why , so i made a webman script if no cobra payload is detected it enables it back and reboot the console

@LuanTeles
Copy link
Author

Hey Aldo,

Regarding the memory issues, I've been experimenting with a per-title script to switch to lite mode. I've found that /quit.ps3/dev_hdd0/plugins/webftp_server_lite.sprx works successfully switching to the lite version.

However, when attempting to switch back to the standard mode using /quit.ps3/dev_hdd0/plugins/webftp_server.sprx, I encounter an issue. Webman stops working and displays an error message "webMAN not ready."

Any tips?

@LuanTeles LuanTeles reopened this May 14, 2024
@aldostools
Copy link
Owner

aldostools commented May 14, 2024

Does it only happen switching back to standard? I normally use full edition and I haven't had issues.

Please confirm me to verify if it's some bug in standard edition. It also could be related to your environment (mods, other plugins) or some background process consuming resources at the moment of the change.

@LuanTeles
Copy link
Author

LuanTeles commented May 14, 2024

I just formatted my system and i tested it

I tried

Full version to lite >>> Works >>> reverting back to full version >>> webMAN not ready
Standard version to lite >>>> Works >>> reverting to full version >>>webMAN not ready

Now using lite as the default one

Lite version to full >>> Works >>> reverting back to lite version >>> webMAN not ready
Lite to standard version >>> Works >>> reverting back to lite version >>> webMAN not ready

Note: After switing back no webman combo will work, the proxy plugin will not work, you'll only get the message that webMAN is not ready, if a webcommand is called via XMBML

It's the same behaviour i get when exiting a PS2 game or trying a No-BD firmware

@aldostools
Copy link
Owner

I don't know if my PS3 is special, but I just tested webMAN MOD 1.47.46d updated online (Sunday's build) on Evilnat 4.91.2 BETA3

Full to Lite >> works >> Lite back to Full >> works >> Full to Lite again >> still works

Every time that I switched I tested mounting one random game from my list. They mounted without issues.

After press L1+R1+△ you must wait until the unload notification shows followed by another notification showing the version of the switched plugin.

@LuanTeles
Copy link
Author

LuanTeles commented May 15, 2024

I'm not using combos.

BTW I just needed to format my system again, and I realized that the other versions are not being installed to the plugins folder. Isn't it meant to install the lite one too?

Also, I manually added the webftp_server_lite.sprx to the plugins folder, and after using L1+R1+△, the system freezes after the beep

EDIT: i'll format it again. now even the /quit.ps3/dev_hdd0/plugins/webftp_server_lite.sprx is freezing my system lol

Edit 2: Yeap the installer is not installing the lite version anymore to be able to switch

image

Edit 3: Using /quit.ps3/dev_hdd0/plugins/webftp_server_lite.sprx with the manually addition of the plugin is still crashing now, that's strange lol

Maybe my ssd is causing issues? dunno, i will switch to HDD to test it again

@LuanTeles
Copy link
Author

I just converted from DEX to CEX and now it is not freezing anymore

The combo is working fine from Full >>> Lite >>>> Full >>> Lite

I'll try via webMAN command now and go back to DEX to see if it is a DEX issue only

@aldostools
Copy link
Owner

Use the online installer... it will install all the required sprx for sure.

@LuanTeles
Copy link
Author

Use the online installer... it will install all the required sprx for sure.

Looks like the issue is only using the web command

Full >> Lite >>> Full = webMAN not ready

@aldostools
Copy link
Owner

I just converted from DEX to CEX and now it is not freezing anymore

This is a detail that you didn't mentioned. I test in CEX all the time.

@LuanTeles
Copy link
Author

LuanTeles commented May 15, 2024

I just converted from DEX to CEX and now it is not freezing anymore

This is a detail that you didn't mentioned. I test in CEX all the time.

Yeap, i forgot that after formating my system i went to DEX to test if my explorer_plugin hashes are working

But the issue Full >> Lite >>> Full = webMAN not ready is still happening on CEX, only by using the web command to switch the versions.

The combo is working fine.

Now i'm going back to DEX to test the freezes

@LuanTeles
Copy link
Author

LuanTeles commented May 15, 2024

Oh, after switching to DEX now, my console can't boot anymore. This issue used to happen to me in the past. Is it related to webMAN somehow? When I press to turn it on, the console tries to boot, the LED blinks in yellow, and then a black screen appears.

Maybe webMAN is applying the wrong patches?

@aldostools
Copy link
Owner

aldostools commented May 15, 2024

I don't recall webMAN applying DEX patches. Does it boot if you enter to recovery to delete boot_plugins.txt ?

BTW I never switch to DEX. All my developments are done in CEX only.

@aldostools
Copy link
Owner

This is a test build with some changes to check if that fixes the plugin swap using the web command /quit.ps3
webMAN-MOD_test_web_command_quit.zip

@LuanTeles
Copy link
Author

LuanTeles commented May 15, 2024

I don't recall webMAN applying DEX patches. Does it boot if you enter to recovery to delete boot_plugins.txt ?

BTW I never switch to DEX. All my developments are done in CEX only.

Luckly i formated the system and not made a boot_init_nocobra.txt, as i can see, cobra doesnt delete the boot_plugins.txt but rename its to boot_plugins.bak and disable cobra.

When i enter recovey mode i can boot again without webMAN, if i enable cobra again, blackscreen so looks like it renamed back the boot_plugins.back to .txt

@LuanTeles
Copy link
Author

This is a test build with some changes to check if that fixes the plugin swap using the web command /quit.ps3 webMAN-MOD_test_web_command_quit.zip

K, just lemme manually delete my boot_plugins and try again

@LuanTeles
Copy link
Author

I don't recall webMAN applying DEX patches. Does it boot if you enter to recovery to delete boot_plugins.txt ?
BTW I never switch to DEX. All my developments are done in CEX only.

Luckly i formated the system and not made a boot_init_nocobra.txt, as i can see, cobra doesnt delete the boot_plugins.txt but rename its to boot_plugins.bak and disable cobra.

When i enter recovey mode i can boot again without webMAN, if i enable cobra again, blackscreen so looks like it renamed back the boot_plugins.back to .txt

That's interresting, it indeed deleted the boot_plugins.txt and i manually deleted the nocobra one and enabled cobra again, same thing, leds blinks in yellow then black screen

So how is webMAN loading? or is it a cobra thing and not webMAN?

I have this random issue for years switching back and forth from CEX to DEX, so it looks like it is not webMAN at all, but a cobra thing.

Anyway, i'll reinstall the PUP and install your new build from scratch

@aldostools
Copy link
Owner

Make sure that you deleted:
/dev_hdd0/boot_plugins.txt
/dev_hdd0/boot_plugins_kernel_nocobra.txt
/dev_hdd0/boot_plugins_kernel_nocobra_dex.txt
/dev_hdd0/plugins/webftp_server.sprx
/dev_hdd0/plugins/webftp_server_lite.sprx
/dev_hdd0/plugins/webftp_server_nocobra.sprx
/dev_hdd0/plugins/kernel <= this folder and all the content

@LuanTeles
Copy link
Author

LuanTeles commented May 15, 2024

Make sure that you deleted: /dev_hdd0/boot_plugins.txt /dev_hdd0/boot_plugins_kernel_nocobra.txt /dev_hdd0/boot_plugins_kernel_nocobra_dex.txt /dev_hdd0/plugins/webftp_server.sprx /dev_hdd0/plugins/webftp_server_lite.sprx /dev_hdd0/plugins/webftp_server_nocobra.sprx /dev_hdd0/plugins/kernel <= this folder and all the content

i just disabled cobra again to deleted everything and yeap, it is not webman, the yellow led is not blinking anymore but i'm still getting black screen when cobra is enabled.

At least now i know that this issue is not related in anyway to webman (Later i'll try it to find what triggers it and report to Nat)

I'm flashing the pup again to test the new build

@LuanTeles
Copy link
Author

@aldostools

It's crashing on DEX via web command and via combo.

Now i'm going back to CEX again.

@LuanTeles
Copy link
Author

LuanTeles commented May 15, 2024

Thanks @aldostools , it's now fixed on CEX!

Now i can go from full to lite back and forth without any issue

@aldostools
Copy link
Owner

Excellent!

@LuanTeles
Copy link
Author

Excellent!

About the issue on DEX, do you have any idea?

@aldostools
Copy link
Owner

No idea. You can test in Rebug 4.84 to verify if it's some issue with PEX.

As I commented earlier I only have tested the code in CEX, since I never use DEX.

@LuanTeles
Copy link
Author

No idea. You can test in Rebug 4.84 to verify if it's some issue with PEX.

As I commented earlier I only have tested the code in CEX, since I never use DEX.

Got it. I don't use DEX either; when I switch to DEX, it's just to test if my things are working there too. Anyways, I'll test it on Rebug 4.84 and let you know.

@LuanTeles
Copy link
Author

@aldostools Freezes on Rebug D-REX 4.84.2 too.

@aldostools
Copy link
Owner

Maybe DEX requires some different commands to finish a plugin. I'm not sure.

@LuanTeles
Copy link
Author

Got it. Maybe @TheRouletteBoi or @jordywastaken can help. They both have experience with DEX development.

@aldostools
Copy link
Owner

For other devs that want to check it, I think the issue could be found in these modules:
https://github.com/aldostools/webMAN-MOD/blob/master/include/init/process.h
https://github.com/aldostools/webMAN-MOD/blob/master/main.c#L690-L745

Maybe this syscall is causing the issues (deanK left a comment about don't use with ccapi - it could be the same for dex):

static inline void _sys_ppu_thread_exit(u64 val)
{
	system_call_1(SC_PPU_THREAD_EXIT, val); // prxloader = mandatory; cobra = optional; ccapi = don't use !!!
}

@LuanTeles
Copy link
Author

LuanTeles commented May 16, 2024

@aldostools everything is working good, except fogot that webMAN lite doesn't support scripts :P

Do you have any suggestions on how I can automatically switch back to the full version when on the XMB? (without the buttom combo)

If there's no workaround, could you please create a special lite version for me that supports it? I'll only use it in-game via per-title-script, justo to be able to switch back to full version on XMB, particularly for titles known to have memory issues that most people use with mod menus,

@aldostools
Copy link
Owner

@LuanTeles
Copy link
Author

LuanTeles commented May 16, 2024

Thank you, Aldo. It's working good :)

I know you don't have much time, but I'd appreciate it if you could test my Pro Mod and provide suggestions or feedback. I'm just waiting to release it again on psx-place because I need the Cobra 8.5 source code to compile it for older firmware versions and to change the explore_plugin.sprx, hash which is causing PS2 playback issues on the 4.90/4.91 CEX variant. On PEX/DEX/D-PEX, everything is working as it should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants