Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Keyword Mapping

News and discussion of the PC port of Oolite.

Moderators: winston, another_commander

Neverlast74
Above Average
Above Average
Posts: 28
Joined: Fri Sep 25, 2009 9:38 pm
Location: vienna vienna

Keyword Mapping

Post by Neverlast74 »

Hello everyone - first of all I would like to thank all of you who helped creating this game - it is wonderful.

I am playing the latest 1.73.4 test and have to say it is much better than the 1.63. Although installing it killed my save games but what do I know what I did.

somehow I have a talent killing my save games, because what happened I kept using the autosave option and when I died - I pressed F1 instead of F2 so exited the space station and autosave was overwritten :cry:

SUGGESTION
So my suggestion is, as hardly no one starts as jamson all over again after he died: instead of pressing space which starts a new game (LAVE 100 Credits) - it does load last saved version - or show the screen you see when launching a new game. Load new Commander (y/n)

Mapping Question:
I am lefthanded - and would like to remap my keyboard using num block - what do I have to use for decimal?

Some I have already found out ...
num 6 252
num 7 (home) 302
num 8 (arrow up) 255
num 2 (arrow down) 254
num 4 253
minus -
plus +


others are still missing:
num 0 (insert)
num 1 (end)
num 3 (page down)
num 5
num 9 (page up)
divided by /
multiply *
numblock enter

Can someone help me what they are in keyconfig.plist? thanks in advance - greetings from Vienna Austria.
------
old amiga verteran coming home.... sara
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8512
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

First time I've had chance to do this for a while:

Welcome to the Friendliest Board this side of Riedquat(tm)

With regards key remapping I think it may alter subtly from OS to OS and from native language to native language - I think if you use a German keyboard layout somebody has already produced a Keymapper app that may be able to help, but it may be Mac only - not sure - if I find it, I will edit this post.


EDIT:

Try this: https://bb.oolite.space/viewtopic.ph ... 949edf39b5
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
Neverlast74
Above Average
Above Average
Posts: 28
Joined: Fri Sep 25, 2009 9:38 pm
Location: vienna vienna

Post by Neverlast74 »

thanks for your swift answer.
I have a pc and this mac tools do not really help me. but I found out that a http://www.asciitable.com/ or better here the hex values for all

http://api.farmanager.com/en/winapi/vir ... codes.html


anyhow thx.

THE LIST BELOW DOES NOT WORK

DEC______Description___HEX________Description
8_______BACK_________08_________BACKSPACE_key
9_______TAB_______________09________TAB_key
12_______CLEAR________0C________CLEAR_key
13_______RETURN________0D________ENTER_key
16_______SHIFT________10________SHIFT_key
17_______CONTROL________11________CTRL_key
18_______MENU________12________ALT_key
19_______PAUSE________13________PAUSE_key
20_______CAPITAL________14________CAPS_LOCK_key
27_______ESCAPE________1B________ESC_key
32_______SPACE________20________SPACEBAR
33_______PRIOR________21________PAGE_UP_key
34_______NEXT________22________PAGE_DOWN_key
35_______END_______________23________END_key
36_______HOME________24________HOME_key
37_______LEFT_______________25________LEFT_ARROW_key
38_______UP_______________26________UP_ARROW_key
39_______RIGHT________27________RIGHT_ARROW_key
40_______DOWN________28________DOWN_ARROW_key
41_______SELECT_______29________SELECT_key
42_______PRINT________2A________PRINT_key
43_______EXECUTE________2B________EXECUTE_key
44_______SNAPSHOT________2C________PRINT_SCREEN_key_for_Windows_3.0_and_later
45_______INSERT________2D________INS_key
46_______DELETE________2E________DEL_key
47_______HELP_______________2F________HELP_key
48_______0________30________0_key
49_______1________31________1_key
50_______2________32________2_key
51_______3________33________3_key
52_______4________34________4_key
53_______5________35________5_key
54_______6________36________6_key
55_______7________37________7_key
56_______8________38________8_key
57_______9________39________9_key
65_______A________41________A_key
66_______B________42________B_key
67_______C________43________C_key
68_______D________44________D_key
69_______E________45________E_key
70_______F________46________F_key
71_______G________47________G_key
72_______H________48________H_key
73_______I_______49________I_key
74_______J_______4A________J_key
75_______K________4B________K_key
76_______L_______4C________L_key
77_______M________4D________M_key
78_______N________4E________N_key
79_______O________4F________O_key
80_______P________50________P_key
81_______Q________51________Q_key
82_______R________52________R_key
83_______S________53________S_key
84_______T________54________T_key
85_______U________55________U_key
86_______V________56________V_key
87_______W________57________W_key
88_______X________58________X_key
89_______Y________59________Y_key
90_______Z________5A________Z_key
91_______LWIN________5B________Left_Windows_key_(Microsoft_Natural_Keyboard)
92_______RWIN________5C________Right_Windows_key_(Microsoft_Natural_Keyboard)
93_______APPS_______________5D________Applications_key_(Microsoft_Natural_Keyboard)
95_______SLEEP________5F________Computer_Sleep_key
96_______NUMPAD0________60________Numeric_keypad_0_key
97_______NUMPAD1________61________Numeric_keypad_1_key
98_______NUMPAD2________62________Numeric_keypad_2_key
99_______NUMPAD3________63________Numeric_keypad_3_key
100_______NUMPAD4________64________Numeric_keypad_4_key
101_______NUMPAD5________65________Numeric_keypad_5_key
102_______NUMPAD6________66________Numeric_keypad_6_key
103_______NUMPAD7________67________Numeric_keypad_7_key
104_______NUMPAD8________68________Numeric_keypad_8_key
105_______NUMPAD9________69________Numeric_keypad_9_key
106_______MULTIPLY________6A________Multiply_key
107_______ADD_______________6B________Add_key
108_______SEPARATOR6C________Separator_key
109_______SUBTRACT________6D________Subtract_key
110_______DECIMAL________6E________Decimal_key
111_______DIVIDE________6F________Divide_key
112_______F1________70________F1_key
113_______F2________71________F2_key
114_______F3________72________F3_key
115_______F4________73________F4_key
116_______F5________74________F5_key
117_______F6________75________F6_key
118_______F7________76________F7_key
119_______F8________77________F8_key
120_______F9________78________F9_key
121_______F10________79________F10_key
122_______F11________7A________F11_key
123_______F12________7B________F12_key
144_______NUMLOCK________90________NUM_LOCK_key
145_______SCROLL________91________SCROLL_LOCK_key
160_______LSHIFT________A0________Left_SHIFT_key
161_______RSHIFT________A1________Right_SHIFT_key
162_______LCONTROL________A2________Left_CONTROL_key
163_______RCONTROL_A3________Right_CONTROL_key
164_______LMENU_______A4________Left_MENU_key
165_______RMENU________A5________Right_MENU_key
166_______BROWSER_BACK_______________A6________Windows_2000/XP/2003/Vista/2008/7:_Browser_Back_key
167_______BROWSER_FORWARD________A7________Windows_2000/XP/2003/Vista/2008/7:_Browser_Forward_key
168_______BROWSER_REFRESH________A8________Windows_2000/XP/2003/Vista/2008/7:_Browser_Refresh_key
169_______BROWSER_STOP_______________A9________Windows_2000/XP/2003/Vista/2008/7:_Browser_Stop_key
170_______BROWSER_SEARCH________AA________Windows_2000/XP/2003/Vista/2008/7:_Browser_Search_key
171_______BROWSER_FAVORITES________AB________Windows_2000/XP/2003/Vista/2008/7:_Browser_Favorites_key
172_______BROWSER_HOME______________AC________Windows_2000/XP/2003/Vista/2008/7:_Browser_Start_and_Home_key
173_______VOLUME_MUTE_______________AD________Windows_2000/XP/2003/Vista/2008/7:_Volume_Mute_key
174_______VOLUME_DOWN_______________AE________Windows_2000/XP/2003/Vista/2008/7:_Volume_Down_key
175_______VOLUME_UP_______________AF________Windows_2000/XP/2003/Vista/2008/7:_Volume_Up_key
176_______MEDIA_NEXT_TRACK________B0________Windows_2000/XP/2003/Vista/2008/7:_Next_Track_key
177_______MEDIA_PREV_TRACK________B1________Windows_2000/XP/2003/Vista/2008/7:_Previous_Track_key
178_______MEDIA_STOP_______________B2________Windows_2000/XP/2003/Vista/2008/7:_Stop_Media_key
179_______MEDIA_PLAY_PAUSE________B3________Windows_2000/XP/2003/Vista/2008/7:_Play/Pause_Media_key
180_______LAUNCH_MAIL_______________B4________Windows_2000/XP/2003/Vista/2008/7:_Start_Mail_key
181_______LAUNCH_MEDIA_SELECT________B5________Windows_2000/XP/2003/Vista/2008/7:_Select_Media_key
182_______LAUNCH_APP1_______________B6________Windows_2000/XP/2003/Vista/2008/7:_Start_Application_1_key
183_______LAUNCH_APP2_______________B7________Windows_2000/XP/2003/Vista/2008/7:_Start_Application_2_key
186_______OEM_1______________________BA________Windows_2000/XP/2003/Vista/2008/7:_For_the_US_standard_keyboard,_the_';:'_key
187_______OEM_PLUS______________________BB________Windows_2000/XP/2003/Vista/2008/7:_For_any_country/region,_the_'+'_key
188_______OEM_COMMA_______________BC________Windows_2000/XP/2003/Vista/2008/7:_For_any_country/region,_the_','_key
189_______OEM_MINUS_______________BD________Windows_2000/XP/2003/Vista/2008/7:_For_any_country/region,_the_'-'_key
190_______OEM_PERIOD_______________BE________Windows_2000/XP/2003/Vista/2008/7:_For_any_country/region,_the_'.'_keyy


did not try it out - but tomorrow.... good night...
Last edited by Neverlast74 on Sat Sep 26, 2009 9:05 am, edited 3 times in total.
------
old amiga verteran coming home.... sara
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16073
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post by Cody »

Hi, Neverlast74 and welcome.

Some advice on saving: don’t use autosave.
Get into a method along the lines of: dock, sell, refuel and refit, quicksave (f2), select next system, buy, launch.

Always keep a back-up of your main savegame.

Enjoy the game.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Neverlast74
Above Average
Above Average
Posts: 28
Joined: Fri Sep 25, 2009 9:38 pm
Location: vienna vienna

Post by Neverlast74 »

ok after a lot of trying I am still puzzled about how to map numblock 0-9.
does some one know ?

thanks in advance...
------
old amiga verteran coming home.... sara
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6573
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

Some keys are currently not used at all by Oolite. As far as numeric keypad keys are concerned, this is what can be seen by the game in 1.73.4:

Code: Select all

SDLK_KP8 // equivalent to up arrow
SDLK_KP2 // equivalent to down arrow
SDLK_KP4 // equivalent to left arrow
SDLK_KP6 // equivalent to right arrow
SDLK_KP_MINUS
SDLK_KP_PLUS
SDLK_KP1// equivalent to <
SDLK_KP3// equivalent to >
Unfortunately, at this stage you cannot map the entire numeric keypad.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

I've now tweaked autosave, and it should work reasonably ok now...

About loading the last save game on dying: this was the case for a long time, and somehow we (I?) managed to break that functionality a little while ago... I'll try and restore that functionality at some point - hopefully in the near future...
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Kaks wrote:
I've now tweaked autosave, and it should work reasonably ok now...

About loading the last save game on dying: this was the case for a long time, and somehow we (I?) managed to break that functionality a little while ago... I'll try and restore that functionality at some point - hopefully in the near future...
At least the spin doctors were working fine, and sold it as a new feature. :wink:
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Are you referring to this, by any chance?

Well, there was an 'accident' with the restart game code and it was broken in many places... we did our best, and it took a long, long time to get it to work properly again. In the meanwhile the old feature got lost in the wash ( and yes, I thought it was done on purpose, when I read some comments attached to the code ).

When we figured out it was actually a snafu, it was thought best not to fiddle with such a delicate part of the code for a while, lest we'd break it again...

But I'm feeling a bit reckless at the moment, and that part of the code is more robust now than it was at the time, so I might risk Oolite's life & limb once more in the very near future! :D
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Yes, that was about what I was referring to. And the release notes of version I-don't-know-now-and-am-too-lazy-to-look-it-up, of course. :D
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Commander McLane, I don't quite know how to say this, but I think I managed to get that functionality back. I'm testing it now, and - barring any nasty surprises - it should be making its way to maintenance fairly soon...
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Fine with me. :D

I mean, bringing back and forth features that originally weren't even intended to be features is becoming something of a specialty here lately (your specialty, to be precise). :wink:
dabadab
Harmless
Harmless
Posts: 1
Joined: Thu Oct 01, 2009 9:26 pm

Post by dabadab »

Neverlast74 wrote:
ok after a lot of trying I am still puzzled about how to map numblock 0-9.
does some one know ?
Well, I have checked the code, and the situation is quite awful at the moment. To be a little more precise:

What works (with keycode)

KP minus: 45
KP plus: 43
KP 1: 310
KP 3: 311

What partially works

2/4/6/8: these are considered to be the same by Oolite as down/left/right/up cursor keys, so they have the same codes.

What does not work

All the other keys on the numpad, they are totally unhandled.

You can hack you own support by modifying MyOpenGLView.m (around lines 1250 (key press) and 1400 (key release)) and adding your own values (also, don't forget to increase NUM_KEYS in MyOpenGLView.h) and recompile Oolite on your own. Oh, the beauty of open source! :)

EDIT: I'm new on this forum, hi everybody!
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Post by Diziet Sma »

Hi dabadab! nice opening post! :D

Welcome to "the friendliest board this side of Riedquat!"™
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

Welcome, dabadab! You'll see it's a nice place here. Feel free to take a rest on a seedy space bar or push some Thargoids (this one not, please) bugs around.
Diziet Sma wrote:
nice opening post!
Yupp. Promising start :-)
Post Reply