Remap Keys for GoG Games under OSX

I recently purchased Terra Nova on GoG and tried to play it under OSX. The only problem is that some of the old games do not allow you to edit the keymap and Terra Nova has some strange keyboard configuration. Instead of the nowadays WASD standard, Terra Nova put running on ‘W’, walking on ‘S’ and backwards on ‘X’ which is really weird.

Usually under Windows you’d press CTRL+F1 to bring up DosBOX own remap utility. However, GoG switched from native DosBox to Boxer which in most cases does not have this utility. After searching around a bit, I found a solution that’s easy to work with: Karabiner (formerly know as KeyRemap4MacBook).

However, after you install and run it, it is not immediately clear how to remap certain keys. It turns out you need to edit a the private.xml file manually. Click the link to see how to edit and load this file.

There is a huge documentation available, along with samples over here: https://pqrs.org/osx/karabiner/xml.html.en

This minimal example should get you started for Terra Nova. Notice that the remap is only active in the Terra Nova Window and nowhere else – so you can leave this option always enabled and do not need to switch to a different profile when you start the game.

<?xml version="1.0"?>
<root>
	<appdef>
		<appname>Terra Nova</appname>
		<equal>com.companyname.terra-nova</equal>
	</appdef>
	<item>
		<name>Terra Nova Keymap</name>
		<identifier>private.appdef</identifier>
		<only>Terra Nova</only>
		<autogen>__KeyToKey__ KeyCode::S, KeyCode::X</autogen>
		<autogen>__KeyToKey__ KeyCode::Q, KeyCode::Z</autogen>
		<autogen>__KeyToKey__ KeyCode::E, KeyCode::C</autogen>
	</item>
</root>

Leave a Reply

Your email address will not be published. Required fields are marked *