Some lua libraries I made for my episode (F-Commands, pause screen, etc.)

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

SpencerlyEverly
Banned
Posts: 72
Joined: Tue Jul 22, 2014 5:23 pm
Pronouns: they/them
Contact:

Some lua libraries I made for my episode (F-Commands, pause screen, etc.)

Postby SpencerlyEverly » Tue Nov 30, 2021 10:45 pm

Finally, after 2-3 weeks, I think my code for these libraries are stable enough to release.

commandlist.lua
This is a command list example if you want to use these F-Command libraries, or if you wanna see how it works.
Spoiler: show
Image
exitcommands.lua
Commands that are an alternative to the pause menu. You use F1, and you can press any of the following:
Spoiler: show
Image
malcwarp.lua
Simple command to restart, exit, or warp to an HUB of your choice. Simply replace "MALC - HUB.lvlx" to anything of your choice.
Spoiler: show
Image
malcwarp_map.lua
Same as the last, but it has teleporting. To get coordinates to replace these SMAS++ coordinates, right click on a level in PGE, and go to "Copy preferences" -> "Position: X, Y"
Spoiler: show
Image
mapp3d.lua
A fixed up version of Hoeloe's lua code that supports Beta 4 tiles, levels, sceneries, and probably more. To make it work, put the file in your episode and use the following require line in the map.lua file:
local map3d = API.load("mapp3d")
Spoiler: show
Image
pausemenu.lua
Useful for anyone who's asking for a custom pause menu. Unlike these other command lua's I made, it's controller compatible. Press pause again to unpause, up to save and continue, down to save and quit. Use left and right as well to change characters.
Spoiler: show
Image
thecostume.lua
Don't forget to change your character and/or costume on the fly! Use F6 to boot up the command list.
Spoiler: show
Image
thecostume_map.lua
Same as last, but a command version of switching characters for map.lua. Costumes don't work, so that's why it's not an option on this one.
Spoiler: show
Image
------

If you want a download link, here you go!

Credit me (And Hoeloe for the mapp3d library) when you are using the libraries.
Last edited by SpencerlyEverly on Wed Aug 03, 2022 1:54 pm, edited 1 time in total.

RadMetalMarioSMIX
Swooper
Swooper
Posts: 65
Joined: Sat Mar 14, 2015 6:42 pm
Flair: What kind of grave is this?
Pronouns: he/him

Re: Some lua libraries I made for my episode (F-Commands, pause screen, etc.)

Postby RadMetalMarioSMIX » Sun May 01, 2022 2:26 pm

Can you pick and choose which ones you use, or do you need them all together for it to work?

SpencerlyEverly
Banned
Posts: 72
Joined: Tue Jul 22, 2014 5:23 pm
Pronouns: they/them
Contact:

Re: Some lua libraries I made for my episode (F-Commands, pause screen, etc.)

Postby SpencerlyEverly » Tue Jun 07, 2022 12:04 pm

RadMetalMarioSMIX wrote:
Sun May 01, 2022 2:26 pm
Can you pick and choose which ones you use, or do you need them all together for it to work?
They work separately. Although these libraries are pretty old imo and I coded them when I didn't know much about Lua

Tsylon1078
Goomba
Goomba
Posts: 3
Joined: Sun Jul 24, 2022 6:03 pm
Flair: What the dog doin
Pronouns: He/Him

Re: Some lua libraries I made for my episode (F-Commands, pause screen, etc.)

Postby Tsylon1078 » Fri Aug 12, 2022 10:30 am

How do i use the 3d map lua do i need to make it a hud world episode ?

SpencerlyEverly
Banned
Posts: 72
Joined: Tue Jul 22, 2014 5:23 pm
Pronouns: they/them
Contact:

Re: Some lua libraries I made for my episode (F-Commands, pause screen, etc.)

Postby SpencerlyEverly » Sun Aug 14, 2022 3:08 pm

Tsylon1078 wrote:
Fri Aug 12, 2022 10:30 am
How do i use the 3d map lua do i need to make it a hud world episode ?
You put this on map.lua:

Code: Select all

local map3d = require("mapp3d")
And it should work on the vanilla map. Settings can be found in mapp3d btw

AlanLive2020
Buster Beetle
Buster Beetle
Posts: 98
Joined: Fri Nov 27, 2020 8:15 am
Flair: The guy with no social skills or self-esteem :')

Re: Some lua libraries I made for my episode (F-Commands, pause screen, etc.)

Postby AlanLive2020 » Sat Aug 20, 2022 6:49 pm

Thank you. I was trying for so long to get a custom pause menu working. Now i can continue to lie to myself that i will actually release the episode i'm making in at least a decade.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 6 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari