-
Notifications
You must be signed in to change notification settings - Fork 512
AIR dependency's offline editor is a pity #760
Comments
Why not refactoring It's probably way too much work and the demand is probably not high enough. Windows and mac users that work in unstable internet environments would probably benefit from official runtimes, which are possible according to http://stackoverflow.com/questions/9674694/ like for example a kids' programming workshop I coached at last week, where we didn't have stable internet and used 1.4 instead. Although our computers mostly were running Linux, so 1.4 is the only offline option anyway. Linux unfortunately appears to be out of the picture of Air http://www.adobe.com/products/air/faq.html#linux and the last available Linux version 2.6 but the runtime feature exists since 3.0 according to the stackoverflow answer. Using 1.4 is probably the only solution to the problem of wanting to run Scratch without prprietary software on 64 bit Linux. https://scratch.mit.edu/scratch_1.4/ |
Well, it's a shame. You can notice Snap (https://github.com/jmoenig/Snap--Build-Your-Own-Blocks), for instance. It doesn't seem so dificult. |
I do sometimes use Scratch offline, but I've not bothered to download the offline version. It seems fine just opening up a compiled/downloaded Scratch.swf using Flash Player, or even in the browser directly - no need for Air. Here's an archive of swf files for Scratch versions going right back: https://37d5d120c282af065cc07aa80787bbf94abf48ab.googledrive.com/host/0Bwg2KFU5SrIodjNSSjByeEh5dkk/2.0%20Online/ I'm on Mac, so I guess YMMV - but it works for me on both Safari and Firefox, so it's worth checking to see if you can open an swf directly from within various browsers on Linux. |
I'm talking about the Scratch editor But it's true it would be nice we could generate final files in another format different from .swf (because Flash is also propietary, and will be obsolete soon). But that's another question |
Yes, so am I... ?? |
Here's an archive of swf files for Scratch versions going right back: https://37d5d120c282af065cc07aa80787bbf94abf48ab.googledrive.com/host/0Bwg2KFU5SrIodjNSSjByeEh5dkk/2.0%20Online/ Wonderful! Hopefully, all the Linux machines I encounter in the future have flash or chromium with pepper (the ones at the last event didn't have flash in Firefox and I didn't see any chromium icon in the app bar). Current instructions
UPDATE: I spoke too soon. You don't have access to the sprite/sound libraries, you can save your project but you can't load a project. If you do, it will not import the content (only the file name) and the green flag above the game window will stop working. Also, that downloadable is English only. |
I've run the local 435.1 swf in the browser as suggested above. It won't load any local .sb2 files. It just hangs when I try. Can anyone else load local .sb2 files while this "offline" mode? |
@CreativeComputerLab for me it doesn't freeze but it just imports the name and leaves everything as is. The green flag doesn't work any more afterwards though. Quite strange. There is also no access to the sprite/sound libraries. But it seems like saving files at least works. |
Well...jmoenig/Snap#575 |
Ah, yes - forgot the part where you can't open anything... You also have to tell your Flash Player that you trust files from the directory containing them. On the Mac you go to the Flash Player settings in System Preferences, and set the "Trusted Location Settings..." in the Advanced tab. Presumably there will be something similar available in the Linux flash prefs (or in Chrome's pepper flash settings)... |
Yes, I get the same exact behavior.Perhaps its a cross domain policy issue as we're uploading from local instead of via http? -------- Original Message -------- @CreativeComputerLab for me it doesn't freeze but it just imports the name and leaves everything as is. The green flag doesn't work any more afterwards though. Quite strange. There is also no access to the sprite/sound libraries. But it seems like saving files at least works. —Reply to this email directly or view it on GitHub. |
Does the info above, about setting "Trusted Locations", allow you to open files with it now...? |
Yes, it works for me. Now I'm on to a new issue where projects containing extensions won't load load them even when the extension.js code is placed in the trusted dir and the .sb2 file has been modified to point to that path. |
This topic is very interesting, but it is not about what I wrote in first post... I wanted to know if there is some plans to rewrite Scratch editor to be dependent-less of Adobe's AIR. |
@q2dg: @CreativeComputerLab: |
@TheLogFather Good question. I only know what it's said here: https://scratch.mit.edu/scratch2download |
I just wanna this: https://github.com/nathan/pixie |
!! Will give this a try !! I'll be looking to add my own websocket based data streaming blocks. |
What I have found is that using a project converted using junebeetle23 converter seems to work better than opening the default Scratch file directly. What I did was I also found a way to access the libraries, or sort of: in the NaNmedialibraries place the following files from the Scratch standalone installation (Scratch 2\media\libs), although I believe only the json files are really required: in the NaNasset place the files from Scratch 2\media Now, go to each of the json files within the NaNmedialibraries and add the code \u0000 at the end of all the asset names (several search and replace actions might be needed from a text editor to cover the different extensions) . So the first lines of the file costumeLibrary.json would look like: Now, if you run the swf and click on the libraries, you can see the names, play the sounds and insert the objects, but you will not see the preview of the images in the list, so you will have to select them based on the name, without seeing what you are selecting. Besides, I was not able to select sprites. Only customes, sounds and backdrops... |
Hi folks, we will take this into account with the next version of Scratch. Thank you for your suggestion. |
A bit late, but here's an addon to fizban99's post for linux:
Bugs still remaining:
|
It's not open-source and it doesn't work in Linux 64 bits.
Why not refactoring offline editor to be written in Javascript, like Snap is???
The text was updated successfully, but these errors were encountered: