• KEGS v1.08 released

    From Kent Dickey@21:1/5 to All on Tue Jun 29 21:44:55 2021
    I've updated KEGS, and Apple IIgs emulator for Mac OS X and Linux, to v1.08.

    The previous version (v1.07) had a severe crashing bug when loading many
    WOZ images. That has been fixed.

    KEGS v1.08 is available at: http://kegs.sourceforge.net

    Kent

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jay -blank-@21:1/5 to All on Wed Jun 30 04:03:52 2021
    Hi Kent,

    I appreciate the continued development of kegs for macOS; been using it since the HPUX days. So happy to have 3.5" .woz support!

    Maybe it was fork of kegs in the past but is there any way to hide the lower status screen. As a casual user, nothing in this is of interest to me and it's more distracting than useful.

    Regards.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From fadden@21:1/5 to Jay -blank- on Wed Jun 30 07:55:35 2021
    On Wednesday, June 30, 2021 at 4:03:53 AM UTC-7, Jay -blank- wrote:
    Maybe it was fork of kegs in the past but is there any way to hide the lower status screen. As a casual user, nothing in this is of interest to me and it's more distracting than useful.

    Emulated copies of the original Bard's Tale games were included with an updated version a while back (https://store.steampowered.com/app/41900/The_Bards_Tale/). I think that used a tidied-up KEGS to run the Apple IIgs version.

    (Note that's different from the fully-remastered https://store.steampowered.com/app/843260/The_Bards_Tale_Trilogy/ .)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jay -blank-@21:1/5 to fadden on Wed Jun 30 10:35:03 2021
    On Wednesday, June 30, 2021 at 10:55:36 AM UTC-4, fadden wrote:
    On Wednesday, June 30, 2021 at 4:03:53 AM UTC-7, Jay -blank- wrote:
    Maybe it was fork of kegs in the past but is there any way to hide the lower status screen. As a casual user, nothing in this is of interest to me and it's more distracting than useful.
    Emulated copies of the original Bard's Tale games were included with an updated version a while back (https://store.steampowered.com/app/41900/The_Bards_Tale/). I think that used a tidied-up KEGS to run the Apple IIgs version.

    (Note that's different from the fully-remastered https://store.steampowered.com/app/843260/The_Bards_Tale_Trilogy/ .)

    I'm thinking farther back there was one with a config switch to toggle it. I've been happy with GSplus but the problem is time marches on. Pretty sure those Bard's Tale Mac versions are also only 32 bit so no longer useful just like Sweet16 as we need
    64bit or on to the M1 family in the near future for macOS support. KEGS has added some nice bug fixes and additions that other forks will likely never see and I've moved to KEGS as my primary GS emulator because of this.

    I took out all the text but that leaves a black box and I don't have the knowledge to find/change the screen drawing routines. But I think it's a pretty useful feature request that isn't platform dependent.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kent Dickey@21:1/5 to beheybirder@gmail.com on Wed Jun 30 15:57:29 2021
    In article <e0ec029e-51ad-4a12-ab3b-11de5277d377n@googlegroups.com>,
    Jay -blank- <beheybirder@gmail.com> wrote:
    On Wednesday, June 30, 2021 at 10:55:36 AM UTC-4, fadden wrote:
    On Wednesday, June 30, 2021 at 4:03:53 AM UTC-7, Jay -blank- wrote:
    Maybe it was fork of kegs in the past but is there any way to hide
    the lower status screen. As a casual user, nothing in this is of
    interest to me and it's more distracting than useful.
    Emulated copies of the original Bard's Tale games were included with
    an updated version a while back >(https://store.steampowered.com/app/41900/The_Bards_Tale/). I think that
    used a tidied-up KEGS to run the Apple IIgs version.

    (Note that's different from the fully-remastered >https://store.steampowered.com/app/843260/The_Bards_Tale_Trilogy/ .)

    I'm thinking farther back there was one with a config switch to toggle
    it. I've been happy with GSplus but the problem is time marches on.
    Pretty sure those Bard's Tale Mac versions are also only 32 bit so no
    longer useful just like Sweet16 as we need 64bit or on to the M1 family
    in the near future for macOS support. KEGS has added some nice bug fixes
    and additions that other forks will likely never see and I've moved to
    KEGS as my primary GS emulator because of this.

    I took out all the text but that leaves a black box and I don't have the >knowledge to find/change the screen drawing routines. But I think it's a >pretty useful feature request that isn't platform dependent.

    You are not the first person to request this. :-)

    I made some changes to KEGS to make this possible, but didn't finish it. Previously, the size of the window was hardcoded in many places. Now, it's not. But to actually resize the window to allow toggling the status area on and off requires work, and I just haven't done it. I wanted KEGS to have some useful features first (since KEGS with a slightly improved UI is already done by GSPlus/GSPort, so there's no point). I'm still undecided on whether I should make one more useful feature (one that no other emulator has), and then work on UI improvements.

    Also, KEGS has only ever been licensed to use in one commercial game, for an iPhone game about 8 years where it was done very well and so you cannot even tell it's KEGS. I'll ask for permission to name it (I didn't agree to keep it confidential, but it seems polite to ask first).

    All other uses of KEGS in commercial games (where they did not include source code as required by the GPL), are pirates. All commercial uses on Windows (again, if they didn't release source code) are pirates. I am interested in forming a list of all pirated versions of KEGS, you can email me or post. I'm willing to give fairly generous licensing terms, but no one even asks.

    I should write up why I kicked all contributions out of KEGS 15 years ago.
    I had a potential to make "very low 5 digits" in a licensing deal that went no where (and I suspected it would go nowhere, but kicking out contributions was not much work, and it at least gave me the option to try).

    Kent

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Antoine Vignau@21:1/5 to All on Thu Jul 8 13:16:56 2021
    Thanks for the updates, Kent.
    I have a question: I use a modern Mac with an AZERTY keyboard. Are non-US keyboard layouts recognized? I "hate" pressing "A" and get a "Q" in response!
    Thank you,
    Antoine

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Antoine Vignau@21:1/5 to All on Thu Jul 8 13:18:35 2021
    And I think you are referring to Karateka on ios. If so, that is my crack that was used :-)
    av

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kent Dickey@21:1/5 to ntn.vignau@gmail.com on Thu Jul 8 15:56:02 2021
    In article <788b9756-d1fe-4261-a6ee-a7f1fc2c647cn@googlegroups.com>,
    Antoine Vignau <ntn.vignau@gmail.com> wrote:
    Thanks for the updates, Kent.
    I have a question: I use a modern Mac with an AZERTY keyboard. Are
    non-US keyboard layouts recognized? I "hate" pressing "A" and get a "Q"
    in response!
    Thank you,
    Antoine

    The short answer is I don't know. I do nothing special for non-US keyboards, and I don't know what happens in that case.

    KEGS tries to get raw keycodes from the OS. KEGS then has a map of keycodes
    to ASCII keys. I was assuming 'A' was the same keycode always, regardless of where the key is placed on your keyboard.

    So, are you saying when you run KEGS 1.08 and press 'A', you get 'Q',
    but in all other applications on your Mac, 'A' is 'A'?
    If so, this is something I should fix. I'm not sure how I'm supposed to
    figure out the current keyboard map, though. How do other emulators
    handle your keyboard (ignoring MAME, which is weird)? Do you have to change
    a setting?

    Kent

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?R2FycmV0dCBNZWllcnM=?=@21:1/5 to All on Fri Jul 9 14:35:51 2021
    On Wed Jun 30 04:03:52 2021 Jay -blank- wrote:

    I appreciate the continued development of kegs for macOS; been using it since the HPUX days. So happy to have 3.5" .woz support!



    I never considered trying to run this on HPUX. HPUX is my favorite *NIX.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?R2FycmV0dCBNZWllcnM=?=@21:1/5 to Kent Dickey on Fri Jul 9 14:34:12 2021
    On Tue Jun 29 21:44:55 2021 kegs@provalid.com (Kent Dickey) wrote:
    I've updated KEGS, and Apple IIgs emulator for Mac OS X and Linux, to v1.08.

    The previous version (v1.07) had a severe crashing bug when loading many
    WOZ images. That has been fixed.

    Excellent work! Can't wait to check this out.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Antoine Vignau@21:1/5 to All on Sat Jul 10 06:25:23 2021
    Hi Kent,
    It is a keymap problem. I analyzed the issue for gs+ and it is similar for KEGS. There are other keymaps that must be added to the source code. Because, yes, when I press A, I get a Q whatever the emulator, apart from Sweet16 because Eric made the
    changes a couple of years ago.

    Please get the unique text file at http://www.brutaldeluxe.fr/public/, and you will understand.

    Thank you,
    Antoine

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kent Dickey@21:1/5 to ntn.vignau@gmail.com on Sat Jul 10 12:57:27 2021
    In article <67c057d1-b11a-4551-bbe7-f19a39719398n@googlegroups.com>,
    Antoine Vignau <ntn.vignau@gmail.com> wrote:
    Hi Kent,
    It is a keymap problem. I analyzed the issue for gs+ and it is similar
    for KEGS. There are other keymaps that must be added to the source code. >Because, yes, when I press A, I get a Q whatever the emulator, apart
    from Sweet16 because Eric made the changes a couple of years ago.

    Please get the unique text file at http://www.brutaldeluxe.fr/public/,
    and you will understand.

    Thank you,
    Antoine

    I still don't fully understand. I tried telling my Mac that I have a French keyboard, and it didn't seem to do anything. One thing that would be helpful would be if you could modify KEGS 1.08 to add some debug printfs to MainView.swift. Here's the current function:

    override func keyDown(with event: NSEvent) {
    let keycode = event.keyCode
    let is_repeat = event.isARepeat;
    // print(".keyDown code: \(keycode), repeat: \(is_repeat)")
    if(is_repeat) {
    // If we do CMD-E, then we never get a down for the E,
    // but we will get repeat events for that E. Let's
    // ignore those
    return
    }
    adb_physical_key_update(kimage_ptr, Int32(keycode), 0,
    Int32(current_flags & is_shift),
    Int32(current_flags & is_control),
    Int32(current_flags & is_capslock))
    }

    I'd like you to uncomment the print, and add a few lines:

    override func keyDown(with event: NSEvent) {
    let keycode = event.keyCode
    let is_repeat = event.isARepeat;
    print(".keyDown code: \(keycode), repeat: \(is_repeat)")
    if let str = event.characters {
    print(" str: \(str)")
    }
    if(is_repeat) {
    // If we do CMD-E, then we never get a down for the E,
    // but we will get repeat events for that E. Let's
    // ignore those
    return
    }
    ...

    Just uncomment the print() and add the 3 lines for the if / print / }.
    Do make.

    Then run KEGS from the Terminal as:

    ./KEGSMAC.app/Contents/MacOS/KEGSMAC

    and press some keys. Then post the output (or email it to me). Tell me what keys you were pressing (if the str: doesn't match or looks like gibberish). Include some function keys, backspace, delete, and other keys only available
    by pressing shift: % * { >, return, etc.

    I think I've completely misunderstood how keycodes work. Rather than
    mucking about with this complexity, I'm tempted to virtualize keycodes:
    press whatever key you want on your keyboard, and KEGS will translate it
    to US Standard keycodes, so all code running on the IIgs will always see
    the US standard keyboard codes. Would this work for you? So if you press
    'A', KEGS would then always act like you pressed keycode=00 and an A will appear.

    Does the same problem happen on X11? I would think it would not, but I'm
    not sure.

    Kent

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)