Skip to content

Latest commit

 

History

History
242 lines (190 loc) · 10.3 KB

README.md

File metadata and controls

242 lines (190 loc) · 10.3 KB

QtVTT

Qt Virtual Table Top

Virtual Table Top written in Python and Qt

Screenshots

Out of the frying pan into the fire

image

Player View, DM View, Browser, and Tree

image

Documentation browser with TOC, term filter and search, circular walls

image

Clipped fog polygons, light range, hidden tokens

image

Documentation browsing, combat tracker, encounter builder

image

Fog of war, display token initiative order

image

Shared and private handouts

image

Editable walls

image

Text Editor with outline, search, blockquote, text formats, headings, lists, image, table

image

Playerviewport synchronized to the player view, remote view in edge app mode

image

One familiar setting with encounters, combat tracker, and manually added doors and walls

image

Manually recreated Dyson Logos map using textured walls and Mark Gosbell classic symbols

image

Videos

Initial line of sight test

QtVTT.2022-11-28.22-01-31_rescaled.mp4

Dungeown Scrawl v2 map imported from One Page Dungeon by Watabou, with doors as walls, player and DM views, line of sight, and line of sight debugging.

Multiple tokens, wall & door collisions, walking around opening doors

QtVTT.2022-12-01.15-21-50_rescaled.mp4

Scene creation, token resizing, token labeling, circular walls, documentation browsing, encounter builder, combat tracker

QtVTT.2022-12-20.12-25-15_rescaled_cut.mp4

Line of sight, fog of war, light range

QtVTT.-.Monastery.of.the.Leper.General.qvt.2022-12-27.03-00-41_rescaled.mp4

Setting up walls fron scratch, editing walls to add openings

QtVTT.2023-01-21.15-03-53_rescaled.mp4

Automatic wall creation

QtVTT.-.autowall.qvt.2023-01-30.01-22-19_rescaled.mp4

Open Dyson Logos page and automatic wall creation

QtVTT.2023-02-06.16-56-04_rescaled.mp4

Features

  • Written in Python and using PyQt, some HTML and SVG for the HTTP serving player's view.

Main app

  • Import Dungeon Scrawl v1 and v2 maps with walls and doors
  • Load tokens
  • Move tokens with mouse or keyboard
  • Line of sight display any token
  • Wall and door collision detection for any token
  • Door opening/closing with proper line of sight recalculation
  • Player view with line of sight, exported via http (see http server)
  • Dockable windows for multiple monitor support
  • Player view resolution independent from DM resolution
  • Per scene music playlist
  • HTML Browser
  • Scene tree window
  • Creating, loading and saving scenes
  • Importing images, tokens, music, handouts, texts
  • Deleting tokens, images, walls, doors, music, handouts, texts
  • Cut, copy, and paste selected tokens, images, walls
  • Multiple item selection via rubberband
  • Move/scale images, tokens
  • Textured and variable-width visible walls
  • Select point on single click, full wall on double click (so it can be deleted, moved, etc wholesale)
  • Editing token labels
  • DM fulll and view screenshots
  • HTML documentation browser with quick filter, table of contents and search result navigation intra and inter documents
  • Grid drawing
  • Snap to grid
  • Clip line of sight to different light ranges (candles, torches, etc)
  • AD&D2E Encounter Builder with difficulty rating and importing into the current scene, filter monsters and add them as tokens to the current scene.
  • AD&D2E Combat tracker for rolling initiative, hit points, attacks, damages for the tokens in the current scene.
  • Encounter management: Store multiple encounters in scenes, edit via encounter builder, add encounter to combat tracker, add/drag/copy&paste other tokens to combat tracker
  • Fog of war, show faded visited areas
  • Token tooltips with hit points, AC, THAC0, etc
  • Token center label with initiative order
  • Shared and private handouts
  • Create and edit walls, add points after a given point, remove a point, split wall in two, remove empty walls
  • Edit doors by turning into walls back and forth
  • Text editor for adventure script, with realtime table of contents, search, (some) markdown tag and keyboard shortcut formatting support, tables, and images.
  • Intuitive grid cell size and origin setting
  • Automatic wall creation via contour detection
  • Open Dyson Logos page as campaign (eg https://dysonlogos.blog/2022/01/08/heart-of-darkling-frog-tower/ )
  • Show player viewport on DM view, synchronize to player's and remote views

HTTP server

  • Visualize player's view with line of sight
  • Periodic image autorefresh
  • Normal/Fullscreen
  • Draggable tokens with labels (just dummy for now, not sync'ed with the server)
  • SVG or HTML
  • Main page with available player views, handouts
  • Serve handouts

Requirements

  • Python 2.7
  • PyQt5
  • numpy (wall detection disabled otherwise)

Installation

  • Won't work as is yet, will fail to run due to missing (copyrighted) AD&D 2E data files, and hardcoded asset (fonts, default token...) and saving directory structure.
  • Shouldn't be hard to hack to run with few changes, but functionality dependent on those AD&D 2E data files will fail (Documentation Browser, Encounter Builder, Combat Tracker...)

Todo

Main app

  • Add sample scenes
  • Don't hard-code documentation/ abstract it out in rulesets/load documentation menu
  • Import Universal VTT (Dungeondraft)
  • Import .mod/.pak (Fantasy grounds)
  • Invisible walls: the wall hides the tokens behind but without "fog" (eg to make hiding in trees/bushes less obvious)
  • Window walls: the wall allows line of sight through but collides like a solid wall
  • Support animated tokens/images (maps) in mp4, webm, gif, etc (eg see https://dynamicdungeons.com/). Will need the http client to receive the map and tokens/viz separately (also, record animated videos from DungeonDraft or Fantasy Grounds Unity using eg XBOX game bar)
  • Use backfacing lines to project the fog, should give a more natural fog for trees, terrain, etc?
  • Export to Dungeon Scrawl for re-rendering (even re-render under the hood?)
  • Music objects, area, fading in / out, shuffle, ordered (see https://tabletopaudio.com/, https://www.youtube.com/@bardify)
  • Hide/Show objects (secret doors, one way walls, secret areas, fogged areas, etc)
  • Label objects for text on maps (can work around by using tokens of numbers for just numbers or the label of transparent tokens? Would need DM-only tag or hide it but without too much fading?)
  • Layers, groups, stack objects up/down
  • Light sources and illumination/flickering/animated lights
  • Multiple floors support
  • Image/token browser
  • Shared pointers and ephemeral drawing
  • Wall, door, token, image, drawing, fog zone, creation/deletion
  • Permanent drawing (spell areas, fire splash, game-clock timer areas, grids, areas of fog of war, etc)
  • Measurement tools (cone, circle, line, square)
  • Token states/stats/heading (stunned, game-clock timers, etc)
  • Campaign/scenes management
  • Copy paste of any object
  • Cross links/embedded tools in text editor (scenes, random tables, monsters, etc)
  • Markdown text import/edit
  • Undo/redo
  • Record playing/combat history
  • Dice rolling
  • Token designer (import any image, rotate, scale, tint, circle cut and draw ring)
  • AD&D2E spell browser
  • AD&D2E Treasure generator
  • AD&D2E Nested random tables
  • AD&D2E character sheets
  • AD&D2E character creation
  • AD&D2E Party tracker (inventory, weight, treasure splitter...)
  • Record audio of local app (allow transcript? test with bluetooth micro?)
  • Record video of local app and/or server UI
  • Chat
  • Video
  • 3D View with miniatures on flat or 3D map (top, ortho)
  • Vector Editor (layers, blends, assets, etc)
  • Send shared view via dirty rects

HTTP Server

  • Local pointer/ephemeral drawing for signaling, etc
  • Local distance measuring
  • Local panning/zooming (won't work for 3D view/will require webgl)
  • Local token label/stats drawing for better text clarity
  • Local token roster drawing for initiative visualization, current turn, etc
  • Local token moving/dragging (no NPCs unless it's a DM view? no viz updates? approve movements? local render of shadow tokens with original positions?)
  • Local grid drawing
  • Local drawing for lighter bandwidth (send background, tokens, fog polygons - may be insecure and incompatible with 3d view)
  • Animated maps by pulling the mp4/webm and drawing on top
  • Per-player player view
  • Send current music (data url or fetched from http server)
  • Character sheet sharing (per player)
  • Chat
  • Video