Tabletop Simulator

Tabletop Simulator

38 ratings
Encoder
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
756.843 KB
29 Dec, 2016 @ 1:40am
8 May, 2021 @ 8:32am
95 Change Notes ( view )

Subscribe to download
Encoder

Description
Encoder Version 4.4.11

Big update:

When updating to this version and beyond, if there is no menu module present, the encoder will spawn a basic menu module.

Players[color] can now be encoded and accessed much like objects can.
Menus are now a separate item, allowing for customization of button placement, style, and what it contains.
Styles are a default button table that one can register and set to the global style, changing how all buttons that call on it look.

Tools no longer exist as a module type, instead Properties now have a tags="string,string" parameter. Menus can use this when looking for properties that should show up in them.
The callOnActivate function is no more, and activateFunc is now required.

[[function activateFuncExample(obj,ply) enc.call("APItoggleProperty",{obj=obj,propID=pID}) --Do you want this property to toggle on and off or just activate once per click. if enc.call("APIobjIsPropEnabled",{obj=obj,propID=pID}) then --this will only be called on toggling to true. end end]]

Better tracking of objects entering hands.

v4+

Big changes a foot, but nothing that is directly impacting you for the most part.
The core modules have been updated(power,toughness,loyalty,1/1 counters, and copy)
I expect one or two more bugs to show up.

With this update I have further expanded the ability for modules to interact with each other with the introduction of values. Values are registered to the encoder instead of a data structure, but can be more easily accessed by other modules. This allows things like Physical Counters that can modify card data when dropped on a card, as well as a bunch of new clever uses I have yet to think of. Streamlined the edit menu, tell me if you hate it. Will see about changing back if its not too much work.

THE LAST VERSION IS AVAILABLE IN THE BAG CALLED ENCODER 3.0+ IF YOU WANT TO KEEP USING IT.
However I no longer will be making updates for it. I will create a new Branch for Prior to v4 being added to the core branch.

Features:
An API allows for scripters to manipulate most encoded properties.

Mods that work with the Encoder:
Card Importer: https://test-steamproxy.haloskins.io/sharedfiles/filedetails/?id=1838051922 Works with v4 and above.
Easy Modules: https://test-steamproxy.haloskins.io/sharedfiles/filedetails/?id=2246039633 Works with v4 and above.


Please message me with bugs if you run into one not mentioned above.
Popular Discussions View All (2)
21
16 Dec, 2019 @ 3:39pm
Feature Requests
Tipsy Hobbit
2
15 Dec, 2020 @ 4:33pm
Updating Untapper for Encoder Ver 4
Remixed Witch
69 Comments
Tipsy Hobbit  [author] 22 Apr @ 4:24pm 
So make sure you load the encoder first, then each module loaded will register itself after being spawned. I highly recommend using Pi's easy modules, they look a lot nicer then the default modules I put together.

Each wooden circle is a different module(+1/+1 counters, Keywords, colors).
There should also be one Menu Module.

Can try and help you more directly if you have more specific questions.
the modules only properly load on save load afaik, place them in, lock them somewhere, and then reload the save
Murdurmuffin 22 Apr @ 11:39am 
Creating a custom play table for myself and friends, partly to enjoy, partly to learn TTS modding.

Spawned this in because I thought it would help me automate some functions in MTG like Untap, Draw, Mill, etc.

It's a bunch of wooden circles that fall all over the place each time I try to move a couple of them and I don't have any understanding of how to work with them after reading your workshop page. Is there a tutorial somewhere here or on youtube? Didn't think I'd need to be an actual wizard to add a couple buttons to my table...
Tipsy Hobbit  [author] 21 Apr, 2022 @ 9:28pm 
The core encoder is completely generic. Its main job is to act as an intermediary for different modules by calling each modules createButtons() function. That way modules don't overwrite each others buttons.
BinaryHedgehog 21 Apr, 2022 @ 8:51pm 
Hey, I’ve been thinking of scripting a different TCG (actually a Japanese sister series to MTG, coincidentally) and I was curious about something. How much of this mod can be made “generic” or re-tuned to a different card game?
Tipsy Hobbit  [author] 3 Jun, 2021 @ 6:57am 
There are a couple of debug tools on the table, so for importing the encoder you want to use the three dots on the workshop icon and select just the bag labeled with a version number.
Ozpl 2 Jun, 2021 @ 11:02pm 
I've subscribed and opened this mod but there's debug bar at the middle of the screen - I don't know how to turn it off. Did I do something wrong?
Tipsy Hobbit  [author] 7 May, 2021 @ 1:19pm 
Add me on discord: Jophire#9109 if you want to talk about the api/go over the example module.

As for a quickly setting up the encoder on a new table, import just the bag from the table and remove everything from it, with the Encoder itself being the last item removed.

When the encoder is removed all the modules should register themselves. Then you will want to right click the Encoder and select the Update option. This will update the modules and encoder from the github, ensuring you are running the latest version.
Smokey Digsby 7 May, 2021 @ 1:03pm 
For me personally both would be nice.
Tipsy Hobbit  [author] 7 May, 2021 @ 10:44am 
Do you mean how to use it on a table, or how to use the api?