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

#201 2010-09-27 11:18:47

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

Re: Online Multiplayer PHP


/* No comment */

Offline

 

#202 2010-09-27 16:17:58

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

Re: Online Multiplayer PHP

Oh...

Did you save a copy of the code?


You can now reach me on Twitter @johnnydean1_

Offline

 

#203 2010-09-28 11:42:01

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

Re: Online Multiplayer PHP

bump


You can now reach me on Twitter @johnnydean1_

Offline

 

#204 2010-09-28 11:44:16

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

Re: Online Multiplayer PHP

Errm... no.


/* No comment */

Offline

 

#205 2010-09-28 11:46:32

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

Re: Online Multiplayer PHP

Ohh. Can you remake it?


You can now reach me on Twitter @johnnydean1_

Offline

 

#206 2010-09-28 11:47:54

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

Re: Online Multiplayer PHP

Yes. Not now though. I'm meant to be doing English homework.


/* No comment */

Offline

 

#207 2010-09-28 11:53:06

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

Re: Online Multiplayer PHP

Ok, if you can post it here as you make it (so we can all see) youll have a back up.
Try and make it so you can adapt it for any site (it can use any database)


You can now reach me on Twitter @johnnydean1_

Offline

 

#208 2010-09-28 11:54:16

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

Re: Online Multiplayer PHP

Ok.


/* No comment */

Offline

 

#209 2010-09-28 11:55:27

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

Re: Online Multiplayer PHP

cool...


You can now reach me on Twitter @johnnydean1_

Offline

 

#210 2010-09-28 11:58:39

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

Re: Online Multiplayer PHP

This maybe better for hosting: http://www.zymic.com/sign-up/


You can now reach me on Twitter @johnnydean1_

Offline

 

#211 2010-09-28 12:05:19

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

Re: Online Multiplayer PHP

The website for my mod is already hosted there (http://xcubed.zxq.net), so I might be able to get it up there soon with its own subdomain as I already have an account. I'll do it tomorrow.


/* No comment */

Offline

 

#212 2010-10-10 12:01:34

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

Re: Online Multiplayer PHP

bump


You can now reach me on Twitter @johnnydean1_

Offline

 

#213 2010-10-10 12:14:59

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

Re: Online Multiplayer PHP

Their file manager is out of action and has been for a while. As soon as they fix it I'll create a new subdomain and set it up.


/* No comment */

Offline

 

#214 2010-10-11 13:49:05

radicalace
Scratcher
Registered: 2008-06-18
Posts: 85

Re: Online Multiplayer PHP

johnnydean1 wrote:

Heres a idea, how about we get together and make a very easy online multiplayer PHP.

Used in any mod that can get info from a webpage I propose these new blocks:

set name to %s
Sets the name of the client to a string

set game to %s
The name of the game you are playing

store %v online
Stores the chosen variable online using PHP, seperate for every user and seprated by game names

(get %v of player %s online)
Gets the variable of the selected player using PHP

(get all of %v seperated by %s)
Gets all copys of the chosen variable and the name seperated by the string
e.g
get hi seperated by /
would return:
/player1/6/player2/7/

(all players online seperated by %s)
Would return all players online seperated by a string

and they could also be used by

add all players online to list %L
add all of variable %v to list %L

so the lists would do the same as normal but the / is a newline


So anyone willing to code these in PHP please say, I can help with the Scratch side.

HOW
MUCH
WOULD
SERVERS
COST


EXACTLY

Offline

 

#215 2010-10-11 14:13:32

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

Re: Online Multiplayer PHP

You can usually get something for free with a quick Google search.


/* No comment */

Offline

 

#216 2010-10-26 15:01:22

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

Re: Online Multiplayer PHP

bump


You can now reach me on Twitter @johnnydean1_

Offline

 

#217 2010-10-26 15:37:04

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

Re: Online Multiplayer PHP


/* No comment */

Offline

 

#218 2010-10-26 15:57:41

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

Re: Online Multiplayer PHP

ok


You can now reach me on Twitter @johnnydean1_

Offline

 

#219 2010-10-27 07:05:28

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

Re: Online Multiplayer PHP

Zymic have sorted everything out! I'll be starting soon.
Address: scratchphp.zxq.net/jd1 (I know it says 403 Forbidden).


/* No comment */

Offline

 

#220 2010-10-27 07:06:17

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

Re: Online Multiplayer PHP

ok  smile


You can now reach me on Twitter @johnnydean1_

Offline

 

#221 2010-11-19 15:26:00

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

Re: Online Multiplayer PHP

bump


You can now reach me on Twitter @johnnydean1_

Offline

 

#222 2010-11-19 16:08:14

stickdude123
Scratcher
Registered: 2010-05-31
Posts: 100+

Re: Online Multiplayer PHP

heres an idea!  big_smile

there is one buttion in a new category,the buttions called create new user! but under the buttion before you make the user there are a couple blocks

blocks before making user:
create new user named [some guy]

blocks when making new user:

ban [user]
monitor [user] {MONITOR NOT MODERATOR}
make moderator[some user]

and thos might help


http://internetometer.com/imagesmall/34259.png http://www.mediafire.com/convkey/418e/lkb7wmv2n2k73rz5g.jpg         http://blocks.scratchr.org/API.php?user=stickdude123&action=onlineStatus&type=square

Offline

 

#223 2010-11-19 16:58:26

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

Re: Online Multiplayer PHP

stickdude123 wrote:

heres an idea!  big_smile

there is one buttion in a new category,the buttions called create new user! but under the buttion before you make the user there are a couple blocks

blocks before making user:
create new user named [some guy]

blocks when making new user:

ban [user]
monitor [user] {MONITOR NOT MODERATOR}
make moderator[some user]

and thos might help

Creating blocks for a single project isn't a very good idea, basically useless, as this is going to be done in PHP, all users and stuff will be done on a PHP page, so when you load a web page "scratchonlinephp.tld/game/createuser.php?username=Magnie&password=mypassword". The page would create the user:

Code:

<?php

$con = mysql_connect("localhost","account","password");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
else
  {
  $page = "Connection Successful<BR><BR>";
  }
$un = $_GET['username'];
$pw = $_GET['password'];
$pw = md5($pw);

$result = mysql_query("SELECT * FROM table.accounts", $con);
$num_rows = mysql_num_rows($result);

if ($un)
  {
  $add_user = mysql_query("INSERT INTO table.accounts (`id`,`username`,`password`)
      VALUES ('$num_rows', '$un', '$pw')");
  echo $un." ( with ID#".$num_rows." ) has been added.";
  }
?>

Adding a few other things you can add Membership groups, like Owner, Admin, Moderator, Banned, Member.

There isn't any need to make a block as far as I'm concerned.

Last edited by Magnie (2010-11-19 16:59:32)

Offline

 

#224 2010-11-19 16:59:47

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

Re: Online Multiplayer PHP

We have already decided on the blocks.
Set Game || Player || Type || Variable || To ||
and
Get Game || Player || Type || Variable ||
and
Players in game ||
and
games

I will also be adding

PHP Chat || Username ||
(PHP Chat)


You can now reach me on Twitter @johnnydean1_

Offline

 

#225 2010-11-20 09:31:56

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

Re: Online Multiplayer PHP

Mods remove that spam please (The html tags).

Any how, me and TheSuccessor have had this working before, but it was shut down. We know that PHP works.


You can now reach me on Twitter @johnnydean1_

Offline

 

Board footer