Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - ArthurDenture

3
Incorporated Patches and Solved Bug Reports / r3495 Mac pak128 - crash when scrolling
I'm running into a crash on the Mac version of Simutrans. This occurs when I'm scrolling the map by holding down the arrow keys. It happens frequently enough, but unfortunately, I haven't figured out the exact circumstances of the crash to reproduce it reliably. Here's the message printed out:

Quote
2010-07-04 15:26:35.720 sim-macintel[6357:10b] Exception raised during posting of notification.  Ignored.  exception: '*** -[NSLayoutManager glyphRangeForTextContainer:]: given container does not appear in the list of containers for this NSLayoutManager.'  invoked observer method: '*** -[SDLMain applicationDidFinishLaunching:]'  observer: 0x426500  notification name: 'NSApplicationDidFinishLaunchingNotification'

At this point, the game stops responding, and it segfaults a few seconds later.

This is on OS X 10.5.8 (Leopard) on a Macbook Pro, with the latest nightlies (tested with r3495). I tried running with "-log 1", but all that seems to do is create an empty file at ~/simutrans/simu.log.

Let me know if there's anything else that would help debug.
4
Bug Reports / Re: [bug r2570] Arrow keys not recognized on Macbook Pro
Ok, I tried with an external USB keyboard (with a PC-style layout), and the arrow keys and PgUp+PgDn still do not work. That suggests that there is a more general problem with the Mac port (or with SDL), rather than it specifically having trouble recognizing the laptop keyboard.
5
Bug Reports / Re: [bug r2570] Arrow keys not recognized on Macbook Pro
Page up and page down only exist as Fn+Up and Fn+Down, respectively - though I think the translation might be low-level enough that SDL does see them as page up and page down (for the same reason that it's more or less impossible to, say, swap the Fn and Ctrl keys). Either way, the game does not recognize them.

I'll try later this evening with an external keyboard to see if it's specifically a problem with funny keycodes being sent out or if it's that SDL
 does not see any arrow keys at all.

Thanks for pointing out the right mouse button. Clicking and dragging while holding the Cmd key does indeed scroll, which is a reasonable workaround.

(By the way, do most Mac users tend to use fink? I find it odd that the default binaries look for a library under /sw. But I'm primarily a Linux user - under which simutrans works absolutely great - so maybe I'm just missing something obvious.)
6
Bug Reports / [bug r2570] Arrow keys not recognized on Macbook Pro
Hi,

On my Macbook Pro laptop, Simutrans does not respond to the arrow keys or to PgUp-PgDown (which are Fn+arrow keys). Pressing these keys brings up the keyboard help screen. Needless to say, this makes the game unplayable (the only way to scroll is with the numbers on the top of the keyboard). This behavior happened with 102.0, and I double-checked with the latest nightly (r2570).

I looked around in pak/config, and I don't see any configurations that I can tweak to work around this (menuconf.tab does not include the arrow keys, it seems).

Here are the relevant details:
- Intel MacBook Pro
- Mac OS X 10.5.7
- same problem with pak64 or pak128
- I'm using sdl 1.2.13 and sdl-mixer 1.2.8, provided by the Fink package management system. (I tried installing SDL in /Library/Frameworks as recommended on the download page, but the binary refused to start, complaining about missing /sw/lib/libSDL-1.2.0.dylib, but that's a separate bug report that I should get around to filing.)

Please let me know if you'd like any other system information, or if anyone else also is encountering this bug.