Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

KEGS v1.08 released

181 views
Skip to first unread message

Kent Dickey

unread,
Jun 29, 2021, 10:45:00 PM6/29/21
to
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

Jay -blank-

unread,
Jun 30, 2021, 7:03:53 AM6/30/21
to
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.

fadden

unread,
Jun 30, 2021, 10:55:36 AM6/30/21
to
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/ .)

Jay -blank-

unread,
Jun 30, 2021, 1:35:04 PM6/30/21
to
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.

Kent Dickey

unread,
Jun 30, 2021, 4:57:34 PM6/30/21
to
In article <e0ec029e-51ad-4a12...@googlegroups.com>,
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

Antoine Vignau

unread,
Jul 8, 2021, 4:16:57 PM7/8/21
to
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

Antoine Vignau

unread,
Jul 8, 2021, 4:18:36 PM7/8/21
to
And I think you are referring to Karateka on ios. If so, that is my crack that was used :-)
av

Kent Dickey

unread,
Jul 8, 2021, 4:56:08 PM7/8/21
to
In article <788b9756-d1fe-4261...@googlegroups.com>,
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

Garrett Meiers

unread,
Jul 9, 2021, 10:34:14 AM7/9/21
to
On Tue Jun 29 21:44:55 2021 ke...@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.

Garrett Meiers

unread,
Jul 9, 2021, 10:35:52 AM7/9/21
to
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.

Antoine Vignau

unread,
Jul 10, 2021, 9:25:24 AM7/10/21
to
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

Kent Dickey

unread,
Jul 10, 2021, 1:57:33 PM7/10/21
to
In article <67c057d1-b11a-4551...@googlegroups.com>,
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
0 new messages