Skip to content

Commit

Permalink
Add dungeon revealer wiki (#7)
Browse files Browse the repository at this point in the history
* add dr wiki

* fix link

* remove alt-text in links
  • Loading branch information
maxb2 authored Feb 10, 2021
1 parent 7ebca4c commit 4198034
Show file tree
Hide file tree
Showing 14 changed files with 478 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.zip
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
A repository of notes ready to import into [dungeon-revealer](https://github.com/dungeon-revealer/dungeon-revealer/). The main purpose of this repository is to host system reference documents of role playing games.



- [Dungeon Revealer](notes/Dungeon%20Revealer/wiki)
- [Wiki][dungeon-revealer-wiki]
- [Dungeons and Dragons](notes/Dungeons%20and%20Dragons)
- [5e SRD][dnd-5e-srd]



## Contributing

Pull requests are welcome! We will only accept content released under permissive licenses such as OGL, CC, etc.
Expand All @@ -31,7 +33,7 @@ Pull requests are welcome! We will only accept content released under permissive
- [Dungeons and Dragons](notes/Dungeons%20and%20Dragons)
- [5e SRD][dnd-5e-srd]

[dnd-5e-srd]: https://github.com/dungeon-revealer/game-system-notes/releases/download/v0.1.0/dnd-5e-srd.zip
[dnd-5e-srd]: https://github.com/dungeon-revealer/game-system-notes/releases/download/v0.2.0/dnd-5e-srd.zip
```
5. Submit a pull request.
Expand All @@ -42,4 +44,5 @@ Pull requests are welcome! We will only accept content released under permissive
- [ ] Automatically generate the link tree in the README.
- [ ] Add more [SRDs](https://www.dicegeeks.com/rpg-srds/).
[dnd-5e-srd]: https://github.com/dungeon-revealer/game-system-notes/releases/download/v0.1.0/dnd-5e-srd.zip
[dnd-5e-srd]: https://github.com/dungeon-revealer/game-system-notes/releases/download/v0.2.0/dnd-5e-srd.zip
[dungeon-revealer-wiki]: https://github.com/dungeon-revealer/game-system-notes/releases/download/v0.2.0/dungeon-revealer-wiki.zip
5 changes: 5 additions & 0 deletions documents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ notes:
name: 5e SRD
path: notes/Dungeons and Dragons/5e-SRD
zip: dnd-5e-srd.zip
dungeon-revealer:
wiki:
name: Dungeon Revealer Wiki
path: notes/Dungeon Revealer/wiki
zip: dungeon-revealer-wiki.zip
29 changes: 29 additions & 0 deletions notes/Dungeon Revealer/wiki/Community-Showcase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
id: dr-wiki-community-showcase
title: Dungeon Revealer Community Showcase
is_entry_point: false
---

Here is a showcase of the interesting ways members of our community are using dungeon-revealer. If you want us to feature your project using dungeon-revealer, please contact us!

## Tabletop TV
[hinjodragonfly](https://github.com/hinjodragonfly) has created a case for a television that sits on the tabletop. There is a [Raspberry Pi](https://www.raspberrypi.org/) in the case running dungeon-revealer and presenting the player view on the screen. The DM page is accessed with a tablet.


<img src="https://user-images.githubusercontent.com/58919182/71115958-68e6e580-21d3-11ea-917d-d17a5e1d81c6.jpg" alt="" width="500"/>

<img src="https://user-images.githubusercontent.com/58919182/71115957-68e6e580-21d3-11ea-853a-5f63be61bcda.jpg" alt="" width="500"/>

<img src="https://user-images.githubusercontent.com/58919182/71115959-697f7c00-21d3-11ea-9999-364bb6e52129.jpg" alt="" width="600"/>


## Tabletop Simulator Mod
[azzco](https://github.com/azzco) has made a [Tabletop Simulator mod](https://steamcommunity.com/sharedfiles/filedetails/?id=2164161399) that projects the player view onto the table background. Players can also view the map through the in-game tablets.

<img src="https://media.discordapp.net/attachments/730140662691004598/731867556939300884/screenshot.png" alt="" width="600"/>
<img src="https://steamuserimages-a.akamaihd.net/ugc/1322320201362126177/A05DA92F40DEA1C213858EEE2C081407A189863D/" alt="" width="600"/>
<img src="https://steamuserimages-a.akamaihd.net/ugc/1322320201362190974/9D87EEB77C5C1B39ADCB308502DBF99A30AB5802/" alt="" width="600"/>
<img src="https://steamuserimages-a.akamaihd.net/ugc/1322320201362192721/D223ADD2BB0B6E5DCCAEBC7F1C12C8B9C098ACE4/" alt="" width="600"/>

## Bikers Dice and Bars Podcast
The [Bikers Dice and Bars podcast](https://breakfastpuppies.com/podcasts/bikersdicebars) by [nonplayer](https://github.com/nonplayer) released an [episode about virtual tabletops](https://breakfastpuppies.com/podcast-feeds/bdab-bonus-virtual-tabletops-w-alex-hakobian/). They compare various VTTs and feature dungeon-revealer in their "offline VTT" section.
14 changes: 14 additions & 0 deletions notes/Dungeon Revealer/wiki/Contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
id: dr-wiki-contributing
title: Dungeon Revealer Contributing
is_entry_point: false
---

The files for the wiki are kept in the [wiki](https://github.com/dungeon-revealer/dungeon-revealer/tree/master/wiki) folder of the [dungeon-revealer repository](https://github.com/dungeon-revealer/dungeon-revealer/).
To edit the wiki, you can [fork the repository](https://github.com/dungeon-revealer/dungeon-revealer/fork), make changes, and then open a pull request.
It's the same process as if you were making changes to the code.


You can also do all of this on the github website itself.
Simply navigate to the [wiki](https://github.com/dungeon-revealer/dungeon-revealer/tree/master/wiki) folder, open the file you wish to edit, and click on the edit button.
Github will take care of the fork and pull request processes for you.
133 changes: 133 additions & 0 deletions notes/Dungeon Revealer/wiki/Dice-Macros.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
---
id: dr-wiki-dice-macros
title: Dungeon Revealer Dice Macros
is_entry_point: false
---

## Chat Message Macros

### Simple Macro

```hbs
<ChatMacro message="Attack with Axe [1d20] makes [2d6] Damage">
Attack with Axe
</ChatMacro>
```

You can embed dice rolls by using a dice notation formula surrounded by square brackets. Besides using them in macros, you can also simply type dice rolls into the chat.

Examples of dice rolls:

- `[1d20]`
- `[3d6]`
- `[(1d4 + 1) * 3 ]`
- `[1d9000]`

When toggeling from the editor mode back into the rendered note mode the above macro will be rendered as a clickable button with the text `Attack with Axe`.
Click that button for sending the contents of the `message` attribute (`Attack with Axe [1d20] makes [2d6] Damage`) to the chat!

### Template Macro

For more complex templates it is encouraged to use a template. Templates can be declared once per note and re-used with different variables:

```hbs
<Template id="attackTemplate">
<Box>
<BoxRow>
<span style="color:red;font-weight:bold">Attack with {{weapon}}</span>
</BoxRow>
<BoxRow>
<BoxColumn>
Attack Roll
</BoxColumn>
<BoxColumn>
{{attackRollFormula}}
</BoxColumn>
</BoxRow>
<BoxRow>
<BoxColumn>
Damage
</BoxColumn>
<BoxColumn>
{{damageRollFormula}}
</BoxColumn>
</BoxRow>
</Box>
</Template>
<ChatMacro
templateId="attackTemplate"
var-weapon="Handaxe"
var-attackRollFormula="[1d20 + 5]"
var-damageRollFormula="[1d6 + 6]"
>
Attack with Handaxe
</ChatMacro>
<ChatMacro
templateId="attackTemplate"
var-weapon="Axe"
var-attackRollFormula="[1d20 + 4]"
var-damageRollFormula="[1d4 + 4]"
>
Attack with Dagger
</ChatMacro>
```

A template can be declared by using the `Template` tag. Make sure to set a unique `id` attribute that can later be used for referencing the template.

Inside the template you can use the following html tags:

- div (Allowed attributes: `style`)
- span (Allowed attributes: `style`)

As well as the following custom components for structuring content:

- Box (Box with grey border and rounded corners)
- BoxRow (Horizontal row)
- BoxColumn (horizontal row column)

Variables can bes set by using the variable name surrounded by curly brackets `{{myVariable}}`.

The template can be used by setting the `templateId` attribute to the Template `id`. In addition variable values can be passed by setting them as attributes on the `ChatMacro` and prefixing them with `var-`.

E.g. the attribute for substituting the `myVariable` variable is `var-myVariable="My Custom Value"`.

This allows easily defining triggers for multiple skill checks or weapon attacks.

```hbs
<Template id="skillCheck">
<div style="background-image:url('/api/images/04545c2f-6f7b-4fc6-a9d8-6d6580503031');background-position: 100% center;background-size:contain;background-repeat:no-repeat">
<Box>
<BoxRow>
<BoxColumn>
<div style="font-weight:bold;color:#B71C1C">{title}</div>
</BoxCoumn>
</BoxRow>
<BoxRow>
<BoxColumn>{{attribute1}}</BoxColumn>
<BoxColumn>[1d20]</BoxColumn>
</BoxRow>
<BoxRow>
<BoxColumn>{{attribute2}}</BoxColumn>
<BoxColumn>[1d20]</BoxColumn>
</BoxRow>
<BoxRow>
<BoxColumn>{{attribute3}}</BoxColumn>
<BoxColumn>[1d20]</BoxColumn>
</BoxRow>
</Box>
</div>
</Template>
<ChatMacro
templateId="skillCheck"
var-title="Swim Skill Check"
var-attribute1="Dexterity"
var-attribute2="Constitution"
var-attribute3="Strength"
>
Schwimmen Probe
</ChatMacro>
```
40 changes: 40 additions & 0 deletions notes/Dungeon Revealer/wiki/Getting-Started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
id: dr-wiki-getting-started
title: Dungeon Revealer Getting Started
is_entry_point: false
---

The app is separated into two sections. One for the dungeon master and one for the players.

## Dungeon Master

To use dungeon-revealer, the game master and the players must be on the same local network (usually a wifi network). The game master will start the server (see [Installation](dr-wiki-install)), navigate to the server's URL (`your-ip:3000/dm`) in a web browser, and then enter a password if it is set. At this point, they will be prompted to upload an image file of the map to share with the other players. The other players will navigate to the server (`your-ip:3000`) using their own browsers (laptop, tablet, or phone) and will remain at the home page. The connection information is displayed in command prompt for convenience.

To clear areas of the map, click and draw on the map. You can switch the brush mode by clicking the "Reveal" or "Shroud" button. Alternatively, you can select an area to clear or shroud by clicking the "Select Area" button. Whenever the game master clears some of the fog of war from the map and it is ready to share with the players, they will click "Send" and the revealed areas of the map will appear in the players' browsers. What appears as a shadow to the DM will appear as pure blackness to players, thus only revealing the cleared sections of the map to them. The "Mark" button will display a circle for a period of time to indicate a point of interest.

To switch to a different map, click "Map Library", and then select one of the maps you have already uploaded and click "Load". The "LIVE" indicator in the lower right indicates if the map currently on the dungeon master page is being presented on the player page. The "Stop Sharing" button will blank the player page in preparation for a new map to be loaded.

You can add a [token](dr-wiki-tokens) with the "Token" tool. Click anywhere on the map to place it. The token can be changed by opening the context menu trough right-clicking on a single token. You can alter its label, color and size.

### Shortcuts

| Key | Functionality |
| -------------- | --------------------------------------------------------------------------------------------- |
| `1` | select move tool. |
| `2` | select area tool. |
| `3` | select brush tool. |
| `4` | select mark tool. |
| `5` | select token tool. |
| `Shift` | toggle between hide/reveal. |
| `CMD/Ctrl + S` | push map to players. |
| Hold `Alt` | use move tool while `Alt` key is pressed and return to previous mode after `Alt` is released. |

## Players

Navigate to the server using a web browser and wait at the home page. (The connection information is displayed in command prompt for convenience.) When the dungeon master is ready, they will push a map to your webpage. You will see either a black screen or a partially covered image. You can zoom in/out and pan the map. On a long click you will place a "point of interest" on the map that will show as a red circle.

### Hide Chat & Note UI

Append "?map_only" to the URL in order to hide chat & note UI. E.g. `http://localhost:3000/?map_only`. This could be useful in a setup where all players are around a table with a single monitor, for example.

This can also be used with the password parameter: `http://localhost:3000/?map_only&password=foobar123`.
31 changes: 31 additions & 0 deletions notes/Dungeon Revealer/wiki/Grid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
id: dr-wiki-grid
title: Dungeon Revealer Grid
is_entry_point: false
---

A grid helps to align tokens added to the map and can be used to easily reveal portions of the map. Any token with size `1x` added to a map with a grid will default to the grid size.

## Creating the grid

Click on the `Add Grid` button at the bottom to open the grid configuration menu.

Confirm adding a grid and adjust the grid size to match one square of your map. You can increase or decrease the grid size using the Column Width and Column Height boxes. Use the X-and-Y coordinates boxes to align the grid with your map, or press ALT and drag the grid on the map using your mouse.

![Grid_Configure](https://user-images.githubusercontent.com/1528440/106448052-8718af00-6482-11eb-94ef-473d8fc144b5.png)

## Grid Settings

To edit an existing grid, click on `Grid Settings` at the bottom of the main page to adjust the visual style of the grid.

![Grid_Settings](https://user-images.githubusercontent.com/1528440/106448511-2b025a80-6483-11eb-8339-1bc5e9252990.png)

You can adjust the visibility of the grid for both you and the players. The `rgba`box can be used adjust the color and transparency of the grid.

The grid can be modified by clicking `Edit Grid`. This will return to the `Grid Configurator`.

## Grid Reveal

You can use the `Area` tool on the left toolbar to reveal or shroud blocks. Click the `Area` tool and set `Snap to grid` to `On`. Using the tool you can reveal or shroud a box in the created grid by selecting an area inside the box with it.

![Grid_Reveal](https://user-images.githubusercontent.com/1528440/106448066-8b44cc80-6482-11eb-90de-5bfc5895a068.png)
17 changes: 17 additions & 0 deletions notes/Dungeon Revealer/wiki/Home.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
id: dr-wiki-home
title: Dungeon Revealer Home
is_entry_point: false
---

dungeon-revealer is a web app for tabletop gaming to allow the game master to reveal areas of the game map to players. Join the [discord server](https://discord.gg/dS5khqk).

## What the DM Sees

![alt text](https://user-images.githubusercontent.com/14338007/83942937-68312280-a7f8-11ea-9a63-8307f1c12d50.png)

You can protect the DM area by setting a password.

## What the players see

![alt text](https://user-images.githubusercontent.com/14338007/83942940-6e270380-a7f8-11ea-9eb5-ec440ea57c83.png)
24 changes: 24 additions & 0 deletions notes/Dungeon Revealer/wiki/Hosting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
id: dr-wiki-hosting
title: Dungeon Revealer Hosting
is_entry_point: false
---

Under construction!

## Self-Hosting

### Local Network

Local network connection is currently the default assumption of these docs.

### Remote Access

In order to allow players and even other DMs to remotely access to your installation, you need to enable additional outside services. The easiest two approaches to this are either using a Virtual Private Network (VPN), or a combination of Dynamic DNS (DDNS) and local port forwarding:

* **VPN:** Many modern routers feature built-in VPN configuration. See your router's docs for more details.
* **DDNS:** A number of [free and paid online DDNS services](https://www.google.com/search?q=dynamic+dns&oq=dynamic+dns) exist that can forward a custom hostname to your home internet network. Using port forwarding (see your router's docs) it's easy to then forward a remote port to the host port of your Dungeon Revealer installation.

### Hosting on a Server

- [Install Dungeon Revealer on a Digital Ocean Droplet](https://www.ehrenpforte.com/technical-2/943/)
Loading

0 comments on commit 4198034

Please sign in to comment.