FEZ. Frankenstein Entity Zystem.

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: FEZ. Frankenstein Entity Zystem.

Post 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
Help us help you: attach a .love.
User avatar
kexisse
Citizen
Posts: 56
Joined: Wed Jun 13, 2012 2:52 pm

Re: FEZ. Frankenstein Entity Zystem.

Post 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.
Attachments
fez.love
FEZ example code with the FEZ lib moved inside the example folder to be able to run it.
(29.25 KiB) Downloaded 155 times
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: FEZ. Frankenstein Entity Zystem.

Post 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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: FEZ. Frankenstein Entity Zystem.

Post by Robin »

Ah, sorry.
Help us help you: attach a .love.
User avatar
ljdp
Party member
Posts: 209
Joined: Sat Jan 03, 2009 1:04 pm
Contact:

Re: FEZ. Frankenstein Entity Zystem.

Post 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.
User avatar
kexisse
Citizen
Posts: 56
Joined: Wed Jun 13, 2012 2:52 pm

Re: FEZ. Frankenstein Entity Zystem.

Post 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'
User avatar
ljdp
Party member
Posts: 209
Joined: Sat Jan 03, 2009 1:04 pm
Contact:

Re: FEZ. Frankenstein Entity Zystem.

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 162 guests