Page 1 of 1

problems with .love files and .exe creation

Posted: Wed Nov 10, 2021 7:27 pm
by mk8
so i have a folder wit hmy program, which i can run by drag'n'dropping it onto the love.exe, but when i zipped the contents of the folder (a main.lua and a conf.lua) into a .love file and tried to run it, it said this:

Code: Select all

Error

boot.lua:577: Cannot load game at path 'C:/Program Files/love/gamepadtester.love'.
Make sure a folder exists at the specified path.


Traceback

[C]: in function 'error'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
i tried multiple directories and nothing worked
also, i have the file love2d_exe.bat with this command

Code: Select all

copy /b love.exe+%1 "%~n1.exe"
in the same directory as love.exe and the .love file
while it creates the .exe, when i run it its just the blank love program with the duck baloon or whatever
i also tried running

Code: Select all

cd C:\Program Files\love\
and

Code: Select all

copy /b love.exe+gamepadtester.love gamepadtester.exe
with command prompt, but it produced the same result
anyone knows what i'm doing wrong?

Re: problems with .love files and .exe creation

Posted: Wed Nov 10, 2021 8:47 pm
by GVovkiv
isn't to changing current folder in windows done with CHDIR, not CD?
It may be the problem
try create fused exe with full path to all files like here:

Code: Select all

copy /b "C:\Program Files\love\love.exe"+"D:\Game\gamepadtester.love" "D:\Game\gamepadtester.exe"
and make sure that folder with love exist in window's PATH variable