Strange keyboard problem - keybd seems screwed

FOF discussion only. Do NOT post help questions here!
This topic is 17 years and 11 months old. Instead of replying, please begin a new topic, or search for another related topic that may be more suitable.
stanpete
Member
Posts: 3
Joined: December 24th, 2006
Location: germany
Reputation: 0

Postby stanpete » Mon Dec 25, 2006 9:10 am

Hey Guys,
first of of all: Thank you for this amazing game.
I've been playing the Win Version for quite a while, but since I switched to an Intel Mac i've encountered a rather annoying problem:

It's been working fine in the beginning. But after a couple of days the program is giving me a headache when entering a name to the High Score. The letters work, but all the other Buttons will give me strange Squares. This means that even Backspace or Delete don't work and i end up having a name like stan[][][][][]. This is driving me mad - especially when there is _no_ way of deleting something that you have already written.
Right now it looks like this:
stan[][][]stansgirlfriend[][][][][]stan
:-)

I already reinstalled everything but it is still like this.

So please! if you have any idea how to fix this I would appreciate it. I almost lost inetrest in playing because of that.

Cheers,
stan


Oh, btw: The Keyboard is working normally in OSX and using a different model is giving me the the same results.
User avatar
winniez
Member
Posts: 2544
Joined: September 20th, 2006
Reputation: 11

Postby winniez » Mon Dec 25, 2006 1:48 pm

osx :D
downwind
Member
Posts: 1
Joined: December 25th, 2006
Reputation: 0

Postby downwind » Tue Dec 26, 2006 3:48 am

Yeah, there's a slight bug in the keyboard handling on Mac OS X (well, really on all platforms, the others are just lucky), the affected lines are in Dialogs.py;

Code: Select all

   if unicode and ord(unicode) > 31 and not self.accepted:
      self.text += unicode
    elif (c in [Player.KEY1] or key == pygame.K_RETURN) and not self.accepted:
      self.engine.view.popLayer(self)
      self.accepted = True
    elif c in [Player.CANCEL, Player.KEY2] and not self.accepted:
      self.text = None
      self.engine.view.popLayer(self)
      self.accepted = True
    elif key == pygame.K_BACKSPACE and not self.accepted:
      self.text = self.text[:-1]


that should really be

Code: Select all

    if key == pygame.K_BACKSPACE and not self.accepted:
      self.text = self.text[:-1]
    elif unicode and ord(unicode) > 31 and not self.accepted:
      self.text += unicode
    elif (c in [Player.KEY1] or key == pygame.K_RETURN) and not self.accepted:
      self.engine.view.popLayer(self)
      self.accepted = True
    elif c in [Player.CANCEL, Player.KEY2] and not self.accepted:
      self.text = None
      self.engine.view.popLayer(self)
      self.accepted = True


There's no very easy fix for this, the easiest is to download the source code, change these lines in Dialogs.py, and replace Dialogs.pyc in the zip file /Applications/Frets on Fire.app/Contents/Resources/lib/python2.4/site-packages.zip with the changed Dialogs.py file (not just add, the old Dialogs.pyc needs to go away)
That should do it. I'll try to send a patch to the authors to make the fix "permanent" :-)
stanpete
Member
Posts: 3
Joined: December 24th, 2006
Location: germany
Reputation: 0

Postby stanpete » Tue Dec 26, 2006 6:18 am

"My Hero...."

That was just the answer I was hoping for. Thank you very much!
jns
Member
Posts: 3
Joined: January 7th, 2007
Location: Austria
Reputation: 0

Postby jns » Sat Jan 13, 2007 6:13 pm

hi there,

i have some problems getting this fix done.

i replaced the code with the code you posted
but then i fail to run and/or build dialogs.py (i have to do this, to get a .pyc file, right?)
this is the error i get:

File "Dialogs.py", line 115
if key == pygame.K_BACKSPACE and not self.accepted:
^
IndentationError: unindent does not match any outer indentation level


any suggestions to someone who doesn`t know python?
User avatar
gazzer
Member
Posts: 57
Joined: October 17th, 2006
Location: Leeds
Reputation: 0

Postby gazzer » Sat Jan 13, 2007 8:40 pm

wouldn't it be easier to just live with it for now until it gets fixed in a later version?
jns
Member
Posts: 3
Joined: January 7th, 2007
Location: Austria
Reputation: 0

Postby jns » Sun Jan 14, 2007 7:00 am

well, it seemed to me that if you know some python, the problem can be fixed quite easy..

and for me it's not so much about setting your name in the highscores, but use the song editor, which is practically impossible without the option to delete notes!

is frets on fire getting updated that often?
User avatar
danes22
Member
Posts: 2
Joined: April 25th, 2007
Reputation: 0
Contact:

Postby danes22 » Tue May 01, 2007 3:37 pm

i have the same problem on my intel mac and out of frustration i mashed my keyboard so now all my high scores go under Danes2[][]wdrw1245243b2w4wqrS and proceeds to run off the screen, so who knows how long it is.

i know nothing about python, so i have no idea how to recompile the code to get it working. is there any way a patch can be made for download to fix this? i would love to start contributing songs on this forum but using the in-game editor is a pain and i don't know of any alternate methods for macs.

it seems its been a while since anyone has looked to address this, i apologize if someone is currently working on it it's just very frustrating.
User avatar
brawny
Member
Posts: 89
Joined: March 29th, 2007
Location: Grand Rapids, MI
Reputation: 0

Postby brawny » Tue May 01, 2007 3:53 pm

ohhh, first post is a question bump of a thread 3 months old.... Not a good sign.
Image
Image
User avatar
danes22
Member
Posts: 2
Joined: April 25th, 2007
Reputation: 0
Contact:

Postby danes22 » Tue May 01, 2007 4:12 pm

i just want to be able to contribute back to other FoF players but it's kind of hard when you can only make songs in the game and the game won't let you delete if you make one little mistake.
User avatar
poiklpu
Member
Posts: 233
Joined: February 18th, 2007
Reputation: 0

Postby poiklpu » Sun Jun 03, 2007 8:05 pm

this is starting to get really annoying. all of the good new songs im getting have delays and i cant fix them cause of this stupid problem
See my star wars mod for Alarian!:
Star Wars Mod
el nini wrote:Split screen? TWO keyboards on ONE compter? Madness I say. Madness...
Shredder
jake2k3
Member
Posts: 2801
Joined: February 24th, 2007
Location: River City, Alabama
Reputation: 0

Postby jake2k3 » Sun Jun 03, 2007 8:22 pm

If ALL of the songs you're downlaoding are getting delays, you probably have a different problem.

Oh, and good job reviving an already zombie topic.
~Jake2k3
Goodbye everyone. It's been fun. I spent many many hours here on these boards and playing/contributing to FoF. Today I uninstalled my game and deleted all my files. I just don't have the time or interest anymore. I won't be coming back here anymore. I might show up in the IRC from time to time to chat. I regret nothing.

So long, farewell.
~Jake2k3

Return to “General FOF Discussion”

Who is online

Users browsing this forum: No registered users and 5 guests