anotherwalljump.lua - I still don't get why people like Walljumps in Mario

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

Moderator: Userbase Moderators

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

Re: i have a problem with enji's anotherwalljump script

Postby Emral » Thu Jul 02, 2020 10:24 am

Image

Stop PMing me and then making threads after I reply.
You could also just post in the anotherwalljump thread.

iAmGod01
Fighter Fly
Fighter Fly
Posts: 40
Joined: Wed May 20, 2020 8:37 am
Flair: Assemble pixel art

Re: i have a problem with enji's anotherwalljump script

Postby iAmGod01 » Thu Jul 02, 2020 10:41 am

Enjl wrote:
Thu Jul 02, 2020 10:24 am
Image

Stop PMing me and then making threads after I reply.
You could also just post in the anotherwalljump thread.
well man at the time I posted this topic I haven't seen your pm I tried to delete it before there was an answer but it appeared that it was not possible to delete that post

iAmGod01
Fighter Fly
Fighter Fly
Posts: 40
Joined: Wed May 20, 2020 8:37 am
Flair: Assemble pixel art

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby iAmGod01 » Thu Jul 02, 2020 10:50 am

Enjl wrote:
Sat Oct 19, 2019 7:31 am
Download:
https://pastebin.com/UQBXiG1P

anotherwalljump.lua refurbishes an old walljump script I wrote in 2017. Its aim is to basically just replace Sturg's and PixelPest's libraries, neither of which ever had strong voices backing them, especially now that they're fairly old.

Features:
- 2-Player compatibility
- Different walljump settings per character ID (optional)
- Some customizability.

Gif:
Spoiler: show
Image
Most simple usage example:
local aw = require("anotherwalljump")
aw.registerAllPlayersDefault()

This enables walljumps with the default settings for the 5 default characters. Default settings can be viewed in the file.
Further customization commented in the file.
I copied the simple usage example but this error continued


Image

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

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby Emral » Thu Jul 02, 2020 10:59 am

iAmGod01 wrote:
Thu Jul 02, 2020 10:50 am
Enjl wrote:
Sat Oct 19, 2019 7:31 am
Download:
https://pastebin.com/UQBXiG1P

anotherwalljump.lua refurbishes an old walljump script I wrote in 2017. Its aim is to basically just replace Sturg's and PixelPest's libraries, neither of which ever had strong voices backing them, especially now that they're fairly old.

Features:
- 2-Player compatibility
- Different walljump settings per character ID (optional)
- Some customizability.

Gif:
Spoiler: show
Image
Most simple usage example:
local aw = require("anotherwalljump")
aw.registerAllPlayersDefault()

This enables walljumps with the default settings for the 5 default characters. Default settings can be viewed in the file.
Further customization commented in the file.
I copied the simple usage example but this error continued


Image
You didn't copy the script. There are differences. Read the differences.

Mine:
local aw = require("anotherwalljump")
aw.registerAllPlayersDefault()

Yours:
local aw = require("anotherwalljump.lua")
aw.registerAllPlayersDefault()

iAmGod01
Fighter Fly
Fighter Fly
Posts: 40
Joined: Wed May 20, 2020 8:37 am
Flair: Assemble pixel art

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby iAmGod01 » Thu Jul 02, 2020 11:14 am

Enjl wrote:
Thu Jul 02, 2020 10:59 am
iAmGod01 wrote:
Thu Jul 02, 2020 10:50 am
Enjl wrote:
Sat Oct 19, 2019 7:31 am
Download:
https://pastebin.com/UQBXiG1P

anotherwalljump.lua refurbishes an old walljump script I wrote in 2017. Its aim is to basically just replace Sturg's and PixelPest's libraries, neither of which ever had strong voices backing them, especially now that they're fairly old.

Features:
- 2-Player compatibility
- Different walljump settings per character ID (optional)
- Some customizability.

Gif:
Spoiler: show
Image
Most simple usage example:
local aw = require("anotherwalljump")
aw.registerAllPlayersDefault()

This enables walljumps with the default settings for the 5 default characters. Default settings can be viewed in the file.
Further customization commented in the file.
I copied the simple usage example but this error continued


Image
You didn't copy the script. There are differences. Read the differences.

Mine:
local aw = require("anotherwalljump")
aw.registerAllPlayersDefault()

Yours:
local aw = require("anotherwalljump.lua")
aw.registerAllPlayersDefault()
buddy ]this time I corrected the code I put yours in the correct case but still giving this error is it the same way it puts in the lua file behind the error window? I know I'm a little boring today I apologize


Image

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

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby Emral » Thu Jul 02, 2020 11:23 am

Then the file is in the wrong folder. Where did you put it? If you want troubleshooting to go faster you must provide more information.

Cedur
Raccoon Mario
Raccoon Mario
Posts: 7073
Joined: Tue Jun 28, 2016 10:14 am
Flair: I'm gone, for chess and minesweeper
Pronouns: he/him

Re: i have a problem with enji's anotherwalljump script

Postby Cedur » Thu Jul 02, 2020 12:31 pm

it's fine but next time if you have a problem with a specific thing (be it a script, episode, graphic etc) just post in its respective thread.

iAmGod01
Fighter Fly
Fighter Fly
Posts: 40
Joined: Wed May 20, 2020 8:37 am
Flair: Assemble pixel art

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby iAmGod01 » Thu Jul 02, 2020 2:17 pm

Enjl wrote:
Thu Jul 02, 2020 11:23 am
Then the file is in the wrong folder. Where did you put it? If you want troubleshooting to go faster you must provide more information.
well enji as the level i'm testing is provisional i created a test "episode" to test some script a and how i want this script to work at all levels of the episode and left the luna file and the anotherwalljump file out of the folder the level next to the level file


Image

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

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby Emral » Thu Jul 02, 2020 2:24 pm

Notice how anotherwalljump is the only file with a file extension in the folder. This is immediately suspicious. Your file is actually called anotherwalljump.lua.lua. Did you rename it? It doesn't have that name upon download. Rename the duplicate extension and it should work.

iAmGod01
Fighter Fly
Fighter Fly
Posts: 40
Joined: Wed May 20, 2020 8:37 am
Flair: Assemble pixel art

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby iAmGod01 » Thu Jul 02, 2020 2:42 pm

Enjl wrote:
Thu Jul 02, 2020 2:24 pm
Notice how anotherwalljump is the only file with a file extension in the folder. This is immediately suspicious. Your file is actually called anotherwalljump.lua.lua. Did you rename it? It doesn't have that name upon download. Rename the duplicate extension and it should work.
I can't believe it was that the problem was bad for the annoyance good afternoon and thank you very much

when I had downloaded the file it came named like tha

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

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby Emral » Thu Jul 02, 2020 2:57 pm

Must've been a mis-save from pastebin to your file system then, interesting.
Generally I recommend going into file explorer settings and enabling file extensions globally (you can google it if you don't know how to). It makes these kinds of things easier to spot, and makes renaming files by extension easier, too.

SergioZen25
Rex
Rex
Posts: 34
Joined: Mon Sep 07, 2020 9:21 pm

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby SergioZen25 » Tue Sep 08, 2020 8:03 am

Hello, I'm new to the forum and I wanted to use your script, but I've run into some problems, the scripts works smoothly and I can walljump and stuff, but somehow, it has broken the tail swipe animation, even if the attack is still being done. I saw someone else mentioning it, but I don't know what has to be changed to make it work again.

JayTheUnwise123
Shy Guy
Shy Guy
Posts: 8
Joined: Mon Sep 28, 2020 2:20 am

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby JayTheUnwise123 » Tue Nov 10, 2020 2:50 pm

Are you supposed to register character costumes as well? If so, how?
For some reason I can't wall jump when I have a costume on.

rael1up
Shy Guy
Shy Guy
Posts: 6
Joined: Thu Jan 14, 2021 8:27 am
Pronouns: he/him

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby rael1up » Mon Jan 25, 2021 5:58 pm

Nice! ... And Link too!! The next steep is add compability with the another player characters!

EclipseMain
Bob-Omb
Bob-Omb
Posts: 22
Joined: Sat Mar 16, 2019 4:12 pm
Contact:

Re: i have a problem with enji's anotherwalljump script

Postby EclipseMain » Mon Jan 25, 2021 10:26 pm

iAmGod01 wrote:
Thu Jul 02, 2020 10:21 am
good afternoon guys i was trying to use enji's anotherwalljump script but i have these errors
Image

Image

well I will leave here also the print of the moon file anyone if you know can help me
You're doing it the javascript way. This is how you do it in Lua

Code: Select all

local anotherwalljump = API.load("anotherwalljump")

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

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby Emral » Tue Jan 26, 2021 1:18 am

You shouldn't put .lua in the require call.

Code: Select all

local aw = require("anotherwalljump")

MrCaves
Fighter Fly
Fighter Fly
Posts: 49
Joined: Sat Jun 08, 2019 12:51 pm

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby MrCaves » Tue Jan 26, 2021 8:00 pm

Enjl: i dont know why others like mario walljumping

Also Enjl: literally makes a walljump api

Seriously though, why would you make walljumps for mario if you dont like it?

Lusho
Tweeter
Tweeter
Posts: 163
Joined: Wed Dec 25, 2019 11:39 pm
Flair: Intention is what matters
Pronouns: he/him

Re: i have a problem with enji's anotherwalljump script

Postby Lusho » Tue Feb 09, 2021 11:15 am

EclipseMain wrote:
Mon Jan 25, 2021 10:26 pm
iAmGod01 wrote:
Thu Jul 02, 2020 10:21 am
good afternoon guys i was trying to use enji's anotherwalljump script but i have these errors
Image

Image

well I will leave here also the print of the moon file anyone if you know can help me
You're doing it the javascript way. This is how you do it in Lua

Code: Select all

local anotherwalljump = API.load("anotherwalljump")
Actually you should still use require, API.load is really outdated

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

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby Emral » Tue Feb 09, 2021 11:52 am

MrCaves wrote:
Tue Jan 26, 2021 8:00 pm
Enjl: i dont know why others like mario walljumping

Also Enjl: literally makes a walljump api

Seriously though, why would you make walljumps for mario if you dont like it?
I was bored one afternoon and nobody else was doing it (the previous two walljump scripts being either deprecated or undiscoverable).

EeveeEuphoria
Shy Guy
Shy Guy
Posts: 9
Joined: Sat Feb 06, 2021 2:06 am
Flair: possums good
Pronouns: it/its, she/her

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby EeveeEuphoria » Thu Feb 11, 2021 5:12 pm

Hey there, there's a bug in the script that was causing me a few issues; invisible blocks didn't properly register as being invisible, and kept allowing me to wallslide on them.

Looking into the code, at line 132, I replaced "o:mem(0x5A, FIELD_WORD) > 0" with "o:mem(0x5A, FIELD_WORD) < 0" and that seemed to fix it, but I'm not sure if that'll cause further problems.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari