This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-07-05 13:24:44

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Unable to save a project

I created a (character for ASCII %n) block using this code:

Code:

characterFor: t1
     ^ Character value: t1

I tested it, and it worked. I put it in a project I was working on, and when I went to save it, it gave me a dialog box (a Scratch one, not the red window) that said: "Save failed: unknown class Character". I removed all of the (character for ASCII %n) blocks from the project and tried to save it again with no success. When I opened a new project and saved it without doing anything, it went fine. I loaded it, and it loaded fine. Then I put a (character for ASCII %n) block in the sprite and saved it, and - guess what? - it saved it. So please tell me what is going wrong (and, unfortunately, I cannot upload this project even without the new block).


Yawn.

Offline

 

#2 2010-07-05 13:27:46

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Unable to save a project

I had the same problem while exporting a sprite.


You can now reach me on Twitter @johnnydean1_

Offline

 

#3 2010-07-05 13:53:41

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Unable to save a project

meowmeow55 wrote:

I created a (character for ASCII %n) block using this code:

Code:

characterFor: t1
     ^ Character value: t1

I tested it, and it worked. I put it in a project I was working on, and when I went to save it, it gave me a dialog box (a Scratch one, not the red window) that said: "Save failed: unknown class Character". I removed all of the (character for ASCII %n) blocks from the project and tried to save it again with no success. When I opened a new project and saved it without doing anything, it went fine. I loaded it, and it loaded fine. Then I put a (character for ASCII %n) block in the sprite and saved it, and - guess what? - it saved it. So please tell me what is going wrong (and, unfortunately, I cannot upload this project even without the new block).

Hmmmm... very strange, I think you probably just caused an error and made the VM panic.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#4 2010-07-05 19:24:42

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Unable to save a project

johnnydean1 wrote:

I had the same problem while exporting a sprite.

It errors when I export a sprite with the (character for ASCII %n) block in it as well, it gives me a dialog with "Could not write file: Export failed" in it. But when I try to export a sprite without my new block, it works fine.


Yawn.

Offline

 

Board footer