Page 2 of 2

Re: Table editor - numTable 1.3

Posted: Thu Aug 28, 2014 2:32 pm
by kikito
Jasoco wrote:But that's just me.
I agree 100% with Jasoco on this. Use love.filesystem, not io.*

Re: Table editor - numTable 1.3

Posted: Thu Aug 28, 2014 8:36 pm
by Robin
As the maintainer of SELÖVE, I side with Jasoco and kikito on this matter.

Re: Table editor - numTable 1.3

Posted: Thu Aug 28, 2014 9:15 pm
by Zilarrezko
cool! good way to make fast maps.

Just a random pop in question though, why does OSX catch an error for using the io library?

Re: Table editor - numTable 1.3

Posted: Fri Aug 29, 2014 12:26 am
by Jasoco
For me it's crashing if I try to Save when running the .love file.

But if I run it from an uncompressed folder, it saves fine. Or rather it doesn't crash.

Now, since it's not using Löve's built in filesystem module, I have no idea where the heck it saved the file so I can delete it.

So using Spotlight to find any file created in the last day, I found it... IN MY HOME FOLDER WHERE IT SHOULD NOT BE instead of in Löve's working directory where it should be.

Use love.filesystem for file handling. Not io and os. It does not work the same on all platforms. Please please please people. If you want to keep Löve cross-platform like it should be, do not use things that are not 100% compatible across platforms until you test them on all platforms. I could have sworn there was a Löve command that would open the working directory in the Finder/Explorer. (So the end user can find the saved files easily) Am I wrong? Maybe I'm thinking of Minecraft.

Instead of using os.execute to mkdir, use love.filesystem.mkdir. Instead of io.open, use love.filesystem.load or love.filesystem.newFile. Then you can be guaranteed that the program will work 100% on all platforms and won't be saving your files in places that they should not be placed. It will make sure that the file can always be found no matter what.

Thank you.

Re: Table editor - numTable 1.3

Posted: Fri Aug 29, 2014 7:18 am
by DaedalusYoung
Jasoco wrote:I could have sworn there was a Löve command that would open the working directory in the Finder/Explorer. (So the end user can find the saved files easily) Am I wrong? Maybe I'm thinking of Minecraft.
Yeah, I'm sure I've seen that before, but all I could find was this: [link]

Re: Table editor - numTable 1.3

Posted: Fri Aug 29, 2014 9:26 am
by Robin

Re: Table editor - numTable 1.4

Posted: Mon Nov 17, 2014 11:40 pm
by IceQB
I did not consider that io.* doesn't work the same as at other platforms.
Thanks people for good advice. I will fix it, like in your advices.

@BUMB
New version is done, download in first post.

Re: Table editor - numTable 1.4

Posted: Tue Nov 18, 2014 3:05 pm
by artofwork
Very Nice!
Very Useful :)

Re: Table editor - numTable 1.5

Posted: Thu Apr 30, 2015 8:40 pm
by IceQB
artofwork thanks!

Edit:
I do not have any certainty that I'll finish program and make full workable version with all features. So I upload last version of my program.
Version 1.5 has color pallete selector (Simple Color Picker 0.1). Simple Color Picker is in very early version but works fine.
1.5 is faster, better, fix many bugs and crashes and have possibilty to color tiles.

Maybe in far future I will implement a couple new features and finish the program.