hackmud

hackmud

Very niche request about an undo function and steno
Hi, in love with the game ever since I got it like 9 years ago, it's a paradise for fidgety minds. After a long hiatus where I kinda lost my passion for programming, I am just now returning to it. In the meantime, my AuDHD brain that also got me into hackmud in the first place made me pick up stenography as a replacement for regular keyboard typing to help with lots of things when writing things on my PC... for ergonomic reasons like strain and of course for fun.

In hackmud, I noticed that the main undo in steno Is seen as a regular backspace, making it impossible to use. Using Plover translates inputs on any keyboard into steno 'outlines', and pressing the central key acts as an undo, deleting the entire last stroke. So if I write hackmud, which is two chords (hack and mud) and undo, mud is removed in one key press and only hack remains.

Similar thing happens when a starting syllable forms a full word or is not a word at all, but the following syllable turns it into a (different) word. 'Fortunate' for example. The first syllable, forch, is not a word at all, so Plover outputs raw steno, which would be TPOFRPB. The second syllable, nat, turns it into a word, so Plover undoes what doesn't belong to fortunate, which is TPOFRPB, and replaces the whole thing with the finished word, fortunate.

Or as in the very beginning of the game, writing hello world. It uses a short e sound, so the first syllable is not a word either → HE. Then followed by loe, which is low or, in this case, should undo HE and turn it into hello. Instead of the undo, hackmud only does one backspace, so it doesn't turn into hello, but into H low.

The rest is just normal keystrokes sent through the software instead of the keyboard directly, which worked fine. I'm absolutely not certain, but it might just be a matter of supporting undo to make it work.

Just diving back into JavaScript after a long break and having a blast, turns out to be even more fun with steno.

Either way, I'm enjoying this game a lot. I understand if this doesn't concern you at all, feel like it's a super niche request, but would be really awesome if you decided to take a look at it. Happy to answer any questions you might have.
< >
Showing 1-8 of 8 comments
A stenographic keyboard sounds fun but also probably a hell of a challenge for this game, where args are pretty precise :D

Worth noting that the Delete key on keyboards works for deleting text in front of the cursor. Escape will also completely clear your command. Does your keyboard/Plover support macros? You could maybe bind something to send a raw singular backspace, which is all Unity/the hackmud client is looking for.
Yes and no. It has everything a normal keyboard can do, just via chords instead of single keypresses. In the end, everything turns into a macro as it's sent out. Args are easy to do because you can spell out things that aren't in your dictionary. A lot can be pieced together using a combination of syllables and letters / numbers.

And words that are often needed can go into your personal dictionary, which you build as you go. Adding an entry that matches RAFK to robovac would be possible, only have to chord rafk to write out robovac that way, right now it's three inputs.

Like I mentioned, I'm using steno for programming, so mine has things like (), [], <>, {} plus all of those retroactive with another chord, meaning I can use a single press to {encase} the previous word or multiple presses to encase the {last few words} written, the main delete key undoes each press in retrospect. The backspace chord does just what backspace does, as does the delete chord. Using them too, but writing only works thanks to the undo.

But because steno works by replacing the entire previous stroke, if needed, to form words, it can not be used in hackmud at all as it is. It needs undo support in order to do that. It's like macros, but they are all dependant on what came before instead of being fixed, recorded keypresses.

Ultimately, the way steno works, the need for single backspaces or deletes is very minimal. what I haven't defined yet is Ctrl+backspace / delete to delete whole words before or after the coursor, which doesn't solve the underlying issue. All of that is Plover side only, so hackmud wouldn't need to do any of it. Hackmud would receive each syllable as a word if it matches one in the dictionary or as raw steno if not. If one syllable does not make a word, raw steno is "typed" out, if the next turns it into a word, all of it is retroactively replaced.

Say you want to write conglomerate, I would chord that in three strokes: con/glom/rat, the raw steno Plover sees is KOPB/TKPWHROPL/RAT (around 24 keys only, depending on keyboard, so some letters are formed using combinations). It checks for dictionary entries that match KOPB, which would be con as a prefix, meaning anything after is attached without space. Now it sends con into hackmud. The next stroke TKPWHROPL matches glom, so it turns into conglom. Plover also checks whether the combination of strokes so far matches any word, which it does not yet, so it just sends glom into hackmud. Last stroke RAT changes that, because now the entire combination (called outline) of those three strokes matches a dictionary entry, so instead of just sending rat, it sends erate, forming the full word conglomerate. This only works because every single dictionary entry is unique, you can not have two words share the same outline.

All of the magic takes place in Plover itself, anything outside has no idea about what's going on. Plover only sends out each stroke and retroactively makes sense of it, undoing entire strokes when needed.

Words are matched using logic, and you can do anything the system you're working with can do. Once matching is done, it basically turns into a macro that's sent out into the input field.

Because undo is, as far as I'm aware, the only non-standard press sent out by Plover, my theory is that undo support might be all that's needed for it to work.

Sorry for the long rambling, it's kinda difficult to explain briefly how it works and I tend to get carried away if I'm down a rabbithole... xD
hackmud is no longer being actively developed - you'll want to pop over and ask the plover folks for a behaviour change here. Its open source and actively maintained, filing an issue over there is likely a good start to see if anyone might know why it doesn't work as you'd expect

https://github.com/opensteno/plover

I've used plover before, I *suspect* what's happening is that its sending a bunch of backspaces too quickly for hackmud to be able to process (as I'm guessing it can't handle multiple same inputs being processed per-frame), so it should be pretty fixable on their end
That could work, but it sends one undo command rather than multiple backspace strokes to my knowledge. Worth a try though

Edit: I feel like I've read a post by the dev saying they heard of it not being developed anymore but they are indeed still active, was pretty recently too.

"yeah- we also heard it was dead, but we keep forgetting to stop working on it!

https://www.linkedin.com/pulse/we-heard-hackmud-dead-keep-forgetting-stop-working-sean-mann-audhc/?trackingId=ts%2Be99ryR92COXnA%2F%2Frn0w%3D%3D"
The latest update in the discord is that the game has entered maintenance mode unfortunately, that blog post is a bit out of date
Oh no, that's sad. Hope fundraising works out. Completely forgot there's a discord. Thanks for the info^^
Marto here is a volunteer with access to make changes to the client. I can't read through your whole situation, but likely between the minds and capabilities available in our community -- there is a probably a solution to your current setup challenges!

Maintenance mode means we aren't delivering new features or directly coordinating volunteer efforts until we can afford it again, but we are able to continue to support community event content, volunteer contributions, and community management as well as keeping the servers fed and running.

If you join the discord, you'll have better access to live help to get your situation sorted:
https://discord.gg/hackmud
And you'll see the post about some details of maintenance mode and why.
Sweet, thanks for the reply. Will join and see. I did have some ideas to try out, but didn't find the time yet, but it's a pretty fun rabbithole to dive into. It's a shame financing development is so challenging in any niche, especially in the cool ones like hacking sims and retro computing inspired games / sims
< >
Showing 1-8 of 8 comments
Per page: 1530 50