[Ohrrpgce] SVN: teeemcee/10966 Add "Map joystick controls to keyboard keys for scripts" bit, on by defa

Ralph Versteegen teeemcee at gmail.com
Tue Apr 28 05:33:45 PDT 2020


I tested Eat Soap on PC and it works fine now.
But I noticed that when you continue after running out of lives (single
player) arrows (a map layer) flash on the screen for a moment. Did it
always do that?

I think it might be better to remap joystick Use to Ctrl (both left and
right?) instead of Enter, to improve compatibility with more games. I know
a lot of people wrote scripts that didn't check all three of ctrl, enter,
space for scripts use keys, and I'd guess ctrl was probably the most
common. Or maybe space, like Eat Soap uses?

On Mon, 27 Apr 2020 at 22:20, James Paige <Bob at hamsterrepublic.com> wrote:

> Ah, okay, that makes more sense.
>
> And you are right, Don't Eat Soap never did use joystick. It used the
> Android support for mapping gamepad to keys. I can test that on my old
> OUYA, I just haven't rebuilt anything for it recently.
>
> On Sun, Apr 26, 2020, 11:53 PM Ralph Versteegen <teeemcee at gmail.com>
> wrote:
>
>> Actually, the eatsoap scripts don't read the joystick at all. But maybe
>> you're referring to platform specific keys?
>>
>> On PC, Space to bubble doesn't work. Is that what you mean? It's because
>> of this line in "handle keys":
>>   if(any player menu key || keyval(key:Enter) >> 1) then(pause menu)
>> That hits bug 1106 https://github.com/ohrrpgce/ohrrpgce/issues/1106
>> I forgot to put the bug on my todo list! I definitely wanted to fix that
>> one too.
>>
>> However even with that bugfix, it looks like joystick controls on PC
>> aren't going to work, and they never worked, so that's OK. I'm not sure
>> whether mobile & console gamepad controls will work.
>>
>> On Mon, 27 Apr 2020 at 09:49, James Paige <Bob at hamsterrepublic.com>
>> wrote:
>>
>>> > Not a big deal, I'm sure it will be an easy fix
>>>
>>> I want to clarify that I meant this will be easy to fix in Don't Eat
>>> Soap's scripts. I don't think this really calls for an engine fix.
>>>
>>>
>>>
>>> On Sun, Apr 26, 2020 at 5:48 PM James Paige <Bob at hamsterrepublic.com>
>>> wrote:
>>>
>>>> I just now noticed that this bit breaks a few of the keyboard controls
>>>> for Don't Eat Soap.
>>>>
>>>> Possibly a result of having manual scripting that checks both joysticks
>>>> and keyboard keys and now some of those checks return true twice for a
>>>> keyboard key.
>>>>
>>>> Not a big deal, I'm sure it will be an easy fix, I just wanted to
>>>> mention it in case we run across any other similar issues with old games
>>>> that scripted for joystick support.
>>>>
>>>> ---
>>>> James Paige
>>>>
>>>>
>>>> On Tue, Feb 12, 2019 at 9:04 AM Ralph Versteegen <teeemcee at gmail.com>
>>>> wrote:
>>>>
>>>>> This bit is a quick fix; I might replace it later with detailed
>>>>> settings for defining the joystick to keyboard mapping.
>>>>> I also wanted to extend it to map 3rd and 4th (and more) joystick
>>>>> buttons to Z and Shift, since I think those are the most common
>>>>> special keys used ... or maybe Z and X? Currently 3rd and 4th buttons
>>>>> are alternative Use and Cancel. But maybe there are some joysticks
>>>>> where 3rd and 4th buttons are 'handier'/more primary than 1st and 2nd.
>>>>>
>>>>> Also, it seemed kind of odd to have a settings to stop joysticks from
>>>>> acting like keyboard controls for scripts only, but not have any way
>>>>> to prevent joystick controls from working for moving the hero.
>>>>> But I think that should probably be a separate setting: Currently, you
>>>>> could say that keyboard, mouse, and all joysticks control player 1,
>>>>> but if you enable multiplayer controls (similar to how Ouya controls
>>>>> currently work) then the first joystick might become assigned player
>>>>> 2. And in that case, Left on joy 1 shouldn't register as key:left if
>>>>> you're reading player 1's controls regardless of this bit.
>>>>>
>>>>> Also it would be worth testing with some games that actually do use
>>>>> joystick script commands. I recall you suggested that only Ouya games
>>>>> might have actually cared about distringuishing between different
>>>>> controllers/keyboard.
>>>>>
>>>>> On Tue, 12 Feb 2019 at 23:45, James Paige <Bob at hamsterrepublic.com>
>>>>> wrote:
>>>>> >
>>>>> > Oh, cool! I can't wait to try this out!
>>>>> >
>>>>> > (Just need to order a gamepad and wait for it to ship!...)
>>>>> >
>>>>> > On Tuesday, February 12, 2019, <subversion at hamsterrepublic.com>
>>>>> wrote:
>>>>> >>
>>>>> >> teeemcee
>>>>> >> 2019-02-11 22:05:02 -0800 (Mon, 11 Feb 2019)
>>>>> >> 75
>>>>> >> Add "Map joystick controls to keyboard keys for scripts" bit, on by
>>>>> default
>>>>> >> ---
>>>>> >> U   wip/common_menus.bas
>>>>> >> U   wip/docs/plotdict.xml
>>>>> >> U   wip/ohrhelp/general_game_bitsets.txt
>>>>> >> U   wip/scriptcommands.bas
>>>>> >> U   wip/whatsnew.txt
>>>>> >> _______________________________________________
>>>>> >> Ohrrpgce mailing list
>>>>> >> ohrrpgce at lists.motherhamster.org
>>>>> >>
>>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>>> >
>>>>> > _______________________________________________
>>>>> > Ohrrpgce mailing list
>>>>> > ohrrpgce at lists.motherhamster.org
>>>>> >
>>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>>> _______________________________________________
>>>>> Ohrrpgce mailing list
>>>>> ohrrpgce at lists.motherhamster.org
>>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>>>
>>>> _______________________________________________
>>> Ohrrpgce mailing list
>>> ohrrpgce at lists.motherhamster.org
>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>
>> _______________________________________________
>> Ohrrpgce mailing list
>> ohrrpgce at lists.motherhamster.org
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>
> _______________________________________________
> Ohrrpgce mailing list
> ohrrpgce at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20200429/6b024cf4/attachment-0001.html>


More information about the Ohrrpgce mailing list