LoveFS

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LoveFS

Post by bartbes » Sat Jun 09, 2012 12:23 pm

linux-man wrote: That's a reall issue: it seems that the Mac build don't include io.popen. Why? I'll try to find other way. Can you use os.execute?
As per the lua manual:
This function is system dependent and is not available on all platforms.

linux-man
Citizen
Posts: 67
Joined: Thu Apr 28, 2011 4:51 pm

Re: LoveFS

Post by linux-man » Sat Jun 09, 2012 4:49 pm

bartbes wrote:This function is system dependent and is not available on all platforms.
Thanks for the info. Damn manuals!
Seems to me that os.tmpfile don't work on windows.
coffee wrote:In OSX

Code: Select all

[0x0-0x82082].org.love2d.love[1571]	Error: [string "lovefs.lua"]:107: 'popen' not supported
[0x0-0x82082].org.love2d.love[1571]	stack traceback:
[0x0-0x82082].org.love2d.love[1571]		[C]: in function 'popen'
[0x0-0x82082].org.love2d.love[1571]		[string "lovefs.lua"]:107: in function 'cd'
[0x0-0x82082].org.love2d.love[1571]		[string "lovefs.lua"]:125: in function 'lovefs'
[0x0-0x82082].org.love2d.love[1571]		[string "main.lua"]:22: in function 'load'
[0x0-0x82082].org.love2d.love[1571]		[string "boot.lua"]:1: in function <[string "boot.lua"]:1>
[0x0-0x82082].org.love2d.love[1571]		[C]: in function 'xpcall'
Can you (or other Mac user) try this love? I'm using an alternative output, this time with os.execute and os.tmpfile. Hope it works.
lovefs.love
LoveFS 0.2
No codepage conversion. Code for Mac.
(81.04 KiB) Downloaded 133 times

coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: LoveFS

Post by coffee » Sat Jun 09, 2012 6:09 pm

Nice. It works for me. Don't know if intended but shows root at start.

User avatar
Nixola
Inner party member
Posts: 1941
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: LoveFS

Post by Nixola » Sat Jun 09, 2012 6:47 pm

It shows root here on Linux too
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics

coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: LoveFS

Post by coffee » Sat Jun 09, 2012 7:20 pm

Only found a problem so far. It don't show foreign/non-english characters. show a "box" instead.

linux-man
Citizen
Posts: 67
Joined: Thu Apr 28, 2011 4:51 pm

Re: LoveFS

Post by linux-man » Sat Jun 09, 2012 7:22 pm

coffee wrote:Nice. It works for me. Don't know if intended but shows root at start.
That's good.
The "file browser" try to start in root "/" or "c:\". If it can't then go to WorkingDirectory as defined by Love.
Just browse around for bugs, please! Hidden files and folders aren't shown.

I'm fighting with Windows now.

linux-man
Citizen
Posts: 67
Joined: Thu Apr 28, 2011 4:51 pm

Re: LoveFS

Post by linux-man » Sat Jun 09, 2012 7:26 pm

coffee wrote:Only found a problem so far. It don't show foreign/non-english characters. show a "box" instead.
But can you select files (it shows a "selected file" text bellow Current Directory) or enter directories with foreign characters?

User avatar
Nixola
Inner party member
Posts: 1941
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: LoveFS

Post by Nixola » Sat Jun 09, 2012 7:38 pm

On Linux, I can select the file "name↑.try" and access the folder "↑", but a box is shown (as every uncommon character on Windows)
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics

coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: LoveFS

Post by coffee » Sat Jun 09, 2012 7:51 pm

linux-man wrote:Hidden files and folders aren't shown.
Yes but with LoveFS in the OSX root are also showed things usually hidden in Finder listings. It shows cores/bin/dev/etc... folders and list files like mach_kernel and other stuff. Those things only show usually with terminal or in X11 dialog interfaces.

Yes, it browses well foreign folders.

linux-man
Citizen
Posts: 67
Joined: Thu Apr 28, 2011 4:51 pm

Re: LoveFS

Post by linux-man » Sun Jun 10, 2012 3:20 am

Nixola wrote:On Linux, I can select the file "name↑.try" and access the folder "↑", but a box is shown (as every uncommon character on Windows)
So it works. I don't have boxes, but I'm only using PT characters. What's your distro?
coffee wrote:Yes but with LoveFS in the OSX root are also showed things usually hidden in Finder listings. It shows cores/bin/dev/etc... folders and list files like mach_kernel and other stuff. Those things only show usually with terminal or in X11 dialog interfaces.

Yes, it browses well foreign folders.
I'm happy that the functionality is there. We can try to correct the cosmetic later.

For Windows users: I made a mistake building the love file. No one can test the demo because it only works with console activated. It's a bad situation and I couldn't find a solution. Finally, this demo works on Windows. Since it change console codepage to 437 there will be no more crashes, BUT folders and files with foreign characters are not browsable/selectable. It might crash if there are foreign characters at the opening folder. I'll look later at this.
Last edited by linux-man on Thu Jun 21, 2012 4:12 pm, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests