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!
Can you make Love2d's Identity Not Be Inside the LOVE Folder
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- 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
First, you need to set t.release to true inside your love.conf function:
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.
Code: Select all
function love.conf(t)
t.identity = "game-name"
t.release = true
end
Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo
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
Because you don't read the entire wiki homepage linksSquareMan 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?
Lua is not an acronym.
- 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
No worries. And yeah, remember that the wiki is your friend.
-
- Prole
- Posts: 8
- Joined: Sun Feb 19, 2012 8:01 am
Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo
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
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.Bigmacbook wrote:I don't want my game files to be in a folder called LOVE, so how can I change that?
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.
Re: Can you make Love2d's Identity Not Be Inside the LOVE Fo
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
- 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
No, I wouldn't recommend that. Simply set t.release to true in love.conf: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.
Code: Select all
function love.conf(t)
t.identity = "folder-name"
t.release = true
end
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.
- 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
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.
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.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests