Page 3 of 3

Re: FEZ. Frankenstein Entity Zystem.

Posted: Mon Jul 09, 2012 7:46 am
by Robin
It looks more like you forgot to call an initialisation function. If you upload your .love, people are able to help you.l

Re: FEZ. Frankenstein Entity Zystem.

Posted: Mon Jul 09, 2012 7:52 am
by kexisse
The FEZ source with the example isn't usable as-is. I moved the "src" directory into the "example" directory, and made it into a .love which I've attached.

I find it hard to have confidence in libraries that aren't runnable as soon as you download them.

Re: FEZ. Frankenstein Entity Zystem.

Posted: Mon Jul 09, 2012 8:10 am
by coffee
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
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.

Re: FEZ. Frankenstein Entity Zystem.

Posted: Mon Jul 09, 2012 9:08 am
by Robin
Ah, sorry.

Re: FEZ. Frankenstein Entity Zystem.

Posted: Mon Jul 09, 2012 3:26 pm
by ljdp
I've been updating FEZ alongside a game I'm developing. I haven't touched the example in a while so it is likely the example is broken.
That said, if you're using FEZ in your own project you should place the FEZ folder inside your project src folder and require 'FEZ.src'.

I'll take a look at the example this week.

Edit:
A quick glance at the example and it seems

Code: Select all

package.path = package.path .. ";../?/init.lua;../?.lua"
Is the culprit. package.path doesn't work when running from a .love file.

Re: FEZ. Frankenstein Entity Zystem.

Posted: Tue Jul 10, 2012 11:31 pm
by kexisse
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'

Re: FEZ. Frankenstein Entity Zystem.

Posted: Wed Jul 11, 2012 12:28 am
by ljdp
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'
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.