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

#226 2010-11-20 09:52:42

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: Online Multiplayer PHP

johnnydean1 wrote:

Mods remove that spam please (The html tags).

Thanks for letting us know, but please use the report button next time - it helps us find stuff quicker  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#227 2010-11-20 10:28:18

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

Re: Online Multiplayer PHP

I attempted to... but it wouldnt let me at the time.


You can now reach me on Twitter @johnnydean1_

Offline

 

#228 2010-11-20 12:49:42

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

Re: Online Multiplayer PHP

I had already reported it.  tongue

Offline

 

#229 2010-11-20 16:09:34

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Online Multiplayer PHP

Magnie wrote:

I had already reported it.  tongue

Lol. I did too...


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#230 2010-11-20 16:30:46

Lellowsfuzz
Scratcher
Registered: 2009-04-17
Posts: 500+

Re: Online Multiplayer PHP

I suxorz at PHP. I could test program tho

Offline

 

#231 2010-11-20 16:57:07

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

Re: Online Multiplayer PHP

Magnie wrote:

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.

D:


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

Offline

 

#232 2010-11-20 16:59:02

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

Re: Online Multiplayer PHP

Wolfie1996 wrote:

johnnydean1 wrote:

Mods remove that spam please (The html tags).

Thanks for letting us know, but please use the report button next time - it helps us find stuff quicker  smile

i use report buttion  big_smile  please dont report


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

Offline

 

#233 2010-11-21 18:53:26

Lellowsfuzz
Scratcher
Registered: 2009-04-17
Posts: 500+

Re: Online Multiplayer PHP

bump.

Offline

 

#234 2011-02-11 14:36:53

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

Re: Online Multiplayer PHP

Necrobump  tongue
It was on page ten, far too low down.


/* No comment */

Offline

 

#235 2011-02-11 22:27:50

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Online Multiplayer PHP

This shouldn't be too hard. I'll work on a simple base.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#236 2011-02-12 22:08:25

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Online Multiplayer PHP

Base is almost done  big_smile


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#237 2011-02-13 16:25:59

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Online Multiplayer PHP

How can i help?

Offline

 

#238 2011-04-10 09:44:34

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

Re: Online Multiplayer PHP

Got anywhere yet?


You can now reach me on Twitter @johnnydean1_

Offline

 

#239 2011-04-12 07:56:30

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

Re: Online Multiplayer PHP

johnnydean1 wrote:

rdococ wrote:

I would have these blocks:

'Register'
Requests player to create an account. An command block.
JD1:
All this would need be would be 2 ask blocks (user and pass) and then a PHP script that writes them to a database


'login to server %server'
Requets player to login. An command block.
JD1:
All this would need to be is a block to acess a PHP script to write the IP to a database

'online players on server %server'
Reports a list of online players on selected server. An list reporter - shared.
JD1:
Just a simple webpage reporter.

'play online game %onlineGamesDownloaded'
Finds other players to play with. Then it plays selected online game. An command block.
JD1:
This may not be easy but can be done with other blocks. E.G these blocks make the game

'rank'
Reports rank on winning games. An variable reporter.
JD1:
Easy reads of a webpage.
Basic PHP to change a variable in a database when ranking up.

'chat'
Reports chat history, able to add text to list. An list reporter - shared.
JD1:
Reports a database used for chatting. Same as rank for code.

'status'
Reports status. You can change it to online, brb, idle, busy, away or offline. An variable reporter.
JD1:
Same as chat

'log off'
Logs player off the server.
JD1:
Simple PHP to remove IP from database

All go in a new category called 'online' Color = grey

There is a problem with my enter key. (not anymore)

Err-
Windows found a virus. Virus name: JD1
Reason: Aggressively "correcting" suggestions
Delete?
[Yes]

Offline

 

#240 2011-04-12 10:24:22

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Online Multiplayer PHP

How can I help>

Offline

 

#241 2011-04-12 10:26:54

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

Re: Online Multiplayer PHP

Well I got bored of waiting so had a go myself. See here.


You can now reach me on Twitter @johnnydean1_

Offline

 

#242 2011-04-12 10:34:31

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Online Multiplayer PHP

talking about PHP trust me mate Javascript is a very b8r option for it rather then scratch .!, cuz i am making a JAVAscript Based MMO and i really find Javascript a faster way to that using xmlhttprequest or JSON based datasharing  to downlink data and forms to send variables  tongue


Talking about php servers ..

110mb.com provides epic hosting for free ** Though u might have to fill a form now

Last edited by fanofcena (2011-04-12 10:36:09)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#243 2011-04-12 15:19:02

powerlight12
Scratcher
Registered: 2010-12-01
Posts: 12

Re: Online Multiplayer PHP

Hi mathwizz!

Offline

 

Board footer