Search:

Type: Posts; User: Maris

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    150

    I am one of those who are doing the translation...

    I am one of those who are doing the translation at the moment. And this process is filled with pain.

    - The same strings in English are not the same in my language. For example, "line" as a ruler...
  2. Replies
    0
    Views
    240

    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...
  3. Thread: Popout to screen

    by Maris
    Replies
    0
    Views
    370

    Popout to screen

    Visual bug
    1136

    e.g. Objects -> Components -> Custom
  4. Replies
    1
    Views
    941

    "return nil" is required?

    This causes an error:

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

    But this is fine:

    function fn()
  5. Replies
    0
    Views
    403

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

    by Maris
    Replies
    4
    Views
    1,264

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

    by Maris
    Replies
    4
    Views
    1,264

    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...
  8. Replies
    5
    Views
    1,183

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

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

    by Maris
    Replies
    2
    Views
    585

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

    by Maris
    Replies
    1
    Views
    753

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

    by Maris
    Replies
    1
    Views
    851

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

    by Maris
    Replies
    1
    Views
    587

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

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

    by Maris
    Replies
    1
    Views
    761

    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...
  16. Replies
    1
    Views
    827

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

    by Maris
    Replies
    2
    Views
    1,680

    loadstring

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

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

    by Maris
    Replies
    42
    Views
    14,867

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

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

    [SUPPORT] Hidden part of interface

    My icons are hidden behind the buttons.

    https://i.imgur.com/JVfI6GO.png
  20. Replies
    0
    Views
    2,672

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

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

    See "onSave" function for script related...

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

    Seems it's a bug!
  23. Replies
    10
    Views
    4,110

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

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

    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.
Results 1 to 25 of 32
Page 1 of 2 1 2