Tabletop Simulator

Tabletop Simulator

Counter Stack Exploder
Richthofen56 1 Jul, 2020 @ 10:53am
Tiles Not Recognised
Only a few of my tiles are being recognised as explode capable although they were all created as custom tiles in the same way. Can you explain a bit further on what changes need to be made to the Function 'isCounter' so that they are recognised? Or what changes if any need to be made to the counter scripts? I don't see any scripts for any of my tiles. Are your tiles even tiles or something else? Would love this to work as LnLP is kind of keen on incorporating it. However, having to redo literally thousands of counters would be really problematic, as you can imagine :) Sorry but not LUA literate unfortunately.
< >
Showing 1-6 of 6 comments
MangoFeet  [developer] 1 Jul, 2020 @ 11:01am 
So the default detection will pick up a "Custom Tile" piece that has it's X scale set to any value less than 1

If you open the scripting editor, the `isCounter` function is on line 35. You can tweak that check to match your tiles if they are bigger, for example

function isCounter(o) if not o then return false end return o.name == "Custom_Tile" and o.getScale().x < 1.25 end

(the 1 was changed to 1.25, tweak that if your size is different)

If the tiles you are trying to explode are *not* the "Custom Tile" type then you'll need something different. If changing the size does not work let me know with some more details on the counters and I'll try to help
Last edited by MangoFeet; 1 Jul, 2020 @ 11:01am
Richthofen56 1 Jul, 2020 @ 11:07am 
So if I understand you correctly, its tweaked on the counters size? LnLT series actually has 3 sizes of counters with a normal, 5 hits up on scale and 10 hits up on scale. So I set it for the highest/largest size? And what happens if the player rescales the maps and counters way down to play multi-player scenarios that wouldn't normally fit on the table? Thanks in advance Mango. Just trying to see if its even feasible to attempt this. We've got 11 games up so far so its a big project with more to come.
MangoFeet  [developer] 1 Jul, 2020 @ 12:38pm 
Send me a link to a mod you're trying to integrate with and I'll see if I can get it working
Richthofen56 1 Jul, 2020 @ 1:33pm 
Actually I got it working with the above instructions Mango. Thanks for the pointers. It seems to work fine with three different sized counters. I'll do some testing with scaling and try to break it :) All the Lock n load "Heroes of" mods will use it as well as my other games for LnLP if things go well. I used a 10.25 scaling factor BTW. May be too high but it seems to work well.
MangoFeet  [developer] 2 Jul, 2020 @ 2:09am 
As long as the scale doesn't catch any other custom tiles that could be in a "stack" (like a map/board) you should be good
Richthofen56 2 Jul, 2020 @ 3:50am 
Understood Mango. I'll continue the testing for that. And thanks again.
< >
Showing 1-6 of 6 comments
Per page: 1530 50