Search:

Type: Posts; User: AufderWelt

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    235

    Good question. i would do it like this, dont...

    Good question.

    i would do it like this, dont know, if there is a better way

    1. use https://api.tabletopsimulator.com/base/#addcontextmenuitem



    function onLoad()
    ...
  2. hi, have you checked, if there are more than one...

    hi, have you checked, if there are more than one hand zone for the player colors with the odd behaviour?
  3. Replies
    2
    Views
    219

    hi, 1. yes ->...

    hi,

    1. yes -> https://api.tabletopsimulator.com/player/; function: getSelectedObjects()
    2. i dont think so, but you can use getHoverObject() Object that the Player's pointer is hovering over....
  4. hi, are the mods yours or from someone else?

    hi, are the mods yours or from someone else?
  5. hi, have you checked the size of the cards? i...

    hi, have you checked the size of the cards? i heard, that the devs made some changes regarding cards. they also dont form decks anymore, if the deviation is greater than 15 % or so....
  6. Replies
    1
    Views
    286

    hi, you can place a second object on the place,...

    hi, you can place a second object on the place, where you want to create the snap point. afterwards, you can get the position of the second object and transform it with the function...
  7. Replies
    1
    Views
    280

    do you keep more tiles in the hands, if you are...

    do you keep more tiles in the hands, if you are playing with more players? i could imagine, that the hidden area is not large enough and that is the reason, why you can see the first two tiles.
  8. hi, i would recommend you the documentation:...

    hi, i would recommend you the documentation: https://www.lua.org/manual/5.3/manual.html#3.3.4

    im not sure, but i think, it should be

    elseif rand == 2 then
    ....


    or
  9. glad to hear that it is working. it looks also...

    glad to hear that it is working. it looks also really nice!

    if i saw it correctly, you are working with pyhsical casts. i heard they are expensive and can slow down the game, if you are using too...
  10. thats strange, i thought it should work... dont...

    thats strange, i thought it should work... dont know, if i missing something. will test it later by myself

    but could you try this in the meantime. i have only moved the code into another function....
  11. you need "getBounds()"...

    you need "getBounds()" https://api.tabletopsimulator.com/object/#getbounds . read the description carefully, the usage is a little bit tricky.


    i dont understand the question to be honest



    ...
  12. hi, as far as i know, the function setPosition(...

    hi, as far as i know, the function
    setPosition( vector) works on the global coordinates.
    you get local coordinates by the call
    spList = self.getSnapPoints()

    i dont see, which position values...
  13. Replies
    3
    Views
    256

    [SOLVED] hi, what do you mean with . How is it...

    hi,

    what do you mean with . How is it indicated? if you mean the error message with the numbers... not reliable. unfortunately, you have to narrow it down with the log-approach.
  14. Replies
    3
    Views
    331

    yeah, to be honest, it is actually also not...

    yeah, to be honest, it is actually also not obvious to look there for api infos for me at least, but sometimes helpful.
  15. Replies
    3
    Views
    331

    hi, you have to look at the patch notes. there...

    hi, you have to look at the patch notes. there are many functions, which are currently not part of the API.

    https://www.tabletopsimulator.com/news/patch-notes. there you will find many other...
  16. Replies
    1
    Views
    255

    hi, could you provide a minimalistic example...

    hi, could you provide a minimalistic example (Code) to reproduce your observation.
  17. hi, without the whole code, i would assume that...

    hi, without the whole code, i would assume that you have a typo. the Values (functions, variables...) are case sensitiv.You must use the same spelling.

    you need to debug to find the position/cause...
  18. onObjectDestroy or onDestroy triggers by game exit

    Describe the bug
    the lua onObjectDestroy(dying_object) functions triggers by exiting the game, which causes error messages, that the object reference passed to lua onObjectDestroy (dying_object) is...
  19. obj.getComponent("Transform").get("localScale") access error

    Describe the bug
    the call


    obj.getComponent("Transform").get("localScale")

    generates an error, if the object does not contain lua code. the call works, if the obj contains some lua code, for...
  20. hi, it sounds reasonable what you did. i see no...

    hi, it sounds reasonable what you did. i see no fault at the first sight. could you try to rotate it by yourself without the usage of the flip() function. you have to set the rotation parameter, i...
  21. Replies
    13
    Views
    756

    yeah, i tried also to catch the error, but it was...

    yeah, i tried also to catch the error, but it was not possible.
    i know, that the error message is ugly, but is the worth the effort to create a function to check the integrity...
  22. hi, the coordinate defintion for the xml ui is...

    hi, the coordinate defintion for the xml ui is different compared to the normal TTS coordinates.

    you can transform the coordinates with the call





    local pos = Vector(x,y,z) -- your...
  23. Replies
    13
    Views
    756

    yeah, i also not happy with the solution. i also...

    yeah, i also not happy with the solution. i also could not find a attribute or event to prevent it. and to be honest im convinced that this behaviour must be bug.

    i get you, programming in TTS lua...
  24. hi, i correct the version and deleted not...

    hi, i correct the version and deleted not necessary statements



    function testcase()
    print('starting')
    for id, obj in pairs(deckzone.getObjects()) do

    print(obj.getGUID())
    ...
  25. Replies
    13
    Views
    756

    i was thinking about a workaround. tested the...

    i was thinking about a workaround. tested the code below several times without an error. my idea is to delay the creating of the new object, which was the cause of the error.



    function...
Results 1 to 25 of 112
Page 1 of 5 1 2 3 4