MAC OS X Version - Trouble installing new version

Help center. Members helping members
Forum rules
This topic is 18 years and 1 week old. Instead of replying, please begin a new topic, or search for another related topic that may be more suitable.
tim
Member
Posts: 21
Joined: October 7th, 2006
Location: illinois
Reputation: 0

Postby tim » Wed Nov 08, 2006 11:35 am

I thought it would be safer to change the declarations so I did that instead of casting.

PyAmanith and macholib are installed. Where is the Mac revision of the FretsOnFire source code? The readme says that there are some changes, notably src/setup_mac.py. I can't seem to find it - and it is not included in the MacSupport download. Thanks again!
Last edited by tim on Wed Nov 08, 2006 11:39 am, edited 1 time in total.
Tero
Member
Posts: 8
Joined: November 5th, 2006
Location: Oulu, Finland
Reputation: 0

Postby Tero » Wed Nov 08, 2006 12:38 pm

Great! The changes you mention are exactly the ones that are unfortunately currently missing by a mistake (I'll send some mail to hurry that...). It's not as bad as it sounds, though. Without them, you can't make the .app, and I'm getting random crashes on startup (some SDL/PyGame threading thing), but I'm able to run it with "python fretsonfire.py".

But if you're in a hurry...

** In GameEngine.py

After Engine.(self, fps = fps, ......)
add code:

"""
if sys.platform != 'darwin':
pygame.init()
"""

After bufferSize = .... add:

"""
if sys.platform != 'darwin':
self.audio.open(frequency = frequency, bits = bits, stereo = stereo, bufferSize = bufferSize)
else:
self.audio.pre_open(frequency = frequency, bits = bits, stereo = stereo, bufferSize = bufferSize)
pygame.init()
"""

** In Audio.py

Add method:

def pre_open(self, frequency = 22050, bits = 16, stereo = True, bufferSize = 1024):
pygame.mixer.pre_init(frequency, -bits, stereo and 2 or 1, bufferSize)
return True

**
tim
Member
Posts: 21
Joined: October 7th, 2006
Location: illinois
Reputation: 0

Postby tim » Wed Nov 08, 2006 3:15 pm

I made the changes you listed but now there are new errors. Here's the output upon running fretsonfire.py:

CPSEnableForegroundOperation (1010, (0, 6815745))
Traceback (most recent call last):
File "fretsonfire.py", line 61, in ?
engine = GameEngine(config)
File "/Users/tim/Projects/FretsOnFire/src/GameEngine.py", line 148, in
self.video.setMode((width, height), fullscreen = fullscreen, multisamples = multisamples)
File "/Users/tim/Projects/FretsOnFire/src/Video.py", line 51, in setMode
pygame.display.gl_set_attribute(pygame.GL_RED_SIZE, 8)
pygame.error: video system not initialized

Perhaps this will go away upon the completion of what you're working on, though. No rush, don't worry. I had some spare time so I figured I might as well try.
Arturus
Member
Posts: 1
Joined: November 9th, 2006
Reputation: 0

Postby Arturus » Thu Nov 09, 2006 3:41 pm

I didn't even get to the point where it crashes instead of running, because the 37.9 MB OS X download seems to have been replaced by a 4 KB file with a checksum of d14a1b4f9c72814fdd7fa19cbaccb1b5

Additionally, the associated os x files at http://louhi.kempele.fi/~skyost....ort.zip

return a page that says

"Warning: Panda GateDefender Performa has detected unauthorized content in the following file: fretsonfire-macsupport.zip

The download from http://louhi.kempele.fi/~skyost....ort.zip has been blocked"

So I'm unable to test things on my computer/offer any input at all here. Something strange is afoot.
ominae
Member
Posts: 3
Joined: November 6th, 2006
Location: Argentina
Reputation: 0

Postby ominae » Wed Nov 15, 2006 2:39 pm

any news with osx version??? hope this work soon so i can play in the office :)
Tero
Member
Posts: 8
Joined: November 5th, 2006
Location: Oulu, Finland
Reputation: 0

Postby Tero » Fri Nov 17, 2006 7:25 am

ominae wrote:any news with osx version??? hope this work soon so i can play in the office :)

I'll take a look at it during this weekend. Then it's probably up to some helpful person to assist on the PPC version (if it still doesn't work out of the box).

-- Tero
ominae
Member
Posts: 3
Joined: November 6th, 2006
Location: Argentina
Reputation: 0

Postby ominae » Thu Nov 23, 2006 9:05 am

Thanks Tero, i will test like crazy when it come to ppc macs
User avatar
lardbloke
Member
Posts: 50
Joined: October 2nd, 2006
Location: Scotland
Reputation: 0

Postby lardbloke » Sun Nov 26, 2006 4:40 am

I unzipped he newest version onto my desktop and ran it and I am getting termination errors (i.e not working)). Is anyone else getting the same error or is it just me??
tsuby
Member
Posts: 2
Joined: November 20th, 2006
Reputation: 0

Postby tsuby » Sun Nov 26, 2006 6:30 am

Do you have the following message: "Inappropriate file type for dynamic loading" ? Do you have intel cpu or ppc cpu ?
User avatar
lardbloke
Member
Posts: 50
Joined: October 2nd, 2006
Location: Scotland
Reputation: 0

Postby lardbloke » Sun Nov 26, 2006 9:36 am

Yep thats the error, no its an Ibook G4.....

Looks like we all have another problem (I wish they wouldnt release this without at least testing on a few machines or use us as testers before releasing).
Last edited by lardbloke on Sun Nov 26, 2006 9:38 am, edited 1 time in total.
Ben
Member
Posts: 3
Joined: November 27th, 2006
Reputation: 0
Contact:

Postby Ben » Mon Nov 27, 2006 3:00 am

If you want more betatesters (and possibly even coding help) you could ask around at some Mac forums, for example the Finnish Omenamehu.
SiCbe
Member
Posts: 2
Joined: November 27th, 2006
Reputation: 0

Postby SiCbe » Mon Nov 27, 2006 12:56 pm

This is the error I'm getting:

Frets on Fire Error
An unexpected error has occurred during execution of the main script

ImportError: Failure linking new module: /Users/SiC/Desktop/Frets on Fire.app/Contents/Resources/lib/python2.4/lib-dynload/datetime.so: bad local relocation length...

I have a new MBP c2d 17inch so :S why doesn't it work?

thanks
killgoro
Member
Posts: 1
Joined: November 13th, 2006
Reputation: 0

Postby killgoro » Mon Nov 27, 2006 2:53 pm

I was having the same problem as SiCbe on my Intel iMac running 10.4.8. I was able to get it running buy doing a couple of things.

First I replaced Frets on Fire.app/Contents/Resources/lib/python2.4/lib-dynload/datetime.so with datetime.so from the previous version.

Then I was getting just a black screen with an error in console.log
OSError: [Errno 2] No such file or directory: 'data/mods'

So I created an empty folder named mods in the data folder like...
Frets on Fire.app/Contents/Resources/data/mods

After that it started up and played. I still could not get all the GH2 songs working. I get the 'index out of range' errors when I select a song with no difficulties listed. I'm guessing this is probably from moving the old datetime.so.
Last edited by killgoro on Mon Nov 27, 2006 2:56 pm, edited 1 time in total.
rain
Member
Posts: 1
Joined: August 31st, 2006
Location: france
Reputation: 0

Postby rain » Mon Nov 27, 2006 3:57 pm

I have the same problem ( intel MBP 2 ,15" )
I deleted the old version, can you give me the file?
Tero
Member
Posts: 8
Joined: November 5th, 2006
Location: Oulu, Finland
Reputation: 0

Postby Tero » Mon Nov 27, 2006 4:33 pm

Hi All,

The trouble you're seeing _now_ was caused by a corrupted USB memstick. (Murphy's law seems to apply here). If you feel like it, you can try replacing all the lib files (.so's & .dylib's) from the old package with the new one (don't replace the .pyc's). Or just wait until an "official patched release" ;)

As for positive news... Well... At least on the Intel Macs you now will get a fully working version. (Tested on my MacBook).

-- Tero

Return to “Tech Support”

Who is online

Users browsing this forum: No registered users and 4 guests