Re: [Ohrrpgce] [ohrrpgce/ohrrpgce] Linux: Package SDL, SDL_mixer in tarballs (#1202)

2022-08-07 Thread James Paige via Ohrrpgce
That is all very interesting!

As for modplug -> libxmp maybe we can make a test build with libxmp and ask
some users who use module music in their games to give it a listen-test

On Sun, Aug 7, 2022 at 8:34 PM Ralph Versteegen ***@***.***>
wrote:

> I'm surprised to discover that the latest SDL_mixer 2.6 release adds
> support for stb_vorbis, dr_mp3 and dr_flac and makes them the default
> (statically linked). These are very popular libraries because they're much
> smaller than the standard ones, so I'm very pleased with that, especially
> because it removes most dependencies!
>
> It also removes support for both libmad (what we currently use for mp3 but
> which is GPL, so I was going to stop using it anyway) and libmikmod, and
> adds support for libxmp as an alternative to libmodplug. The next release,
> 2.8, makes libxmp the default. I don't know what the reasons are for those
> changes. I'll have to get people to test whether we should stick to
> libmodplug or switch to libxmp, but I won't make that change for
> ichorescent because compatibility problems are likely. The other library
> changes should be fine, except that we rely on libvorbisfile to show
> metadata in the music/sfx editor. However SDL_mixer 2.6 also adds a new API
> to read metadata. Although it only returns a few metadata tags, the others
> are mostly garbage anyway.
>
> —
> Reply to this email directly, view it on GitHub
> ,
> or unsubscribe
> 
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>


-- 
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1202#issuecomment-1207581684
You are receiving this because you are subscribed to this thread.

Message ID: ___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] SVN: james/13046 Disable checking for scNumLock when choosing a scancode for button mappi

2022-08-07 Thread James Paige via Ohrrpgce
I fired up testgame/inpiuttest.rpg and made an exhaustive search.

The normal place where the numlock key would be has been replaced with a
key that has a calculator icon on it. It does not send any scancode at all
with my current keyboard mapping. NumLock is always on, and after testing
every key on the keyboard (including Fn shift states) I never found any way
to turn it off. I also have neither ScrollLock nor Pause.

On Sun, Aug 7, 2022 at 8:37 PM Ralph Versteegen via Ohrrpgce <
ohrrpgce@lists.motherhamster.org> wrote:

> You were searching your keyboard but more likely you should have been
> searching the web for the numlock key; these things are well hidden ; )
>
> On Mon, 8 Aug 2022 at 12:25, James Paige  wrote:
>
>> There might be a NumLock key that I just failed to find. One of my wife's
>> pet names for me is "Terrible Detective Agency" 
>>
>> My brain does not index well for search
>>
>> On Sun, Aug 7, 2022, 8:21 PM Ralph Versteegen  wrote:
>>
>>> I didn't know there were keyboards like that.
>>> Lack of numlock is potentially a problem if you want to use it in a
>>> game. If numlock is on, then we treat numpad keys as distinct so they don't
>>> work like arrow keys. Which is better than being stuck off, I suppose.
>>>
>>> On Mon, 8 Aug 2022 at 00:14, James Paige 
>>> wrote:
>>>
 For my computer it is stuck down at all times. I spent about 90 seconds
 searching my keyboard for a NumLock key before I gave up and changed the
 code

 Yeah, I think skipping caps lock and scrollock too is probably a good
 idea

 On Sat, Aug 6, 2022, 11:13 PM Ralph Versteegen via Ohrrpgce <
 ohrrpgce@lists.motherhamster.org> wrote:

> Stuck down even if you press numlock to turn it off? In what
> situations?
> Is it appropriate to ignore capslock and scrolllock too? All three are
> ignored pretty much everywhere else that we scan for a pressed key.
>
> On Sun, 7 Aug 2022 at 07:45, subversion--- via Ohrrpgce <
> ohrrpgce@lists.motherhamster.org> wrote:
>
>> james
>> 2022-08-06 12:45:28 -0700 (Sat, 06 Aug 2022)
>> 117
>> Disable checking for scNumLock when choosing a scancode for button
>> mapping, since it is stuck down in some situations
>> ---
>> U   wip/generaledit.rbas
>>
>> ___
>> Ohrrpgce mailing list
>> ohrrpgce@lists.motherhamster.org
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>
> ___
> Ohrrpgce mailing list
> ohrrpgce@lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
 ___
> Ohrrpgce mailing list
> ohrrpgce@lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: james/13047 Skip the whole "Lock" family of keys when prompting for a scancode for r

2022-08-07 Thread subversion--- via Ohrrpgce
james
2022-08-07 19:12:16 -0700 (Sun, 07 Aug 2022)
93
Skip the whole "Lock" family of keys when prompting for a scancode for 
remapping gamepad keys
---
U   wip/generaledit.rbas

___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] SVN: james/13046 Disable checking for scNumLock when choosing a scancode for button mappi

2022-08-07 Thread Ralph Versteegen via Ohrrpgce
You were searching your keyboard but more likely you should have been
searching the web for the numlock key; these things are well hidden ; )

On Mon, 8 Aug 2022 at 12:25, James Paige  wrote:

> There might be a NumLock key that I just failed to find. One of my wife's
> pet names for me is "Terrible Detective Agency" 
>
> My brain does not index well for search
>
> On Sun, Aug 7, 2022, 8:21 PM Ralph Versteegen  wrote:
>
>> I didn't know there were keyboards like that.
>> Lack of numlock is potentially a problem if you want to use it in a game.
>> If numlock is on, then we treat numpad keys as distinct so they don't work
>> like arrow keys. Which is better than being stuck off, I suppose.
>>
>> On Mon, 8 Aug 2022 at 00:14, James Paige  wrote:
>>
>>> For my computer it is stuck down at all times. I spent about 90 seconds
>>> searching my keyboard for a NumLock key before I gave up and changed the
>>> code
>>>
>>> Yeah, I think skipping caps lock and scrollock too is probably a good
>>> idea
>>>
>>> On Sat, Aug 6, 2022, 11:13 PM Ralph Versteegen via Ohrrpgce <
>>> ohrrpgce@lists.motherhamster.org> wrote:
>>>
 Stuck down even if you press numlock to turn it off? In what situations?
 Is it appropriate to ignore capslock and scrolllock too? All three are
 ignored pretty much everywhere else that we scan for a pressed key.

 On Sun, 7 Aug 2022 at 07:45, subversion--- via Ohrrpgce <
 ohrrpgce@lists.motherhamster.org> wrote:

> james
> 2022-08-06 12:45:28 -0700 (Sat, 06 Aug 2022)
> 117
> Disable checking for scNumLock when choosing a scancode for button
> mapping, since it is stuck down in some situations
> ---
> U   wip/generaledit.rbas
>
> ___
> Ohrrpgce mailing list
> ohrrpgce@lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
 ___
 Ohrrpgce mailing list
 ohrrpgce@lists.motherhamster.org
 http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

>>>
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] [ohrrpgce/ohrrpgce] Linux: Package SDL, SDL_mixer in tarballs (#1202)

2022-08-07 Thread Ralph Versteegen via Ohrrpgce
I'm surprised to discover that the latest SDL_mixer 2.6 release adds support 
for stb_vorbis, dr_mp3 and dr_flac and makes them the default (statically 
linked). These are very popular libraries because they're much smaller than the 
standard ones, so I'm very pleased with that, especially because it removes 
most dependencies! 

It also removes support for both libmad (what we currently use for mp3 but 
which is GPL, so I was going to stop using it anyway) and libmikmod, and adds 
support for libxmp as an alternative to libmodplug. The next release, 2.8, 
makes libxmp the default. I don't know what the reasons are for those changes. 
I'll have to get people to test whether we should stick to libmodplug or switch 
to libxmp, but I won't make that change for ichorescent because compatibility 
problems are likely. The other library changes should be fine, except that we 
rely on libvorbisfile to show metadata in the music/sfx editor. However 
SDL_mixer 2.6 also adds a new API to read metadata. Although it only returns a 
few metadata tags, the others are mostly garbage anyway.



-- 
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1202#issuecomment-1207523391
You are receiving this because you are subscribed to this thread.

Message ID: ___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] SVN: james/13046 Disable checking for scNumLock when choosing a scancode for button mappi

2022-08-07 Thread James Paige via Ohrrpgce
There might be a NumLock key that I just failed to find. One of my wife's
pet names for me is "Terrible Detective Agency" 

My brain does not index well for search

On Sun, Aug 7, 2022, 8:21 PM Ralph Versteegen  wrote:

> I didn't know there were keyboards like that.
> Lack of numlock is potentially a problem if you want to use it in a game.
> If numlock is on, then we treat numpad keys as distinct so they don't work
> like arrow keys. Which is better than being stuck off, I suppose.
>
> On Mon, 8 Aug 2022 at 00:14, James Paige  wrote:
>
>> For my computer it is stuck down at all times. I spent about 90 seconds
>> searching my keyboard for a NumLock key before I gave up and changed the
>> code
>>
>> Yeah, I think skipping caps lock and scrollock too is probably a good idea
>>
>> On Sat, Aug 6, 2022, 11:13 PM Ralph Versteegen via Ohrrpgce <
>> ohrrpgce@lists.motherhamster.org> wrote:
>>
>>> Stuck down even if you press numlock to turn it off? In what situations?
>>> Is it appropriate to ignore capslock and scrolllock too? All three are
>>> ignored pretty much everywhere else that we scan for a pressed key.
>>>
>>> On Sun, 7 Aug 2022 at 07:45, subversion--- via Ohrrpgce <
>>> ohrrpgce@lists.motherhamster.org> wrote:
>>>
 james
 2022-08-06 12:45:28 -0700 (Sat, 06 Aug 2022)
 117
 Disable checking for scNumLock when choosing a scancode for button
 mapping, since it is stuck down in some situations
 ---
 U   wip/generaledit.rbas

 ___
 Ohrrpgce mailing list
 ohrrpgce@lists.motherhamster.org
 http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

>>> ___
>>> Ohrrpgce mailing list
>>> ohrrpgce@lists.motherhamster.org
>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>
>>
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] SVN: james/13046 Disable checking for scNumLock when choosing a scancode for button mappi

2022-08-07 Thread Ralph Versteegen via Ohrrpgce
I didn't know there were keyboards like that.
Lack of numlock is potentially a problem if you want to use it in a game.
If numlock is on, then we treat numpad keys as distinct so they don't work
like arrow keys. Which is better than being stuck off, I suppose.

On Mon, 8 Aug 2022 at 00:14, James Paige  wrote:

> For my computer it is stuck down at all times. I spent about 90 seconds
> searching my keyboard for a NumLock key before I gave up and changed the
> code
>
> Yeah, I think skipping caps lock and scrollock too is probably a good idea
>
> On Sat, Aug 6, 2022, 11:13 PM Ralph Versteegen via Ohrrpgce <
> ohrrpgce@lists.motherhamster.org> wrote:
>
>> Stuck down even if you press numlock to turn it off? In what situations?
>> Is it appropriate to ignore capslock and scrolllock too? All three are
>> ignored pretty much everywhere else that we scan for a pressed key.
>>
>> On Sun, 7 Aug 2022 at 07:45, subversion--- via Ohrrpgce <
>> ohrrpgce@lists.motherhamster.org> wrote:
>>
>>> james
>>> 2022-08-06 12:45:28 -0700 (Sat, 06 Aug 2022)
>>> 117
>>> Disable checking for scNumLock when choosing a scancode for button
>>> mapping, since it is stuck down in some situations
>>> ---
>>> U   wip/generaledit.rbas
>>>
>>> ___
>>> Ohrrpgce mailing list
>>> ohrrpgce@lists.motherhamster.org
>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>
>> ___
>> Ohrrpgce mailing list
>> ohrrpgce@lists.motherhamster.org
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>
>
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] SVN: james/13046 Disable checking for scNumLock when choosing a scancode for button mappi

2022-08-07 Thread James Paige via Ohrrpgce
For my computer it is stuck down at all times. I spent about 90 seconds
searching my keyboard for a NumLock key before I gave up and changed the
code

Yeah, I think skipping caps lock and scrollock too is probably a good idea

On Sat, Aug 6, 2022, 11:13 PM Ralph Versteegen via Ohrrpgce <
ohrrpgce@lists.motherhamster.org> wrote:

> Stuck down even if you press numlock to turn it off? In what situations?
> Is it appropriate to ignore capslock and scrolllock too? All three are
> ignored pretty much everywhere else that we scan for a pressed key.
>
> On Sun, 7 Aug 2022 at 07:45, subversion--- via Ohrrpgce <
> ohrrpgce@lists.motherhamster.org> wrote:
>
>> james
>> 2022-08-06 12:45:28 -0700 (Sat, 06 Aug 2022)
>> 117
>> Disable checking for scNumLock when choosing a scancode for button
>> mapping, since it is stuck down in some situations
>> ---
>> U   wip/generaledit.rbas
>>
>> ___
>> Ohrrpgce mailing list
>> ohrrpgce@lists.motherhamster.org
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>
> ___
> Ohrrpgce mailing list
> ohrrpgce@lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] [ohrrpgce/ohrrpgce] Linux: Package SDL, SDL_mixer in tarballs (#1202)

2022-08-07 Thread Ralph Versteegen via Ohrrpgce
I decided to try taking libraries from steam-runtime (v1), which is based on 
Ubuntu 12.04 (it relies on some of the host's libraries, so using an old Ubuntu 
as base allows running on old linux distros up to 10 years old; 
linux_portability_check.py agrees) with libraries such as SDL that are 
important for games kept up to date.

For example its libSDL2.so is compiled without any of the extra dependencies 
that the copy provided by my distro (Slackware) has.

Unfortunately eventually I found complaints with their SDL_mixer builds:
* Still has SDL_mixer 1.2.11 rather than the "latest" 1.2.12 released 2012...
* libmodplug isn't provided, only libmikmod. We prefer libmodplug and use it on 
every other OS (in fact SDL_mixer 2.0 very recently deleted support for mikmod, 
because it's bad. Maybe that'll eventually induce steam-runtime to add 
libmodplug)
* libSDL_mixer.so is linked against FLAC (which we don't use), mikmod, and 
doesn't even support MP3. It plays MIDI files apparently using the builtin 
timidity but doesn't seem to support fluidsynth
* SDL2_mixer is built to runtime-load libraries (which is good) but doesn't 
seem to attempt to load either fluidsynth or the system timidity, which are 
preferable to using its builtin decrepit timidity
* Doesn't yet have the latest SDL2_mixer released a month ago

Maybe I could add my own libmodplug and compile SDL_mixer 1.2 myself

-- 
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1202#issuecomment-1207389059
You are receiving this because you are subscribed to this thread.

Message ID: ___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org