Search found 28 matches

by Clavus
Sun Jan 31, 2010 7:00 pm
Forum: Support and Development
Topic: love.filesystem trouble, doesn't seem to work.
Replies: 19
Views: 11318

Re: love.filesystem trouble, doesn't seem to work.

bartbes wrote:And this code?
Nope, it still doesn't get to print("b") or print("c"). I think the fact that there's no save folder being created might play a large role.
by Clavus
Fri Jan 29, 2010 10:18 pm
Forum: Libraries and Tools
Topic: Love Classes implementation
Replies: 8
Views: 5017

Re: Love Classes implementation

Hi, sorry to bump this, but I need some help with tweaking this code. I made a "Vector" class, which holds and x and y value. I want to able to add vectors by just using '+' operator on them. Like so: -- LuaObject initialization game = {} LoveObject.init(game) -- Create vector class game.c...
by Clavus
Fri Jan 29, 2010 9:55 pm
Forum: Support and Development
Topic: love.filesystem trouble, doesn't seem to work.
Replies: 19
Views: 11318

Re: love.filesystem trouble, doesn't seem to work.

bartbes wrote:If you enable the console, do you see any output?
Nope. The function just ends while evaluating the love.filesystem.write(CONFIG_FILE, DefaultConfigString()) part. It prints "a", but neither "b" nor "c".
by Clavus
Fri Jan 29, 2010 8:44 pm
Forum: Support and Development
Topic: love.filesystem trouble, doesn't seem to work.
Replies: 19
Views: 11318

Re: love.filesystem trouble, doesn't seem to work.

No other suggestions on what I could be doing wrong? :(

I made sure that Love.exe is run as administrator, in case that might've caused why no save directory is being created, but alas.
by Clavus
Wed Jan 27, 2010 10:48 pm
Forum: Support and Development
Topic: love.filesystem trouble, doesn't seem to work.
Replies: 19
Views: 11318

Re: love.filesystem trouble, doesn't seem to work.

The path is supposed to be extracted from your environment variables, try finding the one that points to C:\\Users and change it to C:\\Gebruikers. (though I must say I am horrified by them even thinking about localizing such paths, microsoft never ceases to amaze me) On the other hand, if I type C...
by Clavus
Wed Jan 27, 2010 9:37 pm
Forum: Support and Development
Topic: love.filesystem trouble, doesn't seem to work.
Replies: 19
Views: 11318

Re: love.filesystem trouble, doesn't seem to work.

I also noticed the CONFIG_FILE path name contained "C:/Users/.." instead of "C:/Gebruikers/..." (Dutch language pack, I'm on Windows 7 Enterprise) which my file system uses, although I don't know if that matters. This may be the source of the problems. Does C:/Users/... exist on...
by Clavus
Wed Jan 27, 2010 9:04 pm
Forum: Support and Development
Topic: love.filesystem trouble, doesn't seem to work.
Replies: 19
Views: 11318

Re: love.filesystem trouble, doesn't seem to work.

Doesn't work either. Also, I don't see the save directory being created in the AppData/Roaming/LOVE/ folder, like the path indicates. I did use the love.filesystem.setIdentity( "gamename" ) in love.load earlier.
by Clavus
Wed Jan 27, 2010 8:04 pm
Forum: Support and Development
Topic: love.filesystem trouble, doesn't seem to work.
Replies: 19
Views: 11318

love.filesystem trouble, doesn't seem to work.

I've got this function (gets called in love.load) for reading a configuration text file. local function LoadConfig() local CONFIG_FILE = love.filesystem.getSaveDirectory().."/config.txt" print("Attempting to load config") print("File path: "..CONFIG_FILE) local cfgfile ...