I type this code in, and my program stops working with a bunch of errors with messages such as "push not found", "no file push in love paths", etc. How do I fix this?
So to fix your error, either make sure a file "push" or "push.lua" is present in the search path, or change the path to include the location of the file.
papainoel14 wrote: ↑Sun Mar 22, 2020 10:46 pm
he was probably importing a library.
Can you tell what the push is for?
I recommend taking a look at the libraries he is using in the project.
I was going off the assumption that 'push' is a default package that is usable. The tutorial said nothing about "installing the push library" so I was assuming that it was there by default. Do I have to install push, because it seems as many games uses the push library, and none of them had to import it manually.
papainoel14 wrote: ↑Sun Mar 22, 2020 10:46 pm
he was probably importing a library.
Can you tell what the push is for?
I recommend taking a look at the libraries he is using in the project.
I was going off the assumption that 'push' is a default package that is usable. The tutorial said nothing about "installing the push library" so I was assuming that it was there by default. Do I have to install push, because it seems as many games uses the push library, and none of them had to import it manually.
What CS50 course are we talking about exactly?
And no, there are no default packages included with löve that aren't the modules you can find on the wiki (utf-8, socket and (lua-)enet notwithstanding); everything else is a library you need to include.
And no, many games also had to import it manually.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
papainoel14 wrote: ↑Sun Mar 22, 2020 10:46 pm
he was probably importing a library.
Can you tell what the push is for?
I recommend taking a look at the libraries he is using in the project.
I was going off the assumption that 'push' is a default package that is usable. The tutorial said nothing about "installing the push library" so I was assuming that it was there by default. Do I have to install push, because it seems as many games uses the push library, and none of them had to import it manually.
What CS50 course are we talking about exactly?
And no, there are no default packages included with löve that aren't the modules you can find on the wiki (utf-8, socket and (lua-)enet notwithstanding); everything else is a library you need to include.
And no, many games also had to import it manually.
This course: https://www.youtube.com/watch?v=GfwpRU0cT10
(if your interested start watching at 22:15)
Anyways, thanks for the explaination. It all makes sense now. I have to download the modules before using the 'require' command. Thanks for your help! I will tell you if anything goes wrong.