period causes xlua error

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello,

    I'm using xLua (great object btw) and noticed that periods "." in functions cause it to throw an error: attempt to index global 'word before period' (a nil value).

    Since I only encountered this after working with some lua libraries I found on the web, I was curious if this was intended behavior or not. For example, one of my libraries allows the use of vector2's using vec2.new(x, y) as a function.

    Further reading on how lua the language handles function calls told me that periods shouldn't affect anything, that the only special character it looks for is the colon ":" to include "self" during the call. The documentation states that "o.test()" would be identical to just "test()". xLua's own documentation only mentions the colon: Please login to see this attachment.

    Here's an .mfa: Please login to see this attachment. (look at embedded script in xlua object to see how the function is named)

    Best person at writing incomprehensible posts. Edits are a regularity.

    Edited 3 times, last by casleziro (June 7, 2019 at 2:07 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!