warpTransition.lua (v1.1.2) - Spruce up your warps!

Share and discuss custom LunaLua code and content packs for SMBX2.
JulianSteve_18
Cheep-Cheep
Cheep-Cheep
Posts: 17
Joined: Sat Dec 28, 2019 3:32 pm

Re: warpTransition.lua - Spruce up your warps!

Postby JulianSteve_18 » Sat May 23, 2020 1:05 pm

Enjl wrote:
Sat May 23, 2020 12:51 pm
I'm not sure if I can troubleshoot past a language barrier like that, sorry. Maybe someone who is familiar with lunalua and can speak spanish can talk to you through private message, but I'm not familiar with many people who speak spanish so I can't contact one for you.
So just tell me the codes for TRANSITION_IRIS_OUT or TRANSITION_MOSAIC and the others, that's fine.

User avatar
Murphmario
Larry Koopa
Larry Koopa
Posts: 2179
Joined: Fri Dec 20, 2013 7:07 pm

Re: warpTransition.lua - Spruce up your warps!

Postby Murphmario » Sat May 30, 2020 9:20 pm

Hey, think you could maybe make this work with the Pipe Cannons script found in the tweaks folder?
Now taking graphics requests:
https://docs.google.com/forms/d/1urWpFq ... #responses

My graphics pack:
http://www.supermariobrosx.org/forums/v ... t=1960/url

Really tempted to just make a general graphics thread for all of my graphics instead of just making individual threads for each of them.

User avatar
MrDoubleA
Swooper
Swooper
Posts: 123
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: warpTransition.lua (v1.1) - Spruce up your warps!

Postby MrDoubleA » Tue Jul 07, 2020 9:48 am

It's now been updated to v1.1, fixing a few things, making all the transitions functions (which greatly improves the code itself and make it possible to add your own transition types), adding an option to let instant/portal warps trigger transitions, and two new transition types, TRANSITION_MELT and TRANSITION_SWIRL.
New Transitions: show
Image
Hi. I'm not very active on the forums.
(MrDoubleA#3124 on Discord)

rooms.lua - Quick respawn & Celeste-styled rooms
simpleLayerMovement.lua - For all your custom layer movement needs!
MrDoubleA's NPC Pack
Are you a mouse?
I support: show
Image
Image
Image
Image

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8741
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: warpTransition.lua (v1.1) - Spruce up your warps!

Postby Enjl » Tue Jul 07, 2020 10:04 am

I downloaded it to take a look at the shaders for the transitions... surprised to find swirl not using one, when it could easily use a texture. Check out this video:
https://www.youtube.com/watch?v=LnAoD7hgDxw
Ideas are useless if you can't make them real.
Image

User avatar
MrDoubleA
Swooper
Swooper
Posts: 123
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: warpTransition.lua (v1.1) - Spruce up your warps!

Postby MrDoubleA » Tue Jul 07, 2020 12:12 pm

Enjl wrote:
Tue Jul 07, 2020 10:04 am
I downloaded it to take a look at the shaders for the transitions... surprised to find swirl not using one, when it could easily use a texture. Check out this video:
https://www.youtube.com/watch?v=LnAoD7hgDxw
That seems like a really useful technique! I'll keep that in mind for the future, thank you.
Hi. I'm not very active on the forums.
(MrDoubleA#3124 on Discord)

rooms.lua - Quick respawn & Celeste-styled rooms
simpleLayerMovement.lua - For all your custom layer movement needs!
MrDoubleA's NPC Pack
Are you a mouse?
I support: show
Image
Image
Image
Image

User avatar
Turret 3471
Ripper II
Ripper II
Posts: 319
Joined: Sun Jul 31, 2016 12:43 pm
Contact:

Re: warpTransition.lua (v1.1) - Spruce up your warps!

Postby Turret 3471 » Tue Jul 07, 2020 7:04 pm

Man oh man, that spiral transition gives me some Ape Escape feels. Very nice!
I support:
Spoiler: show
Image
Image
Image Image
Image
Image
Image OHNO

Gud quotes
Spoiler: show
Witchking666 wrote:that looks aweozme alwo, sorrt im ik a big drunk. i may have drunk a lttle rtoo muxj beer with erik.

User avatar
MrDoubleA
Swooper
Swooper
Posts: 123
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: warpTransition.lua (v1.1.1) - Spruce up your warps!

Postby MrDoubleA » Wed Jul 08, 2020 11:28 am

There was a minor bug with warps that lead to the world map, and that's now been fixed.
Hi. I'm not very active on the forums.
(MrDoubleA#3124 on Discord)

rooms.lua - Quick respawn & Celeste-styled rooms
simpleLayerMovement.lua - For all your custom layer movement needs!
MrDoubleA's NPC Pack
Are you a mouse?
I support: show
Image
Image
Image
Image

User avatar
WerewolfGD
Wart
Wart
Posts: 3268
Joined: Tue Dec 02, 2014 2:28 am
Flair: Legalize Awooo!
Contact:

Re: warpTransition.lua (v1.1.1) - Spruce up your warps!

Postby WerewolfGD » Wed Jul 08, 2020 11:58 am

Oh man those transitions look awesome! Pretty useful for pipe maze levels. Great job for this one. Might use this someday.
Yea... I'm back, but with different view.

Known also as Camacho or Harvey36Dice.
Also a furry

Image
Awooo!
If you want to talk with me, go here : Alagirez#2056

User avatar
Bloxxerstudios
Rex
Rex
Posts: 92
Joined: Fri Jun 03, 2016 1:17 pm

Re: warpTransition.lua (v1.1.1) - Spruce up your warps!

Postby Bloxxerstudios » Tue Jul 21, 2020 6:38 pm

I've been attempting to use this in one of my levels. I create a Local Lua script for one of my levels, and copy paste the code within' there. However; none of the effects work. Instead I get the same old rough 'instant' transmission effect when going down a pipe or through a door. Is there something I'm doing wrong? Cause I can't get these to work.

Image


User avatar
MrDoubleA
Swooper
Swooper
Posts: 123
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: warpTransition.lua (v1.1.1) - Spruce up your warps!

Postby MrDoubleA » Thu Jul 23, 2020 10:45 am

Do not copy and paste the code into a luna.lua file. Instead, copy all the files into your folder and put this into the luna.lua:

local warpTransition = require("warpTransition")
Hi. I'm not very active on the forums.
(MrDoubleA#3124 on Discord)

rooms.lua - Quick respawn & Celeste-styled rooms
simpleLayerMovement.lua - For all your custom layer movement needs!
MrDoubleA's NPC Pack
Are you a mouse?
I support: show
Image
Image
Image
Image

User avatar
Bloxxerstudios
Rex
Rex
Posts: 92
Joined: Fri Jun 03, 2016 1:17 pm

Re: warpTransition.lua (v1.1.1) - Spruce up your warps!

Postby Bloxxerstudios » Thu Jul 23, 2020 7:49 pm

MrDoubleA wrote:
Thu Jul 23, 2020 10:45 am
Do not copy and paste the code into a luna.lua file. Instead, copy all the files into your folder and put this into the luna.lua:

local warpTransition = require("warpTransition")
Ohh. Thank you! It works like a charm now.

Image


JamesR624
Cheep-Cheep
Cheep-Cheep
Posts: 18
Joined: Wed Aug 09, 2017 4:24 pm

Re: warpTransition.lua (v1.1.1) - Spruce up your warps!

Postby JamesR624 » Sat Jul 25, 2020 10:51 am

This still throws an error when using an SMB2 subcon door on any area that doesn't have a warp attached to it.

If you throw a magic potion and then attempt to go through the resulting subcon door placed anywhere a warp doesn't exist exactly, this error occurs:

Code: Select all

==> !Warp:entranceSection:9: Invalid Warp object
=============
stack traceback:
	!Warp:entranceSection:9: in function '__index'
	worlds/test/warpTransition.lua:399: in function <worlds/test/warpTransition.lua:364>
	scripts/base/engine/main_events.lua:63: in function 'callApiListeners'
	scripts/base/engine/main_events.lua:169: in function 'callEventInternal'
	scripts/base/engine/main_events.lua:240: in function <scripts/base/engine/main_events.lua:218>
	[C]: in function '__xpcall'
	main.lua:770: in function <main.lua:769>

User avatar
MrDoubleA
Swooper
Swooper
Posts: 123
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: warpTransition.lua (v1.1.1) - Spruce up your warps!

Postby MrDoubleA » Mon Jul 27, 2020 9:40 am

JamesR624 wrote:
Sat Jul 25, 2020 10:51 am
This still throws an error when using an SMB2 subcon door on any area that doesn't have a warp attached to it.

If you throw a magic potion and then attempt to go through the resulting subcon door placed anywhere a warp doesn't exist exactly, this error occurs:

Code: Select all

==> !Warp:entranceSection:9: Invalid Warp object
=============
stack traceback:
	!Warp:entranceSection:9: in function '__index'
	worlds/test/warpTransition.lua:399: in function <worlds/test/warpTransition.lua:364>
	scripts/base/engine/main_events.lua:63: in function 'callApiListeners'
	scripts/base/engine/main_events.lua:169: in function 'callEventInternal'
	scripts/base/engine/main_events.lua:240: in function <scripts/base/engine/main_events.lua:218>
	[C]: in function '__xpcall'
	main.lua:770: in function <main.lua:769>
Ah... subcon doors are the only time a warp can become invalid, and I forgot to account for them. I've released an update to fix this. Additionally, it now gives a clear error message when using an outdated version of SMBX2.
Hi. I'm not very active on the forums.
(MrDoubleA#3124 on Discord)

rooms.lua - Quick respawn & Celeste-styled rooms
simpleLayerMovement.lua - For all your custom layer movement needs!
MrDoubleA's NPC Pack
Are you a mouse?
I support: show
Image
Image
Image
Image

User avatar
Wiimeiser
Bit
Bit
Posts: 145
Joined: Mon Jun 24, 2019 4:36 am
Flair: What?

Re: warpTransition.lua (v1.1.2) - Spruce up your warps!

Postby Wiimeiser » Tue Sep 15, 2020 6:08 am

I tried copying the if/else code in this thread and it worked. I tried adding more if checks and it didn't work, and even caused Luna.lua to not load ingame due to syntax errors. It kept expecting additional "end" commands at the end of the command, and when I added more in it kept thinking the end of the file wasn't the end of the file. I'm guessing I'll have to use an event-based workaround for that?

User avatar
MrDoubleA
Swooper
Swooper
Posts: 123
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: warpTransition.lua (v1.1.2) - Spruce up your warps!

Postby MrDoubleA » Fri Sep 18, 2020 2:24 pm

Wiimeiser wrote:
Tue Sep 15, 2020 6:08 am
I tried copying the if/else code in this thread and it worked. I tried adding more if checks and it didn't work, and even caused Luna.lua to not load ingame due to syntax errors. It kept expecting additional "end" commands at the end of the command, and when I added more in it kept thinking the end of the file wasn't the end of the file. I'm guessing I'll have to use an event-based workaround for that?
No, you just wrote your code wrong.
Hi. I'm not very active on the forums.
(MrDoubleA#3124 on Discord)

rooms.lua - Quick respawn & Celeste-styled rooms
simpleLayerMovement.lua - For all your custom layer movement needs!
MrDoubleA's NPC Pack
Are you a mouse?
I support: show
Image
Image
Image
Image


Return to “LunaLua”

Who is online

Users browsing this forum: KBM-Quine and 5 guests