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

#1 2012-06-30 12:16:30

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Will scratch be al-right with massive lists?

I wanted to know whether there were any glitches or problems with huge lists. You see, I'm making a city game which allows you to build on 2401 tiles, therefore requiring huge lists to store all of the data. I might even think about increasing this to something larger.


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#2 2012-06-30 12:34:39

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: Will scratch be al-right with massive lists?

A list can run fine with 2400 items, it depends on what else will be in the game. It may have some trouble if you plan on running quite a few more tasks, but if the game is more on the simple side I'd guess it'd be okay.

Try asking Scratch to do a bunch of tasks including adding 2400 items to a list and see how it goes.

Last edited by stevetheipad (2012-06-30 12:54:24)


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#3 2012-06-30 12:42:05

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Will scratch be al-right with massive lists?

Borrego6165 wrote:

I wanted to know whether there were any glitches or problems with huge lists. You see, I'm making a city game which allows you to build on 2401 tiles, therefore requiring huge lists to store all of the data. I might even think about increasing this to something larger.

I think lists wiht 10's of thousands of items are ok, someone (sorry, I forgot who) made something to say the first 20,000 digits of pi which was stored in a list.
PS. See my gibberish generator V2 for a huge list (well, you will need to put a long string into it).


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#4 2012-06-30 12:49:14

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Will scratch be al-right with massive lists?

thanks you two! but what does stevetheipad mean by "Moreno"


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#5 2012-06-30 12:55:01

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: Will scratch be al-right with massive lists?

Borrego6165 wrote:

thanks you two! but what does stevetheipad mean by "Moreno"

Ooops, that's auto correct's fault. It was supposed to say "more on".  tongue

Last edited by stevetheipad (2012-06-30 12:55:09)


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#6 2012-06-30 13:30:48

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Will scratch be al-right with massive lists?

Borrego6165 wrote:

thanks you two! but what does stevetheipad mean by "Moreno"

A list can store 10,000 items before they go to the top, and restart all over...


Get ready for domination of:  tongue

Offline

 

#7 2012-06-30 13:41:13

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Will scratch be al-right with massive lists?

If you have massive lists, your project will take a very long time to save, but it won't disrupt program function.

Ive filled lists to I think 18000 items before, so its fine. And coolhogs, lists don't restart all over.

2400 items is nothing, that probably wont even lag the saving.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#8 2012-06-30 13:43:05

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Will scratch be al-right with massive lists?

Wes64 wrote:

If you have massive lists, your project will take a very long time to save, but it won't disrupt program function.

Ive filled lists to I think 18000 items before, so its fine. And coolhogs, lists don't restart all over.

2400 items is nothing, that probably wont even lag the saving.

woah! 18000 tiles here I come...  big_smile


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#9 2012-06-30 13:55:15

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Will scratch be al-right with massive lists?

Wes64 wrote:

If you have massive lists, your project will take a very long time to save, but it won't disrupt program function.

Ive filled lists to I think 18000 items before, so its fine. And coolhogs, lists don't restart all over.

2400 items is nothing, that probably wont even lag the saving.

I had a list that was 360 long that lagged the saving, probably because the list contained 172,800 characters.
@Borrego165, if the items are one character long, unless you have over 50,000 items, it won't lag.

Offline

 

#10 2012-06-30 16:22:21

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Will scratch be al-right with massive lists?

Offline: No.
Online: Yes.


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#11 2012-06-30 17:53:21

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Will scratch be al-right with massive lists?

well the value's minimum is 0 and maximum is 57. each number represents a building, except 0 means "no stamp". if a tile has no stamp, that means that it is part of another building. You see, unlike other city games this allows you to place structures of more than 1 sized tile. so you could have 2X3 for example, and it would remember to only stamp the top corner.

Here's what I'm on about.

Last edited by Borrego6165 (2012-06-30 17:57:26)


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#12 2012-07-01 00:09:54

JJROCKER
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Will scratch be al-right with massive lists?

I've had my internet crash because I made something that can make unlimited lists  tongue


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&link4=http://i.imgur.com/POEpQyZ.png&link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#13 2012-07-01 02:52:13

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Will scratch be al-right with massive lists?

JJROCKER wrote:

I've had my internet crash because I made something that can make unlimited lists  tongue

epic fail... was it worth it though?


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#14 2012-07-03 12:33:05

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Will scratch be al-right with massive lists?

I had a project with six lists each containing over fifty items and it was fine.  hmm


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#15 2012-07-03 13:25:27

CylonToast
Scratcher
Registered: 2011-10-06
Posts: 1000+

Re: Will scratch be al-right with massive lists?

You can probably do that with lists but not variables with numbers, because some scripts can cause the variable to ascend all the way to infinity and will cause Scratch to freeze.


https://lh3.googleusercontent.com/-Axvm8TlDHc4/Tocl0m1Z39I/AAAAAAAACAI/j32nzVU69DU/animated-peanut.gifhttp://gifsoup.com/webroot/animatedgifs/136991_o.gif

Offline

 

#16 2012-07-03 15:27:27

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: Will scratch be al-right with massive lists?

My Star Trek game has a list with 15,000 entries and it runs fine.

I don't think you'll have any trouble with such a small list.


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

Board footer