r/Nox • u/c4td0gm4n • 5d ago
Come playtest my web-first Nox reimplementation
This is my web-first reimplementation of Nox.
(Edit: The server is in Chicago and the game shows your ping under minimap. Sorry if you live far from the server; doesn't support 150ms+ ping very well yet.)
Try it here:
- https://nox.danneu.com/ (I'll call this dannox for now)
I made a few demo videos of bot gameplay:
- Wizard: https://x.com/dneu/status/2124949368906326147
- Conjurer: https://x.com/dneu/status/2124881587359592644
I have a few multiplayer rooms running:
- Free-for-all: quickplay on Bunker with no time/kill limit.
- Team Deathmatch: I cooked this up over the last week.
- Extraction/Roguelike: A test room for the start of some new mechanics I'm working on.
Known issues you'll encounter quickly:
- Conjured creatures are janky
- Fireballs and Magic Missiles are OP due to physics pushing too much vs. client misprediction
- Wizard bot is OP especially with death ray
- Missing features (no wizard traps, no conjurer bombers, some spells missing)
- Client prediction has the upside of feeling smooth at the cost of frustrating desync. It's surprisingly hard to pick the right trade-offs.
I started the project with these main goals:
- Runs in the browser
- Uses client-prediction netcode (unlike vanilla) over UDP
- Create interesting new game modes
Client-prediction netcode
Vanilla Nox has no client-side prediction; running around and casting abilities waits for a full round-trip to the server, so you have constant input delay.
The primary goal for my engine was to predict as much as I could on the client starting with your own movement.
The downside is that I need to change things to avoid mispredictions/corrections (client vs server mismatch), and things that are hard to predict (vanilla physics) feel frustrating and janky.
Entailments:
- Various spells like charge, fireball, and death ray use the attacker's state to decide hits. I need to tune these so they are more fair for the defender.
- I removed vanilla's physics-based tug-of-war on doors to be more predictable. Now when you touch a door, it opens, waits 1000ms, then closes. It works better that I thought it would.
- Fireballs and Magic Missiles are overpowered right now since vanilla physics are too strong and lead to mispredictions -- I might nerf the physics on these and do something like let charge ignore physics. The wizard bot is nasty right now, but I'm not sure if that will translate to human players.
- You enter the blocking (shield) and parry (great sword, staves) state visually before the server sees it, so you get killed by things you think you should've blocked. I need to do what Overwatch does lift defensive actions to use the PoV of the defender.
Invisibility, wall hacks, anticheat
I don't remember how vanilla works off the top of my head, but my engine is more selective about what it broadcasts from server to players.
- Foes aren't sent to clients unless they are in line of sight OR they are within 300ms of potentially running into line of sight via prediction (to avoid too much pop-in around corners).
- The coolest effect is on invisible players (wizards who cast the spell) who only get broadcasted at a rate based on their move speed (no broadcast when still, 2hz when walking, 0.8Hz when running). In-game, the invis "shimmer" is a single broadcasted frame of your animation. iirc vanilla invisibility was all done client-side.
- In team modes, your teammate positions are always broadcast to you if they're on-screen. If they're not in line of sight, I render them as a simple marker.
Random extras off the top of my head
- Automatically pick up armor, weapons, and potions when they are in reach
- Automatically upgrade armor and weapons when a better one if the same type is within reach
- Automatically consume health/mana/poison potions as needed
- I'm working on a new spell/ability bar that gives a dedicate hotkey for each spell. You can press Esc to try it out.
Bots
I put a lot of work into the bots.
The bots you see ingame are my 2nd attempt at bot logic that I call "omni" bots since they try to make good decisions no matter what their ability/spell/weapon kit is at any time.
My first attempt was a hand-coded rule system.
I tried to create more emergent tactics by building the omni brain to rank all of its options as a single currency. Needs a lot more tuning.
Credits
I used OpenNox as a reference for things like vanilla mechanics and game file formats which saved me infinite time.
Next steps
Ideally yall like my progress, help me refine it, and help me decide where to take it from here.




