NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Share and discuss custom LunaLua code and content packs for SMBX2.
loop13
Eerie
Eerie
Posts: 974
Joined: Sun Apr 17, 2016 5:56 pm
Flair: I mainly play Touhou and somethin called Len'en
Current Project: failing English III
Chat Username: Sishin Hihiri (loop)

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby loop13 » Fri Apr 07, 2017 6:41 pm

Mario Maker 200 wrote:Awesome! But I don't have the imagic.lua and I can't find a download for it...
It comes with 2.0. My project uses it.
Hello, I make a lot of typos
specific people know my whereabouts though

my wifi is as useful as a brick

:idea: I'm not (completely) dead; I rarely talk because I usually have nothin to say; I'll talk when I actually have a comment I want to make, or if someone asks me somethin...

whoops i deleted my avatar

nostalgia is a beautiful thing, isn't it?

User avatar
Mario Maker 200
Bob-omb
Bob-omb
Posts: 35
Joined: Sat Jun 14, 2014 11:39 am

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Mario Maker 200 » Sat Apr 08, 2017 3:14 am

Jayce 777 wrote:
Mario Maker 200 wrote:Awesome! But I don't have the imagic.lua and I can't find a download for it...
It comes with 2.0. My project uses it.
Ok, thanks! :D

User avatar
WerewolfGD
Wart
Wart
Posts: 3256
Joined: Tue Dec 02, 2014 2:28 am
Flair: Daily life of Alagirez
Current Project: Questioning my life
Chat Username: Alagirez
Contact:

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby WerewolfGD » Sat Apr 08, 2017 3:19 am

Wow this is pawsome! Finally I can hide my easter eggs in my levels with this API(?)!

A former SMBX level designner
If you want to to talk with me, go here : Alagirez#2056
Also a furry

Image
YT Channel |MxW2 for those who wants it
My osu! Profile | My twitter
Image

Awooo!

User avatar
Sambo
Blooper
Blooper
Posts: 187
Joined: Fri Jan 24, 2014 6:43 pm
Current Project: SMBX2, Mario & the 7 Orbs

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Sambo » Sat Apr 08, 2017 4:30 pm

It's in 2.0 beta 3
Projects I support:
Image Image Image Image
Current Project:
Image

User avatar
Mosaic
Ludwig von Koopa
Ludwig von Koopa
Posts: 2823
Joined: Fri Feb 27, 2015 8:07 pm
Current Project: The Mosaic Group's Journey, Toad's SMB Adventure, Mosaic Adventures and Other Secret Projects?
Chat Username: Mosaic
Contact:

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Mosaic » Thu Feb 22, 2018 11:12 pm

bumpty bumpty

I have a couple questions about this
1. are npcs hidden by this?
2. does the nsmbwalls layer need to be hidden or shown while actually testing the level?

I believe in Jesus Christ as my Lord and Savior. If you do, put this in your signature.
And Here's The Proof
My Rainbow Of Levels
Mosaic's Museum(My Discord)

Image

Image

Danny wrote:Here's some constructive criticism: What the hell.
Witchking wrote:Approved!

Discord Quotes: show
Image


User avatar
HulluHapua
Goomba
Goomba
Posts: 1
Joined: Sat Sep 02, 2017 9:26 am
Chat Username: HH
Contact:

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby HulluHapua » Fri Feb 23, 2018 3:55 am

You Can Simply Use Sizable Objects For Fake Walls Since They Only Have Collision On The Top Of Them.
Want To See My Level Spookhouse for celebration of Friday of 13.

Link: https://www.dropbox.com/s/253doz3nhlv7h ... ip?dl=0&m=

User avatar
PixelPest
Link
Link
Posts: 7118
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Current Project: Boom Boom Evolution
Chat Username: PixelPest
Contact:

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby PixelPest » Fri Feb 23, 2018 6:09 am

HulluHapua wrote:You Can Simply Use Sizable Objects For Fake Walls Since They Only Have Collision On The Top Of Them.
But then there's no visual effect like in NSMB

User avatar
Sambo
Blooper
Blooper
Posts: 187
Joined: Fri Jan 24, 2014 6:43 pm
Current Project: SMBX2, Mario & the 7 Orbs

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Sambo » Fri Feb 23, 2018 2:01 pm

Mosaic wrote:bumpty bumpty

I have a couple questions about this
1. are npcs hidden by this?
Yes. The "fake wall" effect is rendered above NPCs.
Mosaic wrote:2. does the nsmbwalls layer need to be hidden or shown while actually testing the level?
It needs to be hidden. If it's shown, the player can interact with the blocks on it.
HulluHapua wrote:You Can Simply Use Sizable Objects For Fake Walls Since They Only Have Collision On The Top Of Them.
That Thing You Do Where You Capitalize All Your Words Is Annoying. Stop It.

Also, yeah, that doesn't work.
Projects I support:
Image Image Image Image
Current Project:
Image

User avatar
8lue Storm
Lakitu
Lakitu
Posts: 497
Joined: Thu Jan 18, 2018 9:53 am
Flair: its pronounced bluestorm
Current Project: Many, MANY stuff
Chat Username: 8luestorm

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby 8lue Storm » Tue Apr 03, 2018 8:47 pm

Sorry for the bump, but I tried to test this feature, following MechDragon777's instructions, but this showed up:
Image
Can someone please tell me what went wrong?
Image

i never performed a shelljump and it's sad I did a grand total of 4 shelljumps in my life!

User avatar
The0x539
Nipper Plant
Nipper Plant
Posts: 751
Joined: Fri Jan 22, 2016 8:02 pm
Current Project: SMBX2

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby The0x539 » Tue Apr 03, 2018 9:13 pm

8lue Storm wrote:Sorry for the bump, but I tried to test this feature, following MechDragon777's instructions, but this showed up:
Image
Can someone please tell me what went wrong?
The library is being instructed to draw a GIF. This generally doesn't work in Beta 3. Use PNG graphics.

User avatar
8lue Storm
Lakitu
Lakitu
Posts: 497
Joined: Thu Jan 18, 2018 9:53 am
Flair: its pronounced bluestorm
Current Project: Many, MANY stuff
Chat Username: 8luestorm

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby 8lue Storm » Tue Apr 03, 2018 9:36 pm

[quote="The0x539"][quote="8lue Storm"]Sorry for the bump, but I tried to test this feature, following MechDragon777's instructions, but this showed up:
[img]https://s31.postimg.org/kfzmltkyj/Fake_Walls_Error.png[/img]
Can someone please tell me what went wrong?[/quote]
The library is being instructed to draw a GIF. This generally doesn't work in Beta 3. Use PNG graphics.[/quote]
I made .png only what I used as fake walls. I guess I should make everything .png, then. Thanks for the advice!
Image

i never performed a shelljump and it's sad I did a grand total of 4 shelljumps in my life!

User avatar
Dr PurpleOveralls
Spiny
Spiny
Posts: 46
Joined: Thu Feb 22, 2018 12:42 am
Chat Username: Purple

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Dr PurpleOveralls » Tue Apr 24, 2018 2:21 am

Ok. This is really good but when i looked at the instructions on the PGE Wiki but it didn't really make sense to me.

Which Lunadll.lua file do i use?

Hopefully you make a video tutorial because i really don't get it.

But I love this!!!
Spoiler: show
Image
Image

Image

Image

User avatar
MrVaderSpino
Fighter Fly
Fighter Fly
Posts: 66
Joined: Tue Apr 24, 2018 9:09 am
Current Project: Spino's Journey 1.4.4(38A) Progress is 15.25% before post a Forum.
Chat Username: KingBillSeeker666

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby MrVaderSpino » Wed May 02, 2018 11:30 pm

That is understand but i want to find the star or Key once it can make more levels.
Making Custom Levels Already Soon...
I Waiting in SMBX2 beta 4..
i am Currently Participating In Other Projects
Spoiler: show
Image
Spoiler: show
My Quotes In SMBX.
GforGoomba wrote:Are you sure removing slopes is cool?
Meepyglobix wrote: DON'T SAY "Banned My Acount??". OR I'll SHOOT YOU.
iphtechnologies wrote:NEO super mario world x is a really nice game. This Episode is 2.7 GB large at the moment.That`s crazy!
Please find similar post:
Neo Super Mario World X is Expensively in largest File is 2.7GB? Are your cannot Download they because Expensive Stored in Too Many Files?
Does Having Wasting Time...

User avatar
FirestarPlays
Pokey
Pokey
Posts: 209
Joined: Tue Feb 28, 2017 1:26 pm
Current Project: Super Mario and the Plague of Valerius
Chat Username: Firestar

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby FirestarPlays » Thu May 03, 2018 5:20 pm

My episode is actually going to use this, starting with 2-5: Fakewall Flank!
Image

User avatar
Novarender
Swooper
Swooper
Posts: 101
Joined: Sat Aug 06, 2016 6:59 pm
Flair: Hi
Current Project: MMX (Mario Maker X) -> including [Super Mario 64X], [Super Mario Universe], [Super Mario Acclivity]
Chat Username: Novarender

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Novarender » Tue Nov 06, 2018 8:22 pm

What part of the code draws the nsmbwalls layer as transparent (when player is behind the layer)? Because I want to change it to be more like the original and not draw the blocks at all.

*nevermind
I believe and I accept Jesus Christ as my Lord and Savior. If you do, put this in your signature.

Ten points to you if you can figure out what my name is.

Look, I'm not telling you what to do but STOP READING THIS SENTENCE

Hagrid: "You're a wizard, Harry!"
Harry: "You're a hairy wizard!"

User avatar
1AmPlayer
Lakitu
Lakitu
Posts: 493
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Current Project: Moonlight Forest (3rd Weather Trio Series)
Chat Username: IAmPx
Contact:

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby 1AmPlayer » Fri Apr 12, 2019 10:34 am

So, this is pretty recent, and only happens in MaGLX3 build, but this is broken. The stuff inside are not the walls that was suppose to hide the layer in a lower opacity and the stuff underneath it, but instead, a zoomed out version of what's underneath.
Image
Do you think you can fix this?
Have a lenny. ( ͡° ͜ʖ ͡°)

I have come back in SMBX Forums. Finally! :D
Image

User avatar
Eri7
Banned
Posts: 1653
Joined: Sat Jan 28, 2017 4:48 pm
Flair: Hard work pays off sooner or later
Current Project: SMNZ (38A) + SMNP1 (38A) + MKA(2.0) + TNV (2.0/38A) + TNVL (2.0/38A) + SMNP2 (2.0) + SMNR (2.0)
Chat Username: Eri7
Contact:

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Eri7 » Fri Apr 12, 2019 11:56 am

Oh no that's really bad especially for one of the projects I am working on. Let's hope Sambo fixed this or rip very cool script.
Image
Image
Image
Image

User avatar
hacheipe399
Fighter Fly
Fighter Fly
Posts: 62
Joined: Mon Feb 10, 2014 12:29 pm
Current Project: Be an engineer in 5 years.

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby hacheipe399 » Mon Aug 12, 2019 10:47 pm

Hey everyone, I found a quick workaround for this API in the latest SMBX2 PAL Release. You need to locate two lines of code which contain the imagic's ScaleTexture() method. These are within a loop in nsmbwalls.update() event:

Code: Select all

xRays[k]:ScaleTexture((800) / (2 * r), (600) / (2 * r))
and this one:

Code: Select all

overlays[k]:ScaleTexture((800) / (2 * r), (600) / (2 * r))
Replace the multipliers of the radious (variable "r") in this way:

Code: Select all

xRays[k]:ScaleTexture((800) / (19.8 * r), (600) / (11.3 * r))

Code: Select all

overlays[k]:ScaleTexture((800) / (19.8 * r), (600) / (11.3 * r))
And there you go. This makes the camera to shrink too, which isn't a desired behavior, but it's a minor detail. I planned to rewrite this API since imagic isn't recommended anymore, but this fix does the job btw.
I'm the spanish translator of the PGE Project. Please use it and give feedback to improve the software!
My LunaLua API:
Image

My currently released GFX work:
Image
Image
Image

I'm Hardcore 2 da bone.
1. for the treble.
2. for the bass

User avatar
MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6122
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Current Project: viewtopic.php?f=34&t=6769&start=10
Chat Username: 鬼人 正邪
Contact:

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby MECHDRAGON777 » Mon Aug 12, 2019 10:54 pm

hacheipe399 wrote:
Mon Aug 12, 2019 10:47 pm
Hey everyone, I found a quick workaround for this API in the latest SMBX2 PAL Release. You need to locate two lines of code which contain the imagic's ScaleTexture() method. These are within a loop in nsmbwalls.update() event:

Code: Select all

xRays[k]:ScaleTexture((800) / (2 * r), (600) / (2 * r))
and this one:

Code: Select all

overlays[k]:ScaleTexture((800) / (2 * r), (600) / (2 * r))
Replace the multipliers of the radious (variable "r") in this way:

Code: Select all

xRays[k]:ScaleTexture((800) / (19.8 * r), (600) / (11.3 * r))

Code: Select all

overlays[k]:ScaleTexture((800) / (19.8 * r), (600) / (11.3 * r))
And there you go. This makes the camera to shrink too, which isn't a desired behavior, but it's a minor detail. I planned to rewrite this API since imagic isn't recommended anymore, but this fix does the job btw.
I think QuantumMeanance gave me a version which involved inverting something. Maybe s/he could upload her/his version or explain her/his change publicly?

ImageImageImage

Image

User avatar
hacheipe399
Fighter Fly
Fighter Fly
Posts: 62
Joined: Mon Feb 10, 2014 12:29 pm
Current Project: Be an engineer in 5 years.

Re: NSMBWalls.lua - Fake Walls! - Workaround for SMBX PAL Release

Postby hacheipe399 » Mon Aug 12, 2019 11:50 pm

THIS IS THE DEFINITIVE WORKAROUND:

EDIT: you just can get rid of the xRays[k]:ScaleTexture() and overlays[k]:ScaleTexture() lines, but watch out the following step:

Before each ScaleTexture, imagic.Circle{} is assigned to xRays and overlays respectively. Look for "filltype", then change imagic.TEX_FILL for imagic.TEX_PLACE. For example:

Code: Select all

xRays[k] = imagic.Circle
			{
				radius = r,
				x = playerCenterX,
				y = playerCenterY,
				scene = true,
				texture = xRayBuffer,
				filltype = imagic.TEX_PLACE,
				texoffsetX = (centerOnScreenX - 400)/800,
				texoffsetY = (centerOnScreenY - 300)/600
			}
And now we're done! Now it is exactly zoomed and the effect works properly!
I'm the spanish translator of the PGE Project. Please use it and give feedback to improve the software!
My LunaLua API:
Image

My currently released GFX work:
Image
Image
Image

I'm Hardcore 2 da bone.
1. for the treble.
2. for the bass


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 5 guests