How can I make multiple "anotherpowersups.lua" scripts compatible?

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
Shodax
Fighter Fly
Fighter Fly
Posts: 42
Joined: Sat Feb 05, 2022 2:24 pm
Pronouns: he

How can I make multiple "anotherpowersups.lua" scripts compatible?

Postby Shodax » Sun Oct 16, 2022 1:06 pm

In my excessive ambition to create a smb with a lot of variety of powerups, npcs, levels, worlds etc. use the script "anotherpowerup.lua" and its different scripts from different authors. I had errors at the beginning but after modifying several codes and files I managed to integrate them all and I work, the problem is that when I use different powerups at the same level these are "mixed" look:

Image

I don't know much about the lua but I guess it's that the scripts are not compatible and they don't have instructions to override each other.
here are the scripts you use:

Anotherpowerup by Enjl
viewtopic.php?t=25474
Cape Feather by MrDoubleA
viewtopic.php?t=26620
Cpt. Mono's Powerup Pack
viewtopic.php?t=27675
Thunder Flower by AlanLive2020
viewtopic.php?t=26475
The Ultimate Super Mario Land 1 + 2 NPC Pack de MegaDood 9thCore KBM-Quine lucstar06 Dynamo Inferno MrDoubleA
viewtopic.php?f=101&t=28422
I use this "luna.lua" script as the main one for powerups and other scripts

Code: Select all

local littleDialogue = require("littleDialogue")
local anotherPowerDownLibrary = require("anotherPowerDownLibrary")
local ap = require("anotherpowerup")
local ap_smm2 = require("anotherpowerupSMM2")
if(player.character ~= CHARACTER_WARIO) then
	ap.registerItemTier(968, true)
	ap.registerItemTier(969, true)
	ap.registerPowerup("ap_thunderflower")
	ap_smm2.registerItemTier(800, true)
	ap_smm2.registerPowerup("ap_acorn")
	ap_smm2.registerItemTier(801, true)
	ap_smm2.registerPowerup("ap_penguinsuit")
	ap.registerItemTier(892, true)
	ap.registerPowerup("ap_carrot")
	ap.registerItemTier(893, true)
	ap.registerPowerup("ap_superball")
end

local aw = require("anotherwalljump")
aw.registerAllPlayersDefault()
local warpTransition = require("warpTransition")
twirl = require("Twirl")

SaveData.myBool = SaveData.myBool or false

SaveData.my2Bool = SaveData.my2Bool or false

King Mario
Hoopster
Hoopster
Posts: 121
Joined: Sun Nov 19, 2017 2:13 pm
Flair: Jesus Christ is Lord!
Pronouns: he/him
Contact:

Re: How can I make multiple "anotherpowersups.lua" scripts compatible?

Postby King Mario » Mon Nov 20, 2023 1:14 pm

Doesn't look incompatible to me... The powerups look like they work as intended. It's just the graphics that look weird. Maybe a tweaking of the graphics would be possible?

Added in 5 hours 48 minutes 22 seconds:
Wait a freaking minute! I just looked at your script and it said something about"CHARACTER_WARIO". But you were playing as Mario, not Wario. That could be the issue. Maybe change that part of the script to "CHARACTER_MARIO" and see if that works.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari