Author Topic: Mac OS X 10.5.x by hackintosh: keyboard specific error  (Read 8336 times)

0 Members and 1 Guest are viewing this topic.

Offline heathen

  • 22
Mac OS X 10.5.x by hackintosh: keyboard specific error
Hi!

I have a problem with running FSO. I tried some mods (mediavp, WC Saga, BtRL) with different engine's builds, but have one problem. Game starting, I can see preview (cool graphic, by the way!), and on Create new pilot screen all is over for me. I can't enter pilot name: keyboard did not working except service keys (like Enter, Esc and so on). None of keys is working: letters or digits, none of this. I can only exit the game via Esc.

My system:
MacOS X 10.5.5 on PC
Intel C2Q6600, 4Gb RAM, nVidia GF6600, USB keyboard\mouse (wireless Logitech keyboard; work fine in every application I tried before), Logitech USB wireless joystick.
I have two keyboard maps enabled (Eng and Russian) but even work with US-only keyboard map nothing changes.

Hope you can help me remember my past: I began from Wing Commander and Wing Commander 2 at my school on 386SX at 1993. ;-)

P.S. Sorry for a bad English. ;)

 

Offline Jeff Vader

  • The Back of the Hero!
  • 212
  • Bwahaha
Re: Mac OS X 10.5.x by hackintosh: keyboard specific error
I tried some mods (mediavp, WC Saga, BtRL)
Just to clarify on thing: you do know that Wing Commander Saga and Beyond the Red Line are standalones? You must install them separate from your FreeSpace2 installation.
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []

 

Offline heathen

  • 22
Re: Mac OS X 10.5.x by hackintosh: keyboard specific error
I tried some mods (mediavp, WC Saga, BtRL)
Just to clarify on thing: you do know that Wing Commander Saga and Beyond the Red Line are standalones? You must install them separate from your FreeSpace2 installation.
Thanks for your reply.

Of course I know. I mean I tried different builds - and it was on different directories. And everything works fine at start - except keyboard input.  :(

Add:
BtRL was installed by it's own installer - for the first try.
WCS on original dmg dist - for the second.
FSO with mediavp - for the third.
WCS with new wcs-specific build (wcs_prologe_5028) - and for the last.
« Last Edit: January 28, 2009, 03:31:48 pm by heathen »

 

Offline heathen

  • 22
Re: Mac OS X 10.5.x by hackintosh: keyboard specific error
I still need your help, guys.

I tried to look into the code and change some old commented debug code. That's what I found:

game_poll() does not get key codes except for the numeric (both main and keypad) and function keys (Ctrl, Shift, Fx, Esc, Enter and so on). None of keys in main keys area produce key press event, so game_poll() did not receive key code. The error is around key_inkey() I think, but I can't understand all logic at this step after this quick code review.

What can I do at this point? (Well, in addition to simply forget about the game and to do something else :-D )
« Last Edit: January 29, 2009, 02:04:35 pm by heathen »

 

Offline heathen

  • 22
Re: Mac OS X 10.5.x by hackintosh: keyboard specific error
I'm not sure that this is someone interested in (we got a conversation with himself), but I found the problem. Not sure of the differences, but in my case, code keys - in the international part of the SDLK code table.

If someone needs a patch - it as an attachment.

And, of course, patched build 5055_k.

[attachment deleted by admin]
« Last Edit: January 29, 2009, 04:51:06 pm by heathen »

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Mac OS X 10.5.x by hackintosh: keyboard specific error
It's interesting, I kind of want to know more about what exactly the cause of the problem is.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Mac OS X 10.5.x by hackintosh: keyboard specific error
I'm not sure that this is someone interested in (we got a conversation with himself), but I found the problem. Not sure of the differences, but in my case, code keys - in the international part of the SDLK code table.
I thought that this might be the problem.  However, in that case it's key map related, and you mentioned in the initial post that you had already tried a standard US map.  So my guess is that you actually weren't using the proper key map, or you changed it after you had already started the game (in which case SDL didn't know about it).

Your patch isn't really a general fix though, so it can't go into SVN.  That key layout would really only be valid for the keyboard map/setup that you are using.  And unfortunately proper support for a non en-US key map requires a nice sized rewrite to work properly.

 

Offline heathen

  • 22
Re: Mac OS X 10.5.x by hackintosh: keyboard specific error
I held a small experiment:

1. Put the US keymap only, leaving only the English language in regional settings. Reboot. The original build without my patch is working properly.
2. Set key maps to US and Russian-PC. Language: English. Reboot. The original build without the patch is working properly.
3. Key maps: US + Russian-PC. Language: English, but sort order - Russian. Reboot. The original build without the patch works well again.
4. And now, interesting. Key map: US only. Language: Russian first, English at the second position. Reboot. The original build without the patch does NOT work as needed.

So I tried to install languages instead Russian. Discovered that the original version works in all cases, except for the languages on the basis of the Cyrillic alphabet. Ie Turkish, Greek, Japanese, Farsi, etc - everything works well. If, however, put the Russian, Ukrainian, Bulgarian, Serbian - there is a problem. Test system does not include any layout, except the US.

Thus (absolutely incomprehensible to me) the problem arises only when the main interface on the basis of the Cyrillic alphabet.

Now about the patch. Actually, I do not see the options under which he can do much harm. If you use this option, the primary FS2 scan codes table does not change in any way, only the additional SDLtoFS2 array elements are initialized.
And I see about it problem at least once when dig at Google - but it was under Linux.

But, of course, include it in the main tree or not - this is your case as a team of developers. I was curious to figure out why it does not work - I understand it now, and I can play now. :-)
Incidentally, there is a description of how to build for the WC Saga and Beyond the Red Line? I would like to see these modes too.

 

Offline heathen

  • 22
Re: Mac OS X 10.5.x by hackintosh: keyboard specific error
And I forgot to clean up some debug code from the patch. :nervous:

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Mac OS X 10.5.x by hackintosh: keyboard specific error
I wondered what that printf() was doing there.  :)
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Tinman

  • 27
  • Released: WCS mini campaign
Re: Mac OS X 10.5.x by hackintosh: keyboard specific error
Incidentally, there is a description of how to build for the WC Saga and Beyond the Red Line? I would like to see these modes too.

the difference for WCSaga is that the preferences are stored in <your home folder>"/Library/WCS Prologue" on MacOS X

the define is in code/osapi/osregistry_unix.cpp

HTH