jmoenig / Snap

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
1.48k stars 739 forks source link

TypeError importing project from BYOB #12

Open JoaoSalemaSequeira opened 11 years ago

JoaoSalemaSequeira commented 11 years ago

When I try to import the project http://bit.ly/14MGc7j to Snap! the following error occurs:

Load failled: TypeError: Cannot call method 'setContents' of undefined

If I remove the script and leave only the costumes (see http://bit.ly/YZWjud), the error no longer occurs. However, the costumes are not loaded properly.

nathan commented 11 years ago

The <attribute ()> block doesn't exist in Snap!, and the deserializer is not very good at recovering from obsolete/nonexistent blocks with arguments.

The costumes have text, and YPRXML doesn't rasterize them (yet).

JoaoSalemaSequeira commented 11 years ago

Any plans as to when that rasterization will be available?

The object and attribute reporters are very important, it seems to me. Do you know whether they will be added to Snap!?

brianharvey commented 11 years ago

On 4/6/13 12:49 PM, JoaoSalemaSequeira wrote:

The object and attribute reporters are very important, it seems to me. Do you know whether they will be added to Snap!?

Yes, but not until 4.1 (summer or fall).

JoaoSalemaSequeira commented 11 years ago

Ok those are great news! Thank you!