OS X - Apps and Games Discussion of applications and games available for Mac OS X.

Sims 2 Crashing in new OS (Lion) possible file limit issue


Post Reply New Thread Subscribe

 
Thread Tools
dragonfly3007

 
Member Since: Dec 03, 2011
Posts: 4
dragonfly3007 is on a distinguished road

dragonfly3007 is offline
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.

Last edited by dragonfly3007; 12-04-2011 at 11:15 AM. Reason: new info
QUOTE Thanks
Divinslide

 
Member Since: Mar 03, 2012
Posts: 2
Divinslide is on a distinguished road

Divinslide is offline
Hey,
I have been looking for a way to install sims 2 onto my os lion for days now and without enough memory to partition my computer (nor did i ever want to do that) I am stuck. If you could give me step by step instructions on how to do that, that would be awesome!

Thank you
QUOTE Thanks
Divinslide

 
Member Since: Mar 03, 2012
Posts: 2
Divinslide is on a distinguished road

Divinslide is offline
Hey,
I have been looking for a way to install sims 2 onto my os lion for days now and without enough memory to partition my computer (nor did i ever want to do that) I am stuck. If you could give me step by step instructions on how to do that, that would be awesome!

Thank you
QUOTE Thanks
dragonfly3007

 
Member Since: Dec 03, 2011
Posts: 4
dragonfly3007 is on a distinguished road

dragonfly3007 is offline
You don't want to partition your drive, you want to follow the instructions above.
QUOTE Thanks
dragonfly3007

 
Member Since: Dec 03, 2011
Posts: 4
dragonfly3007 is on a distinguished road

dragonfly3007 is offline
I have used the following code in terminal to increase the number of files my computer can handle at one time so that I can play The Sims 2 with an insane number of add-ons:

- Type in sudo sysctl -w kern.maxfiles=22000
- Hit return
- Enter in your password when it asks.
- You will then need to raise the max files per process so you enter:
- sudo sysctl -w kern.maxfilesperproc=20000

This worked perfectly... until I was running about 40K files at a time. I had adjusted the code accordingly and have gone well beyond the number of files I have (upping it to 62000 and 60000 respectively) but the game still crashes. Is there a secondary file cap somewhere in the computer that I need to / can change? Or have I finally reached my true capacity for how many files I can load at one time?
QUOTE Thanks
chscag

 
chscag's Avatar
 
Member Since: Jan 23, 2008
Location: Fort Worth, Texas
Posts: 32,387
chscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond repute
Mac Specs: 21.5" iMac 2.5 GHz i5, iPad 3rd Gen., 3 iPods

chscag is offline
Quote:
Or have I finally reached my true capacity for how many files I can load at one time?
Very likely, since more files loading equals more memory. There may be other limits beside system memory. I'm not a programmer but perhaps someone who is can chime in here and offer advice.

Edit: Please do not start a new thread. I merged the new thread together here to the original.

Last edited by chscag; 05-26-2012 at 06:31 PM. Reason: Merged threads.
QUOTE Thanks
chas_m

 
chas_m's Avatar
 
Member Since: Jan 22, 2010
Location: Victoria, BC
Posts: 13,818
chas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond repute
Mac Specs: 2009 MacBook Pro, Black speakers, Black Benq second monitor, black iPhone 4, Black 2012 iPad, etc.

chas_m is offline
What you're basically doing is debugging a really old game and trying to make it work on a newer OS. I wish you luck, but if the manufacturer didn't think it was worth the time to patch it I suspect you're only going to get so far.

PS. You say "since the general consensus seems to be that it's impossible." Given your experiences (which are FAR above and beyond what any normal user would be able/willing to do), the consensus doesn't seem that dumb to me.

There are lots of late-PPC-era programs that can be installed on Intel Macs running Lion (which doesn't offer Rosetta) because the core program is universal. A friend of mine just succeeded in installing the CS3 version of the Adobe apps (basically he found a way to bypass the PPC-only installer in terminal, the only bit that was PPC-only. Silly Adobe ...). But as you've discovered, it's not really worth the time investment unless you're quite determined.
QUOTE Thanks
dragonfly3007

 
Member Since: Dec 03, 2011
Posts: 4
dragonfly3007 is on a distinguished road

dragonfly3007 is offline
I am quite determined. I know what the problem is for definite now (after mucking around a bit) and I want to know how to tell my computer to do it. It's no longer responding to either the rc.local file in the etc folder OR the code in terminal. Unfortunately I don't know much about configuring a computer which is why I came here, hopefully someone can help me!

Here are my stats:


If no one can help me here that's fine. I'm aiming to be able to tell the computer how many files to run. I need it to be around 45K.
QUOTE Thanks

Post Reply New Thread Subscribe


« Can't open Address Book | Outlook 2011 rules »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
The Sims 3, New MacBook Pro 15"" w/ Lion, CAN IT HAPPEN?? jchristi OS X - Apps and Games 8 02-17-2012 09:15 AM
OSX Lion File Sharing to Ubuntu PsykLoki OS X - Operating System 2 09-28-2011 01:52 PM
Not too pleased with new iMac JunMacTech Apple Desktops 14 12-05-2005 07:13 PM
2GB file limit when connecting to a Buffalo NAS rbaibich OS X - Operating System 10 06-22-2005 08:25 PM
Can you guys open this site? Desolate One OS X - Apps and Games 13 04-29-2005 01:23 PM

All times are GMT -4. The time now is 08:24 AM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?