Need help with lua? - LunaLua General Help
Posted: Mon Mar 14, 2016 6:40 pm
So you're trying to get into LunaLua but
1) Don't know where to get started?
2) Have a question?
LOOK NO FURTHER THAN THIS THREAD!
How to get started
If you don't have LunaLua installed, follow these instructions:
Download the latest version of SMBX 2.0. Major updates to LunaLua and SMBX are synched.
If you want to try a laboratory build of LunaLua before the next version of SMBX, try . The Button "Download latest nightly/dev build" will provide you a download to the laboratory version of LunaLua.
If you're new to LunaLua, I suggest checking out [url=http://www.smbxgame.com/forums/v ... 87&t=12548]pyro's lua tutorials. They're pretty outdated but still a good introduction to lua coding. Here's a few quirks you should know about, though:
-onLoop is deprecated and has been replaced with onTick
-onLoad is deprecated and has been replaced with onStart
If you're looking for documentation of any kind, you're going to find it here.
Do you have a question?
If you have a question about why your code isn't working or how to optimize something you've been working on, just reply in this thread. If you feel like your issue is major and are afraid it'll drag on over several pages or get lost, don't hesitate to make a topic about it in the forum, though.
There are many people who are experienced in lunalua (myself included) who're glad to help you out.
Just make sure that you provide enough information on your issue so we can help you. Taking a screenshot of the error message (if there is one) or posting your code using the "code" bbcode or using http://hastebin.com/ are things you should always do. If your code is long and you are getting an error, make sure to specify which lines the error is tied to (and post to hastebin rather than using the bbcode, because hastebin has line numbers). (To find which line an error appears in, look at the number at the end of the directory in the first line of the error message, or just post a picture of the error along with the code).
With that out of the way, if you have any questions regarding how to do something in lua or regarding your lua code, this is the place to go.
1) Don't know where to get started?
2) Have a question?
LOOK NO FURTHER THAN THIS THREAD!
How to get started
If you don't have LunaLua installed, follow these instructions:
Download the latest version of SMBX 2.0. Major updates to LunaLua and SMBX are synched.
If you want to try a laboratory build of LunaLua before the next version of SMBX, try . The Button "Download latest nightly/dev build" will provide you a download to the laboratory version of LunaLua.
If you're new to LunaLua, I suggest checking out [url=http://www.smbxgame.com/forums/v ... 87&t=12548]pyro's lua tutorials. They're pretty outdated but still a good introduction to lua coding. Here's a few quirks you should know about, though:
-onLoop is deprecated and has been replaced with onTick
-onLoad is deprecated and has been replaced with onStart
If you're looking for documentation of any kind, you're going to find it here.
Do you have a question?
If you have a question about why your code isn't working or how to optimize something you've been working on, just reply in this thread. If you feel like your issue is major and are afraid it'll drag on over several pages or get lost, don't hesitate to make a topic about it in the forum, though.
There are many people who are experienced in lunalua (myself included) who're glad to help you out.
Just make sure that you provide enough information on your issue so we can help you. Taking a screenshot of the error message (if there is one) or posting your code using the "code" bbcode or using http://hastebin.com/ are things you should always do. If your code is long and you are getting an error, make sure to specify which lines the error is tied to (and post to hastebin rather than using the bbcode, because hastebin has line numbers). (To find which line an error appears in, look at the number at the end of the directory in the first line of the error message, or just post a picture of the error along with the code).
With that out of the way, if you have any questions regarding how to do something in lua or regarding your lua code, this is the place to go.