Problem with the .exe created for my game [SOLVED]
Posted: Mon Sep 27, 2021 2:09 pm
Hello,
So I finished a game, and I created an .exe following the wiki and the following YouTube tutorial (which is in german)
https://www.youtube.com/watch?v=wAs1czKT87M
In my Project, I have a file "extendedLoader.lua" which is in the subfolder "luas" relative to my "main.lua". The main.lua has a require for "luas/extendedloader" included. The game runs just fine when I draw the game folder over the love.exe, but as soon as the game has its own .exe, I get the error:
main.lua:6: module "luas/extendedloader" not found:
no file "luas/extendedloader.lua" in LOVE game directories.
no extension "luas/extendedloader" in LOVE paths.
I went back and renamed the .love file that I used back into a .zip file so that I could re-check the content. The file extendedLoader.lua is in the folder luas where it belongs. If it is relevant, I'm still using löve version 9.0 to make the game run on an old Notebook, might be updating it to a newer version, but the process of creating an .exe should work the same with all löve versions. I also included all .dlls that came with löve into the same folder as my .exe. Also, I'm noticing that in the error output my file is called "extendedloader" with a small "l" instead of the capital "L" in the actual filename, I don't know why löve does this or if it makes a difference.
As for now, I don't know how to solve this problem or where it is coming from. So I'm asking you for advice.
So I finished a game, and I created an .exe following the wiki and the following YouTube tutorial (which is in german)
https://www.youtube.com/watch?v=wAs1czKT87M
In my Project, I have a file "extendedLoader.lua" which is in the subfolder "luas" relative to my "main.lua". The main.lua has a require for "luas/extendedloader" included. The game runs just fine when I draw the game folder over the love.exe, but as soon as the game has its own .exe, I get the error:
main.lua:6: module "luas/extendedloader" not found:
no file "luas/extendedloader.lua" in LOVE game directories.
no extension "luas/extendedloader" in LOVE paths.
I went back and renamed the .love file that I used back into a .zip file so that I could re-check the content. The file extendedLoader.lua is in the folder luas where it belongs. If it is relevant, I'm still using löve version 9.0 to make the game run on an old Notebook, might be updating it to a newer version, but the process of creating an .exe should work the same with all löve versions. I also included all .dlls that came with löve into the same folder as my .exe. Also, I'm noticing that in the error output my file is called "extendedloader" with a small "l" instead of the capital "L" in the actual filename, I don't know why löve does this or if it makes a difference.
As for now, I don't know how to solve this problem or where it is coming from. So I'm asking you for advice.