[NPC Pack] FFB.Lua
Posted: Thu Jun 27, 2019 10:43 am
Code: Select all
0t - Warning: Improperly calling NPC.get before onStart
stack traceback:
scripts/base/engine/ffi_utils.lua:28: in function 'get'
worlds/Maker Mario World/AI/FFB.lua:9: in function 'func'
...Beta 4/scripts/base/engine/require.lua:150: in function 'require'
worlds/test/npc-861.lua:4: in function 'func'
...Beta 4/scripts/base/engine/require.lua:150: in function 'customNpcRequire'
scripts/base/npcManager.lua:239: in function 'loadNpcCode'
scripts/base/game/lunabase.lua:196: in function 'codeFile'
main.lua:732: in function 'loadCodeFile'
main.lua:875: in function <main.lua:782>
[C]: in function '__xpcall'
main.lua:782: in function <main.lua:781>
I will look into this over the coming week. Might be a good way to have a friend teach me how to make NPCs properly.JamesR624 wrote: ↑Sun Jul 12, 2020 3:20 pmFound a MAJOR bug.
Upon exiting of game, the log produces this warning
Code: Select all
0t - Warning: Improperly calling NPC.get before onStart stack traceback: scripts/base/engine/ffi_utils.lua:28: in function 'get' worlds/Maker Mario World/AI/FFB.lua:9: in function 'func' ...Beta 4/scripts/base/engine/require.lua:150: in function 'require' worlds/test/npc-861.lua:4: in function 'func' ...Beta 4/scripts/base/engine/require.lua:150: in function 'customNpcRequire' scripts/base/npcManager.lua:239: in function 'loadNpcCode' scripts/base/game/lunabase.lua:196: in function 'codeFile' main.lua:732: in function 'loadCodeFile' main.lua:875: in function <main.lua:782> [C]: in function '__xpcall' main.lua:782: in function <main.lua:781>
This particular warning, saying "Improperly calling NPC.get before onStart" happens if NPC.get is called onStart. Just like all other warnings, it only appears in the editor and doesn't have a bearing on the functionality of the lua script. However, what it does point out is something that's either deprecated or code that may explain why certain things don't work as the writer of the code intended.MECHDRAGON777 wrote: ↑Mon Jul 13, 2020 5:56 pmI will look into this over the coming week. Might be a good way to have a friend teach me how to make NPCs properly.
Edit: Since this exact NPC was used in my MaGLX3 entry, I would recommend waiting for that only in that I believe the team for the episode is fixing stuff as well. If they have fixed it, then it might be better to release that as an update when it is time.