Share and discuss custom LunaLua code and content packs for SMBX2.
|
|
|
|
-
Marioman2007
- Lakitu
- Posts: 469
- Joined: Tue Aug 25, 2020 3:19 am
- Flair: Dr. Bones
- Pronouns: He/Him
Postby Marioman2007 » Wed Feb 07, 2024 10:26 pm
mariobrigade2018 wrote: ↑Wed Feb 07, 2024 10:21 pm
-adding the " ,true" statement at the end fixed it.
Nice, for clarification, the "true" at the end makes the registration process convert the library from an ap lib to a cp lib.
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Ripper II
- Posts: 300
- Joined: Wed May 24, 2023 7:00 pm
- Flair: Normie in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Wed Feb 07, 2024 10:54 pm
Marioman2007 wrote: ↑Wed Feb 07, 2024 10:26 pm
mariobrigade2018 wrote: ↑Wed Feb 07, 2024 10:21 pm
-adding the " ,true" statement at the end fixed it.
Nice, for clarification, the "true" at the end makes the registration process convert the library from an ap lib to a cp lib.
I posted this:
awhile ago. I'll send in a world map test I did.
You put this in the world file and load it up from the launcher.
https://drive.google.com/file/d/11NYePz ... sp=sharing
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Ripper II
- Posts: 300
- Joined: Wed May 24, 2023 7:00 pm
- Flair: Normie in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Thu Feb 08, 2024 3:44 am
If Marioman2007 manages to make the custom power up show up on the world map instead of the fire flower, then we may have found our hardcoded power up array workaround.
|
|
|
|
|
|
|
|
|
-
Just_Thomas
- Spike
- Posts: 271
- Joined: Sat Dec 16, 2023 3:32 am
- Pronouns: he/him
Postby Just_Thomas » Thu Feb 08, 2024 4:13 am
mariobrigade2018 wrote: ↑Thu Feb 08, 2024 3:44 am
If Marioman2007 manages to make the custom power up show up on the world map instead of the fire flower, then we may have found our hardcoded power up array workaround.
Yes, but let`s not forget, the codebase is from Emral. This is kind of a teamwork.
This should be tested in detail (takes more than one person) and if we can not find any issue it would be really cool if this simply would be included into the base game with the several fully working powerups (cape, carrot, superball flower at least).
However the reason why it is not happening is most likely the other characters should also work with these items. I can not judge the amount of work behind this at all.
|
|
|
|
|
|
|
|
|
-
Marioman2007
- Lakitu
- Posts: 469
- Joined: Tue Aug 25, 2020 3:19 am
- Flair: Dr. Bones
- Pronouns: He/Him
Postby Marioman2007 » Thu Feb 08, 2024 4:40 am
Just_Thomas wrote: ↑Thu Feb 08, 2024 4:13 am
This should be tested in detail (takes more than one person) and if we can not find any issue it would be really cool if this simply would be included into the base game with the several fully working powerups (cape, carrot, superball flower at least).
Basegame will have a much better system for player/powerup extension.
|
|
|
|
|
|
|
|
|
-
DrMekar
- Eerie
- Posts: 779
- Joined: Sat Apr 08, 2017 7:16 am
- Flair: CUSTOM CHARACTER CREATOR
-
Contact:
Postby DrMekar » Thu Feb 08, 2024 12:10 pm
I almost sucessfully implemented the Cape Feather and Superball Flower through this, though
theres still an issue with the Reserve Box. I got no error notification, though I just had two
instances back to back where I duped a Powerup.
I had an Ice Flower in the Box and a Tannoki in use, trying to use the Ice Flower, made another
Tanooki appear inside the Box and when I collected a Mushroom with the Cape Feather, it made
one appear in the reserve box instead.
Here's all relevant Episode Libaries. The Issue might go back to anotherpowerup, though not calling
it makes the it error.
Code: Select all ---Episode Settings---
local powerupGuard= API.load("powerupGuard");
function onStart()
end
local coyotetime= API.load("coyotetime");
local cp = require("customPowerups")
local ap = require("anotherpowerup")
ap.registerItemTier(957, true)
ap.registerPowerup("ap_superball")
local ShopSystem = require("ShopSystem")
local AnotherCurrency = require("anothercurrency")
local wtp = require("whatsThatPowerup")
extra = require("extraNPCProperties")
twirl = require("midAirTwirl")
---Character Settings---
function onTick()
if player.character == 4 then
for k,v in ipairs(NPC.get(34)) do
v:transform(14)
end
for k,v in ipairs(NPC.get(169)) do
v:transform(264)
end
for k,v in ipairs(NPC.get(292)) do
v:transform(361)
end
end
if player.character == 2 then
for k,v in ipairs(NPC.get(171)) do
v:transform(291)
end
end
end
local aw = require("anotherwalljump")
aw.registerAllPlayersDefault()
This is the Message that pops up when removing the call for "anotherpowerup". Without the file, the Feather was
working fine, but the Superball Flower wasn't working at all.
|
|
|
|
|
|
|
|
|
-
Marioman2007
- Lakitu
- Posts: 469
- Joined: Tue Aug 25, 2020 3:19 am
- Flair: Dr. Bones
- Pronouns: He/Him
Postby Marioman2007 » Thu Feb 08, 2024 12:28 pm
DrMekar wrote: ↑Thu Feb 08, 2024 12:10 pm
Code: Select all ---Episode Settings---
local powerupGuard= API.load("powerupGuard");
function onStart()
end
local coyotetime= API.load("coyotetime");
local cp = require("customPowerups")
local ap = require("anotherpowerup")
ap.registerItemTier(957, true)
ap.registerPowerup("ap_superball")
local ShopSystem = require("ShopSystem")
local AnotherCurrency = require("anothercurrency")
local wtp = require("whatsThatPowerup")
extra = require("extraNPCProperties")
twirl = require("midAirTwirl")
---Character Settings---
function onTick()
if player.character == 4 then
for k,v in ipairs(NPC.get(34)) do
v:transform(14)
end
for k,v in ipairs(NPC.get(169)) do
v:transform(264)
end
for k,v in ipairs(NPC.get(292)) do
v:transform(361)
end
end
if player.character == 2 then
for k,v in ipairs(NPC.get(171)) do
v:transform(291)
end
end
end
local aw = require("anotherwalljump")
aw.registerAllPlayersDefault()
Remove the code that loads anotherpowerup and replace every instance of ap with cp.
So, this code
Code: Select all local ap = require("anotherpowerup")
ap.registerItemTier(957, true)
ap.registerPowerup("ap_superball")
becomes this
Code: Select all cp.registerItemTier(957, true)
cp.registerPowerup("ap_superball")
Also since you're using the cape feather, make sure to change "local ap = require("anotherPowerup")" to "local ap = require("customPowerups")" in the cape feather npc's lua file.
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Ripper II
- Posts: 300
- Joined: Wed May 24, 2023 7:00 pm
- Flair: Normie in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Sat Feb 10, 2024 1:11 pm
Is this compatible with the X2 characters?
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Ripper II
- Posts: 300
- Joined: Wed May 24, 2023 7:00 pm
- Flair: Normie in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Thu Feb 22, 2024 12:35 pm
Has the costume bug been fixed?
|
|
|
|
|
|
|
|
|
-
Just_Thomas
- Spike
- Posts: 271
- Joined: Sat Dec 16, 2023 3:32 am
- Pronouns: he/him
Postby Just_Thomas » Tue Feb 27, 2024 4:17 am
Marioman2007 wrote: ↑Wed Feb 07, 2024 8:09 am
I'll upload a patch for that soon.
The only reason I'm also asking is that I also want to show my genuine interest.
Any news about that? Or other / more important things to do or not possible at the moment?
And I would be really happy if that would still work, because my current SMW-like map with the SMB3 player sheet really doesn't work well.
|
|
|
|
|
|
|
|
|
-
Marioman2007
- Lakitu
- Posts: 469
- Joined: Tue Aug 25, 2020 3:19 am
- Flair: Dr. Bones
- Pronouns: He/Him
Postby Marioman2007 » Tue Feb 27, 2024 6:14 am
Just_Thomas wrote: ↑Tue Feb 27, 2024 4:17 am
The only reason I'm also asking is that I also want to show my genuine interest.
Any news about that? Or other / more important things to do or not possible at the moment?
And I would be really happy if that would still work, because my current SMW-like map with the SMB3 player sheet really doesn't work well.
I'm currently busy with some other stuff. It'll be done when its done.
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Ripper II
- Posts: 300
- Joined: Wed May 24, 2023 7:00 pm
- Flair: Normie in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Sat Mar 02, 2024 12:25 am
Cuz Discord doesn't support permanent links anymore, yo.
|
|
|
|
|
|
|
|
|
-
TheGameyFireBro105
- Eerie
- Posts: 744
- Joined: Thu Jan 09, 2020 6:09 pm
- Flair: Good at remakes
- Pronouns: he/him
Postby TheGameyFireBro105 » Sat Mar 02, 2024 8:49 pm
Why was everyone using discord anyways?
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Ripper II
- Posts: 300
- Joined: Wed May 24, 2023 7:00 pm
- Flair: Normie in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Sun Mar 03, 2024 12:39 am
Cuz it's links WAS permanent, and didn't require a sign-in, like other options.
|
|
|
|
|
|
|
|
|
-
KJPopcorn
- Koopa
- Posts: 17
- Joined: Wed Mar 20, 2024 8:14 pm
- Pronouns: He/Him
Postby KJPopcorn » Mon May 06, 2024 11:50 am
Can you make the Penguin and Frog Suits with this?
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Ripper II
- Posts: 300
- Joined: Wed May 24, 2023 7:00 pm
- Flair: Normie in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Mon May 06, 2024 12:48 pm
KJPopcorn wrote: ↑Mon May 06, 2024 11:50 am
Can you make the Penguin and Frog Suits with this?
Do you have the GFXs for it?
|
|
|
|
|
|
|
|
|
-
KJPopcorn
- Koopa
- Posts: 17
- Joined: Wed Mar 20, 2024 8:14 pm
- Pronouns: He/Him
Postby KJPopcorn » Mon May 06, 2024 5:52 pm
I meant: can you make these with this?
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Ripper II
- Posts: 300
- Joined: Wed May 24, 2023 7:00 pm
- Flair: Normie in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Mon May 06, 2024 6:34 pm
KJPopcorn wrote: ↑Mon May 06, 2024 5:52 pm
I meant: can you make these with this?
I mean, yeah, but you’ll have to code it yourself. And give credit to 38a and whoever made the SMB1 sprites.
|
|
|
|
|
|
|
|
|
-
KJPopcorn
- Koopa
- Posts: 17
- Joined: Wed Mar 20, 2024 8:14 pm
- Pronouns: He/Him
Postby KJPopcorn » Tue May 07, 2024 10:23 am
I mean, yeah, but you’ll have to code it yourself.
How?
|
|
|
|
|
Return to “LunaLua”
Users browsing this forum: Ahrefs [Bot] and 1 guest
|