Search:

Type: Posts; User: Maris

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    151

    Visual lines between objects?

    I'd like to make so if two or more objects are connected, there is visual representation of it.

    Ofc I can just highlight objects in the same group.
    But:
    1) There are only few really different...
  2. Thread: Popout to screen

    by Maris
    Replies
    0
    Views
    320

    Popout to screen

    Visual bug
    1136

    e.g. Objects -> Components -> Custom
  3. Replies
    1
    Views
    844

    "return nil" is required?

    This causes an error:

    function fn()
    -- do nothing
    end
    s = tostring(fn()); -- error

    But this is fine:

    function fn()
  4. Replies
    0
    Views
    344

    What is dynamic.eval scope?

    I'm trying to figure it out.

    Seems it doesn't work:


    local fn_loc = function()end

    function onLoad()
    print(dynamic.eval("fn_loc")) // nil
    end
  5. Thread: For loop

    by Maris
    Replies
    4
    Views
    1,082

    Fixed by creating another "proxy" variable: ...

    Fixed by creating another "proxy" variable:

    local vec = self:getPosition()
    local coords = {vec[1], vec[2], vec[3]}
    for i=1,3 do
    coords[i] = math.floor(coords[i] * 1000000 + 0.5)/1000000...
  6. Thread: For loop

    by Maris
    Replies
    4
    Views
    1,082

    For loop

    local function UpdateCollision()
    print('self ',self)
    local coords = self:getPosition()
    for i=1,3,1 do
    print('i ',i)
    coords[i] = math.floor(coords[i] * 1000000 + 0.5)/1000000
    end...
  7. Replies
    5
    Views
    1,014

    Number of a card in a deck

    Let's say I have a card object in a variable.

    Is it possible to get its face image (associated with the deck) and coords on this image? E.g. 7th row and 9th column, or just number 69 (if the size...
  8. You may set obj.interactable = false

    You may set obj.interactable = false
  9. Thread: scripting help

    by Maris
    Replies
    2
    Views
    501

    Actually YOU should tell what's the problem, i.e....

    Actually YOU should tell what's the problem, i.e. what exactly you want to do.

    I see that you asking to translate the code to human language and then to the code again. It will be a kind of google...
  10. Thread: 4096x4096

    by Maris
    Replies
    1
    Views
    650

    [SUPPORT] 4096x4096

    Is it bad if my deck texture is 4097x4097 or 4100x3900 etc?
    Does it consume additional memory? And will Tabletop Simulator autoresize textures to low resulution so it will be ugly?
  11. Thread: Custom Table

    by Maris
    Replies
    1
    Views
    763

    Custom Table

    Is it possible to change image of existing custom table?
    Is it possible to replace custom table with new one, i.e. spawn new custom table with new image URL?
  12. Thread: Deep analyzing

    by Maris
    Replies
    1
    Views
    526

    Deep analyzing

    How can I get description of an object in a bag that is in another bag?

    For example, deck in a bag, and I want to see names of cards in it. Is it possible and how?
  13. Replies
    1
    Views
    741

    Count items in a bag

    Is there an easy way to get number of items in container?

    I know:
    #self.getObjects()

    But this is too complicated I think. You need to get whole table of all items (may be over 1000) despite...
  14. Thread: Scripting Bags

    by Maris
    Replies
    1
    Views
    670

    Scripting Bags

    Are there any events when an object is added to bag container?

    In documentation I found only this:
    onObjectLeaveContainer(Object container, Object leave_object)

    But no function for new objects...
  15. Replies
    1
    Views
    728

    Duplicate of id (guid)?

    I have Infinite Bag with an object (e.g. Red Square).

    I check guid of new objects from the bag using function onObjectPickUp().

    When I take first object, it has some guid, e.g. 94abd0.
    I...
  16. Thread: loadstring

    by Maris
    Replies
    2
    Views
    1,594

    loadstring

    Please add this functions to Lua: loadstring(), setfenv().

    P.S. Add load() function if you move to Lua 5.2+
  17. Thread: P2P Errors.

    by Maris
    Replies
    42
    Views
    14,362

    http://f4.s.qip.ru/1HDgF5wr.png Error when a...

    http://f4.s.qip.ru/1HDgF5wr.png
    Error when a player is joining.
  18. Replies
    1
    Views
    1,267

    [SUPPORT] Hidden part of interface

    My icons are hidden behind the buttons.

    https://i.imgur.com/JVfI6GO.png
  19. Replies
    0
    Views
    2,101

    Русская группа

    Присоединяйтесь!
    Дискорд - https://discord.gg/DtqSgBF
    VK - https://vk.com/tabletopsimulator
  20. Replies
    5
    Views
    3,348

    See "onSave" function for script related...

    See "onSave" function for script related variables.
  21. Seems it's a bug!

    Seems it's a bug!
  22. Replies
    10
    Views
    3,956

    My few tools...

    My few tools http://steamcommunity.com/sharedfiles/filedetails/?id=846029623
    Sorry for the Russian language. I made it for myself.
    But you can use it "as is" if you like (or you may use google...
  23. .......... local rot = obj:getRotation() ...

    ..........
    local rot = obj:getRotation()
    local isFaceUp = (rot.z < 90 or rot.z > 270)
    ..........
  24. Replies
    3
    Views
    1,688

    I just wanted EASY way to add thickness to...

    I just wanted EASY way to add thickness to highlight.
    Now I made additional BlockSquare to each card in the game. And it acts like a shadow. It's not easy to make it. And it takes much cpu.
  25. Replies
    9
    Views
    3,104

    local vel = obj:getVelocity() if vel.x ~=0 or...

    local vel = obj:getVelocity()
    if vel.x ~=0 or vel.z ~= 0 then
    obj:addForce({-vel.x,-vel.y,-vel.z},4)
    end
    local tor = obj:getAngularVelocity()
    if tor.x ~= 0 or tor.z ~= 0 or tor.y ~= 0...
Results 1 to 25 of 31
Page 1 of 2 1 2