God wrote:
Great explanations! This helped me a lot.
Um....
Offline
coolstuff wrote:
mariobrosrule wrote:
Paddle2See wrote:
To verify that this is the problem, Right-click on the Java icon in the system tray (while looking at a project) and select "Open Console". Then, try and open a large project that you are having trouble with and see if an error message is being generated indicating that the heap memory is being exceeded.
i CANT FIND THE BUTTON, sorry in caps-lock
Are you sure you're using Windows?
Look down at the taskbar, on the right. There should be a bunch of tiny icons doing their thing down there... One of them should be orange with a contour of a white cup of coffee on it. That's the icon.
ohhh okay
Offline
Hi all,
Well, after struggling for two days to host my project in a private server, I finally figured it out and thought I'd share it with you.
It turns out that some web hosting providers do NOT like to serve files ending in ".sb". The way I found out is because I put in the same directory the required files (the html file, the ".sb" project file, ScratchApplet.jar and soundbank.gm) and the results varied depending on their location:
If I opened the HTML directly from my drive, or from my computer's built in web browser, it would work. However, when I uploaded those same exact files to my web hosting provider, it would get stuck in the "loading" screen. I checked the Java console and it said it was having trouble loading the project (.sb) file, and in fact, if I typed the entire URL of the file into my browser I would get a "404 Page not found" error - although I had just copied it via FTP onto that exact directory.
HOW TO KNOW IF THIS IS YOUR PROBLEM:
- Make SURE you copy the .SB file to the server.
- Type the full URL of the .SB file into the address bar of your browser.
- If you get a "404 Page not Found" error, then apply the solution below.
SOLUTION:
- Step 1. Rename your project's extension from .SB TO .JPG (for example, from myproject.sb to myproject.sb.jpg)
- Step 2. Change the HTML code in the embedded applet to reflect the change, for example:
<applet id="ProjectApplet" style="display:block" code="ScratchApplet"
codebase="./" archive="ScratchApplet.jar" height="387" width="482">
<param name="project" value="myproject.sb.jpg">
<h3>Your browser needs Java to view the project!</h3>
</applet>
That worked perfectly for me... hopefully it makes sense and is helpful.
-- Latinwiz
Offline
[Continued from my last post]
ALTERNATE SOLUTION (cleaner, but requires custom MIME type):
- If your web hosting provider supports it, add a "Custom MIME type" for the extension .SB as "application/scratch" (without the quotes). That way you don't need to rename your projects.
-- Latinwiz
Offline
LatinWiz wrote:
Hi all,
...
-- Latinwiz
That's wierd - why won't .sb files upload to the server? What kind of servers are you using?
Anyhow, this does seem a little bit off-topic to the point of this thread - it might be somewhat more useful to post your own thread about this elsewhere
Offline
ericmman wrote:
another way is to download the project and play it downloaded
Unfortunately, many scratchers either can't download or are unwilling to, so the best way to get viewers satisfied is to make the project work online.
Offline
Great! I would change the settings right now if this was my computer.
Offline
Hmmm...
what about projects that don't work anyways online. can they be fixed?
Offline
my operating system is paranoid!
if its taking too long to load, sometimes i just refresh the page, and since it's already read the information, so it goes faster.
Offline
my mac is new and when i tried to get to the java thing there was nothing there for java
blocks<play sound[ ]and waits><play sound[ ]and waits>/blocks
Offline
Paddle2See wrote:
If you are continually getting the infinite "Loading" message when running Scratch projects on the web, you may need to increase your Java Heap Memory settings.
To verify that this is the problem, Right-click on the Java icon in the system tray (while looking at a project) and select "Open Console". Then, try and open a large project that you are having trouble with and see if an error message is being generated indicating that the heap memory is being exceeded.
If it is, Right-click on the Java icon again and select "Open Control Panel". You may have to give permission to the computer to run a few things if you are using a paranoid operating system like Vista. Once you have the Control Panel running, go to the Java tab. Then click on the View button for the Java Applet Runtime Settings. Then, click on the Java Runtime Parameters field and type in "-Xmx128m". Don't type the quotes. This will set your Java heap to 128 megs which should be enough for most Scratch projects. I suppose you can try higher values but don't go overboard.
I don't think the new settings take effect until you restart your browser so do that too.
For a very nice illustrated description of this same procedure, see this posting
http://scratch.mit.edu/forums/viewtopic.php?id=13963
This helps! Thanks!
Offline
That explains a lot! This happens with me for Java and Flash. I usually refresh the page, but thanks for posting this!
Offline
Nice post! It worked wonders! The smaller projects that I COULD load seemed instant, too! Thanks, Paddle2See!
Offline
nice guide
Offline
I didn't know that! I always just switch to flash, because them it works.
Offline
rubedtuc wrote:
how do you make smile faces like the others is it =]
Replace the bracket with a parentheses
Offline