Search:

Type: Posts; User: dzikakulka

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds; generated 59 minute(s) ago.

  1. Replies
    4
    Views
    174

    If you have a JSON in a format like TTS uses for...

    If you have a JSON in a format like TTS uses for storing objects (you can inspect a simple save to see how single objects are represented inside), you can spawn it super easily using spawnObjectJson...
  2. I've seen people having this issue, afaik you...

    I've seen people having this issue, afaik you basically have to setPosition it out of the hand and then setPositionSmooth from there.
  3. Set to uninteractable and disable their...

    Set to uninteractable and disable their MeshRenderer and MeshCollider (maybe messed up the names) through the component api (https://api.tabletopsimulator.com/component/) could achieve just that, I...
  4. Replies
    1
    Views
    178

    [SUPPORT] I think if you'd run the TTS Mod Backup tool on...

    I think if you'd run the TTS Mod Backup tool on your save, it would try to download all the assets inside and show you which failed (404'd).
  5. Moonsharp (Lua emulator written for C# that TTS...

    Moonsharp (Lua emulator written for C# that TTS uses for running scripts) does not allow sharing functions between "script objects", and currently every game object and Global are separate scripts....
  6. Replies
    2
    Views
    229

    board.getRotation()

    board.getRotation()
  7. Replies
    2
    Views
    239

    The fact that functions can't be shared between...

    The fact that functions can't be shared between scripts is *exactly* a moonsharp limitation, see below :)
    https://groups.google.com/d/msg/moonsharp/lfjnxbPatRM/YTLlc-6ZCAAJ

    So we're pretty much...
  8. Lua aims to have very minimal set of built in...

    Lua aims to have very minimal set of built in functions (often called "batteries not included"), but existing facilities make standard stuff like trim (with str:match), split (with str:gmatch) or...
  9. @RayH If you're creating single Card objects...

    @RayH

    If you're creating single Card objects and aggregating them into a deck later, you can pass a table of parameters, including name, to its creation like


    local card = Decker.Card(asset,...
  10. You can make a scripting zone that sets anything...

    You can make a scripting zone that sets anything entering to invisible and turns it back off when stuff leaves. Post on Discord if you'd need help with it.
  11. I've been through this and made...

    I've been through this and made https://github.com/tjakubo2/Decker exactly for that purpose - it's a (fairly thin) wrapper on spawnObjectJSON that lets you create cards and decks from image links and...
  12. And the way you'd do it in real life is bags or...

    And the way you'd do it in real life is bags or decks with different quantities of items - that's 1:1 reproducible in TTS. You're thinking of a more managed, artificial system which would need some...
  13. Or scripting and spawning stuff from it :)

    Or scripting and spawning stuff from it :)
  14. Replies
    7
    Views
    652

    PS. You can just use Wait like local obj =...

    PS. You can just use Wait like



    local obj = spawnObject(stuff)
    Wait.condition(function()
    print('Done!')
    end,
    function() return not obj.loading_custom end)
  15. Replies
    7
    Views
    652

    There's "obj.spawning" and "obj.loading_custom"...

    There's "obj.spawning" and "obj.loading_custom" fields, you might want to check if those are changed when it finishes loading. Still, loading for host may take different amount of time than for other...
  16. Replies
    6
    Views
    420

    Hey, since some patch we have...

    Hey, since some patch we have obj.positionToLocal/obj.positionToWorld functions, so you should use that one :)

    What I mean in the first post was that if you want to add to vector lines and not...
  17. Replies
    6
    Views
    420

    Use getVectorLines, append your points and...

    Use getVectorLines, append your points and setVectorLines.
  18. Ooh, yeah, recaulculating normals is another...

    Ooh, yeah, recaulculating normals is another thing to do when troubleshooting.
  19. Kinda wrong forum, but you neet to triangulate it...

    Kinda wrong forum, but you neet to triangulate it and if you don't want it blurry like that you want to set at least some edges/faces to sharp/flat instead of smooth.
  20. Replies
    5
    Views
    483

    You should be able to do fow.destruct(). If you...

    You should be able to do fow.destruct(). If you want, you could make fow global by removing the "local" word from before it in the snippet :)
  21. Replies
    5
    Views
    483

    local fow = spawnObject({ type = 'FogOfWar',...

    local fow = spawnObject({ type = 'FogOfWar', position = {bla, bla, bla}, otherParams })

    should work.
    See https://api.tabletopsimulator.com/spawnableobjects/ and...
  22. [SOLVED] self.setVar(name, function(obj, col, alt)...

    self.setVar(name, function(obj, col, alt) duplex(obj, col, alt, id) end)
    -- or, actual pure Lua syntax
    _G[name] = function(obj, col, alt) duplex(obj, col, alt, id) end

    You need to add those args...
  23. Replies
    3
    Views
    475

    [SOLVED] After you destroy an object, it's ref will...

    After you destroy an object, it's ref will compare to nil. See here: https://www.reddit.com/r/tabletopsimulator/comments/a6yhqy/lua_if_an_object_referenced_by_a_lua_variable_is/ec2lckg/
  24. Thread: AIMS

    by dzikakulka
    Replies
    5
    Views
    1,489

    Looks interesting, would be definitely nice to...

    Looks interesting, would be definitely nice to see the code, do you have some repo for it maybe?
  25. Try a Physics.cast of the size of that zone, I;ve...

    Try a Physics.cast of the size of that zone, I;ve seen that pick up more stuff that zone.getObjects()
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4