Open-PS2-Loader: [ISSUE] Game freezing with Samba after a while [SMB]
Hello,
I use OPL from https://github.com/Jay-Jay-OPL/OPL-Daily-Builds, latest version to date. I load games over my home network using Samba Version 4.5.12-Debian on a Linux serveur 4.9.0-4-amd64 1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux.
I can play games just fine but when I leave the PS2 to idle for a while (45mn-1h), without touching anything, the game will freeze the next time it tries to load something. I tested this with multiple games.
Has anyone experienced this?
Could there be some settings on the Samba side that I need to adjust?
Here is my smb.conf file. Nothing fancy there.
[global]
netbios name = Partage
workgroup = USERS
ntlm auth = Yes
security = user
hosts allow = 192.168.1.
[PS2SMB]
path = /srv/PS2SMB
force user = ps2
hosts allow = 192.168.1.6
read only = No
valid users = ps2
Best,
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 55 (8 by maintainers)
The issue still persists. I tried version 0.8, where it says in the changelog that a keep-alive has been implemented, as well as the latest stable 1.1.0. Happens with my Synology NAS and as well SMB configured over an USB stick directly in my Asus router.
After max. 50 minutes of idle time in a game, it just crashes when continuing. For example in Gun, which streams data when running around the map.
In this state, SMB is practically unusable on the PS2.
@kakig thank you for testing. Some games have built-in security mode: they check savefile modification time if it matches ps2 time. For such games it iw not allowed to change system time, once you stqrt playing, and probably freezed clock also affects that mechanism.
I want to share my experience, as I hope it will be useful to someone. I had this problem when trying to play God of War via SMB on a Japanese SCPH 9006 PS2 (w/ Matrix Infinity). The game just froze randomly after some time playing. I tried updating OPL to the latest release, disabling the Matrix and using Open Tuna, installing OPL in an original MC and tweaking samba configs, but none of that helped.
After a while without a solution and with not much else to try, I decided to replace the clock battery. I noticed it was dead when I was loading a save and the date was messed up. After replacing the CR2032 battery and adjusting the clock, the game works flawlessly.
I have limited knowledge of networking and SMB, but the clock needs to be properly adjusted for OPL work with SMB?
PS: I was curious about this and decided to make some tests. I removed the clock battery and tried to play the game with an adjusted and unadjusted clock. Turns out that whenever the PS2 clock is set to a wrong time, the game freezes. I’ve searched for similar issues but only found #685
I only just tried to see if it booted any games. I came, I heard and I found problems that were not addressed. But they might not have been the only problems with the system.
I heard that the Samba users were also having issues with the Samba server closing the connection after a period of inactivity. That will kill the connection permanently because the in-game driver cannot ever reconnect. For this issue, it is an exercise for the OPL developer(s) to solve. 😂
Now that a related patch has been suggested, tested and merged, I recommend that this issue ticket be closed if there are no further comments.
Thanks, that’s very helpful and you’ve given me everything I need to learn more. I appreciate it! @TnA-Plastic