[Sugar-devel] Exporting sounds and images from Etoys projects

Bert Freudenberg bert at freudenbergs.de
Sun Jan 10 14:11:16 EST 2010


On 10.01.2010, at 02:51, Bryan Berry wrote:
> Bert, we did have Squeak programmers but they all emigrated and are difficult to get in touch with.

Oh, didn't know they were all gone. 

I sat down and wrote a script myself. It's somewhat specific to your Squeak image/projects but I'll cc etoys-dev anyway, maybe it's useful to someone. I used the image and projects from

	http://karma.sugarlabs.org/Squeak.tar.bz2

The attached script needs a bit of hand-holding when running inside Squeak. Or just download the assets I exported:

	http://dev.laptop.org/~bert/OLENepalSqueakAssets.zip

Beware, it's 125 MB of PNGs and WAVs. The sounds have their names preserved, but the images are just enumerated largest-to-smallest. I didn't bother to check for duplicates.

- Bert -

On 10.01.2010, at 02:51, Bryan Berry wrote:
> Bert, we did have Squeak programmers but they all emigrated and are difficult to get in touch with.
> 
> I will bother Surendra, who you met, to see if he can help
> 
> On Sat, Jan 9, 2010 at 9:57 PM, Bert Freudenberg <bert at freudenbergs.de> wrote:
> Well, OLE Nepal does have Squeak programmers, and it should be rather simple for them to write a snippet that exports images and sounds from a loaded project.
> 
> It's just a bit harder (but I guess not too much) to load each project in a folder and export assets found there (the trick would be to just load the project but not enter it).
> 
> Extracting them without Squeak is rather infeasible.
> 
> - Bert -
> 
> On 09.01.2010, at 16:39, Tomeu Vizoso wrote:
> >
> > Adding sugar-devel to CC in case Bert wants to say anything
> >
> > On Sat, Jan 9, 2010 at 16:36, Peter Gijsels <peter.gijsels at gmail.com> wrote:
> >> Vaibhaw,
> >>
> >> You seem to imply that there is a (difficult) way to extract them,
> >> could you elaborate?
> >>
> >> Do you think it would be useful to have a simple way to extract these
> >> assets from a .pr file?
> >>
> >> I can try to see if I can come up with something. I'm not guaranteeing
> >> anything, but I think it might be worth a shot. I think it would be
> >> more fun than cropping screenshots. ;-)
> >>
> >> I have two possible approaches in mind:
> >> 1) There is probably a central place where the .pr is being read in
> >> and Morph objects are being constructed. If we intercept objects of
> >> the correct type we can dump their image data to a file. The trick is
> >> to find the code that does the deserializing which can be rather
> >> frustrating in Smalltalk if you are not familiar with the code.
> >>
> >> 2) The second approach would be to just walk over all objects, see if
> >> they are an image, and dump them to files.
> >>
> >> Do you have a Squeak development image (with development tools like
> >> the browser and inspector) from which I can read in these .pr files so
> >> that I can poke around a bit?
> >>
> >> Regards,
> >> Peter
> >>
> >> On Sat, Jan 9, 2010 at 3:04 PM, Vaibhaw (Bob) Poddar
> >> <vaibhawp at yahoo.co.uk> wrote:
> >>> Afraid not. There is no (easy) way to extract the info from the .pr files. I
> >>> have been just cropping the images out from the screen shots so far.
> >>>
> >>> Vaibhaw (Bob) Poddar
> >>>
> >>> Nepal Cell. +977.98510.61345
> >>> India Cell. +91.99999.15661
> >>> US of A Cell. +1.415.508.4503
> >>>
> >>> http://HimalayanTechies.com
> >>>
> >>> On 1/9/2010 7:43 PM, Peter Gijsels wrote:
> >>>
> >>> Bryan, Vaibhaw,
> >>>
> >>> I've got epaath working on my windows machine.
> >>>
> >>> Do I understand correctly that all of the materials of a lesson are
> >>> contained in one .pr file, e.g. 6_English_actionVerb_3.018.pr? The
> >>> epaath.image running on the squeak vm loads in that file.
> >>>
> >>> Is there an easy way to extract the pictures and sounds from the .pr
> >>> file of the lesson?
> >>>
> >>> Regards,
> >>> Peter
> >>>
> >>> On Thu, Jan 7, 2010 at 5:45 AM, Vaibhaw (Bob) Poddar
> >>> <vaibhawp at yahoo.co.uk> wrote:
> >>>
> >>>
> >>> Step to get Squeak working on a Windows machine (not sure how on a Linux
> >>> distribution).
> >>>
> >>> Download and install squeak
> >>> http://www.squeakland.org/download/
> >>>
> >>> Replace the etoys.image inside the Etoys/Etyos.app/Contents/Resources with
> >>> the image file from the E-Paath.
> >>>
> >>> That should be it. If you run into any issues I would be happy to look at
> >>> that.
> >>>
> >>> Thanks
> >>>
> >>> Vaibhaw (Bob) Poddar
> >>>
> >>> Nepal Cell. +977.98510.61345
> >>> India Cell. +91.99999.15661
> >>> US of A Cell. +1.415.508.4503
> >>>
> >>> http://HimalayanTechies.com
> >>>
> >>> On 1/7/2010 7:44 AM, Bryan Berry wrote:
> >>>
> >>> here is the file http://karma.sugarlabs.org/Squeak.tar.bz2
> >>>
> >>> These are all the Squeak files in the current EPaath. I am not sure how to
> >>> actually view the individual projects.
> >>> Vaibhaw: how do we do that? My Squeak skills are rusty
> >>>
> >>> On Thu, Jan 7, 2010 at 7:06 AM, Bryan Berry <bryan at olenepal.org> wrote:
> >>>
> >>>
> >>> hey Peter,
> >>> first could u use pastie.org or jsbin.com for small code samples? makes it
> >>> easier for everyone to view and comment on your code
> >>>
> >>> On Thu, Jan 7, 2010 at 3:47 AM, Peter Gijsels <peter.gijsels at gmail.com>
> >>> wrote:
> >>>
> >>> On an unrelated note, did you have time to prepare a download link
> >>> with the Squeak stuff? Tomorrow evening I have some time to have a
> >>> look at it.
> >>>
> >>> Regards,
> >>> Peter
> >>>
> >>>
> >>> Sorry I uploaded most of the files but forget to upload one important
> >>> file, the squeak image ;). I will upload that now and send you the link
> >>> shortly
> >>>

 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100110/9923fd00/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exportOLEAssets.st
Type: application/octet-stream
Size: 1866 bytes
Desc: not available
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100110/9923fd00/attachment.obj 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100110/9923fd00/attachment-0001.htm 


More information about the Sugar-devel mailing list