Custom NPC Problems.

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
DrMekar
Eerie
Eerie
Posts: 759
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Contact:

Custom NPC Problems.

Postby DrMekar » Thu Aug 29, 2019 5:32 pm

Well, I finally decided to try doing an own Custom NPC. When I tried loading it for the first time thought just to
test the Sprite, somethink weird happend.

Image
Image

Here's my Enemy Configuaration so far and the Sprite with the Sizes shown.

Image

In the Editor though it only shows the Dummy PNG.

Image

And this happens In-Game.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Custom NPC Problems.

Postby Enjl » Thu Aug 29, 2019 6:55 pm

1) Did you hit F8 in the editor to refresh custom assets?
2) Ini files don't alter ingame appearance, only in-editor. The npc-n.lua file usually configures npc config defaults.

DrMekar
Eerie
Eerie
Posts: 759
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Contact:

Re: Custom NPC Problems.

Postby DrMekar » Fri Aug 30, 2019 1:41 am

Enjl wrote:
Thu Aug 29, 2019 6:55 pm
1) Did you hit F8 in the editor to refresh custom assets?
2) Ini files don't alter ingame appearance, only in-editor. The npc-n.lua file usually configures npc config defaults.
1) Yeah. That and also the Green Arrow I usually use.
2) Okay. So I technically don't need to worry about it yet in terms of Gameplay. Thought the Image should've been loaded in the Editor, which concerns me.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Custom NPC Problems.

Postby Enjl » Fri Aug 30, 2019 6:03 am

Please show your episode and level folders then.

DrMekar
Eerie
Eerie
Posts: 759
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Contact:

Re: Custom NPC Problems.

Postby DrMekar » Fri Aug 30, 2019 8:52 am

Enjl wrote:
Fri Aug 30, 2019 6:03 am
Please show your episode and level folders then.
Image
The Folder in "worlds". The NPC Level is Test
Image
Inside the "Test" Folder

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Custom NPC Problems.

Postby Enjl » Fri Aug 30, 2019 9:25 am

DrMekar wrote:
Fri Aug 30, 2019 8:52 am
Enjl wrote:
Fri Aug 30, 2019 6:03 am
Please show your episode and level folders then.
Image
The Folder in "worlds". The NPC Level is Test
Image
Inside the "Test" Folder
If your folder is pointing to npc-777, why does the ini you shared earlier look for the image of npc-901?

DrMekar
Eerie
Eerie
Posts: 759
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Contact:

Re: Custom NPC Problems.

Postby DrMekar » Fri Aug 30, 2019 9:30 am

Enjl wrote:
Fri Aug 30, 2019 9:25 am
DrMekar wrote:
Fri Aug 30, 2019 8:52 am
Enjl wrote:
Fri Aug 30, 2019 6:03 am
Please show your episode and level folders then.
Image
The Folder in "worlds". The NPC Level is Test
Image
Inside the "Test" Folder
If your folder is pointing to npc-777, why does the ini you shared earlier look for the image of npc-901?
Oh, that was an earlier oversight, but I found the problem. It didn't worked because the ini was still open.
Saved, but open.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Custom NPC Problems.

Postby Enjl » Fri Aug 30, 2019 9:31 am

That makes no sense, but if it worked for you, then that's good I think?


Return to “LunaLua Help”

Who is online

Users browsing this forum: cato and 2 guests