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

#51 2010-08-08 16:54:40

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Online Multiplayer PHP

nXIII wrote:

archmage wrote:

nXIII wrote:


?

PHP would be MUCH faster

Are you sure of this? I remember people on newgrounds talking about php servers a while ago. From what I've heard they are not that great at constant activity (MMO shooter) but are well suited to things like chatrooms and highscore boards. I think you need to provide some sort of way to prove the effectiveness of php servers for MMOs.

Oh, yea, I didn't think you meant a shooter. I think they might be okay for small sessions, too, with 2-4 players in each one.

And web wizard.  wink
The problem with Mesh is that it is local! It would have to be adapted (or you would have to use a program like Hamachi) for you to connect to computers outside your network.

Offline

 

#52 2010-08-09 12:33:11

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

Re: Online Multiplayer PHP

bounce bounce *crash* bump!


You can now reach me on Twitter @johnnydean1_

Offline

 

#53 2010-08-09 13:54:31

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Online Multiplayer PHP

shadow_7283 wrote:

nXIII wrote:

archmage wrote:


Are you sure of this? I remember people on newgrounds talking about php servers a while ago. From what I've heard they are not that great at constant activity (MMO shooter) but are well suited to things like chatrooms and highscore boards. I think you need to provide some sort of way to prove the effectiveness of php servers for MMOs.

Oh, yea, I didn't think you meant a shooter. I think they might be okay for small sessions, too, with 2-4 players in each one.

And web wizard.  wink
The problem with Mesh is that it is local! It would have to be adapted (or you would have to use a program like Hamachi) for you to connect to computers outside your network.

Thats the point in this topic... it doesn't use mesh.  tongue  It uses things like the web page blocks in Panther (Example) to communicate with a PHP file stored on a website.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#54 2010-08-09 14:04:47

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Online Multiplayer PHP

markyparky56 wrote:

shadow_7283 wrote:

nXIII wrote:


Oh, yea, I didn't think you meant a shooter. I think they might be okay for small sessions, too, with 2-4 players in each one.

And web wizard.  wink
The problem with Mesh is that it is local! It would have to be adapted (or you would have to use a program like Hamachi) for you to connect to computers outside your network.

Thats the point in this topic... it doesn't use mesh.  tongue

I was referring to Archmage's post where he claimed that Mesh was a better solution than PHP.

Offline

 

#55 2010-08-09 14:35:34

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Online Multiplayer PHP

shadow_7283 wrote:

markyparky56 wrote:

shadow_7283 wrote:


And web wizard.  wink
The problem with Mesh is that it is local! It would have to be adapted (or you would have to use a program like Hamachi) for you to connect to computers outside your network.

Thats the point in this topic... it doesn't use mesh.  tongue

I was referring to Archmage's post where he claimed that Mesh was a better solution than PHP.

Ah, ok. We'll maybe it would been quicker.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#56 2010-08-10 07:31:57

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Re: Online Multiplayer PHP

Could someone help with some PHP on this topic? I feel too lazy to do it myself. But I can if needed.

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

Offline

 

#57 2010-08-10 07:42:19

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

Re: Online Multiplayer PHP

Once ours is done you can use that!


You can now reach me on Twitter @johnnydean1_

Offline

 

#58 2010-08-10 07:50:37

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Re: Online Multiplayer PHP

johnnydean1 wrote:

Once ours is done you can use that!

Okay. Maybe I will learn PHP so I can help.

Offline

 

#59 2010-08-10 08:30:03

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

Re: Online Multiplayer PHP

ok!


You can now reach me on Twitter @johnnydean1_

Offline

 

#60 2010-08-10 08:41:55

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Online Multiplayer PHP

I can do PHP with databases so I could help now if you want.


/* No comment */

Offline

 

#61 2010-08-10 08:45:15

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

Re: Online Multiplayer PHP

Please, I know little PHP so I can understand what you write but cant then add anything as of now.


I would like any help and anyone who helps get thier name on a credits page. I can make some squeak blocks to transmit strings in Panther, so go write your PHP!


You can now reach me on Twitter @johnnydean1_

Offline

 

#62 2010-08-10 10:55:02

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

Re: Online Multiplayer PHP

If you can get PHP to use sockets and ports, then just have it send data back and forth. Have it connect on the Scratch Ports... But even then, that's still gona be complicated. I would stick to using Python as a server just for the sake of simplicity.

Offline

 

#63 2010-08-10 14:12:46

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

Re: Online Multiplayer PHP

Sparks worked out our system for sending info.


You can now reach me on Twitter @johnnydean1_

Offline

 

#64 2010-08-10 16:52:16

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Online Multiplayer PHP

johnnydean1 wrote:

Sparks worked out our system for sending info.

Or me. I told him to just send page contents requests.

Last edited by nXIII (2010-08-10 16:52:27)


nXIII

Offline

 

#65 2010-08-10 16:53:53

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

Re: Online Multiplayer PHP

Can you code it NXiii


You can now reach me on Twitter @johnnydean1_

Offline

 

#66 2010-08-10 18:07:59

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

Re: Online Multiplayer PHP

Full Moon progress??


You can now reach me on Twitter @johnnydean1_

Offline

 

#67 2010-08-10 18:55:09

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

Re: Online Multiplayer PHP

johnnydean1 wrote:

Full Moon progress??

Again, I won't have started until later this week. I am currently down with strep and working on another project.


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

Offline

 

#68 2010-08-11 13:53:28

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Online Multiplayer PHP

sparks wrote:

what was the point of that? I was explaning why a new catagory does not work, why custom blocks can be used and generally ANSWERING IT! No need to repeat  tongue

Well, how did the Scratch Team make the categorys?
See? Bad Point.

Offline

 

#69 2010-08-11 14:03:21

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

Re: Online Multiplayer PHP

Well you would only need 1 block so whats the point!


You can now reach me on Twitter @johnnydean1_

Offline

 

#70 2010-08-11 15:12:26

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Online Multiplayer PHP

johnnydean1 wrote:

I made a account there and I got this:
$mysql_host = "*****************************";
$mysql_database = "*******************";
$mysql_user = "*******************";
$mysql_password = "********";

Its a PHP thing I think. Its a empty database.

That's the connection information for the MySQL database. You store those in a file called sql.php between <?php and ?> tags and connect to the database like this in the actual web page:

Code:

<?php
include('sql.php');
$connection = mysql_connect($mysql_host, $mysql_user, $mysql_password);
mysql_select_db($mysql_database, $connection);
?>

I recommend deleting the post with that information if don't want people hacking into your database.

Last edited by TheSuccessor (2010-08-11 15:53:57)


/* No comment */

Offline

 

#71 2010-08-11 15:16:03

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

Re: Online Multiplayer PHP

When the PHP code is done I will remove, can you alter yours you put * and not the codes.


You can now reach me on Twitter @johnnydean1_

Offline

 

#72 2010-08-11 15:54:16

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Online Multiplayer PHP

Will do.


/* No comment */

Offline

 

#73 2010-08-11 19:43:22

jake451998
Scratcher
Registered: 2009-04-01
Posts: 100+

Re: Online Multiplayer PHP

My current formula for an online multiplayer game is having a PHP port from scratch and coding it in there after creating a new database in MYsql, then you could code the server information in the PHP port.

Offline

 

#74 2010-08-12 03:35:21

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

Re: Online Multiplayer PHP

We have a system worked out (By Sparks/NXiii Not sure whom) and I would like it coded.


You can now reach me on Twitter @johnnydean1_

Offline

 

#75 2010-08-12 07:14:51

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Online Multiplayer PHP

I could code it if you tell me the system.


/* No comment */

Offline

 

Board footer