Page 1 of 2

Just saying hello :)

Posted: Mon Nov 17, 2008 1:01 am
by Ethnar
Hey there,

I just wanted to join the band and praise the LOVE. :) It works great and is very (well, almost ridiculously ;) ) easy. It's just awesome. So far (just starting a little project on my own) everything I really needed was already included.

I have just one little question regarding packages (*.love files) and managing files in the code. I was trying to use io.open() function to check whether a file exists and if it does, load it with love.graphics.newImage(). Usually this works fine, however - it seems that once everything is packed into *.love, io.open() doesn't check the package itself for the file, only the path where *.love file is placed. Is there any LOVE method to check if file exists or read files at all?

Cheers, :)
Ethnar

PS I'm not really sure that posts like this belong here, but I hope I won't hurt anyone placing it here ;)
PS2 Sorry if my actual question is trivial/covered in reference manual, I just wanted to use it as an excuse to say hi ^^

Re: Just saying hello :)

Posted: Mon Nov 17, 2008 4:40 am
by rude
Hello, and thanks! ^^

To access files (in both .love and folder cases), you should use love.filesystem, and avoid standard io. Specifically, you can use love.filesystem.exists() to check for existing files.

Re: Just saying hello :)

Posted: Mon Nov 17, 2008 1:25 pm
by mike
PS: Hi! :D

Re: Just saying hello :)

Posted: Mon Nov 17, 2008 1:40 pm
by Ethnar
Thank you for the answer regarding files Rude, your post was most helpful.

Also, thanks for a warm welcome, it's much appreciated. :)

Well, time to get back to work. ;)

Re: Just saying hello :)

Posted: Mon Nov 17, 2008 5:20 pm
by qubodup
Ethnar wrote:
letta.png
letta.png (23.78 KiB) Viewed 8560 times
Hello :)

Re: Just saying hello :)

Posted: Tue Nov 18, 2008 5:12 am
by rude
What is the meaning of this? (@qubodup)

Re: Just saying hello :)

Posted: Tue Nov 18, 2008 10:38 am
by qubodup
rude wrote:What is the meaning of this? (@qubodup)
It's a running gag or something. Wait, don't they call this 'meme' now?

It's also elegant. (both)

And elegant + elegant = 2elegant, which is doublepluselegant.

And elegant = good & gentlewoman-like

Re: Just saying hello :)

Posted: Wed Nov 19, 2008 1:27 pm
by appleide
Hi :)
Just curious are you Ethnar from Wesnoth?

@qubodup. I cringed at myself. :<

Re: Just saying hello :)

Posted: Wed Nov 19, 2008 4:37 pm
by qubodup
appleide wrote:@qubodup. I cringed at myself. :<
? I fail to follow you :oops:

Re: Just saying hello :)

Posted: Wed Nov 19, 2008 5:32 pm
by Ethnar
I must admit I got confused by you, qubodup, as well. Guess you just found it funny that my post has letter-like structure.

Hello appleide. That's right, as far as I'm concerned Ethnar on Wesnoth and here is the same person. :) Did I draw so much attention that you actually remember me? ;)

And well, I should get to the point, right? :)

So, I'm writing that little ^^ project of mine and it seems that I have some issues with performance. I started writing alpha-version of an RPG client and the work is going pretty smooth... except that two friends of mine, with not that good GPUs get 1 fps... tops. On my machine, I get 30 fps which ain't really that bad - using benchmark posted around here, on this forum I get 330 fps +-40 depending on amount of objects.

Now is there something I can do to improve my code? The display method is pretty much optimized: I don't display obscured blocks, put a reasonable limit on the amount of fields displayed outside the scene... perhaps another file format would help? Enabling an option or two? Switch color depth (if that's possible and assuming default is 32-bit)?
Perhaps something a linux (ubuntu or gentoo) user can do to increase performance?

I attach a file - controls are:
Arrows - walk,
R - rotate screen
Q - quit
F - fullscreen

Don't mind few bugs - I'm aware of them and they'll be fixed soon. If I can tweak performance. :)