MonashAlexandria / snapapps

a visual programming language inspired by Scratch
http://snap.berkeley.edu
2 stars 5 forks source link

Dragging or importing sprite does not work on web version of scribble #17

Closed mciotola closed 10 years ago

mciotola commented 10 years ago

Dragging or importing sprite does not work on web version of scribble. Tried on Safari 5.1.10 and Firefox 26.0 (both on OSX 10.6.8. import_sprite_scribble_web

Craxic commented 10 years ago

Hi Mark,

Thanks for the feedback!

However, I'm having trouble reproducing the issue you are experiencing. It works for me correctly on both Linux and Windows, and both Firefox and Chrome, both GIF and PNG. It doesn't work in IE, though.

Would you mind testing "Snap!"(https://github.com/jmoenig/Snap--Build-Your-Own-Blocks) to see if there is an issue there? I don't have access to a Mac, unfortunately. If you have problems there too, we probably need to post this as an issue over there, rather than here (since this is just an extension). If you don't have any issues with Snap!, please let me know so I can investigate this further.

Thanks!

mciotola commented 10 years ago

I was using the html version online at:

http://berndmeyer.github.io/snapapps/scribble.html

In contrast, the downloaded version of Scribble has been working fine. So would the version at https://github.com/jmoenig/Snap--Build-Your-Own-Blocks be appropriate to test with?

Craxic commented 10 years ago

Hmm. That's an interesting issue. The online version works fine for me on Windows in FF and Chrome (haven't tried Linux). Do you think you could post the error that appears when you drop a file into Scribble (if any) in Chrome's Javascript developer console?

As for testing https://github.com/jmoenig/Snap--Build-Your-Own-Blocks, try http://snap.berkeley.edu/snapsource/snap.html. I presume that if you download https://github.com/jmoenig/Snap--Build-Your-Own-Blocks, it will work fine like Scribble does. So figures we better try the online version they have.

Thanks again.

mciotola commented 10 years ago

The problem might be with the file type. I was trying to import the following file which I had exported from the downloaded version of Scribble:

Sprite1.ysp

However, I was able to import a png image as a sprite just fine.

Craxic commented 10 years ago

Yes, I'm afraid "YSP" format sprites are a little non-standard.

As this is now a browser-based venture, I don't think that they will ever receive support unfortunately.

Is this much of an issue for you?

mciotola commented 10 years ago

Ironic that YSP is a SNAP/BYOB file type, and that SNAP can't even import sprites in the format it exports sprites.

This is not a huge issue, but this means I can't export Scribble sprites from existing download-version examples into the online html 5 version recreated examples. I'll find a way to work around it.

Craxic commented 10 years ago

Mark,

I understand that you are speaking of the smalltalk versions of Scribble. As in, the ones that are their own program and do not run in a browser.

These smalltalk versions of Scribble have been depreciated in favour of the new HTML5 versions of Scribble. We decided that it would take too much work to allow importing the old file-formats. SNAP now works with PNGs, JPGs, and all images that the host browser supports.

I understand this may be a little frustrating for you. Aside from developing an automated importer, there isn't a lot I can really do to help. It's likely it would take more time to develop one than to simply re-create the old-version projects from the beginning.

mciotola commented 10 years ago

Don't worry about it. I am actually recreating the old examples, but I an not a great artist, so I was hoping to use the old art work. I'll take a screenshot and see if I can clean that up enough. Thanks for looking into this.