Emulator Issues #6915
Star Wars: The Force Unleashed 2 - Problem when saving the game
[READ THIS: https://forums.dolphin-emu.org/showthread.php?pid=276132 <<<
Your answers are there!]
[Leave the questions as they are and answer them in the next line]
[Remove lines written inside brackets , but nothing else]
Star Wars: The Force Unleashed 2
What's the problem? Describe what went wrong in few words.
The game is not been saved. Every time I started the game, there was no saved data, but should, since the game saved many times during the game play.
What did you expect to happen instead?
I expected to load the saved games.
What steps will reproduce the problem?
[Don't assume we have ever played the game and know any level names. Be as
specific as possible.]
1.Play the game until it saves the state
2.Start the game again
Dolphin 3.5 and 3.5-367 are old versions of Dolphin that have
known issues and bugs, so don't report issues about them and test the
latest Dolphin version first.
Which versions of Dolphin did you test on?
Does using an older version of Dolphin solve your issue? If yes, which
versions of Dolphin used to work?
What are your PC specifications? (including, but not limited to: Operating
System, CPU and GPU)
Linux x64, Nvidia GeForce GTX 660 Ti, i7 3.2GHz
Are you using the 32 or the 64 bit version of Dolphin?
Is there any other relevant information? (e.g. logs, screenshots,
[Upload big files to a hosting service and post links here!]
In other games I have no problem saving the states.
[Do not attach files to this issue. Upload them to another site and
link here. Use imgur.com for images and pastie.org for logs.]
#4 Updated by rigation about 5 years ago
Well I'm just making a blind guess, but from what I can read, in my opinion the only (or most probable) revision that should have caused the issue between 3.0.432 and 3.0.465 is 3.0.436 - Revision 53d2d9718fe3 https://code.google.com/p/dolphin-emu/source/detail?r=53d2d9718fe3 (if I understand it right, that revision should have somewhat to do with saving files)...am I wrong?
#10 Updated by mimimi about 5 years ago
I think this is related to either the number of allowed file handles, or not freeing file handles.
If i set IPC_MAX_FDS to 0x118 instead of 0x18, the game saves a banner.
The log for the game spams stuff like:
50:43:366 IPC_HLE\WII_IPC_HLE.cpp:370 W[WII_IPC_HLE]: Trying to open /tmp/.trz as -1
50:43:366 IPC_HLE\WII_IPC_HLE.cpp:370 W[WII_IPC_HLE]: Trying to open /tmp/.tex as -1
50:43:381 IPC_HLE\WII_IPC_HLE.cpp:370 W[WII_IPC_HLE]: Trying to open /tmp as -1
The linked commit looks suspicious:
It removes m_pFileHandle.Close(); on closing a file.
The file handling on master seems to be done in a different way now. But to me it looks like closing file handles was removed in that commit, and further changes didn't change that "functionality".
If this is really what is happening, i wonder why there aren't any more games that are exploding.