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)

Offline
costume numbers make it worse
Offline
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
Offline
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?
. 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)

Offline
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?
. 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...
Offline
fullmoon wrote:
NaN means "not a number", right? I'll try removing all 96 "pop" sounds from the project
![]()
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.
Offline
Cyclone103 wrote:
fullmoon wrote:
NaN means "not a number", right? I'll try removing all 96 "pop" sounds from the project
![]()
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!

Offline