- Joined
- Dec 3, 2011
- Messages
- 4
- Reaction score
- 0
- Points
- 1
Sims 2 Crashing in new OS (Lion) file limit issue?
So I'm not sure if anyone can help me with this but I'm sincerely hoping some other Mac-person out there will have a solution or at least an explanation for me.
I just got a brand new MacBook Pro and am running Lion. I've re-installed the Sims 2 and all available expansions (I can explain how if you want to know, since the general consensus seems to be that it's impossible) and it launches and runs fine, EXCEPT after I put all my downloads in. I have roughly 28000 .package files (custom content/downloads for Sims 2). I know that on my old, ancient PowerBook G4 (running Tiger), there was a file run limit of 10000. I followed this tutorial to change the limit and the game ran just fine (as before it was crashing or randomly deleting other files).
I can not get the game to launch with all my DLs installed on this new computer in this new OS. I tried following the tutorial and created a new rc.local file but it makes no difference, the game still crashes while trying to load. After playing with multiple combinations of downloads, I can now safely say that I'm convinced it has to do with the file limit (and not a bugged out file). Does anyone know a way around this? Does the code entered into the rc.local file need to be adjusted for Lion?
Old code:
sysctl -w kern.maxfiles=102000
sysctl -w kern.maxfilesperproc=100000
sysctl -w kern.maxfiles=202000
sysctl -w kern.maxfilesperproc=200000
Update:
So it appears that Lion is not seeing or recognising the rc.local file. The only way to get around this is to use the following instructions:
-------------------------------------------
What it amounts to is basically that it's the same concept as creating the rc local file in etc, except that the information gets entered into Terminal instead. By doing it that way, it's not permanent -- a restart of the computer will wipe the information. So if your Mac wigs out, a restart should set it right again.
What you want to do is launch Terminal and type in sudo sysctl -w kern.maxfiles=22000
Hit return
Enter in your password when it asks.
Then you'll need to raise the max files per process (here my instructions get a little fuzzy) but it seems logical to me that you would enter:
sudo sysctl -w kern.maxfilesperproc=20000
Also, if you enter
sysctl kern.maxfiles
and
sysctl kern.maxfilesperproc
into Terminal, it will show you the computer's settings and you can confirm that the changes took place.
Quit terminal and launch the game.
Don't forget, it will need redone anytime after the computer has been restarted.
-------------------------------------------
A bit inconvenient, as the rc.local fix was permanent, but at least I can run the game now. Hopefully this post can help other Sims 2/Lion users.
So I'm not sure if anyone can help me with this but I'm sincerely hoping some other Mac-person out there will have a solution or at least an explanation for me.
I just got a brand new MacBook Pro and am running Lion. I've re-installed the Sims 2 and all available expansions (I can explain how if you want to know, since the general consensus seems to be that it's impossible) and it launches and runs fine, EXCEPT after I put all my downloads in. I have roughly 28000 .package files (custom content/downloads for Sims 2). I know that on my old, ancient PowerBook G4 (running Tiger), there was a file run limit of 10000. I followed this tutorial to change the limit and the game ran just fine (as before it was crashing or randomly deleting other files).
I can not get the game to launch with all my DLs installed on this new computer in this new OS. I tried following the tutorial and created a new rc.local file but it makes no difference, the game still crashes while trying to load. After playing with multiple combinations of downloads, I can now safely say that I'm convinced it has to do with the file limit (and not a bugged out file). Does anyone know a way around this? Does the code entered into the rc.local file need to be adjusted for Lion?
Old code:
sysctl -w kern.maxfiles=102000
sysctl -w kern.maxfilesperproc=100000
sysctl -w kern.maxfiles=202000
sysctl -w kern.maxfilesperproc=200000
Update:
So it appears that Lion is not seeing or recognising the rc.local file. The only way to get around this is to use the following instructions:
-------------------------------------------
What it amounts to is basically that it's the same concept as creating the rc local file in etc, except that the information gets entered into Terminal instead. By doing it that way, it's not permanent -- a restart of the computer will wipe the information. So if your Mac wigs out, a restart should set it right again.
What you want to do is launch Terminal and type in sudo sysctl -w kern.maxfiles=22000
Hit return
Enter in your password when it asks.
Then you'll need to raise the max files per process (here my instructions get a little fuzzy) but it seems logical to me that you would enter:
sudo sysctl -w kern.maxfilesperproc=20000
Also, if you enter
sysctl kern.maxfiles
and
sysctl kern.maxfilesperproc
into Terminal, it will show you the computer's settings and you can confirm that the changes took place.
Quit terminal and launch the game.
Don't forget, it will need redone anytime after the computer has been restarted.
-------------------------------------------
A bit inconvenient, as the rc.local fix was permanent, but at least I can run the game now. Hopefully this post can help other Sims 2/Lion users.