Search:

Type: Posts; User: AufderWelt

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. 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
  2. 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...
  3. 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....
  4. 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



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

    [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.
  7. Replies
    3
    Views
    83

    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.
  8. Replies
    3
    Views
    83

    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...
  9. hi, could you provide a minimalistic example...

    hi, could you provide a minimalistic example (Code) to reproduce your observation.
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. Replies
    13
    Views
    221

    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...
  15. 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...
  16. Replies
    13
    Views
    221

    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...
  17. 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())
    ...
  18. Replies
    13
    Views
    221

    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...
  19. Replies
    13
    Views
    221

    at first i thought, if you try to clone the...

    at first i thought, if you try to clone the table. TTS would try to clone also the objects, which are not available, but it doesnt to seem so.

    it seems like, that sometimes not always the objects...
  20. Replies
    13
    Views
    221

    yeah i tested it also, i dont get the error all...

    yeah i tested it also, i dont get the error all the time, but still there....

    Could you try this one. It seems like the table is passed sometimes also, which is really funny and must be a bug. at...
  21. Replies
    13
    Views
    221

    thats funny i could not find the function...

    thats funny i could not find the function onObjectDestroyed in the API also not in the patch notes, but its working....
    it seems like a bug, if you ask me

    do you also get the error, if you use...
  22. Replies
    13
    Views
    221

    the message sounds like there is something wrong...

    the message sounds like there is something wrong with your script. i dont know, why you get the error during the shutdown, i guess that there is a save operation... however, within your code, there...
  23. Replies
    3
    Views
    100

    was nice to help you out and more fun than...

    was nice to help you out and more fun than working on my own mod....:rolleyes:
  24. Replies
    3
    Views
    100

    hi, i dont get it, why you cant mimic the script...

    hi, i dont get it, why you cant mimic the script zone. i guess, the only thing you want to copy is the sacle value and mabe the y position from the 1. player setup. i would open the gizmo tool on the...
  25. Replies
    43
    Views
    796

    i meant not to use it as generic library...

    i meant not to use it as generic library function, which you use everytime you need to trigger an action, if an object is resting. Eventually you will start to build up your own library, if you...
Results 1 to 25 of 105
Page 1 of 5 1 2 3 4