Discuss Scratch

jrot
New Scratcher
7 posts

.sbx not including extension information

Hi,

My saved sbx files don't include my extension information - or scratchx isn't loading that information.
I.e., if I open an sbx file (either local or on github) then the extension and its blocks aren't loaded.

Sample sbx: https://github.com/jbaragry/mcpi-scratch/blob/master/scratchExamples/chat.sbx

How can I debug this?
I noticed a similar query last week which Thepuzzlegame fixed, but the post doesn't say how it was actually fixed.

thanks
Jason
Mrcomputer1
Scratcher
500+ posts

.sbx not including extension information

It is not working for two reasons:

You need to move you extension to your gh-pages branch and then open the sbx and load the extension from gh-pages and then reupload to Github

Last edited by Mrcomputer1 (Nov. 20, 2015 06:55:51)

jrot
New Scratcher
7 posts

.sbx not including extension information

Thanks.
I have the same problem for locally saved sbx files.
Do I need to save everything to gh? Bit of a pain for local projects….

J
Mrcomputer1
Scratcher
500+ posts

.sbx not including extension information

jrot wrote:

Thanks.
I have the same problem for locally saved sbx files.
Do I need to save everything to gh? Bit of a pain for local projects….

J
I think for an sbx file to load the extension it must be on gh-pages
In the Scratch source code it says
if (!StringUtil.endsWith(URLUtil.getServerName(extObj.javascriptURL).toLowerCase(),'.github.io')) {
for loading extensions from sbx files
jrot
New Scratcher
7 posts

.sbx not including extension information

Thanks.
Was hoping to keep my extension in the github project but see that I need to copy to the pages area or figure out symlinks
jrot
New Scratcher
7 posts

.sbx not including extension information

Solved: If anyone else is looking for a solution to this.
This post shows how you can checkout the extension from a github project to include in a gh-pages branch
http://nicolasgallagher.com/git-checkout-specific-files-from-another-branch/

J

Powered by DjangoBB