Page 1 of 2
Can you make Love2d's Identity Not Be Inside the LOVE Folder
Posted: Sun Sep 09, 2012 2:51 am
by SquareMan
First off, sorry if this has been asked before, I searched and couldn't find it.
So when you use love.filesystem.setIdentity(path) or t.identity in the conf.lua file, it appends what you put to a directory called LOVE in your appdata directory, giving me a path such as C:\Users\<user>\appdata\Roaming\LOVE\<identity>
I'm wondering if I could get a path such as C:\Users\<user>\appdata\Roaming\<identity>
i've tried using "\b\b\b\bidentity"
and even string.format("\b\b\b\bidentity")
but love2d seems to ignore the backspace escape character for setting the identity
Any help would be appreciated!
Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo
Posted: Sun Sep 09, 2012 3:34 am
by BlackBulletIV
First, you need to set t.release to true inside your love.conf function:
Code: Select all
function love.conf(t)
t.identity = "game-name"
t.release = true
end
When you fuse your game and distribute it, LÖVE will make the game save in its own folder. See wiki pages
Config_Files and
Game_Distribution for more information.
Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo
Posted: Sun Sep 09, 2012 4:37 am
by SquareMan
Thanks so much, why does it seem all the things I can't figure out how to do end up being the simplest things in the world?
Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo
Posted: Sun Sep 09, 2012 8:46 am
by qaisjp
SquareMan wrote:Thanks so much, why does it seem all the things I can't figure out how to do end up being the simplest things in the world?
Because you don't read the entire wiki homepage links
Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo
Posted: Sun Sep 09, 2012 9:07 am
by BlackBulletIV
No worries. And yeah, remember that the wiki is your friend.
Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo
Posted: Mon Dec 17, 2012 5:51 pm
by Bigmacbook
I don't want my game files to be in a folder called LOVE, so how can I change that?
Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo
Posted: Mon Dec 17, 2012 7:41 pm
by Lafolie
Bigmacbook wrote:I don't want my game files to be in a folder called LOVE, so how can I change that?
Use the standard lua io library. This is less than desirable though; you'd have to write your own means of doing what love.filesystem does.
Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo
Posted: Mon Dec 17, 2012 7:45 pm
by Nixola
Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo
Posted: Wed Dec 19, 2012 9:19 pm
by BlackBulletIV
Lafolie wrote:Use the standard lua io library. This is less than desirable though; you'd have to write your own means of doing what love.filesystem does.
No, I wouldn't recommend that. Simply set t.release to true in love.conf:
Code: Select all
function love.conf(t)
t.identity = "folder-name"
t.release = true
end
From what I gather, you're meant to use this when your game is final (or, released).
EDIT: I just realised this was the original question of the topic, which I answered before. In future, Bigmacbook, try reading some of the answers given already, instead of repeating the topic's question.
Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo
Posted: Fri Feb 20, 2015 7:27 pm
by parallax7d
This is an old thread, but it still comes up in search results, so i thought I would update with my 2 cents.
I just tested on 0.9.1 and 0.9.2 on mac os 10.6. All i needed to do was 'fuse' the game using
these instructions, and it created my game's save folder in ~/Library/Application Support/game not ~/Library/Application Support/LOVE/game. For mac at least it doesn't seem to need the t.identity variable set in conf.lua, but i'm leaving it in just in case other platforms use it.