FEZ. Frankenstein Entity Zystem.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: FEZ. Frankenstein Entity Zystem.
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.
Re: FEZ. Frankenstein Entity Zystem.
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.
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 173 times
Re: FEZ. Frankenstein Entity Zystem.
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
Re: FEZ. Frankenstein Entity Zystem.
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
Is the culprit. package.path doesn't work when running from a .love file.
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"
Re: FEZ. Frankenstein Entity Zystem.
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.
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.
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'
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 5 guests