playerphysicspatch.lua - now in 2 flavors

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

Moderator: Userbase Moderators

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

playerphysicspatch.lua - now in 2 flavors

Postby Emral » Sun Jun 07, 2020 2:32 pm

CLASSIC MODE: https://pastebin.com/6sPkpDaL
SHMOOVE MODE: https://pastebin.com/HJ8jMeKA

Enable this script to make smbx fun to play.

Teasers (left is with the patch active):
Acceleration and deceleration while walking:
Spoiler: show
Image
And running:
Spoiler: show
Image
The effect is doubled while not touching the ground.

Customization options are clearly labeled within the file as variables you can modify from lunalua.

CONFIGS!!!! (reply in thread to submit your own)

SMB1-like (as used in a level in Betterified VI)
Spoiler: show

Code: Select all

local ppp = require("playerphysicspatch")

-- Physics adjustments that make the game more like SMB1
Defines.player_walkspeed = 2.4
Defines.player_runspeed = 5.2
Defines.gravity = 10
Defines.player_grav = 0.571
Defines.jumpheight = 22
Defines.jumpheight_bounce = 24

-- Physicspatch adjustments that make the game more like SMB1
ppp.speedXDecelerationModifier = -0.0975
ppp.groundTouchingDecelerationMultiplier = 1.5
ppp.groundNotTouchingDecelerationMultiplier = 1.25

ppp.accelerationMaxSpeedThereshold = 6
ppp.accelerationMinSpeedThereshold = 0.1
ppp.accelerationSpeedDifferenceThereshold = 0.5
ppp.accelerationMultiplier = 0.9

ppp.aerialIdleDeceleration = 1
Last edited by Emral on Sat Feb 08, 2025 6:33 am, edited 4 times in total.

Valentine
Silver Yoshi Egg
Silver Yoshi Egg
Posts: 2049
Joined: Wed Jan 01, 2014 6:50 am
Flair: evil device
Pronouns: She/They

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Valentine » Sun Jun 07, 2020 2:33 pm

this is truly the savior of smbx community

Melko
Cheep-Cheep
Cheep-Cheep
Posts: 11
Joined: Fri Mar 22, 2019 12:40 am
Flair: Cricket noises!

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Melko » Wed Jun 10, 2020 8:28 am

Simply using this brings me ludicrous amounts of satisfaction. We are on the road to the perfect platforming experience.

Murphmario
2025 Egg Hunter
2025 Egg Hunter
Posts: 2389
Joined: Fri Dec 20, 2013 7:07 pm
Pronouns: he/him

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Murphmario » Thu Jun 11, 2020 1:11 am

Don't know if I'm missing a joke, but I can't run with this enabled.

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

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Emral » Thu Jun 11, 2020 3:39 am

Murphmario wrote:
Thu Jun 11, 2020 1:11 am
Don't know if I'm missing a joke, but I can't run with this enabled.
Strange. I briefly tested all characters before putting this up. I know sliding is a bit weird, but running shouldn't pose an issue.

Murphmario
2025 Egg Hunter
2025 Egg Hunter
Posts: 2389
Joined: Fri Dec 20, 2013 7:07 pm
Pronouns: he/him

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Murphmario » Thu Jun 11, 2020 1:45 pm

Enjl wrote:
Thu Jun 11, 2020 3:39 am
Murphmario wrote:
Thu Jun 11, 2020 1:11 am
Don't know if I'm missing a joke, but I can't run with this enabled.
Strange. I briefly tested all characters before putting this up. I know sliding is a bit weird, but running shouldn't pose an issue.
Actually, just ignore my post. I forgot that I put a code in my Invasion 2 folder that prevents running.

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

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Emral » Thu Jun 11, 2020 1:50 pm

Murphmario wrote:
Thu Jun 11, 2020 1:45 pm
Enjl wrote:
Thu Jun 11, 2020 3:39 am
Murphmario wrote:
Thu Jun 11, 2020 1:11 am
Don't know if I'm missing a joke, but I can't run with this enabled.
Strange. I briefly tested all characters before putting this up. I know sliding is a bit weird, but running shouldn't pose an issue.
Actually, just ignore my post. I forgot that I put a code in my Invasion 2 folder that prevents running.
Ohh, that explains it. Thanks for the follow-up!

FanofSMBX
Ludwig von Koopa
Ludwig von Koopa
Posts: 3878
Joined: Sun Dec 22, 2013 12:01 pm

Re: playerphysicspatch.lua - smbx controls like gunk

Postby FanofSMBX » Thu Jun 11, 2020 3:01 pm

Odd, I've always preferred SMBX's physics to those of SMB3 and SMW. It feels easier to land on small platforms for example.

thedarkcave215
Buster Beetle
Buster Beetle
Posts: 81
Joined: Tue Jun 09, 2020 2:30 pm
Flair: Bubbly drinks are best served cold.

Re: playerphysicspatch.lua - smbx controls like gunk

Postby thedarkcave215 » Thu Jun 25, 2020 2:52 pm

This looks pretty cool, but what level is in the screenshots?!

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

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Lusho » Thu Jun 25, 2020 2:54 pm

Its definitely some dummy test level

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

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Lusho » Sun Jun 28, 2020 3:38 pm

So I found a bug, sliding with this is really slow
Spoiler: show
Image

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

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Emral » Sun Jun 28, 2020 4:41 pm

CJ_RLushi wrote:
Sun Jun 28, 2020 3:38 pm
So I found a bug, sliding with this is really slow
Spoiler: show
Image
Enjl wrote:
Thu Jun 11, 2020 3:39 am
Strange. I briefly tested all characters before putting this up. I know sliding is a bit weird, but running shouldn't pose an issue.
Yup. I'm aware. Haven't really gotten around to putting the one-line fix (disabling it all while sliding) in cause I haven't needed to slide in smbx for like 4 years so it keeps falling off the deep end of my todo list.

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

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Lusho » Sun Jun 28, 2020 5:33 pm

So where could I put the fix?

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

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Emral » Mon Jun 29, 2020 1:16 am

CJ_RLushi wrote:
Sun Jun 28, 2020 5:33 pm
So where could I put the fix?
Just updated the link. Should be good now.

JamesR624
Spiny
Spiny
Posts: 29
Joined: Wed Aug 09, 2017 4:24 pm

Re: playerphysicspatch.lua - smbx controls like gunk

Postby JamesR624 » Wed Jul 29, 2020 3:18 pm

This is awesome but I do wanna mention that it seems to really mess up "slippery physics". Now anything with the slippery property is more like slime. It INCREASES friction with this patch on as opposed to decreasing which is what it's supposed to do.

Yoshi Milkman
Goomba
Goomba
Posts: 1
Joined: Sun Sep 13, 2020 6:40 pm
Flair: Gamer Xtreme

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Yoshi Milkman » Sun Sep 13, 2020 6:55 pm

A fix to this would be greatly appreciated
JamesR624 wrote:
Wed Jul 29, 2020 3:18 pm
This is awesome but I do wanna mention that it seems to really mess up "slippery physics". Now anything with the slippery property is more like slime. It INCREASES friction with this patch on as opposed to decreasing which is what it's supposed to do.
Last edited by Yoshi Milkman on Sun Sep 13, 2020 6:55 pm, edited 1 time in total.

Archived
Birdo
Birdo
Posts: 2166
Joined: Tue Mar 13, 2018 6:15 pm

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Archived » Fri Dec 10, 2021 6:27 pm

Archived
Last edited by Archived on Fri Feb 03, 2023 6:53 pm, edited 1 time in total.

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

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Emral » Fri Dec 10, 2021 6:40 pm

yea and i severely dislike smb3 physics whats wrong with that

Archived
Birdo
Birdo
Posts: 2166
Joined: Tue Mar 13, 2018 6:15 pm

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Archived » Fri Dec 10, 2021 6:47 pm

Archived
Last edited by Archived on Fri Feb 03, 2023 6:53 pm, edited 1 time in total.

Sonya Sanchez
Rinka
Rinka
Posts: 666
Joined: Fri May 10, 2019 3:05 pm
Flair: Robotic
Pronouns: They/Them

Re: playerphysicspatch.lua - smbx controls like gunk

Postby Sonya Sanchez » Sun Dec 12, 2021 8:17 am

Even if it was a meme post and to be not taken seriously... it was a pretty pointless post


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari