problems with .love files and .exe creation

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
mk8
Prole
Posts: 34
Joined: Thu Apr 22, 2021 7:11 am

problems with .love files and .exe creation

Post 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?
hippity hoppity ur code is my property (thanc in advanc)
User avatar
GVovkiv
Party member
Posts: 668
Joined: Fri Jan 15, 2021 7:29 am

Re: problems with .love files and .exe creation

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests