Search found 8 matches

by redhood56_
Thu Jun 20, 2013 1:42 pm
Forum: Support and Development
Topic: [SOLVED]Trouble running lua files.
Replies: 16
Views: 6820

Re: Trouble running lua files.

It is now working! Thanks sooo much! :)
by redhood56_
Wed Jun 19, 2013 11:12 pm
Forum: Support and Development
Topic: [SOLVED]Trouble running lua files.
Replies: 16
Views: 6820

Re: Trouble running lua files.

*facepalm* how did I forget that! But I have another problem, I got a new error which says "entities.lua:15: File entitesbase.lua does not exist" now I added a / to the line return love.filesystem.load( ents.objpath .. name .. "/.lua" )() but that still gets me the same error exc...
by redhood56_
Wed Jun 19, 2013 8:43 pm
Forum: Support and Development
Topic: [SOLVED]Trouble running lua files.
Replies: 16
Views: 6820

Re: Trouble running lua files.

We're getting somewhere. This means you're missing a register = {} above that line. (Either that, or you made a typo somewhere.) In Lua, names point to nil until you bind them to some other value. With the line register = {} you bind the name "register" to a new table value. So when I did...
by redhood56_
Tue Jun 18, 2013 1:10 pm
Forum: Support and Development
Topic: [SOLVED]Trouble running lua files.
Replies: 16
Views: 6820

Re: Trouble running lua files.

love.filesystem.load works differently than require, mainly in these three ways: The argument it gets is a file path, not a module name. (So "dir/mod.lua" instead of "dir.mod".) It doesn't "cache" like require does. With require, if you try to load the same thing twice...
by redhood56_
Mon Jun 17, 2013 11:00 pm
Forum: Support and Development
Topic: [SOLVED]Trouble running lua files.
Replies: 16
Views: 6820

Re: Trouble running lua files.

Here is the source code( I hope I did this right) @MadByte, the tutorial seemed simple, just changing the screen t different colors, and getting images to move across the screen, etc. If there are any other better resources for lua and love2d, could you please point me toward them. EDIT: It seemed l...
by redhood56_
Mon Jun 17, 2013 9:07 pm
Forum: Support and Development
Topic: [SOLVED]Trouble running lua files.
Replies: 16
Views: 6820

Re: Trouble running lua files.

Ok I did that,which helped, but got me a new error(lol).The error is this https://love2d.org/forums/download/file.php?mode=view&id=23053. Earlier in the tutorial we created multiple falling boxes on the screen. I think the error has something to do with this line of code register["box"...
by redhood56_
Mon Jun 17, 2013 8:19 pm
Forum: Support and Development
Topic: [SOLVED]Trouble running lua files.
Replies: 16
Views: 6820

Re: Trouble running lua files.

Well, you're probably not packaging his version right. In any case, the error is because you're using the wrong syntax for require (he is as well, of course). Instead of require("some/file.lua") it should be require("some.file"). oh so you mean like this? require("entities....
by redhood56_
Mon Jun 17, 2013 2:30 pm
Forum: Support and Development
Topic: [SOLVED]Trouble running lua files.
Replies: 16
Views: 6820

[SOLVED]Trouble running lua files.

Hello! Now I know there was a post very similar to this a couple months ago, but it didn't fix my problem. So I am using Goature's tutorial( http://www.youtube.com/watch?v=r0wmvsOI5bw <this part). Okay, since I understand that the code is dated, I downloaded it to see if I missed anything(I missed a...