PS3 webMAN MOD - Web Commands

Btw @aldostools any tips about it?

Before try anything, be sure that the option "Disable content scan on startup" in /setup.ps3 is checked.

Now that said, I only have experienced sync issues starting PS2 games and sometimes when I use an old DS3 controller with the battery almost dying.

It could be a hardware problem, if the sync issue is specific to one controller.

Also try disabling the boot_init.txt, autoexec.bat and the randomizers that execute when webMAN MOD starts.
 
Before try anything, be sure that the option "Disable content scan on startup" in /setup.ps3 is checked.

Now that said, I only have experienced sync issues starting PS2 games and sometimes when I use an old DS3 controller with the battery almost dying.

It could be a hardware problem, if the sync issue is specific to one controller.

Also try disabling the boot_init.txt, autoexec.bat and the randomizers that execute when webMAN MOD starts.


I'll make some tests, but seem like it only Happens when the system is shut down for a long time, i told my friend to delete both boot_init.txt and autoexec.bat, he turned on his system just fine today (I can't imagine how being turned off for a long time can cause this, but this happens with us both)

I'll test it for some time with the files and without.


Btw aldo onxmb.bat is removed? i can't make it to work anymore, i set pop up and didn't work, copy operations, leds, none of the commands worked.
 
Last edited:
Btw aldo onxmb.bat is removed? i can't make it to work anymore, i set pop up and didn't work, copy operations, leds, none of the commands worked.

No. The script /dev_hdd0/onxmb.bat is executed when the system returns to XMB from a game.

This event is performed in the poll thread at a very low priority (every 6 seconds or more).
If you are testing it with RELOADXMB, it returns to XMB too fast before the internal timers are reset.
 
Other thing is , i don't know if it is caused by this but it is just expeculation, sometimes wHen i turn my console on, my DS3 does not sync i always thought its a problem of my controllers, but my friends after installing my mod are having the same problem very often on CFW, I always noticed that it only happened on CFW, when I'm on HFW it doesn't happen.
I think this is some weird timing thing. I always thought it was due to a HDD that was worn or something like that because I only noticed it on once of my consoles sometimes. Resetting to factory defaults seemed to help for a little while but then the issue would come back. Just thinking about it now I wonder is it related to a modified custom_render_plugin.rco or custom_render_plugin.sprx, only guessing and I have not done any testing but as those can affect timing of boot up maybe it is related.
 
I think this is some weird timing thing. I always thought it was due to a HDD that was worn or something like that because I only noticed it on once of my consoles sometimes. Resetting to factory defaults seemed to help for a little while but then the issue would come back. Just thinking about it now I wonder is it related to a modified custom_render_plugin.rco or custom_render_plugin.sprx, only guessing and I have not done any testing but as those can affect timing of boot up maybe it is related.

I'll stil do some tests, but i got the same issue with a clean CFW installation without any patches, without webma it does not occurs.
 
Last edited:
@aldostools
Here i come bothering you again about the autoexec.bat and stuff. :P

I updated my PKG and stuff with the latest webman mod and found my scripts no longer working, I tried .37 and 0.36 with no success., but reverting back to the old version of webman bundled in my last PKG (released earlier this year) they work again.

ll try to see exactly which version it stopped working and provide the files to test it.

Also i remember some time ago you said that you would implement a message in the webman installer about which version was being installed (Lite or Full), but since .37 not even the old "webman is installing" message is being displayed anymore. Did you remove it or is it a bug?


EDIT: .32 was the last working.

EDIT: Something really crazy is hapenning lol

If the autoexec.bat is ftp'ed it does not work but if the same file is installed by a custom pkg it works.


.32 is the last version that works with thr ftp'ed autoexec.bat, I thought it was somehow related to chmod, but I set it up the same way as the others -rw-rw-rw and no effect


I attached a simple pkg with a autoexec.bat that reloads the xmb and a zip file with the same files.
 

Attachments

Last edited:
If the problem arises only with ftped files (not when copied manually or via pkg), it's most likely permissions related.
Did you inspect the ftped file validity? No contents corruption?
Is the problem the same with files transferred using other FTP servers like the Rebug Toolbox, openps3ftp etc..?
 
Last edited:
If the problem arises only with ftped files (not when copied manually or via pkg), it's most likely permissions related.
Did you inspect the ftped file validity? No contents corruption?
Is the problem the same with files transferred using other FTP servers like the Rebug Toolbox, openps3ftp etc..?

Boot_init.txt works when ftped only autoexec.bat have this problem, it is not corrupted as i can ftp it back to my pc and it is all right and if i just swap the webftp_server.sprx with the .32 version, the autoexec.bat runs just fine.

THe permissions when ftped are -rwxrwxrwx if i change to -rw-rw-rw- as the others, it still won't work.

BTW those files i provided is made for HEN due to it's timmings.

EDIT:

I formated my system, now it is working lol, even when ftped, the curious thing is why? and why with .32 it was working? i'll make more tests.

EDIT2:

I edited the file and ftped it again, not working :neglected:

Edit 3:

I reverted webman back to .32, o_O and worked, so the best thing is to test it using webman .32 version and when done install it via pkg to work with newer versions.

Edit: 4

.37 stopped to work again. i give up.

Edit: 5

Reverted to .32 worked again, so no doubt scripts work the best on .32
 
Last edited:
Boot_init.txt works when ftped only autoexec.bat have this problem, it is not corrupted as i can ftp it back to my pc and it is all right and if i just swap the webftp_server.sprx with the .32 version, the autoexec.bat runs just fine.

THe permissions when ftped are -rwxrwxrwx if i change to -rw-rw-rw- as the others, it still won't work.

BTW those files i provided is made for HEN due to it's timmings.

EDIT:

I formated my system, now it is working lol, even when ftped, the curious thing is why? and why with .32 it was working? i'll make more tests.

EDIT2:

I edited the file and ftped it again, not working :neglected:

Edit 3:

I reverted webman back to .32, o_O and worked, so the best thing is to test it using webman .32 version and when done install it via pkg to work with newer versions.

Edit: 4

.37 stopped to work again. i give up.

Edit: 5

Reverted to .32 worked again, so no doubt scripts work the best on .32

Thank you for your feedback. The main difference between versions .32 & .37 is that now the script is executed in its own thread.

In the attachment I included a build that uses 128KB for stack memory, instead of 64KB.
Also if the script file does not exist, the thread is not created (avoiding unnecessary memory & process allocation).

You can test if this build has better results (in case the issue was insufficient stack memory)
 

Attachments

Thank you for your feedback. The main difference between versions .32 & .37 is that now the script is executed in its own thread.

In the attachment I included a build that uses 128KB for stack memory, instead of 64KB.
Also if the script file does not exist, the thread is not created (avoiding unnecessary memory & process allocation).

You can test if this build has better results (in case the issue was insufficient stack memory)

Still the same, boot_init.txt and onxmb.bat works as expected but autoexec.bat does not, if i move the commands to boot_init.txt they work.
 
Last edited:
Still the same, boot_init.txt and onxmb.bat works as expected but autoexec.bat does not, if i move the commands to boot_init.txt they work.

It's weird that boot_init.txt works but autexec.bat don't.

Both scripts are executed in the same procedure.
boot_init.txt is performed before start the server threads (ftp, ps3mapi, net)..
autoexect.bat is performed at least 3 second later (before start listening web server).
 
What do you mean by "it works" or "it does not work" exactly?
Does the system crash or does the wMM loading process continue normally without executing the autoexec script?
Do you have socat output you can share with us for each use case?
 
What do you mean by "it works" or "it does not work" exactly?
Does the system crash or does the wMM loading process continue normally without executing the autoexec script?
Do you have socat output you can share with us for each use case?

wMM only executes the onxmb.bat and boot_init.txt, autoexec is just ignored.

I'll log it and attach the socat output soon.
 
@aldostools

Does each script file get executed in its own thread?
If so the autoexec thread creation syscall might be failing, we would need to get the returned error code to help find out why..

Maybe a simple "sleep" call for a few seconds just before autoexec thread creation would help if it's a timing or synchronisation issue?
 
Does each script file get executed in its own thread?
If so the autoexec thread creation syscall might be failing, we would need to get the returned error code to help find out why..

Maybe a simple "sleep" call for a few seconds just before autoexec thread creation would help if it's a timing or synchronisation issue?
Yes, a new thread is created.

There is a wait of at least 3 seconds between the 2 scripts.
Code:
if(cobra_version >= 0x0800) sys_ppu_thread_sleep(3); // wait 3 seconds on cobra 8.x for network

wMM only executes the onxmb.bat and boot_init.txt, autoexec is just ignored.

I'll log it and attach the socat output soon.

Is it named like this? /dev_hdd0/autoexec.bat <= the name case sensitive

EDIT: THIS IS VERY IMPORTANT:
If the first script is still running, the second script is not performed.
Code:
static void parse_script(const char *script_file)
{
    if(script_running) return;
 
Last edited:
Yes, a new thread is created.

There is a wait of at least 3 seconds between the 2 scripts.
Code:
if(cobra_version >= 0x0800) sys_ppu_thread_sleep(3); // wait 3 seconds on cobra 8.x for network



Is it named like this? /dev_hdd0/autoexec.bat <= the name case sensitive

Yes, and it works fine with webman .32, but not with higher versions.

Btw. is there any way to socat using wi-fi? the lan port of my pc is broken
 
Read my edited message above in yellow.

I don't think so, for my tests i'm running

Boot_init.txt

wait 1
popup PS3™ Pro
beep3

Autoexec.bat

/write.ps3/dev_hdd0/tmp/wm_config.bin&t=12&pos=0x30
/write.ps3/dev_hdd0/tmp/wm_config.bin&t=01&pos=0x377
/write.ps3/dev_hdd0/tmp/wm_config.bin&t=01&pos=0x249
/write.ps3/dev_hdd0/tmp/wm_config.bin&t=01&pos=0x157
/write.ps3/dev_hdd0/tmp/wm_config.bin&t=01&pos=0x147
/write.ps3/dev_hdd0/tmp/wm_config.bin&t=01&pos=0x40
/write.ps3/dev_hdd0/tmp/wm_config.bin&t=01&pos=0x25E
/write.ps3/dev_hdd0/tmp/wm_config.bin&t=01&pos=0x25
wait 5
/play.ps3/dev_hdd0/PROISO/RELOADXMB.iso
wait 9
wait 9
wait 9
/mount.ps3/unmount
wait 2
/insert.ps3

Onxmb.bat

copy /dev_hdd0/game/PS34KPROX/USRDIR/toolbox/patches/game_column_fix/hfw/,/dev_blind/vsh/resource/explore/xmb/
/led.ps3mapi?color=1&mode=2
/led.ps3mapi?color=0&mode=3


Note i'm using copy because /copy.ps3 and /copy_ps3/ are not working via script, and the timings are for HEN.



EDIT:

I tried before without boot_init.txt and same issue, but with your new test build now autoexec.bat ran

Using both just boot_init.txt and onxmb.bat scripts runs.
 
Last edited:
Back
Top