This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-03-31 18:07:17

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Projects that "Hang" when On-Line

My latest: http://scratch.mit.edu/projects/EdnaC/129777 hangs up pretty early in the game when played on-line (Java), but works fine in presentation mode (Scratch).  My bouncing ball project did the same, after a few edits, that one started working online (with the occasional "odd bounce"). 

Problem: I'm not sure what change got bouncing ball working, or what to do to get ShuttlePilot to run.  Any ideas?  I keep suspecting that a trig function is being translated to something that "flakes out" in Java, but there are no error indications, the project just stops.

-MrEd

Offline

 

#2 2008-03-31 19:40:49

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Projects that "Hang" when On-Line

The only function I know for a fact doesn't work in Java is the 10^x (anti-log) function.  I didn't see anywhere in your project where you were using that function.  So that's no help.  However, the symptoms I ran into when I tried using 10^x on Java were just what you describe...a hang with no error message.

You are also using the Acos function which is a little unusual...I haven't tested that one out personally.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2008-03-31 21:58:47

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Projects that "Hang" when On-Line

Switching to using Atan fixed the online issue, thanks much! 

I still have an issue with the project, in that Scratch allowed me to scale up the "mother-ship" sprite, but the Java app doesn't do that.  I may get around to fixing that now that the on-line version works...

-MrEd

Offline

 

#4 2008-04-01 04:50:33

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Projects that "Hang" when On-Line

So do we know for a fact that Acos has a problem?  We should probably tell the Scratch team if we do.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2008-04-01 12:15:48

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Projects that "Hang" when On-Line

I'd say that acos is the likely suspect.  I looked for an old version of bouncing ball to see if I used acos in it, but I didn't retain any old ones.  A quick project to cycle thru angles ( and convert to cosine and back to angle) is in order to check if that's the real problem.

-MrEd

Offline

 

#6 2008-06-22 11:31:54

registeel
Scratcher
Registered: 2008-04-27
Posts: 500+

Re: Projects that "Hang" when On-Line

EdnaC wrote:

-MrEd

Instead of putting -MrEd every time... put it in your signiture

Offline

 

Board footer