[[ 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
Hmmm. Maybe Jens can take a look at this...I'll drop him a comment.
Offline
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....
Offline
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
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