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

#1 2009-09-15 10:02:29

koltko
Scratcher
Registered: 2009-09-04
Posts: 4

Error with opening/saving file

[[ I had posted this in the Advanced Topics forum and I haven't seen any responses, so in hopes of stumbling upon someone who may have a suggestion, I'm reposting it here. ]]

I just tried installing Squeak/Scratch on a Windows CE 5.0 (aka Windows Mobile 5, I believe) device with a nice big display (looks like 640x480). I used the Scratch 1.4 image and the "SqueakVM-alpha6-030206-PPC-ARM-noGAPI" VM from the link in this thread: http://scratch.mit.edu/forums/viewtopic.php?id=14919.

The good news: Scratch runs (and not terribly slow, either).

The bad news: There seems to be a problem with accessing files. When I do a /file/open or anything else (/file/saveas or import costume or other such thing), I get an error: "Message not understood: findTokens". The stack trace varies somewhat, depending on the operation I was doing when I got the error, but they all seem to converge on the findTokens call in addShortcutButtons.labelForHomeFolder.

When I debug, I see a line "^ UTF8 withAll: (t1 findTokens: t2) last" where the caret actually represents an up arrow. The value for t1 is nul and the value for t2 is "/".

As far as I can tell, findTokens is a native Squeak function, so I have no clue why the call is cratering. Does anyone have any suggestions?

Last edited by koltko (2009-09-15 10:03:43)

Offline

 

#2 2009-09-15 18:24:33

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Error with opening/saving file

Hmmm.  Maybe Jens can take a look at this...I'll drop him a comment.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2009-09-15 19:59:34

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Error with opening/saving file

Hi koltko,

Wow, it's cool that you're experimenting with Scratch on a mobile device! Of course I would expect all kinds of errors when porting an application to another OS. In the case of the error you're describing your mobile Scratch installation appears to be lacking access to one or more VM plugins (the DLLs in the Scratch folder). On the other hand it might just be that Windows CE 5.0 simply doesn't answer to the homedir request. If you're not averse to a little hacking you might try to simply comment out the statement which tries to add the HomeButton to the FileDialog once your within the Debugger....


Jens Mönig

Offline

 

#4 2009-09-18 10:55:00

koltko
Scratcher
Registered: 2009-09-04
Posts: 4

Re: Error with opening/saving file

Jens -
  Thanks for the response. These WM devices are given to all 7th grade students in our local school district and I'm trying to convince them to preinstall Scratch on all of them. The devices have an 800x480 display, so the Scratch IDE shows up very well.
  As for hacking: Why not? ;-)
  Could you point me toward any "how to recompile/rebuild once you've made a change" tutorials? I'm Squeak-ignorant, so I could use a little bit of direction.

Thanks!
phil

Offline

 

#5 2009-09-18 13:43:46

koltko
Scratcher
Registered: 2009-09-04
Posts: 4

Re: Error with opening/saving file

Jens.
  I commented out the offending line and I can now open and save files in WinCE!!!
  But when I close and reopen Scratch, my changes are gone. Where's the command that saves my changes to the image?

Thanks again,
phil

Offline

 

Board footer