Re: FEZ. Frankenstein Entity Zystem.
Posted: Mon Jul 09, 2012 7:46 am
It looks more like you forgot to call an initialisation function. If you upload your .love, people are able to help you.l
I was talking about the git FEZ file itself (with his own example) not of some custom thing I made. Kexisse was doing/using the same example it seems.Robin wrote:It looks more like you forgot to call an initialisation function. If you upload your .love, people are able to help you.l
Code: Select all
package.path = package.path .. ";../?/init.lua;../?.lua"
Code: Select all
~/Downloads/perky-FEZ-5653242/example $ /Applications/love.app/Contents/MacOS/love .
Error: fez/EntityManager.lua:102: Entity (0.034:NIL) does not exist.
stack traceback:
[C]: in function 'assert'
fez/EntityManager.lua:102: in function 'assert_entity_exists'
fez/EntityManager.lua:122: in function 'getComponentFromEntity'
fez/ComponentCache.lua:14: in function 'transform'
controllers/InputController.lua:59: in function 'updateEntity'
fez/ControllerManager.lua:178: in function 'updateEntities'
fez/ControllerManager.lua:173: in function 'update'
main.lua:37: in function 'update'
[string "boot.lua"]:407: in function <[string "boot.lua"]:373>
[C]: in function 'xpcall'
I've not had time to look at it, but in all likelihood one of the past commits has changed the API such that the example is no longer compatible. Do note that this is essentially beta, I host my projects on github so anyone can pull them apart and incorporate them into their own projects. That said I may get rid of the current example and release my current game as that REALLY shows how to use FEZ, its a real time strategy game so there's plenty of code.kexisse wrote:Sorry to keep going on about this, but I still can't get the example code to work.
I'm trying to run it from the command line, not from inside a .love file.
I am trying to run the example code from your GitHub. I moved the FEZ/ dir to example/fez/ and tried to run the example.
Code: Select all
~/Downloads/perky-FEZ-5653242/example $ /Applications/love.app/Contents/MacOS/love . Error: fez/EntityManager.lua:102: Entity (0.034:NIL) does not exist. stack traceback: [C]: in function 'assert' fez/EntityManager.lua:102: in function 'assert_entity_exists' fez/EntityManager.lua:122: in function 'getComponentFromEntity' fez/ComponentCache.lua:14: in function 'transform' controllers/InputController.lua:59: in function 'updateEntity' fez/ControllerManager.lua:178: in function 'updateEntities' fez/ControllerManager.lua:173: in function 'update' main.lua:37: in function 'update' [string "boot.lua"]:407: in function <[string "boot.lua"]:373> [C]: in function 'xpcall'