Tabletop Simulator

Tabletop Simulator

38 arvostelua
Encoder
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Type: Utility
Complexity: Medium Complexity
Tunnisteet: MTG
Tiedostokoko
Julkaistu
Päivitetty
756.843 KB
29.12.2016 klo 1.40
8.5.2021 klo 8.32
95 muutosilmoitusta ( näytä )
Kuvaus
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.
Suositut keskustelut Näytä kaikki (2)
21
16.12.2019 klo 15.39
Feature Requests
Tipsy Hobbit
2
15.12.2020 klo 16.33
Updating Untapper for Encoder Ver 4
Remixed Witch
69 kommenttia
Tipsy Hobbit  [tekijä] 22.4. klo 16.24 
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.4. klo 11.39 
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  [tekijä] 21.4.2022 klo 21.28 
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.4.2022 klo 20.51 
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  [tekijä] 3.6.2021 klo 6.57 
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.6.2021 klo 23.02 
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  [tekijä] 7.5.2021 klo 13.19 
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.5.2021 klo 13.03 
For me personally both would be nice.
Tipsy Hobbit  [tekijä] 7.5.2021 klo 10.44 
Do you mean how to use it on a table, or how to use the api?