Results 1 to 2 of 2

Thread: getSnapPoints Error

  1. #1

    getSnapPoints Error

    if you call getSnapPoints() to an object, which has no snap points an error is thrown. this wasnt the case before the update.

    I also dont get it, why setSnapPoints() is now scale independent. it wasnt the case before.
    It is very inconsistent and makes programming more difficult if some functions depend on the scaling of the object and then others do not.

    From my point of view no Set Funktion with its dependend on an object should be effected by the scale value. After the set call, its makes sense, that for example a button is scaled with the object, but not at the point of creation (set call).

  2. #2
    getSnapPoints had a bug which has been corrected. you should expect no further changes to the scaling issue. As to the error on a getSnapPoints() call on an object without snapPoints, I agree this is a bug;
    I would expect this to return an empty table.

    For the devs, here is an example:
    function onLoad(statstr)
    Error in Script (Global) function <onLoad>: Object reference not set to an instance of an object

Similar Threads

  1. getSnapPoints returns wrong coordinates
    By Blackclaws in forum Scripting Bug Reports
    Replies: 3
    Last Post: 05-18-2020, 02:52 PM
  2. Replies: 1
    Last Post: 05-15-2020, 05:52 PM
  3. [SUPPORT] WWW Image Error: Unknown Error <2>. Happens even with no firewall or antivirus
    By TrippinJim in forum Technical Support
    Replies: 4
    Last Post: 05-08-2020, 01:19 PM
  4. [CRASHES] WWW TXT Error, WWW Image Erro, Error Steam read from Workshop
    By M1ndFr3ak in forum Technical Support
    Replies: 0
    Last Post: 04-10-2020, 01:53 PM
  5. Replies: 3
    Last Post: 04-18-2017, 01:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts