Page 1 of 1

Error that says I need a library I deleted along with the require code

Posted: Fri Jul 26, 2024 8:54 pm
by ThatBoiNavy
I am switching from the library windfield to breezefield and the error says:

Error
main.lua:5: module "libraries/windfield' not found:
no field package.preloadI'libraries/windfield'] no libraries/windfield' in LOVE game directories. no file 'libraries/windfield' in LOVE paths. no file "/libraries/windfield.lua'
no file 'Vusr/local/share/luajit-2.1/libraries/windfield.lua' no file 'Yusr/local/share/lua/5.1/libraries/windfield.lua' no file '/usr/local/share/lua/5.1/libraries/windfield/init.lua
no file '/libraries/windfield.so'
no file '/usr/local/lib/lua/5.1/libraries/windfield.so' no file 'Yusr/local/lib/lua/5.1/loadall.so'
Traceback
[love "callbacks.lua"]:228: in function 'handler'
IC]: in function 'require' main.lua: 5: in function "load'
[love "callbacks.lua"]:136: in function <[love "callbacks.lua"]:135>
[C]: in function 'xpcall'
IC]: in function 'xpcall'
Press CtrI+C or tap to copy this error

Im really not sure why as there is nothing in ny code anymore relates to windfield.

Re: Error that says I need a library I deleted along with the require code

Posted: Fri Jul 26, 2024 9:14 pm
by slime
The error says line 5 of your main.lua is trying to load windfield.

Re: Error that says I need a library I deleted along with the require code

Posted: Sat Jul 27, 2024 2:49 am
by ThatBoiNavy
slime wrote: Fri Jul 26, 2024 9:14 pm The error says line 5 of your main.lua is trying to load windfield.
My line 5 is -- Declare open source code above this line /\

Re: Error that says I need a library I deleted along with the require code

Posted: Sat Jul 27, 2024 3:55 am
by slime
It sounds like you didn't save your file, maybe? Or you're running a different main.lua than you're editing?

Re: Error that says I need a library I deleted along with the require code

Posted: Mon Jul 29, 2024 10:08 pm
by ThatBoiNavy
slime wrote: Sat Jul 27, 2024 3:55 am It sounds like you didn't save your file, maybe? Or you're running a different main.lua than you're editing?
This worked but now im have the opposite issue... I added a new file and hooked it up to the code and put it in the correct spot. I have saved several times but no luck.

Re: Error that says I need a library I deleted along with the require code

Posted: Wed Jul 31, 2024 10:16 pm
by dpkgluci
can you post your main.lua?