How can I make open files when turning my game into .exe?

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
GuruuNoob
Prole
Posts: 2
Joined: Sun Nov 21, 2021 8:32 pm

How can I make open files when turning my game into .exe?

Post by GuruuNoob »

I'm trying to leave open files like "textures", "saved" or "languages" for
anyone to modify, but I don't know.
User avatar
GVovkiv
Party member
Posts: 668
Joined: Fri Jan 15, 2021 7:29 am

Re: How can I make open files when turning my game into .exe?

Post by GVovkiv »

If you talking about easy way to allow open fused game in your exe file, then you have nothing to do
Anyone can open fused game with any archive program, for example, with 7zip and then edit it
MrFariator
Party member
Posts: 509
Joined: Wed Oct 05, 2016 11:53 am

Re: How can I make open files when turning my game into .exe?

Post by MrFariator »

Another possible way to allow modifications is to make the game look for those files in the save folder, and load the files therein instead of the ones bundled within the fused exe. Just make sure appendidentity is set to false in your conf.lua.
User avatar
Xii
Party member
Posts: 137
Joined: Thu Aug 13, 2020 9:09 pm
Contact:

Re: How can I make open files when turning my game into .exe?

Post by Xii »

MrFariator wrote: Sun Nov 21, 2021 9:44 pm Another possible way to allow modifications is to make the game look for those files in the save folder, and load the files therein instead of the ones bundled within the fused exe.
I'd have it copy everything from the fused exe into the save directory on launch (but not overwrite existing files).
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: How can I make open files when turning my game into .exe?

Post by grump »

Just put your files in the same directory as the fused exe, call

Code: Select all

love.filesystem.mount(love.filesystem.getSourceBaseDirectory(), "/")
and you're good.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 18 guests