[NPC Pack] SMW Pokey

Share and discuss custom LunaLua code and content packs for SMBX2.
Chilly14
Snifit
Snifit
Posts: 234
Joined: Thu Jul 18, 2019 10:28 pm
Flair: wash your hands and stay at home
Pronouns: he/him

Re: [NPC Pack] SMW Pokey

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
Cute Yoshi Egg
Posts: 9722
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: [NPC Pack] SMW Pokey

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.

TheGameyFireBro105
Eerie
Eerie
Posts: 742
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: [NPC Pack] SMW Pokey

Postby TheGameyFireBro105 » Thu Mar 12, 2020 4:31 pm

Why not do Snow Boiz, too?

Hammerless Penguin
Snifit
Snifit
Posts: 203
Joined: Sat Sep 22, 2018 6:17 am
Flair: Just kicking that kirby to the curb!
Contact:

Re: [NPC Pack] SMW Pokey

Postby Hammerless Penguin » Sat Mar 21, 2020 4:25 am

TheGameyFireBro105 wrote:
Thu Mar 12, 2020 4:31 pm
Why not do Snow Boiz, too?
You can simply find a sprite sheet for the snow pokey npc and reskin it over the npc already made....

TheGameyFireBro105
Eerie
Eerie
Posts: 742
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: [NPC Pack] SMW Pokey

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

Image

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
Bit
Posts: 73
Joined: Thu Jan 09, 2014 3:14 pm

Re: [NPC Pack] SMW Pokey

Postby ShadowLabrys101 » Thu Oct 08, 2020 12:30 pm

Uhhh...

Image

TheGameyFireBro105
Eerie
Eerie
Posts: 742
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: [NPC Pack] SMW Pokey

Postby TheGameyFireBro105 » Fri Nov 27, 2020 2:58 pm

So this thing's busted.

ShadowLabrys101
Bit
Bit
Posts: 73
Joined: Thu Jan 09, 2014 3:14 pm

Re: [NPC Pack] SMW Pokey

Postby ShadowLabrys101 » Fri Nov 27, 2020 4:19 pm

TheGameyFireBro105 wrote:
Fri Nov 27, 2020 2:58 pm
So this thing's busted.
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;

TheGameyFireBro105
Eerie
Eerie
Posts: 742
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: [NPC Pack] SMW Pokey

Postby TheGameyFireBro105 » Fri Nov 27, 2020 6:35 pm

Image

Image

ShadowLabrys101
Bit
Bit
Posts: 73
Joined: Thu Jan 09, 2014 3:14 pm

Re: [NPC Pack] SMW Pokey

Postby ShadowLabrys101 » Sun Nov 29, 2020 1:40 pm

Ok, that didn't work. Try adding this to the onNPCHarm part.

Code: Select all

local data = v.data._basegame

TheGameyFireBro105
Eerie
Eerie
Posts: 742
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: [NPC Pack] SMW Pokey

Postby TheGameyFireBro105 » Sun Nov 29, 2020 5:36 pm

Image

Image

ShadowLabrys101
Bit
Bit
Posts: 73
Joined: Thu Jan 09, 2014 3:14 pm

Re: [NPC Pack] SMW Pokey

Postby ShadowLabrys101 » Tue Dec 01, 2020 1:07 pm

TheGameyFireBro105 wrote:
Sun Nov 29, 2020 5:36 pm
Image

Image
Perhaps you're doing something wrong. You can also ask for help at the Discord.

TheGameyFireBro105
Eerie
Eerie
Posts: 742
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: [NPC Pack] SMW Pokey

Postby TheGameyFireBro105 » Tue Feb 02, 2021 11:09 am

Any update on the stability?

Image
Mem is nil

I tried fixing it again, and the first issue's gone, but mem nil is still an issue.

TheGameyFireBro105
Eerie
Eerie
Posts: 742
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: [NPC Pack] SMW Pokey

Postby TheGameyFireBro105 » Tue Feb 02, 2021 12:14 pm

The issue just won't go away!
Image

If it helps, here's my modified version of the files that I tried fixing myself, but to no avail:
https://www.mediafire.com/file/fqrkvjdw ... 9.lua/file
https://www.mediafire.com/file/qzyc9u1r ... 0.lua/file

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

Re: [NPC Pack] SMW Pokey

Postby Emral » Tue Feb 02, 2021 1:02 pm

TheGameyFireBro105 wrote:
Tue Feb 02, 2021 12:19 pm
The issue just won't go away!
Image

If it helps, here's my modified version of the files that I tried fixing myself, but to no avail:
https://www.mediafire.com/file/fqrkvjdw ... 9.lua/file
https://www.mediafire.com/file/qzyc9u1r ... 0.lua/file
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
Eerie
Posts: 742
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: [NPC Pack] SMW Pokey

Postby TheGameyFireBro105 » Tue Feb 02, 2021 1:17 pm

Enjl wrote:
Tue Feb 02, 2021 1:02 pm
TheGameyFireBro105 wrote:
Tue Feb 02, 2021 12:19 pm
The issue just won't go away!
Image

If it helps, here's my modified version of the files that I tried fixing myself, but to no avail:
https://www.mediafire.com/file/fqrkvjdw ... 9.lua/file
https://www.mediafire.com/file/qzyc9u1r ... 0.lua/file
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?
Spoiler: show
local data = v.data.;
do i8 delete it?

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

Re: [NPC Pack] SMW Pokey

Postby Emral » Tue Feb 02, 2021 1:49 pm

The dot at the end should not be there.

TheGameyFireBro105
Eerie
Eerie
Posts: 742
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: [NPC Pack] SMW Pokey

Postby TheGameyFireBro105 » Tue Feb 02, 2021 2:27 pm

Image

What is this then?

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

Re: [NPC Pack] SMW Pokey

Postby Emral » Tue Feb 02, 2021 4:09 pm

TheGameyFireBro105 wrote:
Tue Feb 02, 2021 2:27 pm
Image

What is this then?
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
Goomba
Posts: 2
Joined: Tue Feb 02, 2021 4:37 pm
Pronouns: he

Re: [NPC Pack] bowser jr

Postby marioiscool » Tue Feb 02, 2021 4:45 pm

can you guys plese add bowser jr as a boss npc.


Return to “LunaLua”

Who is online

Users browsing this forum: FutureNyanCat and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari