Page 1 of 1

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

Posted: Tue Nov 30, 2021 10:45 pm
by SpencerlyEverly
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.

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

Posted: Sun May 01, 2022 2:26 pm
by RadMetalMarioSMIX
Can you pick and choose which ones you use, or do you need them all together for it to work?

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

Posted: Tue Jun 07, 2022 12:04 pm
by SpencerlyEverly
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

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

Posted: Fri Aug 12, 2022 10:30 am
by Tsylon1078
How do i use the 3d map lua do i need to make it a hud world episode ?

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

Posted: Sun Aug 14, 2022 3:08 pm
by SpencerlyEverly
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

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

Posted: Sat Aug 20, 2022 6:49 pm
by AlanLive2020
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.