Page 1 of 1

animx crashes when loading .xml files (specifically ones from FNF)

Posted: Mon Feb 24, 2025 7:01 pm
by Lsupergame
Hello. First time posting here :D Ive been learning love2D for about 3 months, so a couple of days ago tought of trying to recreate Friday Night Funkin' in Love2D.
I've gotten some of the basics down, but i cant seem to get the sprites to play.
I've tried both anim8 and animx, but both dont work; anim8 cant play the sprites correctly, and animx just straight up crashes.
Idk how to go about this, does anyone have a solution, or an explanation of why the .xml don't work with animx?
Also any comments about how i can just generally make the game better are appreciated.


Love 2D error with animx:
Error

libraries/animx/init.lua:359: attempt to index local 'frameNo' (a nil value)


Traceback

[love "callbacks.lua"]:228: in function 'handler'
libraries/animx/init.lua:359: in function 'newActorXML'
libraries/animx/init.lua:268: in function 'newActor'
main.lua:49: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
[C]: in function 'xpcall'

Re: animx crashes when loading .xml files (specifically ones from FNF)

Posted: Sat Mar 08, 2025 3:16 am
by togFox
It looks like something is wrong with your png or xml file. It's looking for a frame that doesn't exist or not described.