hello everyone I am trying to do a shooter so I had to do entities but for some reason, even though i did pretty much exactly as the tutorial wich is: http://www.youtube.com/watch?v=E1MGLTdafu0 and the part 8 but it still tells me this:
Error
entities/box.lua:2: attempt to index global 'ents' (a nil value)
Traceback
entities/box.lua:2: in main chunk
[C]:in function 'require'
game.lua:1: in main chunk
[C]: in function 'require'
main.lua:1: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
thats it and here is the .love
entity system error
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: entity system error
You need to add this on top of box.lua for it to work:
EDIT: Also, remember that everything is case-sensitive in Lua. meaning that ents.startup() is NOT the same as ents.Startup()
Code: Select all
require("entities")
Code: Select all
L
L Ö
Ö V
L Ö V E
Ö B E
V E
E Y
Re: entity system error
I am pretty ashamed of this error hahahahah but thank you
Re: entity system error
We all make this error at one pointFatmat927 wrote:I am pretty ashamed of this error hahahahah but thank you
Code: Select all
L
L Ö
Ö V
L Ö V E
Ö B E
V E
E Y
Who is online
Users browsing this forum: Semrush [Bot], YaCy [Bot] and 1 guest