Share and discuss custom LunaLua code and content packs for SMBX2.
|
|
|
|
-
Chilly14
- Snifit
- Posts: 235
- Joined: Thu Jul 18, 2019 10:28 pm
- Flair: wash your hands and stay at home
- Pronouns: he/him
Postby Chilly14 » Sat Mar 07, 2020 10:31 am
Enjl wrote: ↑Sat Mar 07, 2020 4:07 am
Chilly14 wrote: ↑Fri Mar 06, 2020 9:22 pm
Don't forget v.data._basegame.
What do you mean?
You can't use it in your NPC packs anymore.
|
|
|
|
|
|
|
|
|
-
Emral
- Cute Yoshi Egg
- Posts: 9730
- Joined: Mon Jan 20, 2014 12:58 pm
- Flair: Phoenix
Postby Emral » Sat Mar 07, 2020 11:02 am
Chilly14 wrote: ↑Sat Mar 07, 2020 10:31 am
Enjl wrote: ↑Sat Mar 07, 2020 4:07 am
Chilly14 wrote: ↑Fri Mar 06, 2020 9:22 pm
Don't forget v.data._basegame.
What do you mean?
You can't use it in your NPC packs anymore.
You were never supposed to use it in NPC packs. You're supposed to use v.data. Looks like I typo'd ._basegame at the end out of habit in this case. Removing it should be simple enough. Though I don't know what would've changed that explicitly makes it so that subtable cannot be used for npc packs anymore at all.
|
|
|
|
|
|
|
|
|
-
Hammerless Penguin
- Snifit
- Posts: 203
- Joined: Sat Sep 22, 2018 6:17 am
- Flair: Just kicking that kirby to the curb!
-
Contact:
Postby Hammerless Penguin » Sat Mar 21, 2020 4:25 am
You can simply find a sprite sheet for the snow pokey npc and reskin it over the npc already made....
|
|
|
|
|
|
|
|
|
-
TheGameyFireBro105
- Eerie
- Posts: 745
- Joined: Thu Jan 09, 2020 6:09 pm
- Flair: Good at remakes
- Pronouns: he/him
Postby TheGameyFireBro105 » Mon May 11, 2020 1:02 pm
Maybe if I learn about in what way it currently does not work well with beta 4.
Here's an example of it not cooperating with b4
It's upside-down (segment-wise) and graphically inverted (aka it looks like an upside-down pokey with head segments where body segments should be and vice-versa)
|
|
|
|
|
|
|
|
|
-
ShadowLabrys101
- Bit
- Posts: 73
- Joined: Thu Jan 09, 2014 3:14 pm
Postby ShadowLabrys101 » Fri Nov 27, 2020 4:19 pm
However, there's this fix. Put this on the Pokey's lua.
Code: Select all function pokeySMW.onNPCHarm(eventObj, v, killReason, culprit)
-- Ignore if wrong NPC or valid kill method
if v.id ~= npcID then return; end;
if killReason == HARM_TYPE_SPINJUMP then
eventObj.cancelled = true
return
end
local data = v.data._basegame
if data.adjacentAbove and data.adjacentAbove.isValid then
data.adjacentAbove.data._basegame.adjacentBelow = nil
end
end;
|
|
|
|
|
|
|
|
|
-
ShadowLabrys101
- Bit
- Posts: 73
- Joined: Thu Jan 09, 2014 3:14 pm
Postby ShadowLabrys101 » Sun Nov 29, 2020 1:40 pm
Ok, that didn't work. Try adding this to the onNPCHarm part.
|
|
|
|
|
|
|
|
|
-
ShadowLabrys101
- Bit
- Posts: 73
- Joined: Thu Jan 09, 2014 3:14 pm
Postby ShadowLabrys101 » Tue Dec 01, 2020 1:07 pm
Perhaps you're doing something wrong. You can also ask for help at the Discord.
|
|
|
|
|
|
|
|
|
-
TheGameyFireBro105
- Eerie
- Posts: 745
- Joined: Thu Jan 09, 2020 6:09 pm
- Flair: Good at remakes
- Pronouns: he/him
Postby TheGameyFireBro105 » Tue Feb 02, 2021 11:09 am
Any update on the stability?
Mem is nil
I tried fixing it again, and the first issue's gone, but mem nil is still an issue.
|
|
|
|
|
|
|
|
|
-
Emral
- Cute Yoshi Egg
- Posts: 9730
- Joined: Mon Jan 20, 2014 12:58 pm
- Flair: Phoenix
Postby Emral » Tue Feb 02, 2021 1:02 pm
This error is entirely on your end and not present in the download in the first post. In line 46 you have invalid syntax.
|
|
|
|
|
|
|
|
|
-
TheGameyFireBro105
- Eerie
- Posts: 745
- Joined: Thu Jan 09, 2020 6:09 pm
- Flair: Good at remakes
- Pronouns: he/him
Postby TheGameyFireBro105 » Tue Feb 02, 2021 1:17 pm
Enjl wrote: ↑Tue Feb 02, 2021 1:02 pm
This error is entirely on your end and not present in the download in the first post. In line 46 you have invalid syntax.
this?
do i8 delete it?
|
|
|
|
|
|
|
|
|
-
Emral
- Cute Yoshi Egg
- Posts: 9730
- Joined: Mon Jan 20, 2014 12:58 pm
- Flair: Phoenix
Postby Emral » Tue Feb 02, 2021 1:49 pm
The dot at the end should not be there.
|
|
|
|
|
|
|
|
|
-
Emral
- Cute Yoshi Egg
- Posts: 9730
- Joined: Mon Jan 20, 2014 12:58 pm
- Flair: Phoenix
Postby Emral » Tue Feb 02, 2021 4:09 pm
You making more syntax errors. It's another instance where you have too many dots. If you encounter another error message after this, please actually like, read it. This is stuff that's glaringly obvious if you take a single look, even if you aren't familiar with lua. You are the one who edited these lines and introduced these mistakes, so it shouldn't be too hard for you to take a quick look at all the surrounding lines and see the inconsistency. You can see the line you need to edit this time in the error message. (The previous error message also showed which line was throwing the error, so by analyzing my previous response it should be fairly easy to derive where you can read the line in the error).
|
|
|
|
|
|
|
|
|
-
marioiscool
- Goomba
- Posts: 3
- Joined: Tue Feb 02, 2021 4:37 pm
- Pronouns: he
Postby marioiscool » Tue Feb 02, 2021 4:45 pm
can you guys plese add bowser jr as a boss npc.
|
|
|
|
|
Return to “LunaLua”
|