Tabletop Simulator

Tabletop Simulator

Set Invisible To With Right Click
24 Comments
Leberecht Reinhold  [author] 17 Jun, 2024 @ 1:15am 
@Squirtle Possible, but it can be tricky.

If that means "a few other objects, within some margin of error", then its fine. That would mean putting the events on object drop/move, checking per frame (both the invisible objects plus the other ones, it has to go both ways) with a sq distance function.

If that means it needs to be exact with a large amount of objects, its going to run into perf issues. Simply put, checking per frame on those situations is going to be very heavy on the host computer, which will result in lag for everyone.
Squirtle 8 Jun, 2024 @ 6:06pm 
how difficult do you think it would be to convert this functionality to be based on proximity to other objects? thank you
Fidel 13 Mar, 2024 @ 4:12pm 
Pardon my ignorance, but what do you mean by "copy/paste into your mod"? I'm not quite sure how I can use this in a game.
rebel16 8 Jul, 2023 @ 12:23am 
This is a great module and almost exactly what I'm looking for! The only change I'd like to see is if it can be set so only the White player (the GM in most of the games I play), or maybe a specifically designated player that isn't Black or Gray, can change the toggles.
Plectros 21 Feb, 2023 @ 9:25am 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
Leberecht Reinhold  [author] 19 Aug, 2021 @ 12:50pm 
@ilfuoco2000 Could you explaina bit more? I have been trying to reproduce it with the cubes, but the error does not seem to appear in my end.

Does it appear with cubes or only with specfiic objects?
Also, the GM is not grey, but black. Grey is espectator.
ilfuoco2000 17 Aug, 2021 @ 5:44am 
hi ther is a bug that after i change team from the GM (grey) to the other team (any other color) and than when i go back to the GM team all the models with the script of this mod disappear with this error " failed to load custom_model. value cannot be null. parameter name: key <11>" do you know hot to solve this problem? because i rly love this mod but with this bug i can't go on ;( .
stups 1 Jul, 2021 @ 12:23pm 
@Leberecht Reinhold

Thanks!
Leberecht Reinhold  [author] 30 Jun, 2021 @ 9:16am 
@Spooks In the code you can comment some colors on the list if you arent going to use all of them, that reduces the lsit.

@stups I specifically dont want that as this was made for Kriegsspiel where the umpire may need to share screenshots where such thing should not be indicated. However, if you want, it's only adding "obj.setColorTint(Color(255, 255, 255, 128))" to the code in the hide for all but black.
stups 30 Jun, 2021 @ 7:58am 
Hi, great Mod. One small suggestion. If a token is hidden to all except black, could it indicate it's invisible to others players by making it transparent? You could set the tinting color an alpha channel value of lower than 255 to achieve this.
Spooks 30 Jun, 2021 @ 3:15am 
This mod helps a bunch, it is however difficult to fit the entire menu when you right click on the object on the screen
Leberecht Reinhold  [author] 27 Jun, 2021 @ 10:42am 
@Boresight The blue area is just something visible to indicate where the scripting area is. TO see it you have to see the gizmos, with F8.
Tim 27 Jun, 2021 @ 8:02am 
Fantastic tool for RPG play. This makes hiding tiles & rooms much more easier to manage than hide volumes. Thanks.
Boresight 27 Jun, 2021 @ 6:07am 
Tried copying the blue area (not sure how to copy the scripting or if I have to copy the red box) but it didn't work. I'm sure I did something wrong. Just the same, this is a great feature.
GrognardDM 25 Jun, 2021 @ 6:20am 
Great Thanks for the update!
Leberecht Reinhold  [author] 25 Jun, 2021 @ 12:37am 
@Boresight You could either bring the tokens from the existing game to this mod, drop them in the bleu area, and copy to the other mod, or copy the blue area plus the scripting zone on of it (which is not viisble until you enable gizmos with f8) and move them there.
DeadHat 24 Jun, 2021 @ 7:32pm 
You're a hero.
Boresight 24 Jun, 2021 @ 4:42pm 
This has been a long time coming! Thanks.
Is there a way to incorporated this into an existing game (copy and paste...?)
Leberecht Reinhold  [author] 24 Jun, 2021 @ 1:27pm 
I just updated the mod with the requested features.

The right click menu now has a hide all that hides to everyone but the DM (Black) and a reveal all that reveals to everyone.

Furthermore, you can now select multiple pieces and toggle visibility of each color at once by clicking in any of them and selecting the box, the code will detect which ones are selected and will update them.

Finally, there's also a blue area where you can drop your tokens so they adquire the functionality. So you can get all your minis and tokens, drop them there, and then Save them again, they will have the code.
GrognardDM 24 Jun, 2021 @ 9:09am 
Thanks for the feedback, much appreciated.
Boresight 24 Jun, 2021 @ 7:30am 
This would be useful (similar to turn everything into a bag) if you could dump tokens/counters into a box and set them to be invisible to certain colours...
Leberecht Reinhold  [author] 23 Jun, 2021 @ 11:55pm 
@GrodnardDM Those are all possible and simple, I will add them later. It's going to be a lot of options though so I will make sure it can be disabled easily.

@luft That's possible, you can simply assign the script to all object loads (this may be problematic if the object has other scripts) or doing from object load from global context. However both of them require doing it from the mod script and not any particular object, so I cannot do it generically from this mod.

I could create a box where it transforms the object, so you can just dump them in the box and they get all behavior. Not super automated but at least it would be fast.
luft 23 Jun, 2021 @ 11:34pm 
is there any way to set this script globally? as it stands you have to do this for every individual item, and it can be very tedious and lengthy for some games. We are looking for a way to do this to multiple pieces at once, or set it to everything on the server.
GrognardDM 23 Jun, 2021 @ 2:38pm 
Great idea. It would be useful if you could add an option to the script to "un-hide", reveal to all, hide to all except black