Search found 206 matches

by I~=Spam
Tue Jan 15, 2013 4:43 pm
Forum: Support and Development
Topic: Finding myGame.exe path
Replies: 6
Views: 3586

Re: Finding myGame.exe path

I found another solution! :ultrahappy: This one doesn't use a .bat file. I used the LoveFS lib to make executing os commands a little easier. Here's the code in main.lua require 'lovefs/lovefs' function love.load() fs = lovefs() if not(arg[1]) then if love._os == 'Windows' then a, b = fs:run('cd') b...
by I~=Spam
Wed Dec 26, 2012 5:48 pm
Forum: Support and Development
Topic: Finding myGame.exe path
Replies: 6
Views: 3586

Re: Finding myGame.exe path

arg[1] That would work if the game is launched using the .love file. Sorry I only tested it with a .love file and figured that it would work with .exe's as well :o Opps! But for a standalone binary, arg[1] is nil unless the player sets launch parameters like "./mygame -a" Using the follow...
by I~=Spam
Sun Dec 23, 2012 5:41 pm
Forum: Support and Development
Topic: Finding myGame.exe path
Replies: 6
Views: 3586

Re: Finding myGame.exe path

Thanks works great! :ultraglee:
by I~=Spam
Sat Dec 22, 2012 8:12 pm
Forum: Support and Development
Topic: Finding myGame.exe path
Replies: 6
Views: 3586

Finding myGame.exe path

Is it possible to get the directory a love game that was launched?
unknown/path/to/myGame.exe

I don't think that there is a way but I couldn't find a post about it and thought it was worth asking :D
by I~=Spam
Sun Dec 16, 2012 3:21 pm
Forum: Support and Development
Topic: [Solved] Moving Files From compter to computer using UDP?
Replies: 3
Views: 1816

Re: Moving Files From compter to computer using LuaSocket?

Hmmmm... Do you know a good tutorial on using TCP?
by I~=Spam
Sat Dec 15, 2012 12:12 am
Forum: Support and Development
Topic: [Solved] Moving Files From compter to computer using UDP?
Replies: 3
Views: 1816

[Solved] Moving Files From compter to computer using UDP?

Hello all! (this is my first time posting here in the forums) :awesome: I'm not sure how to use LuaSocket to transfer files from one PC to another. I have read and and do understand this tutorial on UDP: But it only supports the passing of strings. :o Any help or advice is much appreciated. EDIT: I ...