Tabletop Simulator

Tabletop Simulator

Fog of War - on a Tray
13 Comments
Grimm Spector 20 Nov, 2023 @ 11:43am 
Does this support 3D environments, or only 2D maps?
Sileflas 21 Jan, 2023 @ 7:56pm 
Hey, had an inspiration and tried something crazy. I copied the script from your tray and added it directly to the OneWorld vBase token.

Did some minor modifications to the "Place all" button location and "Find Items" size scale. Then placed the buttons directly on the projected map inside their respective FoW zones. When the FoW's are deployed, the buttons are hidden within!

Under "functon createButton()"
I changed the position to {2.5, -.01, -1.3}
Added a rotation of {0, 270, 0}
Changed width to 500 and height to 120
Changed font size to 100

Under "function FindItems()" I changed the scale to { 89, 1, 53} (I may need to increase the y later, forgot to check how high it worked)
Sileflas 16 Dec, 2022 @ 8:41am 
I'm usually hanging over the big map rather than the hud display and would rather place them on the map on the table.

I've got a small bit of script that makes items invisible to players but not the DM (black player). For some reason it won't work on the tokens though. Not sure what script on them is interfering?

Here's the script:

players = {"White", "Pink", "Orange", "Green", "Blue", "Teal", "Yellow", "Red", "Brown", "Purple"}
none = {}

function onload()

self.setInvisibleTo(players)

end

Any help for the scripting noob would be appreciated!
LordRiven 6 Nov, 2021 @ 10:57am 
Broken links and broken objects.
FrozenZenBerry 1 Oct, 2020 @ 7:58am 
Totally just realized that the tray actually work slightly different than that. They link with things of the same name. I think I actual do remember something about that in the tutorial, but there was other things I was worried about at the time.
FrozenZenBerry 1 Oct, 2020 @ 7:34am 
Great concept and I'll probably be using it, but the tutorial is slightly lacking. Had to try and reverse engineer a few things myself. Feel like telling what each component did rather than step by step instructions would have made it more clear. For example the buttons are an item that can store other items within it, then place those items back at their original position with the toggle of its switch. These buttons can store other buttons. Then the tray has a side option on it called place all/recall all depending on it's state. Any buttons on the tray will be toggled when this option is changed. And then of course the explanation on how to get the image on the tray by copying the image url from the actual map while in edit mode. And also the size adjustment tool in the bottom right isn't actually used for anything, kind of felt like a wild goose chase including that on the table. All that aside, great concept, and I'll definitely be using the buttons for more than just fog of war.
darkcammo 20 Sep, 2020 @ 9:23pm 
If this is helpful to anyone, I found out order of operations matters a lot during setup...

General Setup:
1) Load your map in OneWorld the way you normally do.
2) Paint all of your Fog of War (FoW) zones.
3) Place a memory token in the corner of your map on the table (this will be for OneWorld to pack, but don't pack it yet). Let's call this the Tray Token.
4) Grab a new FoW Tray and add your map image file to it.
5) Grab a number of memory tokens, one for every grouping of FoW zones you want. Let's call these the FoW Tokens.
6) Name and arrange the FoW Tokens on your FoW Tray in relevant areas for the groupings.
7) Setup each FoW Token to control the relevant Fog of War zones.
8) Recall all of the Fog of War zones into the FoW Tokens.
9) Recall the FoW Tray into the Tray Token.
10) Pack the zone using OneWorld.

If you don't do the last three steps in that order, you'll get some wonkyness and not everything will save as expected.
darkcammo 20 Sep, 2020 @ 9:03pm 
This is great, thank you!

One question, is there a way to add a button to fit your map to the FoW Tray? In OneWorld there is a button to make your map fit to the table area. On the FoW Tray my map just extends off the tray (only an issue because it covers the Place All/Recall All button).
High Plains  [author] 17 Aug, 2020 @ 6:42am 
Yeah, sorry - I didn't mention that much. To get the image on the tray, take one from the infinite bag of trays, then right click and choose "Custom". From there, you can select the image that you want to display on the tray (presumably the same as the one on the table). For the FoW, just draw it on the map following the TTS tutorial, then click setup on a token and use the buttons as per instructions briefly mentioned in my video and in more depth with videos about the memory bag and memory bag 2 mods. Hope that helps - I am not in a position to make a new video right now, but can do if it is still needed.
A Glitch 15 Aug, 2020 @ 3:12pm 
This is great, Could you update the tutorial notes a little bit to provide better clarity how you get the fog of war initially set up? I I can get fog of war into the set up easy enough but it's not clear how the tokens and the mini fog map are created and linked
High Plains  [author] 13 Aug, 2020 @ 3:15am 
I have fixed it - it's showing the right mod now!
High Plains  [author] 13 Aug, 2020 @ 2:17am 
oh bother! Thanks for the heads-up!
DirtyChito 12 Aug, 2020 @ 4:58pm 
I think you mistakenly uploaded the card roller save to this mod.