Tabletop Simulator

Berserk Games · Tabletop

Tabletop Simulator patch notes · Mar 18, 2016

Experiment

Update v6.9 Scripting Improvements & Beta Unity 5 Build!

What's new in Update v6.9 Scripting Improvements & Beta Unity 5 Build!: 64 changes to Tabletop Simulator, released Mar 18, 2016.

Content · 25

  • Added a held_by_color member variable to the Object script.

    held_by_color member variable
  • The Player class can get and set a player's lift height.

    player lift height get/set
  • takeObject() can remove a card from a deck based on its index within the deck.

    takeobject() removal by deck index
  • Added addForce() and addTorque() to the Object script.

    addforce() and addtorque() method
  • Added getVelocity() and getAngularVelocity() to the Object script.

    getvelocity() and getangularvelocity() method
  • Added a guid member variable to the Object script.

    guid member variable
  • Added a Player class and a getPlayer() function.

    player class and getplayer() function
  • The Player class can check whether a player is blindfolded; setting it calls blind()/unblind().

    player blindfold statu
  • Added blind() and unblind() to the Player class.

    player blind() and unblind() method
  • Added a Counter class.

    counter class
  • Added a bounciness member variable to the Object script.

    bounciness member variable
  • Added Tablet URL to getValue() and setValue().

    tablet url support in getvalue() and setvalue()
  • Added removeButton(), which takes a frame to remove the button so multiple buttons can be removed in one frame while preserving indices; indices update the following frame.

    removebutton() method
  • Added getButtons() to the Object script.

    getbuttons() method
  • Added editButton() to the Object script.

    editbutton() method
  • Added a use_gravity member variable to the Object script.

    use_gravity member variable
  • Added a mass member variable to the Object script.

    mass member variable
  • Added getStateCount(), shuffleStates() and setState() to the Object script.

    getstatecount(), shufflestates() and setstate() method
  • Added a dynamic_friction member variable to the Object script.

    dynamic_friction member variable
  • Added an angular_drag member variable to the Object script.

    angular_drag member variable
  • Added the ability to spawn Custom Figurine, Custom Board, Custom Tile, Custom Token and Custom Dice objects.

    spawn custom figurine, board, tile, token and dice
  • Added a static_friction member variable to the Object script.

    static_friction member variable
  • Added onPickedUp() and onDropped() events to the Object script.

    onpickedup() and ondropped() event
  • Added cut() for stacks and decks.

    cut() method for stacks and deck
  • Added a drag member variable to the Object script.

    drag member variable

Controls · 1

  • Spectators can no longer click on Lua-created buttons.

    spectator clicks on lua button

System · 17

  • These functions are deprecated and replaced by getPointerPosition(), getPointerRotation() and getPlayerHand() in the Player class.

    pointer and hand position functions moved to player class
  • Objects taken from a container default to the container's rotation when no rotation is given; to keep a card's up/down facing, set its z rotation to the deck's z rotation.

    default rotation of objects taken from a container
  • The four global script accessors are deprecated in favor of Global.getVar, Global.setVar, Global.getTable and Global.setTable.

    global variable and table accessor functions deprecated
  • takeObject() gains an optional 'callback_owner' parameter.

    takeobject() callback_owner parameter
  • Added a 'Global' global reference, intended only for things the Global Script owns.

    global reference added to object and global
  • Added a 'resting' member variable to the Object script.

    resting member variable
  • Now returns nil for an unseated player color and lets script execution continue.

    colortoplayername() return value for unseated color
  • onPlayerTurnStart() is now called after the player clicks OK in hotseat mode.

    onplayerturnstart() timing in hotseat mode
  • onObjectDestroyed() now receives the object reference as a parameter, has 1 frame left to live, and fires immediately before the object's onDestroy() event.

    onobjectdestroyed() event parameter and timing
  • Removed the error message; the function now simply returns nil.

    getobjectfromguid() error message
  • Added an optional parameter to takeObject() for decks to take from either the top or bottom, defaulting to top.

    takeobject() top or bottom option for deck
  • spawnObject() now takes a Table parameter that includes a callback function.

    spawnobject() parameter type
  • Both now return nil when passed a player color that is not seated.

    getpointerposition() and getpointerrotation() return value for unseated color
  • Reordered the parameters of setGlobalScriptTable().

    setglobalscripttable() parameter order
  • colorToPlayerName() is deprecated; the name is now the steam_name member variable of the Player class.

    colortoplayername() replaced by steam_name
  • Calling getObjects() on a deck now returns a list of its cards with their indices inside the deck.

    getobjects() on a deck return value
  • takeObject() called from a deck now takes the top card by default instead of the bottom.

    takeobject() default card from deck

Fix · 7

  • createButton() can now be called immediately after clearButtons() in the same frame.

    createbutton() after clearbuttons() in same frame
  • Fixed setRotationSmooth() and rotate() when given (0, 0, 0).

    setrotationsmooth() and rotate() with zero rotation
  • Fixed multiple buttons on a single object not syncing to players who joined late.

    multiple buttons on one object not syncing to late joiner
  • Fixed getSeatedPlayers() so it now returns a deep copy of the player list.

    getseatedplayers() playerlist copy
  • Fixed setTable(), which was not working correctly before.

    settable() behavior
  • Added the missing parameters for setCustomObject for Custom Model.

    setcustomobject parameters for custom model
  • Fixed setGlobalScriptTable(), which was not working correctly before.

    setglobalscripttable() behavior

Also in this patch14

  • Beta branch reduces stutter.

    stutter
  • Tablet screen is not working in the Unity 5 beta.

    tablet screen
  • Beta branch makes the UI much more responsive.

    ui responsiveness
  • The beta branch moves Tabletop Simulator to Unity 5 with the same graphics; physics-based rendering is planned for later.

    physics and rendering engine upgrade to unity 5
  • Beta branch makes box select work properly when 3D Text is selected.

    box select with 3d text selected
  • Beta branch makes Zones such as Hidden and Lua much more reliable.

    zone reliability (hidden, lua, etc.)
  • Beta branch greatly improves the accuracy of auto raise.

    auto raise accuracy
  • Not all sounds are working on Linux in the Unity 5 beta.

    sounds on linux
  • Beta branch increases the number of objects that can be selected or grabbed from 64 to 128.

    selectable/grabbable object limit
  • Beta branch includes overall performance improvements.

    overall performance
  • Beta branch improves physics stability and performance.

    physics stability and performance
  • In the beta branch objects will no longer go through each other.

    objects passing through each other
  • Beta branch optimizes many scripts for improved performance.

    script optimization
  • Touch input is currently disabled in the Unity 5 beta for porting.

    touch input