Can you make Love2d's Identity Not Be Inside the LOVE Folder

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.
SquareMan
Prole
Posts: 7
Joined: Sun Sep 02, 2012 1:36 am

Can you make Love2d's Identity Not Be Inside the LOVE Folder

Post 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!
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo

Post 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.
SquareMan
Prole
Posts: 7
Joined: Sun Sep 02, 2012 1:36 am

Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo

Post 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?
User avatar
qaisjp
Party member
Posts: 490
Joined: Tue Sep 04, 2012 10:49 am
Location: United Kingdom
Contact:

Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo

Post 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 :P
Lua is not an acronym.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo

Post by BlackBulletIV »

No worries. And yeah, remember that the wiki is your friend.
Bigmacbook
Prole
Posts: 8
Joined: Sun Feb 19, 2012 8:01 am

Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo

Post by Bigmacbook »

I don't want my game files to be in a folder called LOVE, so how can I change that?
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo

Post 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.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo

Post by Nixola »

lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo

Post 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.
User avatar
parallax7d
Citizen
Posts: 82
Joined: Wed Jul 02, 2014 11:44 pm

Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo

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

Who is online

Users browsing this forum: Google [Bot] and 35 guests