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

#26 2012-01-16 14:59:14

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

Re: CloudGaming Panther Gaming Client - Based on Kabam.

ZeroLuck wrote:

SeptimusHeap wrote:

Also trying to think of a way so only the client can submit data, not anyone else. Any ideas?

This is impossible!
I think you have to read something about networking before doing something like that game...

It's called sockets.  smile  Sockets is what I use for Chat.PY.

Offline

 

#27 2012-01-16 15:07:29

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Magnie wrote:

It's called sockets.  smile  Sockets is what I use for Chat.PY.

And?
It is inpossible for him that only his client can connect to the Server.
It is inpossible with Sockets too! (He is using Sockets, HTTP works with TCP/IP too)

Last edited by ZeroLuck (2012-01-16 15:09:30)


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#28 2012-01-16 15:29:27

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

Re: CloudGaming Panther Gaming Client - Based on Kabam.

ZeroLuck wrote:

Magnie wrote:

It's called sockets.  smile  Sockets is what I use for Chat.PY.

And?
It is inpossible for him that only his client can connect to the Server.
It is inpossible with Sockets too! (He is using Sockets, HTTP works with TCP/IP too)

HTTP is a protocol used to transfer web-pages. You connect, send the request, get data, close connection.

Plain Old Sockets (What I use) is used to do HTTP and other connections not specifically for transferring web-pages.

And this project itself is not impossible. I don't see what's impossible about it. I could create something like this with PHP (using HTTP) or Python (sockets raw).

Offline

 

#29 2012-01-16 16:27:45

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Magnie wrote:

HTTP is a protocol used to transfer web-pages. You connect, send the request, get data, close connection.

Plain Old Sockets (What I use) is used to do HTTP and other connections not specifically for transferring web-pages.

And this project itself is not impossible. I don't see what's impossible about it. I could create something like this with PHP (using HTTP) or Python (sockets raw).

You don't read what he wants to know and what I answered him?
He wants to make it impossible for other applications than his client to connect
to his http server.
And I said that he can't do that. Everybody can connect to his server even if he use
raw sockets. I don't said that you can't try to make a game in http.
(This is a very bad idea because you would open very much connections in short time)

I programmed much harder things than your small Scratch server.
Why should I don't know what http and sockets are?


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#30 2012-01-16 16:41:22

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

Re: CloudGaming Panther Gaming Client - Based on Kabam.

ZeroLuck wrote:

Magnie wrote:

HTTP is a protocol used to transfer web-pages. You connect, send the request, get data, close connection.

Plain Old Sockets (What I use) is used to do HTTP and other connections not specifically for transferring web-pages.

And this project itself is not impossible. I don't see what's impossible about it. I could create something like this with PHP (using HTTP) or Python (sockets raw).

You don't read what he wants to know and what I answered him?
He wants to make it impossible for other applications than his client to connect
to his http server.
And I said that he can't do that. Everybody can connect to his server even if he use
raw sockets. I don't said that you can't try to make a game in http.
(This is a very bad idea because you would open very much connections in short time)

I programmed much harder things than your small Scratch server.
Why should I don't know what http and sockets are?

Yeah, specifying one application to connect to the server would be impossible.

I guess I didn't understand what was going on. Oh well.

Out of curiosity, what things have you programmed? A Scratch Server is really simple, so of course you've probably programmed harder things than it.

Offline

 

#31 2012-01-17 07:45:12

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Magnie wrote:

Out of curiosity, what things have you programmed? A Scratch Server is really simple, so of course you've probably programmed harder things than it.

Only for Scratch I have done this things:
Big things with up to 6000 lines code:
    - Android Scratch player ( )
    - Fast Java player,  ( I never finished it... )
    - JBlocks, ( In devolpment: http://www.zero-bgn.de/js/ )

Some other things:
    - Scratch to Jar with JavaPlayer
    - Scratch to Jar with FlashPlayer
    - Scratch to Jar with Panther
    - Scratch to Jar and Applets with Mesh, (I don't realeased it yet)

  wink

Last edited by ZeroLuck (2012-01-17 07:46:44)


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#32 2012-01-17 09:53:44

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

Re: CloudGaming Panther Gaming Client - Based on Kabam.

ZeroLuck wrote:

Magnie wrote:

Out of curiosity, what things have you programmed? A Scratch Server is really simple, so of course you've probably programmed harder things than it.

Only for Scratch I have done this things:
Big things with up to 6000 lines code:
    - Android Scratch player ( )
    - Fast Java player,  ( I never finished it... )
    - JBlocks, ( In devolpment: http://www.zero-bgn.de/js/ )

Some other things:
    - Scratch to Jar with JavaPlayer
    - Scratch to Jar with FlashPlayer
    - Scratch to Jar with Panther
    - Scratch to Jar and Applets with Mesh, (I don't realeased it yet)

  wink

Cool, think you could add Remote Sensors to the Flash Player, maybe even just the Java Player?  big_smile

Offline

 

#33 2012-01-17 09:55:38

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Magnie wrote:

Cool, think you could add Remote Sensors to the Flash Player, maybe even just the Java Player?  big_smile

Yes!


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#34 2012-01-17 09:57:43

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

Re: CloudGaming Panther Gaming Client - Based on Kabam.

ZeroLuck wrote:

Magnie wrote:

Cool, think you could add Remote Sensors to the Flash Player, maybe even just the Java Player?  big_smile

Yes!

You should probably make another topic. Sorry for hijacking the thread SeptimusHeap!

Offline

 

#35 2012-01-17 17:55:14

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Magnie wrote:

ZeroLuck wrote:

Magnie wrote:

Cool, think you could add Remote Sensors to the Flash Player, maybe even just the Java Player?  big_smile

Yes!

You should probably make another topic. Sorry for hijacking the thread SeptimusHeap!

No prob.

Now how do you guys think I could make my server secure? I don't want someone to just be able to use a block and change my values.


http://i46.tinypic.com/dw7zft.png

Offline

 

#36 2012-01-17 21:40:58

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

Re: CloudGaming Panther Gaming Client - Based on Kabam.

SeptimusHeap wrote:

Magnie wrote:

ZeroLuck wrote:


Yes!

You should probably make another topic. Sorry for hijacking the thread SeptimusHeap!

No prob.

Now how do you guys think I could make my server secure? I don't want someone to just be able to use a block and change my values.

There are a couple ways to do this. If you using HTTP you will want to use something like "cookies". So when you send a GET request like "add_comment.php?cookie=[cookie key]&user=[username]&comment=[comment text here]" and the server will validate user and cookie with the MySQL database, and if they are correct and the user is allowed to post comments, then the server adds the comment to the comment list.

PHP:

Code:

<?php
$user = $_GET['user'];
$cookie = $_GET['cookie'];

if ($user == 'Magnie' && $cookie == '789236') {
    $comment = $_GET['comment'];
    mysql_query("INSERT INTO comments_table (username, comment)
values ('$user', '$comment')");
    echo 'Comment added.';
} else {
    echo 'Authentication failed.';
}
?>

If you plan on using raw sockets, you can drop the cookie and user authentication stuff and just have them login once and then they can add a comment if their "account" is allowed to.

Python Snip-lit:

Code:

# [Server and client stuff is coded here]
data = self.client.recv(1024)
data.split(' ')
if data[0] == 'comment':
    server.comment_list.append( ' '.join(data[1:]) )

There is a ton more code for the server and stuff, but that's the basic concept. The PHP code is hosted on a web-server, so all the server code, etc, is done for you, all you have to do is write the code for the web-pages.

If you really want to make something like Kabam, but with security, you should learn how to code first instead of making the project in a language you don't even know how to code in.

Offline

 

#37 2012-01-18 07:08:13

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Magnie wrote:

SeptimusHeap wrote:

Magnie wrote:


You should probably make another topic. Sorry for hijacking the thread SeptimusHeap!

No prob.

Now how do you guys think I could make my server secure? I don't want someone to just be able to use a block and change my values.

There are a couple ways to do this. If you using HTTP you will want to use something like "cookies". So when you send a GET request like "add_comment.php?cookie=[cookie key]&user=[username]&comment=[comment text here]" and the server will validate user and cookie with the MySQL database, and if they are correct and the user is allowed to post comments, then the server adds the comment to the comment list.

PHP:

Code:

<?php
$user = $_GET['user'];
$cookie = $_GET['cookie'];

if ($user == 'Magnie' && $cookie == '789236') {
    $comment = $_GET['comment'];
    mysql_query("INSERT INTO comments_table (username, comment)
values ('$user', '$comment')");
    echo 'Comment added.';
} else {
    echo 'Authentication failed.';
}
?>

If you plan on using raw sockets, you can drop the cookie and user authentication stuff and just have them login once and then they can add a comment if their "account" is allowed to.

Python Snip-lit:

Code:

# [Server and client stuff is coded here]
data = self.client.recv(1024)
data.split(' ')
if data[0] == 'comment':
    server.comment_list.append( ' '.join(data[1:]) )

There is a ton more code for the server and stuff, but that's the basic concept. The PHP code is hosted on a web-server, so all the server code, etc, is done for you, all you have to do is write the code for the web-pages.

If you really want to make something like Kabam, but with security, you should learn how to code first instead of making the project in a language you don't even know how to code in.

Hmm...

I WAS going to have most of the stuff be client based, as I can do that in Panther, which I'm pretty fluent in. I guess it will be hard though. I didn't know that the web coding part would be so difficult.


http://i46.tinypic.com/dw7zft.png

Offline

 

#38 2012-01-18 12:50:58

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

SeptimusHeap wrote:

Magnie wrote:

SeptimusHeap wrote:


No prob.

Now how do you guys think I could make my server secure? I don't want someone to just be able to use a block and change my values.

There are a couple ways to do this. If you using HTTP you will want to use something like "cookies". So when you send a GET request like "add_comment.php?cookie=[cookie key]&user=[username]&comment=[comment text here]" and the server will validate user and cookie with the MySQL database, and if they are correct and the user is allowed to post comments, then the server adds the comment to the comment list.

PHP:

Code:

<?php
$user = $_GET['user'];
$cookie = $_GET['cookie'];

if ($user == 'Magnie' && $cookie == '789236') {
    $comment = $_GET['comment'];
    mysql_query("INSERT INTO comments_table (username, comment)
values ('$user', '$comment')");
    echo 'Comment added.';
} else {
    echo 'Authentication failed.';
}
?>

If you plan on using raw sockets, you can drop the cookie and user authentication stuff and just have them login once and then they can add a comment if their "account" is allowed to.

Python Snip-lit:

Code:

# [Server and client stuff is coded here]
data = self.client.recv(1024)
data.split(' ')
if data[0] == 'comment':
    server.comment_list.append( ' '.join(data[1:]) )

There is a ton more code for the server and stuff, but that's the basic concept. The PHP code is hosted on a web-server, so all the server code, etc, is done for you, all you have to do is write the code for the web-pages.

If you really want to make something like Kabam, but with security, you should learn how to code first instead of making the project in a language you don't even know how to code in.

Hmm...

I WAS going to have most of the stuff be client based, as I can do that in Panther, which I'm pretty fluent in. I guess it will be hard though. I didn't know that the web coding part would be so difficult.

I could put one of my servers to the test, its plain Text, although it could be encrypted, if you wanted it to be.


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#39 2012-01-18 17:39:26

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

Re: CloudGaming Panther Gaming Client - Based on Kabam.

SeptimusHeap wrote:

Hmm...

I WAS going to have most of the stuff be client based, as I can do that in Panther, which I'm pretty fluent in. I guess it will be hard though. I didn't know that the web coding part would be so difficult.

If you want security, you need everything to be handled by the server. If everything is client side, then the client can do whatever they want (thus making Mesh insecure as well).

Offline

 

#40 2012-01-18 18:41:45

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Servine wrote:

SeptimusHeap wrote:

Magnie wrote:


There are a couple ways to do this. If you using HTTP you will want to use something like "cookies". So when you send a GET request like "add_comment.php?cookie=[cookie key]&user=[username]&comment=[comment text here]" and the server will validate user and cookie with the MySQL database, and if they are correct and the user is allowed to post comments, then the server adds the comment to the comment list.

PHP:

Code:

<?php
$user = $_GET['user'];
$cookie = $_GET['cookie'];

if ($user == 'Magnie' && $cookie == '789236') {
    $comment = $_GET['comment'];
    mysql_query("INSERT INTO comments_table (username, comment)
values ('$user', '$comment')");
    echo 'Comment added.';
} else {
    echo 'Authentication failed.';
}
?>

If you plan on using raw sockets, you can drop the cookie and user authentication stuff and just have them login once and then they can add a comment if their "account" is allowed to.

Python Snip-lit:

Code:

# [Server and client stuff is coded here]
data = self.client.recv(1024)
data.split(' ')
if data[0] == 'comment':
    server.comment_list.append( ' '.join(data[1:]) )

There is a ton more code for the server and stuff, but that's the basic concept. The PHP code is hosted on a web-server, so all the server code, etc, is done for you, all you have to do is write the code for the web-pages.

If you really want to make something like Kabam, but with security, you should learn how to code first instead of making the project in a language you don't even know how to code in.

Hmm...

I WAS going to have most of the stuff be client based, as I can do that in Panther, which I'm pretty fluent in. I guess it will be hard though. I didn't know that the web coding part would be so difficult.

I could put one of my servers to the test, its plain Text, although it could be encrypted, if you wanted it to be.

Cool. Could you maybe work on the server side of things?


http://i46.tinypic.com/dw7zft.png

Offline

 

#41 2012-01-19 10:41:28

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

SeptimusHeap wrote:

Servine wrote:

SeptimusHeap wrote:


Hmm...

I WAS going to have most of the stuff be client based, as I can do that in Panther, which I'm pretty fluent in. I guess it will be hard though. I didn't know that the web coding part would be so difficult.

I could put one of my servers to the test, its plain Text, although it could be encrypted, if you wanted it to be.

Cool. Could you maybe work on the server side of things?

Sure. I just need to fix the server. It recieves packets, but since it's dropbox, I'm afraid Always updating games won't work as well. I'm trying mesh online for speed though.


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#42 2012-01-19 11:19:30

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Servine wrote:

SeptimusHeap wrote:

Servine wrote:


I could put one of my servers to the test, its plain Text, although it could be encrypted, if you wanted it to be.

Cool. Could you maybe work on the server side of things?

Sure. I just need to fix the server. It recieves packets, but since it's dropbox, I'm afraid Always updating games won't work as well. I'm trying mesh online for speed though.

*. Well, the server seems to not work anyway at all.

I can still try though!


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#43 2012-01-21 19:43:00

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

How would I do this from panther?

And how's the server going, Servine?


http://i46.tinypic.com/dw7zft.png

Offline

 

#44 2012-01-21 21:21:24

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Can I help please? Kabam is pretty much shut down.

Offline

 

#45 2012-01-22 05:05:41

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

SeptimusHeap wrote:

How would I do this from panther?

And how's the server going, Servine?

Well, the bad thing? Stupid dropbox does take a while to load up.

I'll still try though.

OH WAIT! I KNOW!

The only thing I'll say now about my new idea is that hackers NEED to be REALLY QUICK to get the code.

Do you want it encrypted?


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#46 2012-01-22 07:50:45

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Servine wrote:

SeptimusHeap wrote:

How would I do this from panther?

And how's the server going, Servine?

Well, the bad thing? Stupid dropbox does take a while to load up.

I'll still try though.

OH WAIT! I KNOW!

The only thing I'll say now about my new idea is that hackers NEED to be REALLY QUICK to get the code.

Do you want it encrypted?

Nope, because secure data (passwords) is already hashed with a salt!


http://i46.tinypic.com/dw7zft.png

Offline

 

#47 2012-01-22 08:27:28

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

SeptimusHeap wrote:

Servine wrote:

SeptimusHeap wrote:

How would I do this from panther?

And how's the server going, Servine?

Well, the bad thing? Stupid dropbox does take a while to load up.

I'll still try though.

OH WAIT! I KNOW!

The only thing I'll say now about my new idea is that hackers NEED to be REALLY QUICK to get the code.

Do you want it encrypted?

Nope, because secure data (passwords) is already hashed with a salt!

Oh. I see.

My idea failed. I'm trying hamachi mesh right now.


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#48 2012-01-22 10:15:57

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

ImagineIt wrote:

Can I help please? Kabam is pretty much shut down.

Offline

 

#49 2012-01-22 10:48:14

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

ImagineIt wrote:

ImagineIt wrote:

Can I help please? Kabam is pretty much shut down.

Yes.

Servine wrote:

SeptimusHeap wrote:

Servine wrote:


Well, the bad thing? Stupid dropbox does take a while to load up.

I'll still try though.

OH WAIT! I KNOW!

The only thing I'll say now about my new idea is that hackers NEED to be REALLY QUICK to get the code.

Do you want it encrypted?

Nope, because secure data (passwords) is already hashed with a salt!

Oh. I see.

My idea failed. I'm trying hamachi mesh right now.

Hamatchi won't work well. Plus then they'll need to download it and stuff.


http://i46.tinypic.com/dw7zft.png

Offline

 

#50 2012-01-22 11:05:46

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Guys, we should add a password finding system and a banning/unbanning system. This will only be for admins.

Offline

 

Board footer