Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing width/height in 2.0.2 causes " attempt to index local 'camera' (a string value)" #66

Closed
balukin opened this issue Oct 29, 2024 · 2 comments

Comments

@balukin
Copy link

balukin commented Oct 29, 2024

Error while running event TLBE::on_gui_text_changed (ID 2)
TLBE/scripts/camera.lua:279: attempt to index local 'camera' (a string value)
stack traceback:
TLBE/scripts/camera.lua:279: in function 'setWidth'
TLBE/scripts/gui.lua:552: in function <__TLBE__/scripts/gui.lua:515>

Changing the width or height of an active camera causes the above error to occur. I tried a quick fix on my end and it seems to fix it and allow changes, but I don't have much lua experience and don't know much about parameter matching rules. You may want to take a closer look at this.

Likely caused by changes in commit d541a9b

@veger
Copy link
Owner

veger commented Oct 29, 2024

Thanks, you are 100% right on your deduction. I applied a similar fix as you did (I only created a local variable first, as done in the other functions)

I'll make a new release with this fix.

@veger
Copy link
Owner

veger commented Oct 29, 2024

It is fixed in v2.0.3

@veger veger closed this as completed Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants