Table editor - numTable 1.5

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Table editor - numTable 1.3

Post by kikito »

Jasoco wrote:But that's just me.
I agree 100% with Jasoco on this. Use love.filesystem, not io.*
When I write def I mean function.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Table editor - numTable 1.3

Post by Robin »

As the maintainer of SELÖVE, I side with Jasoco and kikito on this matter.
Help us help you: attach a .love.
User avatar
Zilarrezko
Party member
Posts: 345
Joined: Mon Dec 10, 2012 5:50 am
Location: Oregon

Re: Table editor - numTable 1.3

Post 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?
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Table editor - numTable 1.3

Post 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.
User avatar
DaedalusYoung
Party member
Posts: 407
Joined: Sun Jul 14, 2013 8:04 pm

Re: Table editor - numTable 1.3

Post 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]
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Table editor - numTable 1.3

Post by Robin »

Help us help you: attach a .love.
User avatar
IceQB
Citizen
Posts: 67
Joined: Sat Nov 03, 2012 1:11 pm

Re: Table editor - numTable 1.4

Post 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.
User avatar
artofwork
Citizen
Posts: 91
Joined: Mon Sep 15, 2014 1:17 am
Location: East Coast USA

Re: Table editor - numTable 1.4

Post by artofwork »

Very Nice!
Very Useful :)
User avatar
IceQB
Citizen
Posts: 67
Joined: Sat Nov 03, 2012 1:11 pm

Re: Table editor - numTable 1.5

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 218 guests