Search found 5 matches

by draa0gon
Mon Oct 18, 2010 9:59 am
Forum: Support and Development
Topic: I'm Having a little trouble.. Can anyone help?
Replies: 6
Views: 3660

Re: I'm Having a little trouble.. Can anyone help?

Well, I wrote the function, it works by finding spaces. I'm sure any of you could make something like this, But hopefully it helps someone. Please excuse my sloppy programing, I'm told it burns eyes. function love.load() stuff = {} data , size = love.filesystem.read("YourFileNameHere.txt",...
by draa0gon
Sun Oct 17, 2010 2:47 pm
Forum: Support and Development
Topic: I'm Having a little trouble.. Can anyone help?
Replies: 6
Views: 3660

Re: I'm Having a little trouble.. Can anyone help?

Yeah... I thought so.. *sigh* I hoped I just did something wrong..
oh well, is there any way to force close the file,
or another simple way to get lines?

I guess I could just write a function to take the lines I want myself, but I hoped I wouldn't have to..

Less work = better, yes?
by draa0gon
Sun Oct 17, 2010 1:02 pm
Forum: Support and Development
Topic: I'm Having a little trouble.. Can anyone help?
Replies: 6
Views: 3660

Re: I'm Having a little trouble.. Can anyone help?

Also..
The first part of each code is run in love.load,
But the second parts are run when a key is pressed.

I just omitted that code 'cause I figured it wouldn't make a difference.

I'm not getting any errors anywhere else, but if you need the whole code I can put it up.
by draa0gon
Sun Oct 17, 2010 12:54 pm
Forum: Support and Development
Topic: I'm Having a little trouble.. Can anyone help?
Replies: 6
Views: 3660

Re: I'm Having a little trouble.. Can anyone help?

The error is from "love.filesystem.write("opts.txt", a, all )"
by draa0gon
Sun Oct 17, 2010 12:45 pm
Forum: Support and Development
Topic: I'm Having a little trouble.. Can anyone help?
Replies: 6
Views: 3660

I'm Having a little trouble.. Can anyone help?

I'm having Some trouble with love.filesystem.write, it works when I use data, size = love.filesystem.read("opts.txt", all ) a = data * 1 love.filesystem.write("opts.txt", a, all ) but not when I use stuff = {} for line in love.filesystem.lines ("opts.txt") do table.inse...