r/nethack • • 6h ago

Announcing VectHack: Four classic roguelikes compiled to WebAssembly and running in 3D in your browser!

16 Upvotes

I've been working on my open source project, VectHack, and it's ready for other people to look at.

It currently runs four classic roguelikes in the browser: NetHack 5.0, Angband 4.2.6, BSD Larn 12.0 and Umoria 5.7.15. It is a system that should be able to incorporate most similar terminal-based dungeon crawlers.

The engines are the real ones, unpatched. Each game is the upstream C source compiled to WebAssembly and run in a Web Worker. Game logic, monster AI, RNG and save format are untouched, so this is not a remake or a port of the rules.

The display is inspired by Star Wars / Tempest vector graphics. True to my original vision, the monsters retain their ASCII representation, just floating in 3D!

What you get from that:

  • An orbital camera over the level, or press F2 and delve in first person!
  • Movement keys (numeric keypad or arrows) follow the camera; everything else is the game's own keys. Use mouse to look around and point.
  • Point at any cell and the engine's own description names it
  • Saves live in the browser and export as one file
  • WebGPU, with a WebGL2 fallback
  • Angband's borg and simple bots for NetHack and Larn, if you'd rather watch

Play: https://vecthack.net

Source: https://github.com/emulvihill/vect-hack

The client code is MIT; each game keeps its own license (NGPL, GPL-2, GPL-3, Larn's original terms).

Feedback and bug reports are welcome, especially from people who know these games better than I do.

If you find something weird, send me a save file so I can reproduce it, or become part of the project! Top list of things someone could help with:

  • mobile interface. Right now I require the keyboard, but a modern phone should run it just fine with a proper input system.
  • key bindings. I know not everyone likes numeric keypad or arrow movement. I'm left handed and for me it's perfection. :)
  • playtesting. I am not that good at these games and haven't had a ton of time to delve. I'd rather get this out so people can 'hack' on it rather than letting it sit indefinitely.

PS I am an old nerd. My first memories of these games were on an orange monochrome screen and an 8086 Epson PC. My friends and I spent 1000's of hours trying to beat the various games. I never came close but with amazing perseverance, my buddy Ethan did.

This project is dedicated to his memory. Thanks for looking!


r/nethack • • 5h ago

[3.6.0] I can't get the legendary weapons I clearly need

2 Upvotes

I'm at a loss for words.

You need the legendary weapon because the monsters get stronger.

But whenever I try;

  • Knight, I can't fluke getting Excalibur from magic fountains
  • Valkyrie, I don't bump into the right altar or means of changing it, on top of can't fluke getting Excalibur from magic fountains
  • Orc wizard, I don't bump into the right altar or means of changing it

What am I supposed to do?

Play as Orc wizard then change the Altar alignment and sacrifice enough for the Magic bane dagger right under the non aligned Priest's nose, then run away?


r/nethack • • 4h ago

Dismount dismay

Post image
4 Upvotes

So, sometimes when Kayla the Knight dismounts a steed, she gets stuck for a while as the horse (dragons and centaurs, too) runs around.

It doesn't happen every time.

It doesn't seem related to the steed's tameness.

What am I doing wrong? As you see, the messages don't say.


r/nethack • • 6h ago

[TNNT] YASD - So why doesn't levitation stop you from sinking in lava?

Thumbnail hardfought.org
6 Upvotes

https://www.hardfought.org/userdata/S/Sithrin/tnnt/dumplog/1795655220.tnnt.html

I wasn't going to play in TNNT this year, but I ended up with some extra time and haven't played 5.0 yet, so I thought I'd give it a try. Things were going pretty well. I had a bit of a slow early game, but it was pretty smooth sailing once I was past Sokoban. Vlad's tower got pretty sticky when an Archon I couldn't get near decided to completely fill it full of monsters. Eventually with conflict and a magic harp I was able to finally get next to the Archon and tamed it with a scroll of taming. During the mess Vlad died somehow and I had to clear out the level to find the Candelabrum. Now all that was left was to get to the bottom of the dungeon, get the Book, the Amulet, and get out. Pretty simple.

Then I arrived on Orcus town, and usually I like to dig down a floor and come up on the downstairs, have Orcus follow me down and kill him while standing on the upstairs. Unfortunately, I didn't register that there was lava right next to where I was digging and I got stuck in lava. "No problem," I thought. I accidentally walked into lava when I first got into Gehennom and was able to walk out in a couple turns. First I popped on my ring of levitation *Your body pulls upward, but your legs are still stuck.* Ok... that didn't work, but I shouldn't be sinking anymore, right? I'll just walk out now. x5 This has to work eventually, right? *You sink below the surface and die.* Oops.

I guess, it was pretty good for my first game on 5.0, but still, that was dumb. Being on a no-teleport level kind of screwed me up, but obviously I could have pulled out a cursed scroll of teleportation, or a wand of cold. I honestly didn't even realize how big of a deal it was, because I walked out in like 3 turns the last time, but I think I sunk deeper right away for some reason because I dug the hole.

Delayed instadeaths are one of the worst mechanics in the game, because unless you've died to it before, you have no way of knowing how serious a situation you are in, or how long you have, and the game is really coy on letting you know just how serious things are. With stoning, you get two chances to realize what's going on "you are slowing down." which might make a player think they were zapped with a wand of slow monster, and "your limbs are stiffening" which is honestly just kind of confusing. After that, it's over, despite the wiki showing several more warning phrases, they all happen at once. Drowning is insidious. I don't know how anybody is supposed to realize they are about to be drowned from the phrases "the *monster* swings itself around you" Vanilla Nethack doesn't really have a problem with it, but Evilhack gives the strangulation instadeath to monsters, which is confusing because rope golems choke you, but it's just an HP drain and not an instadeath.

Sinking in lava is particularly bad because there's almost no feedback throughout the entire process, you aren't told how deep you've sunk, you don't know how many turns it will take to sink, heck, you aren't even told if you are actually trying to escape when you move to the side, it just says "you are stuck in lava." Obviously I'll know next time to not screw around and just zap or break a wand of cold, but I don't think experiences like this actually make the game better.