Tabletop Simulator

Tabletop Simulator

Round Table Poker
Sanch 1 Apr, 2020 @ 1:58am
Simpler version
I am attempting to modify this mod so that it has far less functionality but am having a tough time. Any help would be really appreciated.
Last edited by Sanch; 1 Apr, 2020 @ 1:59am
< >
Showing 1-5 of 5 comments
Sanch 1 Apr, 2020 @ 2:24am 
I have basic programming experience and have managed to edit the script to remove a lot of the unwanted buttons and functionality. But the biggest roadblock I have found is stopping the script from trading chips when gathering, betting, calling or collecting the chips. Any help or tips achieving this would be greatly appreciated.

Basically I want to strip down the script to only the following functionality / buttons
1. Gather chips
2. Bet (with amount typed in as per current functionality)
3. Call - puts in chips equal to the current highest bet (no policing players acting out of turn)
4. Collect - move all bets into the pot
5. Totals displayed on table for player stacks, bets and pot

All the other functionality I would like removed - no automatic or manual trading of chips ever, no shuffling or dealing the deck at all, no selecting or highlighting who's turn it is, no showdown detection or sidepots .

Fold buttons can stay for moving player cards to a muck area - but not essential if that is too hard to keep in for any random deck.

If a player doesn't have the correct denomination chips to place a bet or call then instead of automatically trading the chips it could show a message saying "You don't have the chips for that bet - change the amount or trade chips with someone"

Thanks


Buckwheat  [developer] 1 Apr, 2020 @ 4:30am 
Determining whether exact change can be made out of a collection of coins is not a trivial mathematical or programmatic problem. Brute-force iteration will lag the game too much. Algorithms exist for this kind of problem, but implementing them might not be trivial given Lua's lack of an integer type.

All other omissions can be achieved by deleting the right lines of code and/or the right objects.

There is a new style of poker script becoming more popular among the community where pretty much the only automation is dealing cards. At least one such script is, or was, available on the Workshop for free. You might have more success achieving your goals by modifying that script, instead of taking away from mine.
Sanch 1 Apr, 2020 @ 4:55am 
Wow thanks for your fast detailed reply buckwheat.

What if I delete the bet and call functionality and then focus on modifying the Gather and Collect functions so they don't trade any chips? That should be a lot easier I'm assuming. I'm just struggling to work out which parts of those functions to remove so that the chips aren't traded while they are being collected. Any help you can impart on that would be so awesome.
Buckwheat  [developer] 1 Apr, 2020 @ 9:02am 
Gather and Collect already don't trade any chips, except when collecting into side pots. If they do, it's a bug.

I don't believe deleting the Bet and Call buttons would break functionality, but I'm not sure.

It's been a long time since I worked on this version of the script, to the point where my personal, current, proprietary version barely resembles it. I'd have to reexamine the script in detail to point you anywhere useful, which I'm not willing to do for free.
Sanch 1 Apr, 2020 @ 7:17pm 
Fair enough. Appreciate you spending the time to write the replies. It's helped a lot.
< >
Showing 1-5 of 5 comments
Per page: 1530 50