Tabletop Simulator

Tabletop Simulator

Not enough ratings
Card Encoder Redux
   
Award
Favorite
Favorited
Unfavorite
Game Category: Role-playing Games
Number of Players: 1, 2, 3, 4
Assets: Scripting
File Size
Posted
Updated
9.689 KB
17 Nov, 2018 @ 8:21am
17 Nov, 2018 @ 2:55pm
2 Change Notes ( view )

Subscribe to download
Card Encoder Redux

Description
Based on the "Card & Object Encoder" found here: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=758958185

Completely re-written back-end. Now supports any object. "Clean encode" now respects the scripting on the card, but at the expense of having limited support of scripting on the object. Full encode fully supports scripting, but erases any scripting on the card.
9 Comments
myrkul999  [author] 7 Mar, 2023 @ 11:26am 
I'll see what I can do. Worst case scenario, it's not that hard to whip up a new image.
Shit, I Missed. 7 Mar, 2023 @ 10:32am 
This no longer works, the image has been removed from the hosting. Can you fix it?
myrkul999  [author] 24 Feb, 2021 @ 11:47pm 
@Mr Shiny Boots:
Glad you like them. I've got another tool I'm testing out (actually, two, I think) No bugs so far, so I'll probably post them soon. Also working on a massive project using some of my tools... A full set of maps&minis for running Undermountain (Dungeon of the Mad Mage). Requires a BIG table, though. The map for Wyllowwood is enormous.

As for the suggestions.... This would probably be best on a standalone tool. All of them are doable, I think, and I already have an idea of how to do it. Consider that project added to the to-do list. That sounds badass.
Mr Shiny Boots 24 Feb, 2021 @ 8:23am 
Hi myrkul999,

would it be possible to add some functionality to this excellent mod

I'm thinking about creating castable spell cards, using asset cubes as the objects to be encoded - this already works but some improvement could be added, if its possible and you are willing.

priority wise i would list them in this order

1. add a lifespan timer option for the spawned object - this way a D&D player could say im going to cast xyz (e.g fireball) and the object could spawn play the animation and time out, for longer effects the timer could be increased. obviously a persistent / no timer, option would be needed if you can code this.

2. add the ability to move the spawn button - not all cards are the same size or orientation.
Mr Shiny Boots 24 Feb, 2021 @ 7:07am 
3. add the ability to set the spawn location (relative to the card) again, wizard says i cast fire bolt, then from above the card the asset cube spawns and falls while playing the effect - gravity should be enough to deal with "animation" so maybe just a vertical height, of course some things would just spawn as they do currently.

just some thoughts - anyway thank you for the mods - im enjoying them alot, and your move me / light me mod may have saved my session form arguments stemming from tts fog of war system. still not perfect but that's on berzerk.
myrkul999  [author] 19 Nov, 2020 @ 2:08pm 
As a workaround for encoding multiple objects, you can place them in a bag, and encode the bag. That's probably going to be your best bet.
(NGR) BadRequest 13 Nov, 2020 @ 1:25pm 
@kaijiramk7 did you ever figure out how to encode multiple objects to a card?
Kaijira 11 Feb, 2020 @ 2:49am 
This is exactly what I needed, thanks so much!

@Lord Bandit Line 40-ish is where you can change the button size. Block of code looks like this:

self.createButton({tooltip = 'Spawn Mini', click_function = 'spawnCardObject', label = 'x',
function_owner = self, position = {0.9, 0.3, -1.46}, rotation = {0, 0, 0}, width = 50,
height = 50, font_size = 50})

Width and Height are what you want to change to make it bigger.

As for multiple objects, that's what I'm trying to figure out now. I'm not much of a programmer, but it's a short, efficient code. Just poke around and see what you can do. Worst that could happen is you have to reload the mod.

Also, copy paste the encoder when you wanna give it a test run, that way the script reloads.
Lord Bandit 25 Jan, 2019 @ 4:46pm 
Could you make it so you could encode multiple cards and objects to the card? So when i click the x, it spawns all the things encoded to it instead of just the latest object. Also, clean encode seems to be broken. When i use it and then click the x, it just spews code and blanks into chat. Finally, could you make the x a little bit bigger, black, and in the top right corner of the card? The current position, size, and white makes it hard to see the x.