Useful LunaLua Documentation Quick Links

This is the place for discussion and support for LunaLua and related modifications and libraries.

Moderator: Userbase Moderators

Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Useful LunaLua Documentation Quick Links

Postby PixelPest » Mon Mar 14, 2016 8:05 pm

These are some direct links to important and/or frequently used pages in the LunaLua documentation, to help avoid searching through the surprisingly large PGE Wiki:

Global functions:
http://wohlsoft.ru/pgewiki/LunaLua_global_functions
All of your general, graphics, static item, text, and miscellaneous functions. Not to be confused with events.

Global sound and music functions:
http://wohlsoft.ru/pgewiki/LunaLua_glob ... _functions
All of your functions to do with music and sound effects. Not to be confused with events.

Events:
http://wohlsoft.ru/pgewiki/LunaLua_events
Both your overworld and level events. Always preceeded by "function". They trigger code written inside them whenever a certain time or other criteria is met.

API functions and events:
http://wohlsoft.ru/pgewiki/LunaLua_global_API_functions
An API, which is placed in Lua Scripts Lib, has certain characteristics and events that make it an API. These items are required for it to function. Refer to barebones.lua for more help info on API format.

Hardcoded image list:
http://wohlsoft.ru/pgewiki/Hardcoded_Im ... MBX_Engine
Certain SMBX graphics require Lua to be used, since they are built in farther than the normal graphics folder. Replacements of hardcoded images can be added to the custom graphics folder of a level or an episode to be used, but they must have the exact same name and dimensions (size).

Sound effects list:
http://wohlsoft.ru/pgewiki/SFX_list_(SMBX64)
The sound effects in the SMBX sounds folder are not in order. Use this list to find their IDs, which is needed for changing sounds in .ini's and for multiple sound effect functions.

Player offsets:
http://wohlsoft.ru/pgewiki/SMBX_Player_Offsets
The values held in memory to do with the player's state, actions, etc.

NPC offsets:
http://wohlsoft.ru/pgewiki/SMBX_NPC_Offsets
The values held in memory to do with the state of NPCs, their actions, etc.

NPC AIs:
http://wohlsoft.ru/pgewiki/SMBX_NPC_AI
Descriptors of the default AI of all NPCs.

NPC functions:
http://wohlsoft.ru/pgewiki/NPC_(class)
Mainly functions and field values to do with NPCs. Not to be confused with events.

Player functions:
http://wohlsoft.ru/pgewiki/Player_(class)
Mainly functions and field values to do with the player(s). Not to be confused with events.

Section functions:
http://wohlsoft.ru/pgewiki/Section_(class)
Mainly functions and field values to do with the section(s). Not to be confused with events.

Block functions:
http://wohlsoft.ru/pgewiki/Block_(class)
Mainly functions and field values to do with blocks. Not to be confused with events.

Animation functions:
http://wohlsoft.ru/pgewiki/Animation_(class)
Mainly functions and field values to do with graphical animations. Not to be confused with events.

Layer functions:
http://wohlsoft.ru/pgewiki/Layer_(class)
Mainly functions and field values to do with layers. Not to be confused with events.

Data functions:
http://wohlsoft.ru/pgewiki/Data_(class)
The functions, constructors, field values, and enums to do with saving data. Not to be confused with events.

Event functions:
http://wohlsoft.ru/pgewiki/Event_(class)
Mainly functions and field values to do with level events. Not to be confused with events.

Warp functions:
http://wohlsoft.ru/pgewiki/Warp_(class)
Mainly functions and field values to do with warps. Not to be confused with events.

BGO functions:
http://wohlsoft.ru/pgewiki/BGO_(class)
Mainly functions and field values to do with BGOs. Not to be confused with events.

List of LunaLua examples:
http://wohlsoft.ru/pgewiki/LunaLua_Examples
Links to a handful of quality exemplars, featured on the PGE wiki.

List of LunaLua APIs:
http://wohlsoft.ru/pgewiki/Category:Lun ... _libraries
Last edited by PixelPest on Sat Jun 11, 2016 1:01 pm, edited 15 times in total.

HenryRichard
Reznor
Reznor
Posts: 2843
Joined: Mon Dec 23, 2013 12:09 pm
Flair: Is this where I type my password?
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby HenryRichard » Mon Mar 14, 2016 8:45 pm

I feel this could pretty much be summed up by posting this: http://wohlsoft.ru/pgewiki/Category:LunaLua_API

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9890
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Useful LunaLua Documentation Quick Links

Postby Emral » Mon Mar 14, 2016 8:48 pm

I literally summed this up in one line here http://www.smbxgame.com/forums/v ... 87&t=13541 and this thread gets sticky? Bias.

Alagirez
Ludwig von Koopa
Ludwig von Koopa
Posts: 3616
Joined: Tue Dec 02, 2014 2:28 am
Flair: Legalize Awooo!
Pronouns: He/Him/That wolf
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby Alagirez » Mon Mar 14, 2016 8:50 pm

STICKY THIS OR RIOT
Now i can improve my Lunalua skill thank you ^3^i love you

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby PixelPest » Mon Mar 14, 2016 10:21 pm

HenryRichard wrote:I feel this could pretty much be summed up by posting this: http://wohlsoft.ru/pgewiki/Category:LunaLua_API
Yes. I realize that, but not everything is directly linked to that page, and you need to know what to search for to find what you need. This helps pinpoint certain useful pages from one, clear thread
Enjl wrote:I literally summed this up in one line here http://www.smbxgame.com/forums/viewtopic.php?
f=87&t=13541 and this thread gets sticky? Bias.
Your thread is more of an open, Q&A topic. Not saying that it isn't helpful and doesn't have some very useful content, but this is an organized central index, if that makes sense

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9890
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Useful LunaLua Documentation Quick Links

Postby Emral » Mon Mar 14, 2016 10:24 pm

PixelPest wrote:
HenryRichard wrote:I feel this could pretty much be summed up by posting this: http://wohlsoft.ru/pgewiki/Category:LunaLua_API
Yes. I realize that, but not everything is directly linked to that page, and you need to know what to search for to find what you need. This helps pinpoint certain useful pages from one, clear thread
Enjl wrote:I literally summed this up in one line here http://www.smbxgame.com/forums/viewtopic.php?
f=87&t=13541 and this thread gets sticky? Bias.
Your thread is more of an open, Q&A topic. Not saying that it isn't helpful and doesn't have some very useful content, but this is an organized central index, if that makes sense
It does not, I'm actually salty rn

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby PixelPest » Mon Mar 14, 2016 11:45 pm

The main post looks a lot nicer now and now has some info included with each link

Shadow Yoshi
Dark Knight
Dark Knight
Posts: 4291
Joined: Sun Dec 01, 2013 12:56 pm

Re: Useful LunaLua Documentation Quick Links

Postby Shadow Yoshi » Tue Mar 15, 2016 12:11 am

Enjl wrote:I literally summed this up in one line here http://www.smbxgame.com/forums/v ... 87&t=13541 and this thread gets sticky? Bias.
Image

Quill
Rydia
Rydia
Posts: 812
Joined: Tue Dec 03, 2013 12:51 pm
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby Quill » Tue Mar 15, 2016 5:05 am

Joey wrote:
Enjl wrote:I literally summed this up in one line here http://www.smbxgame.com/forums/v ... 87&t=13541 and this thread gets sticky? Bias.
Image
i'm done omg

h2643
Reznor
Reznor
Posts: 2890
Joined: Sat Dec 21, 2013 7:23 am
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby h2643 » Tue Mar 15, 2016 10:53 am

Maybe you should add a link to the storage of all LunaLua APIs that were released, so that people will have a bigger choice of usage:
http://wohlsoft.ru/pgewiki/Category:Lun ... _libraries

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9890
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Useful LunaLua Documentation Quick Links

Postby Emral » Tue Mar 15, 2016 2:32 pm

Joey wrote:
Enjl wrote:I literally summed this up in one line here http://www.smbxgame.com/forums/v ... 87&t=13541 and this thread gets sticky? Bias.
Image
Image

fireflower30
Buster Beetle
Buster Beetle
Posts: 83
Joined: Wed Sep 23, 2015 2:24 pm
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby fireflower30 » Mon May 09, 2016 10:46 am

Going to try one of these.

Me: Okay... going to try out the Music Lua for my boss rush.

(Gets Error)

Me: ...Why... how do I do this... I'm using this Lua:
Spoiler: show
// Play the music from section 1 right now
PlayMusic,0,1,0,0,1,0
Last edited by Shadow Yoshi on Mon May 09, 2016 11:04 am, edited 2 times in total.
Reason: Merged double post. Please use the edit button next time.

underFlo
Wart
Wart
Posts: 4456
Joined: Mon Jul 14, 2014 10:44 am
Flair: sup im lesbiab
Pronouns: They/She
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby underFlo » Mon May 09, 2016 11:16 am

That's not Lua though.

h2643
Reznor
Reznor
Posts: 2890
Joined: Sat Dec 21, 2013 7:23 am
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby h2643 » Mon May 09, 2016 3:29 pm

fireflower30 wrote:Going to try one of these.
That's super outdated LunaDLL, not LunaLua.

fireflower30
Buster Beetle
Buster Beetle
Posts: 83
Joined: Wed Sep 23, 2015 2:24 pm
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby fireflower30 » Tue May 10, 2016 12:11 pm

h2643 wrote:
fireflower30 wrote:Going to try one of these.
That's super outdated LunaDLL, not LunaLua.
Then what's the Music Lua. I need to finish by boss rush episode, and I just need to run the custom music properly

Mable
Luigi
Luigi
Posts: 5806
Joined: Sat Dec 21, 2013 4:23 am
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby Mable » Tue May 10, 2016 12:23 pm

Just download the current lunalua and you good to go.

Also yay another boss rush, i hope bossedit will make a video of it.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9890
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Useful LunaLua Documentation Quick Links

Postby Emral » Tue May 10, 2016 12:24 pm

fireflower30 wrote:
h2643 wrote:
fireflower30 wrote:Going to try one of these.
That's super outdated LunaDLL, not LunaLua.
Then what's the Music Lua. I need to finish by boss rush episode, and I just need to run the custom music properly
http://wohlsoft.ru/pgewiki/LunaLua_glob ... _functions
It's literally the 2nd link in this topic.

fireflower30
Buster Beetle
Buster Beetle
Posts: 83
Joined: Wed Sep 23, 2015 2:24 pm
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby fireflower30 » Tue May 10, 2016 12:51 pm

Enjl wrote:
fireflower30 wrote:
h2643 wrote: That's super outdated LunaDLL, not LunaLua.
Then what's the Music Lua. I need to finish by boss rush episode, and I just need to run the custom music properly
http://wohlsoft.ru/pgewiki/LunaLua_glob ... _functions
It's literally the 2nd link in this topic.
Most of the Links in it are Red, so I had to search up a lua on the wiki, I found one, but now I keep on getting this error:

Image

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9890
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Useful LunaLua Documentation Quick Links

Postby Emral » Tue May 10, 2016 12:58 pm

fireflower30 wrote:Most of the Links in it are Red, so I had to search up a lua on the wiki, I found one, but now I keep on getting this error:
The lines are described to the right of the red links. They don't need their own individual page.
The error you're getting means that lua is unable to find your specified custom music file. Can I see your code?

fireflower30
Buster Beetle
Buster Beetle
Posts: 83
Joined: Wed Sep 23, 2015 2:24 pm
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby fireflower30 » Tue May 10, 2016 1:10 pm

Enjl wrote:
fireflower30 wrote:Most of the Links in it are Red, so I had to search up a lua on the wiki, I found one, but now I keep on getting this error:
The lines are described to the right of the red links. They don't need their own individual page.
The error you're getting means that lua is unable to find your specified custom music file. Can I see your code?
Here:

Code: Select all

-- Loads a music file into music stream
Audio.MusicOpen("level.mp3")
-- Starts playback of current music in stream
Audio.MusicPlay()

Audio.SeizeStream(0)


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari