Search:

Type: Posts; User: Maris

Search: Search took 0.01 seconds.

  1. Thread: Deep analyzing

    by Maris
    Replies
    1
    Views
    71

    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?
  2. Replies
    1
    Views
    65

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

    by Maris
    Replies
    1
    Views
    77

    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...
  4. Replies
    1
    Views
    177

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

    by Maris
    Replies
    2
    Views
    1,023

    loadstring

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

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

    by Maris
    Replies
    42
    Views
    10,358

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

    http://f4.s.qip.ru/1HDgF5wr.png
    Error when a player is joining.
  7. Replies
    1
    Views
    801

    [SUPPORT] Hidden part of interface

    My icons are hidden behind the buttons.

    https://i.imgur.com/JVfI6GO.png
  8. Replies
    0
    Views
    1,394

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

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

    See "onSave" function for script related...

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

    Seems it's a bug!
  11. Replies
    10
    Views
    2,939

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

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

    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.
  14. Replies
    9
    Views
    2,028

    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...
  15. Replies
    1
    Views
    926

    "onload" and "onLoad"

    Is there any difference between them?
  16. Replies
    3
    Views
    1,139

    How about this idea? :) local time_now =...

    How about this idea? :)


    local time_now = os.clock()
    local TASKS = {}

    local function DoTaskInTime(period, fn)
    local task = {
    --period = period, --only for DoPeriodicTask() function....
  17. Replies
    4
    Views
    1,073

    Actually "Global" is a special object with type...

    Actually "Global" is a special object with type "userdata" (not a table). And first you should copy data from Global object, then you can change it and send it back to global object.

    Global:
    ...
  18. Replies
    3
    Views
    1,128

    Thickness of highlightOn

    Is there a way to set thickness of highlightOn function?

    I'd like to make solid highlight because default highlight is almost invisible.
  19. Replies
    4
    Views
    1,073

    For indexed arrays use "table.insert( ,...

    For indexed arrays use "table.insert(<table>, <value>)" or "table.insert(<table>, <index>, <value>)" but NOT "table.insert(<table>, <key>, <value>)".
    If keys are guids (i.e. strings), use...
  20. If you want to access object's functions, use ":"...

    If you want to access object's functions, use ":" instead of ".",
    e.g.
    tile:setName('tile')
Results 1 to 20 of 20