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

#1 2008-08-06 19:57:51

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Compression Woes

Help! This project is 3.23 megabytes. This one is 1.82 MB. The smaller one is an newer version of the same project, but it won't load in the Java player, even though it's just over half the size of the original. Any ideas why this might not be working? It's driving me crazy! Thanks.

Last edited by fullmoon (2008-08-06 19:58:13)


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#2 2008-08-06 21:11:21

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Compression Woes

I cant help you srry.But i tried.

Offline

 

#3 2008-08-06 23:11:46

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: Compression Woes

costume numbers make it worse

Offline

 

#4 2008-08-07 06:13:16

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

Re: Compression Woes

Okay, I turned on my Java Console window (right-click on the Java icon in the system tray) and learned a couple of things.  First, it is unhappy about some sound files, it came back with this error a few times:

        nth doesn't like NaN as input in soundNamed

I then asked it for memory usage (the "m" command at the console) and learned that it was using 130,112k which is a fair amount.  Earlier this week I increased my Java Heap from 68 meg to 128 meg which lets me run a lot more projects than I used to be able to.  I can sort of run this project, at least it gets to the menu screen, but I can see that I have very little free memory.  It's not giving me a heap error yet though.

I would suggest that you increase your Java heap to start with and then think if there are other ways to reduce memory usage such as reducing the number of sprites.

Here is the link to how to increase your heap size:

http://scratch.mit.edu/forums/viewtopic.php?id=8366


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

Offline

 

#5 2008-08-07 10:39:02

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Compression Woes

Paddle2See wrote:

I then asked it for memory usage (the "m" command at the console) and learned that it was using 130,112k which is a fair amount.  Earlier this week I increased my Java Heap from 68 meg to 128 meg which lets me run a lot more projects than I used to be able to.  I can sort of run this project, at least it gets to the menu screen, but I can see that I have very little free memory.  It's not giving me a heap error yet though.

Thanks for the tip! I get the same problem, which is odd, because I have 1GB of RAM on XP, which is usually more than enough for anything I can throw at it. I gave the heap a max of 256mb, and it still didn't get me past the new game screen. Should I be proud that I created a Scratch project big enough to freeze?  tongue . Anyway, I'll remove the scrolling background on the menu, that ought to increase the memory avaliable. Even through there are a large amount of scripts, I make sure only 5-20% of them are running at any time. It's odd that this only happens to MY project online, I've loaded projects up to 8 megabytes quite successfully. I wonder if it's the large amount of sprites. Thanks for the help, I'll keep working on it!

Last edited by fullmoon (2008-08-07 10:39:55)


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#6 2008-08-07 18:59:15

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

Re: Compression Woes

fullmoon wrote:

Thanks for the tip! I get the same problem, which is odd, because I have 1GB of RAM on XP, which is usually more than enough for anything I can throw at it. I gave the heap a max of 256mb, and it still didn't get me past the new game screen. Should I be proud that I created a Scratch project big enough to freeze?  tongue . Anyway, I'll remove the scrolling background on the menu, that ought to increase the memory avaliable. Even through there are a large amount of scripts, I make sure only 5-20% of them are running at any time. It's odd that this only happens to MY project online, I've loaded projects up to 8 megabytes quite successfully. I wonder if it's the large amount of sprites. Thanks for the help, I'll keep working on it!

Sorry I can't be of further assistance.  It is odd that you are having problems with this project...it isn't all that big and I've seen projects with more sprites.  I am only guessing that it is a memory issue...it may be something else entirely.    The next step in diagnosing the problem is slice and dice.  Cut the project in half and load it up and see if it works.  Then keep loading up more and more pieces until it breaks.  Then try and figure out what it all means...


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

Offline

 

#7 2008-08-07 21:18:04

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Compression Woes

Lolz, I've cut it in quarters and removed all sound. Now when I try to load a project with the heap at 256mb Java crashes. Anyway, thanks for the help.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#8 2008-08-07 21:25:47

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Compression Woes

NaN means "not a number", right? I'll try removing all 96 "pop" sounds from the project  tongue


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#9 2008-08-07 21:28:01

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: Compression Woes

fullmoon wrote:

NaN means "not a number", right? I'll try removing all 96 "pop" sounds from the project  tongue

NaN does mean not a number. I always try and get flash games to have that for my money, because it glitches, and totally gives a sandbox mode.


All your base are belong to us

Offline

 

#10 2008-08-07 22:13:21

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Compression Woes

Cyclone103 wrote:

fullmoon wrote:

NaN means "not a number", right? I'll try removing all 96 "pop" sounds from the project  tongue

NaN does mean not a number. I always try and get flash games to have that for my money, because it glitches, and totally gives a sandbox mode.

No, it does. According to ever-reliable Wikipedia, anyway!


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

Board footer