I agree 100% with Jasoco on this. Use love.filesystem, not io.*Jasoco wrote:But that's just me.
Table editor - numTable 1.5
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Table editor - numTable 1.3
When I write def I mean function.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Table editor - numTable 1.3
As the maintainer of SELÖVE, I side with Jasoco and kikito on this matter.
Help us help you: attach a .love.
- Zilarrezko
- Party member
- Posts: 345
- Joined: Mon Dec 10, 2012 5:50 am
- Location: Oregon
Re: Table editor - numTable 1.3
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?
Just a random pop in question though, why does OSX catch an error for using the io library?
- Jasoco
- Inner party member
- Posts: 3726
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Table editor - numTable 1.3
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.
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.
- DaedalusYoung
- Party member
- Posts: 413
- Joined: Sun Jul 14, 2013 8:04 pm
Re: Table editor - numTable 1.3
Yeah, I'm sure I've seen that before, but all I could find was this: [link]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.
Re: Table editor - numTable 1.4
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.
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
Very Nice!
Very Useful
Very Useful
Re: Table editor - numTable 1.5
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.
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.
Who is online
Users browsing this forum: No registered users and 0 guests