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

#1 2008-10-05 16:26:44

bigpeking
Scratcher
Registered: 2007-09-16
Posts: 14

Saving Script?

Does anyone know how to make a saving script? I really need one for my game. I've been jumbling together tons of Scratch blocks for hours and still nothing. Is a saving script even possible? I'm pretty sure if it is it's advanced stuff, so that's why I posted it here.

Offline

 

#2 2008-10-05 16:33:30

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Saving Script?

A saving script isn't possible. It's better to make a password system.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2008-10-05 16:36:17

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

Re: Saving Script?

Offline

 

#4 2008-10-05 16:38:50

bigpeking
Scratcher
Registered: 2007-09-16
Posts: 14

Re: Saving Script?

*sigh* I'm trying to make a game like Pokemon Mystery Dungeon. How would you be able to save the stats and money? It's not like nomatter how many times you play the same day you'll get the same items and money. Guess that won't be possible. But how do saving scripts work? I've seen people use them.

Offline

 

#5 2008-10-05 16:45:52

bigpeking
Scratcher
Registered: 2007-09-16
Posts: 14

Re: Saving Script?

That won't work. I need it so that you can leave the page, come back, and your progress will be saved. I think that's only possible with more advanced scripting engines. I think I should learn C++ or something.

Offline

 

#6 2008-10-05 17:25:07

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

Re: Saving Script?

lemme try one

Offline

 

#7 2008-10-05 17:39:59

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Saving Script?

bigpeking wrote:

*sigh* I'm trying to make a game like Pokemon Mystery Dungeon. How would you be able to save the stats and money? It's not like nomatter how many times you play the same day you'll get the same items and money. Guess that won't be possible. But how do saving scripts work? I've seen people use them.

Saving data is impossible, all other saving scripts that you have seen don't work. Sorry.

The only thing that would work is if you download the project and save it manually.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#8 2008-10-05 17:55:31

SeanCanoodle
Scratcher
Registered: 2008-06-20
Posts: 100+

Re: Saving Script?

Actually there is a way you can sort of save. Have the player download the project, when they want to save their game, stick all the values you need in a list and tell them to save the project on their computer. It can't be saved online but it would work fine offline as long as the project stays on the computer.

Offline

 

#9 2008-10-05 18:03:39

bigpeking
Scratcher
Registered: 2007-09-16
Posts: 14

Re: Saving Script?

archmage wrote:

bigpeking wrote:

*sigh* I'm trying to make a game like Pokemon Mystery Dungeon. How would you be able to save the stats and money? It's not like nomatter how many times you play the same day you'll get the same items and money. Guess that won't be possible. But how do saving scripts work? I've seen people use them.

Saving data is impossible, all other saving scripts that you have seen don't work. Sorry.

The only thing that would work is if you download the project and save it manually.

People will just max out their stats and change the variables so they have the legendaries.

On other websites, there are working saves. Such as Nitrome. You can leave the page, come back, and the level you're on is saved. I know it's with other programs, but what programs?

Offline

 

#10 2008-10-05 18:04:59

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

Re: Saving Script?

Passwords are the way to go.
Heres a project that uses passwords http://scratch.mit.edu/projects/mkolpnji/110622

Offline

 

#11 2008-10-05 18:06:49

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Saving Script?

bigpeking wrote:

archmage wrote:

bigpeking wrote:

*sigh* I'm trying to make a game like Pokemon Mystery Dungeon. How would you be able to save the stats and money? It's not like nomatter how many times you play the same day you'll get the same items and money. Guess that won't be possible. But how do saving scripts work? I've seen people use them.

Saving data is impossible, all other saving scripts that you have seen don't work. Sorry.

The only thing that would work is if you download the project and save it manually.

People will just max out their stats and change the variables so they have the legendaries.

On other websites, there are working saves. Such as Nitrome. You can leave the page, come back, and the level you're on is saved. I know it's with other programs, but what programs?

The program that Nitrome uses is called flash and flash can save data to cookies. Flash requires practice to use though and it isn't free.

You can't compare programs made with flash and programs made with scratch to each other. Scratch doesn't have a lot of features that other languages have.

Last edited by archmage (2008-10-05 18:08:28)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#12 2008-10-06 02:29:29

ihaveamac
Scratcher
Registered: 2007-09-22
Posts: 1000+

Re: Saving Script?

Or use the simple way and use Jens's Lists and Files. (Scratch 1.2.1 Source Code)
The thing is, you can't upload the project, but you can turn it into an EXE that comes with the zip folder.
http://chirp.scratchr.org/dl/Lists%20an … cratch.zip


~ihaveamac - visit ihaveamac.net

Offline

 

Board footer