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

#1 2011-04-30 12:59:54

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Um...help...here...:D?

Is there a way to store data from Scratch projects online, and retrieve them when a user enters a password? Because that would be REALLY cool, and I sort of want to put that in a new Scratch mod that has almost no new blocks.

Offline

 

#2 2011-04-30 13:18:30

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Um...help...here...:D?

somelia wrote:

Is there a way to store data from Scratch projects online, and retrieve them when a user enters a password? Because that would be REALLY cool, and I sort of want to put that in a new Scratch mod that has almost no new blocks.

Maybe you could make something that writes a project summary and stores the summary online.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#3 2011-04-30 13:22:24

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Um...help...here...:D?

scratcher7_13 wrote:

somelia wrote:

Is there a way to store data from Scratch projects online, and retrieve them when a user enters a password? Because that would be REALLY cool, and I sort of want to put that in a new Scratch mod that has almost no new blocks.

Maybe you could make something that writes a project summary and stores the summary online.

But how would I retrieve the data? I'm trying to create a virtual pet game that saves data. I could use Panther and make it save on the computer maybe.

Offline

 

#4 2011-04-30 13:27:42

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Um...help...here...:D?

somelia wrote:

scratcher7_13 wrote:

somelia wrote:

Is there a way to store data from Scratch projects online, and retrieve them when a user enters a password? Because that would be REALLY cool, and I sort of want to put that in a new Scratch mod that has almost no new blocks.

Maybe you could make something that writes a project summary and stores the summary online.

But how would I retrieve the data? I'm trying to create a virtual pet game that saves data. I could use Panther and make it save on the computer maybe.

I have the code to save something on a computer.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#5 2011-04-30 13:29:41

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Um...help...here...:D?

scratcher7_13 wrote:

somelia wrote:

scratcher7_13 wrote:

Maybe you could make something that writes a project summary and stores the summary online.

But how would I retrieve the data? I'm trying to create a virtual pet game that saves data. I could use Panther and make it save on the computer maybe.

I have the code to save something on a computer.

Panther already has that feature. But it would be nice to store something on the web.

Offline

 

#6 2011-04-30 13:38:23

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Um...help...here...:D?

somelia wrote:

scratcher7_13 wrote:

somelia wrote:

But how would I retrieve the data? I'm trying to create a virtual pet game that saves data. I could use Panther and make it save on the computer maybe.

I have the code to save something on a computer.

Panther already has that feature. But it would be nice to store something on the web.

Make a website for it and I might be able to help.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#7 2011-04-30 14:20:30

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Um...help...here...:D?

What you need is a MySQL enabled website. You can then use php POST functions to send information such as username and password to a page using a block and then have set information sent back to the block. You can see Jonnydean1 and myself developing and discussing just such a site here. The site we set up with the Panther custom blocks I shared there would be perfect for your game. Just remember that the information stored on that server will be viewable to everyone - don't share one of your passwords of anything else you don't want anyone to see  smile  If you want a private system for your game you can probably modify our example and put it onto a site of your own!

I strongly suggest you take the time to familiarise yourself with HTLM, PHP and MySQL before you try this for yourself though!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#8 2011-04-30 15:34:01

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Um...help...here...:D?

sparks wrote:

What you need is a MySQL enabled website. You can then use php POST functions to send information such as username and password to a page using a block and then have set information sent back to the block. You can see Jonnydean1 and myself developing and discussing just such a site here. The site we set up with the Panther custom blocks I shared there would be perfect for your game. Just remember that the information stored on that server will be viewable to everyone - don't share one of your passwords of anything else you don't want anyone to see  smile  If you want a private system for your game you can probably modify our example and put it onto a site of your own!

I strongly suggest you take the time to familiarise yourself with HTLM, PHP and MySQL before you try this for yourself though!

Thank you. I'll store the password on a user's computer, and all the other data will be stored online.

wink

Offline

 

#9 2011-04-30 15:43:44

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Um...help...here...:D?

I can help!!!!

I developed something just for this.
See here.

And this mod for the blocks (Instructions on web)

Last edited by johnnydean1 (2011-04-30 15:45:38)


You can now reach me on Twitter @johnnydean1_

Offline

 

#10 2011-04-30 16:01:50

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Um...help...here...:D?

As sparks was talking about you could save the data online so you can access it from any computer. I made a Panther 'Mini-Forum' Project with PHP and MySQL, though it still has a few quirks. Through PHP and MySQL, you will be able to get on any computer with that project and play your character.

If you need any help, I'll be willing.  smile

Offline

 

#11 2011-04-30 16:02:33

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Um...help...here...:D?

Magnie wrote:

As sparks was talking about you could save the data online so you can access it from any computer. I made a Panther 'Mini-Forum' Project with PHP and MySQL, though it still has a few quirks. Through PHP and MySQL, you will be able to get on any computer with that project and play your character.

If you need any help, I'll be willing.  smile

Thats what I have done! (SQL and PHP)


You can now reach me on Twitter @johnnydean1_

Offline

 

#12 2011-04-30 20:57:55

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Um...help...here...:D?

Magnie wrote:

As sparks was talking about you could save the data online so you can access it from any computer. I made a Panther 'Mini-Forum' Project with PHP and MySQL, though it still has a few quirks. Through PHP and MySQL, you will be able to get on any computer with that project and play your character.

If you need any help, I'll be willing.  smile

I need total and utter help. I've been trying to learn PHP, but every time, I just go like "Wut."

Offline

 

#13 2011-05-01 05:16:12

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Um...help...here...:D?

I used w3schools to learn php and MySQL - they were very clear with their tutorials. A few basic rules, semi-colons appear after nigh on every line ( wink  like in C++. = is a set to symbol so you can create and set a variable like so:

$variable = 'hello';

a $ symbol represents a variable name and a variable can start with any letter or number but try not to use other characters as things like _ are reserved! using single speech marks is advised (') rather than doubles (") as php can be picky about speech marks inside speech marks.

Use w3schools, I found them very clear!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#14 2011-05-01 06:05:10

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Um...help...here...:D?

Or use my pre-done way!


You can now reach me on Twitter @johnnydean1_

Offline

 

#15 2011-05-02 12:33:43

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Um...help...here...:D?

somelia wrote:

Magnie wrote:

As sparks was talking about you could save the data online so you can access it from any computer. I made a Panther 'Mini-Forum' Project with PHP and MySQL, though it still has a few quirks. Through PHP and MySQL, you will be able to get on any computer with that project and play your character.

If you need any help, I'll be willing.  smile

I need total and utter help. I've been trying to learn PHP, but every time, I just go like "Wut."

What do you need help with ( or need made  tongue  )?

Offline

 

#16 2011-05-02 18:24:13

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Um...help...here...:D?

Magnie wrote:

somelia wrote:

Magnie wrote:

As sparks was talking about you could save the data online so you can access it from any computer. I made a Panther 'Mini-Forum' Project with PHP and MySQL, though it still has a few quirks. Through PHP and MySQL, you will be able to get on any computer with that project and play your character.

If you need any help, I'll be willing.  smile

I need total and utter help. I've been trying to learn PHP, but every time, I just go like "Wut."

What do you need help with ( or need made  tongue  )?

I'm trying to do a virtual pet website/game. You can play with the pet via Scratch, but I wan the data to be able to be put online, so it could be possible for players to interact with each other. Message system, battle system, ETC.

Offline

 

#17 2011-05-02 18:33:27

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

Re: Um...help...here...:D?

somelia wrote:

Magnie wrote:

somelia wrote:


I need total and utter help. I've been trying to learn PHP, but every time, I just go like "Wut."

What do you need help with ( or need made  tongue  )?

I'm trying to do a virtual pet website/game. You can play with the pet via Scratch, but I wan the data to be able to be put online, so it could be possible for players to interact with each other. Message system, battle system, ETC.

Oh, it is possible, IDK how. Someone made a block, I think its in the block library.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

Board footer