Search:

Type: Posts; User: Maris

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Popout to screen

    by Maris
    Replies
    0
    Views
    269

    Popout to screen

    Visual bug
    1136

    e.g. Objects -> Components -> Custom
  2. Replies
    1
    Views
    778

    "return nil" is required?

    This causes an error:

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

    But this is fine:

    function fn()
  3. Replies
    0
    Views
    298

    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
  4. Thread: For loop

    by Maris
    Replies
    4
    Views
    932

    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...
  5. Thread: For loop

    by Maris
    Replies
    4
    Views
    932

    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...
  6. Replies
    5
    Views
    890

    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...
  7. You may set obj.interactable = false

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

    by Maris
    Replies
    2
    Views
    438

    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...
  9. Thread: 4096x4096

    by Maris
    Replies
    1
    Views
    583

    [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?
  10. Thread: Custom Table

    by Maris
    Replies
    1
    Views
    684

    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?
  11. Thread: Deep analyzing

    by Maris
    Replies
    1
    Views
    465

    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?
  12. Replies
    1
    Views
    641

    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...
  13. Thread: Scripting Bags

    by Maris
    Replies
    1
    Views
    603

    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...
  14. Replies
    1
    Views
    640

    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...
  15. Thread: loadstring

    by Maris
    Replies
    2
    Views
    1,528

    loadstring

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

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

    by Maris
    Replies
    42
    Views
    13,917

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

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

    [SUPPORT] Hidden part of interface

    My icons are hidden behind the buttons.

    https://i.imgur.com/JVfI6GO.png
  18. Replies
    0
    Views
    2,014

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

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

    See "onSave" function for script related...

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

    Seems it's a bug!
  21. Replies
    10
    Views
    3,834

    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...
  22. .......... local rot = obj:getRotation() ...

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

    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.
  24. Replies
    9
    Views
    3,019

    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...
  25. Replies
    1
    Views
    1,268

    "onload" and "onLoad"

    Is there any difference between them?
Results 1 to 25 of 30
Page 1 of 2 1 2