Lurker News
Diceright is a virtual tabletop for playing dungeons and dragons with friends on the web. You can watch a quick overview of how it works here: https://tinyurl.com/diceright. And there’s a list of the main features right on the homepage.

It’s a Ruby on Rails site that makes heavy use of action cable for keeping the maps and tokens in sync for all players. On the front end, I’m using HTML canvas for the maps and a js library called fabric.js for interacting with the canvas. Otherwise, just jQuery on the front end. I optimized it all to work on mobile too.
I built this as a side project for fun over of the past couple years. It took a lot longer than expected, but it was also a lot of fun. I did all the design / UX for it too which was a struggle at first but was a great learning experience.
Let me know what you think and if you have any questions. Thanks!

Comments (115) 35 threads

Earlier comments
solardev1 reply#
I'll check out it out my desktop later and add more thoughts, but for now, on my phone it's kinda hard to get a feel for it because everything is in desktop-sized videos. Would you consider adding some mobile screenshots of the major features, perhaps?

There are a few bad tabletops out there. This one seems like it actually had a lot of thought put in! But it's hard to tell apart from the others at a glance. The videos aren't really readable on a phone and the paragraphs don't convey how each feature works.

YakiSauce#
Hmmm yeah that's a good point. The site does work pretty well on mobile but I didn't make any mobile videos. I'll put that on my todo list. Thanks for the feedback!

And if you do get a chance to check it out on desktop, I'd love to know what you think.

mNovak2 replies#
Very cool. I've seen a lot of these out there for DnD specifically, and am always impressed by how polished they seem, but I've long since wished there was a better way to play WH40k or other wargames online. The closest thing seems to be Tabletop Simulator, which just feels strange as a full 3D simulator.

It strikes me as slightly ironic, since games like 40k are traditionally extremely high $ investment hobbies, so seemingly a good market for the side-hustle tech crowd.

tpmoney#
If you haven’t seen it yet you might look at Vassal https://vassalengine.org/ which is geared towards board games generally rather than ttrpgs
bbor1 reply#
I agree! I think it’s super doable to annotate a real game with modern image segmentation running on a video feed paired with rock-solid modern TTS as dice are read, turns are declared, etc. From there, it’s just a hop skip and jump to a virtual tabletop, AR set pieces, and (IMO the holy grail) non-local AR games using real pieces. It’s such a procedural, probabilistic, simplified-spatially game; seems perfect for simulation.

I really don’t think games workshop has the corporate culture to catch this wave though, which makes the prospect of a IP lawsuit a big deterrent to even OS work.
Msg me if you want a link to my last pass at it as a react app. Got slowed down figuring out how to offload work onto the server efficiently, and also daunted at the prospect of translating all the simpler unit rules into JSON. Of course, with LLMs, that task just became about 1000x easier :)

mNovak#
I mean, I would settle for a simple RTS style 2D web interface! A lobby and match making, if I'm really ambitious.

Unit rules are a special problem--Wahapedia has a csv download of unit and weapon rules.. I think there were several thousand in 9th edition.

Capricorn24811 reply#
Very nice! Looks like a legit VTT and not a throwaway one. What were some of the hard things about this project that you didn't expect?
YakiSauce#
Thanks!

Man, so many things. I think maybe the hardest thing was really getting into the weeds of all the class/race features and modeling them all in a way that made sense to the user and would 'just work'.
There are features that add damage, but only under some circumstances. Features that change at different levels. Features where you get to pick between a few options and then they also change at different levels. Just a lot to model out. And a lot of hard decisions about how much to automate and how much to leave on the user.
Also, designing and building it all to work on mobile ended up being more than I expected because when adding new features I often had to go back and make it mobile friendly too.
Oh and doing the dynamic lighting (where you can add walls and lights to a map and 'see' what player tokens would see) was pretty tough because it involved learning some math to do those calculations. But that was also pretty fun.

Dave3of51 reply#
Would be cooler if you could make the map rather than just upload an image. I.e. grassy base add roads trees ...etc. Even better if it could randomly generate these maps.

I find that players don't care too much about the map other than figuring out where they are in relation to the enemies and suchlike.

YakiSauce#
Thanks for checking it out and for the feedback! Definitely agreed that map creation would be nice - something I'd like to get to.

Load more comments