I Have An Idea

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Puzzlem00n
Party member
Posts: 171
Joined: Fri Apr 06, 2012 8:49 pm
Contact:

I Have An Idea

Post by Puzzlem00n »

Wow, it's been a while since I've been on here. I ended up preferring Twitter, I guess. Well, I have an idea that I want to make sure is good. But it feels too obvious, so I have a suspicion that if it were good, it would have been done already. I'm here so you can put those suspicions to rest. Or not.

I was thinking of modding LÖVE to, instead of taking the .dlls in the same folder as it, pulling them from an AppData-like folder. If the .dlls aren't there, it downloads them from the net to put them there, like a launcher. This way, when distributing for Windows (and Linux, I think), instead of making .zips with the .dlls in them, you can just distribute your game's executable and the .dlls will take care of themselves.

So, do you like the idea? While typing this, I've already realized this would be a problem when trying to start the game offline. Are there any more catches I'm unaware of? Thanks.
I LÖVE, therefore I am.
michcioperz
Prole
Posts: 1
Joined: Fri Jan 03, 2014 7:46 pm

Re: I Have An Idea

Post by michcioperz »

Hi, I'm new to the forums but I made some games in LOVE, and this idea looks good to me. Packaging libraries makes stuff more complicated, while making LOVE download them would be painful but only until it's implemented (I guess the code would need some bootstrap layer or something). But according to Linus's Law, given enough eyeballs, all bugs are shallow, right? :)
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: I Have An Idea

Post by Ranguna259 »

Can an executable really run by itself without any dll dependencies ?
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
Puzzlem00n
Party member
Posts: 171
Joined: Fri Apr 06, 2012 8:49 pm
Contact:

Re: I Have An Idea

Post by Puzzlem00n »

Ranguna259 wrote:Can an executable really run by itself without any dll dependencies ?
I'm not saying that this idea would have no dll dependencies, I'm saying the dlls would be in LÖVE's save folder instead of in the same folder as the .exe. If you mean "Can it run before the dlls are downloaded," then yeah, I'm pretty sure. It won't have all of LÖVE's full features until it does though.
I LÖVE, therefore I am.
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: I Have An Idea

Post by jjmafiae »

Ranguna259 wrote:Can an executable really run by itself without any dll dependencies ?
i have seen that before, so yes.

But it would require a .dll for downloading files i think.
User avatar
mickeyjm
Party member
Posts: 237
Joined: Thu Dec 29, 2011 11:41 am

Re: I Have An Idea

Post by mickeyjm »

I just found a way to do something similar to what you want. You can create a self extracting exe of all the files (*.exe, love.dll, lua51.dll, etc). This creates a single file the user can run which acts just like extracting the files from a zip then running the exe.

Here's how to do it on windows, for other OSes google it

Code: Select all

-BACKUP THE ORIGINAL FILES
-Search for IExpress.exe in the start bar (and run it)
-Select "Create new Self Extraction Directive File"
-Select "Extract files and run an installation command"
-Enter a title (It doesn't matter what you call it as AFAIK it doesn't actually show up anywhere)
-Select "No prompt"
-I recommend clicking "Do not show a license" as it would display every time you launch the game, but you can if you want
-Click "Add" and find the decompressed files for your game (*.exe, love.dll, lua51.dll, etc)
-From the drop down for "install program" select your game's exe, leave post install blank
-Select "Hidden"
-Select "No message"
-Select your game's exe and tick "Hide file extracting progress animation from user"
-Select "No restart"
-Choose "Save" if you want to modify this later in case you messed up
-Create the package
-And you should be done, your exe has been (annoyingly) replaced by the SED file you can run the game with
Note, if you have ResHacked your exe you will have to redo it with the new file.
Your screen is very zoomed in...
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests