The following comments are owned by whoever posted them. WineHQ is not responsible for what they say.
RE: save game
by C Mac on Saturday August 6th 2011, 17:01
I'm not entirely versed on the exact nature of the problem, but others seem to agree that it has to do with the maximum number of open files, set by a command called "ulimit"
You can check these settings using the command
ulimit -a
Note the number to the right of "open files." Usually, the number will be 1024, a number [apparently] far too low for Sid Meier's needs
TO permanently increase this number, you have to open
/etc/security/limits.conf
and add two lines of code:
[username] soft nofile 8192
[username] hard nofile 8192
To add these, simply bring up terminal and use
sudo gedit /etc/security/limits.conf
to open the file, scroll to the bottom, hit enter to start a new line, and add those two lines of code. Save and close /etc/security/limits.conf , and type
ulimit -n
this will *just* display the current maximum allowed open files, instead of every userlimit. You'll see that it's still set at 1024.
Restart your box, and try ulimit -n again, and the number should display 8192, meaning that the maximum number of open files has been quadrupled from what it was before.
If it doesn't, use the command
sudo gedit /etc/pam.d/common-session
scroll to the bottom and add
session required pam_limits.so
Save, restart, and check ulimit -n or ulimit -a once again.
This SHOULD get at the root cause of the load-save bug. Hope you're able to play uninterrupted!
NOTE: BE CAREFUL with what you change in ulimit. It governs a whole list of system limitations, and can probably f*ck up your system beyond repair, if used incorrectly.