Tabletop Simulator

Tabletop Simulator

Azul
ratva 3 Jul, 2020 @ 6:21pm
Compatability with hotseat mode
Hi Ramun Flame,

This mod looks great! I'm eager to try out a game with it.

Can I ask how you fixed/made a workaround to add compatibility for hotseat mode?
< >
Showing 1-3 of 3 comments
Ramun Flame  [developer] 3 Jul, 2020 @ 11:33pm 
No problem. I created workarounds that I enable if you are playing hotseat mode. I check if you are playing hotseat mode by checking player names when you start the game. If every player has a name like "Player 1", "Player 2", etc I assume you are in hotseat. It's not a big deal if it's enabled in a non-hotseat game. You will just be able to do things for other players on their turn.

Problem 1: Not being able to select tiles when it isn't your turn.

If hotseat is enabled I just treat anyone clicking the tiles as the current player. I did this for other functions that relied on the clicking player as well.

Problem 2: Pattern lines/Scoring Grid not interact-able for other players.

I made the buttons on the player boards only interact-able for the player who's board it belongs to. If hotseat mode is detected, I let everyone click the buttons.



Not big changes, but I had the framework already in place to fix it quickly. Let me know if you have any questions. Happy to help.
ratva 4 Jul, 2020 @ 7:43am 
Ah, got it - that's really useful, thanks! In particular checking the names to figure out the mode is something I hadn't considered.

My main issue was that hand visibility wasn't changing when the player turn changes, so Player 1's hand is the only visible hand even on Player 2's turn, but hopefully I can find a work around and only apply it in hotseat mode =)
Ramun Flame  [developer] 4 Jul, 2020 @ 9:55am 
Yeah, I set the visibility for the buttons on the player boards. In hotseat mode I just set the visibility to "" to let everyone click it.
< >
Showing 1-3 of 3 comments
Per page: 1530 50