Using "5" in a save game filename

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Using "5" in a save game filename

Post by phkb »

If I press the number "5" when entering a save game filename, the view switches to the F5 screen. No other numbers do this.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Using "5" in a save game filename

Post by Cody »

Seems okay here... which version of Oolite and which OS are you running?
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!
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Using "5" in a save game filename

Post by phkb »

Oh, that's odd. OS is Windows 8.1, Oolite 1.80 64bit.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Using "5" in a save game filename

Post by phkb »

Just tried a new game with "Strict Mode" on, and same issue. So that should eliminate any OXP issues I would think.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Re: Using "5" in a save game filename

Post by another_commander »

Are you using the 5 key on the numbers row or the 5 key on the numeric keypad?

Edit: Bug replicated on Windows XP 32-bit.
Edit2: I am away from my laptop and cannot compile to check right now, but PlayerEntityControls.m, method -pollGuiScreenControlsWithFKeyAlias:, line 3213 reads

Code: Select all

if ([gameView isDown:gvFunctionKey5] || [gameView isDown:key_gui_screen_status])
All other listed cases in that method read something like

Code: Select all

if (([gameView isDown:gvFunctionKey6])||(fKeyAlias && [gameView isDown:key_gui_chart_screens]))
i.e. they contain a condition that fKeyAlias must be true. I believe the fix would be to just add the check also for the status screen case which is currently missing it, most likely a little ommission error.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Using "5" in a save game filename

Post by phkb »

Yes, using the number 5 key on the numbers row.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Re: Using "5" in a save game filename

Post by another_commander »

This bug should now be fixed in trunk and for 1.80.1 bugfix branch. You can test the fix in tonight's nightly build. Thanks for the report.
User avatar
Keeper
---- E L I T E ----
---- E L I T E ----
Posts: 273
Joined: Fri Feb 01, 2013 7:44 am
Location: Indian Hills, Nevada, USA

Re: Using "5" in a save game filename

Post by Keeper »

I'm reminded of Steven Wright's comedy routine about having a phone with no 5 on it.
Post Reply