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

#26 2011-06-16 07:09:43

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: ScratchChat--A global chat program in Panther!

Dominic1 wrote:

johnnydean1 wrote:

If your using claw, goto the Scratch Live menu and set the URL to the "escratch.org/scratchchat/" you chose.

I never knew I could do that... Maybe I'll make a version for Panther and Claw because both have different advantages and disadvantages.

eg:
Panther has a CYOB interface, and a block library, but Claw comes with many different blocks that aren't in the block library or would take forever to code.

Thanks for the tip!

I tried using Claw with the site gbear605 set up (escratch.org/scratchchat/dev/set.php). I told it that the scratch live website was escratch.org/scratchchat/dev/ and it worked the first time, but then it suddenly stopped working. When I tried to close Claw, it told me that save.txt did not exist.
Can you tell me what I'm doing wrong?
neutral

EDIT: I managed to fix the "save.txt" or "PHP.txt" did not exist errors, but the blocks still aren't working for the scratchlive blocks
sad

Last edited by Dominic1 (2011-06-16 09:53:55)


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#27 2011-07-15 07:10:55

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: ScratchChat--A global chat program in Panther!

Bump


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#28 2011-07-15 21:14:01

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: ScratchChat--A global chat program in Panther!

im also making something like this in panther.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#29 2011-07-21 20:56:09

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: ScratchChat--A global chat program in Panther!

nathanprocks wrote:

im also making something like this in panther.

Cool


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#30 2011-11-23 14:41:35

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: ScratchChat--A global chat program in Panther!

johnnydean1 wrote:

set.php

Code:

<title>Scratch-Live <?php 
$title = 'Variables';
echo($title);?></title>

<?php 

$SQLhost     = "xxx";
$SQLuser     = "xxx";
$SQLpass     = "xxx";
$SQLdatabase = "xxx";
$SQLtable    = "xxx";

$con = mysql_connect($SQLhost,$SQLuser,$SQLpass);
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
echo "Database Connected";
echo "<br />";
$user  = $_GET["user"];
$pass  = $_GET["pass"]; 
$value = $_GET["value"];

echo $user;
echo "<br />";
echo $pass;
echo "<br />";
echo $value;
echo "<br />";
                        if ($pass == 1)
                                {


$val = strlen($value);
if ($val > 0)
{
    echo "Acting on request";
    $act = "set";
}
else
{
    echo "Getting request";
    $act = "get";
    }
echo "<br />";


//**************************
//******DATABASE STUFF******
//**************************

mysql_select_db($SQLdatabase, $con);

            if(1==0)
                {

                    $sql = "CREATE TABLE" . $SQLtable. "
                    (
                    Username varchar(20),
                    Value varchar(20),
                    )";
                    mysql_query($sql,$con);
                    echo "<br />";
                    echo "Table made";
                    echo "<br />";
            
                }


    $you = "
SELECT * 
FROM Users";
$you4 = $you;

    
          $result = mysql_query($you4)
or die(mysql_error());
$n = 0;
$get = "";
$x = 0;
while($row = mysql_fetch_array($result))
  {
$x = $x + 1;
    $you = $row['Username'];
  if ($you == $user)
{
$n = $x;
if ($act == "get")
{
$get = $row['Value'];
}

}
 }



if ($n==0)
{
$you = "INSERT INTO ";
$you2 = $SQLtable;
$you3 = " (Username, Value)";
$you = $you . $you2 .$you3;
$you2 = ",";
$you3 = ")";
$you4 = "'";
$you5 = " VALUES (";
$query = $you . $you5 . $you4. $user . $you4 . $you2 . $you4. $value. $you4. $you3;
mysql_query($query);
}




                                echo "<br />";
                                echo "\n";




if ($act == "get")
{
echo $get;

}
if ($act == "set")
{


$you = "UPDATE ";
$you2 = $SQLtable;
$you3 = " SET Value = '";
$you = $you . $you2 .$you3 . $value;
$you2 = "' WHERE Username = '";
$you3 = $user;
$you4 = "'";
$query = $you . $you2 . $you3 . $you4; 
mysql_query($query);
echo "Updated";
}
                                }

mysql_close($con);
?>

For the database itself, how did you set up the fields for the table in the database (I'm not that good with SQL)


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#31 2011-11-23 14:49:34

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: ScratchChat--A global chat program in Panther!

Did you ask the Panther Team if you could modify Panther?


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#32 2011-11-23 16:33:18

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: ScratchChat--A global chat program in Panther!

henley wrote:

Did you ask the Panther Team if you could modify Panther?

I'm not modifying Panther.
I'm using the included CYOB interface to make blocks, and I'm not releasing any modified Panther files so I am legally allowed to make this project.


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#33 2011-11-23 16:54:11

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: ScratchChat--A global chat program in Panther!

Dominic1 wrote:

henley wrote:

Did you ask the Panther Team if you could modify Panther?

I'm not modifying Panther.
I'm using the included CYOB interface to make blocks, and I'm not releasing any modified Panther files so I am legally allowed to make this project.

But aren't you going to be modding Panther...? How else will you make ScratchChat?


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#34 2011-11-23 17:21:13

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: ScratchChat--A global chat program in Panther!

Dominic1 wrote:

henley wrote:

Did you ask the Panther Team if you could modify Panther?

I'm not modifying Panther.
I'm using the included CYOB interface to make blocks, and I'm not releasing any modified Panther files so I am legally allowed to make this project.

is this project ever going to be finished? >_>


◕‿◕

Offline

 

#35 2011-11-23 17:27:40

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: ScratchChat--A global chat program in Panther!

henley wrote:

Did you ask the Panther Team if you could modify Panther?

you don't need permission. It's open source, like Scratch.

Offline

 

#36 2011-11-23 17:34:23

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: ScratchChat--A global chat program in Panther!

flashgocrazy wrote:

Dominic1 wrote:

henley wrote:

Did you ask the Panther Team if you could modify Panther?

I'm not modifying Panther.
I'm using the included CYOB interface to make blocks, and I'm not releasing any modified Panther files so I am legally allowed to make this project.

is this project ever going to be finished? >_>

Actually, I'm very close to releasing 1.0 today! The only thing with 1.0 is that it will use Jonnydean's SQL blocks instead of the escratch ones, as we are having trouble with that.
Oh, and just so you know: Channels (rooms) currently work, but cannot be password protected. The config file is stored under your user folder (Windows: C:\Users\[user name here]\iChat.config. Changing the "defaultRoom" value will change the room you are in when you login, even though it says it has not been implemented. I will probably be on the public room (the one it automatically uses) around the time of the first release; try talking to me then.


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#37 2011-11-23 19:14:24

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: ScratchChat--A global chat program in Panther!

Releasing Version 1.1 - go check it out!
I will probably be on the public channel for a while, try it out there!
(The public channel is the default one you start in; channel can be changed in config file)


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#38 2011-11-24 04:04:05

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: ScratchChat--A global chat program in Panther!

awesome but after i login it says "Invalid connection to database  sad "


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#39 2011-11-24 10:07:37

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: ScratchChat--A global chat program in Panther!

Dominic1 wrote:

Releasing Version 1.1 - go check it out!
I will probably be on the public channel for a while, try it out there!
(The public channel is the default one you start in; channel can be changed in config file)

source code? for panther project


◕‿◕

Offline

 

#40 2011-11-24 11:58:47

Laternenpfahl
Scratcher
Registered: 2011-06-24
Posts: 1000+

Re: ScratchChat--A global chat program in Panther!

When will it support mac???


http://i46.tinypic.com/6yd4c0.png

Offline

 

#41 2011-11-24 12:16:08

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

Re: ScratchChat--A global chat program in Panther!

Nice, there isn't really usually anyone on though.  hmm


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

 

#42 2011-11-24 14:24:21

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: ScratchChat--A global chat program in Panther!

Laternenpfahl wrote:

When will it support mac???

We're working on that now. The custom block I made "user path" does'nt work on macs, so I will probably release a Mac and windows version.


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#43 2011-11-24 14:31:54

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: ScratchChat--A global chat program in Panther!

flashgocrazy wrote:

Dominic1 wrote:

Releasing Version 1.1 - go check it out!
I will probably be on the public channel for a while, try it out there!
(The public channel is the default one you start in; channel can be changed in config file)

source code? for panther project

Sorry, There's about a 0.5% chance of me releasing the source code. I need to keep the variables hidden so the chat is private.


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#44 2011-11-24 14:34:28

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: ScratchChat--A global chat program in Panther!

nathanprocks wrote:

awesome but after i login it says "Invalid connection to database  sad "

The most likely reason for this is that an Antivirus system is blocking the database website (http://scratchlive.xtreemhost.com/). I can't really help you with this much, but we will probably be switching to using a database at escratch.org. Maybe that will work better.


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#45 2011-11-25 08:19:58

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: ScratchChat--A global chat program in Panther!

Dominic1 wrote:

Laternenpfahl wrote:

When will it support mac???

We're working on that now. The custom block I made "user path" does'nt work on macs, so I will probably release a Mac and windows version.

I'm going to try ~.  It is usually the user path variable.

EDIT:
It works!

Last edited by gbear605 (2011-11-25 08:24:41)


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#46 2011-11-25 08:29:57

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: ScratchChat--A global chat program in Panther!

Ok, so what I found, is that it saves to the directory where the panther image file is.


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#47 2011-11-25 08:49:10

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: ScratchChat--A global chat program in Panther!

Dominic1 wrote:

flashgocrazy wrote:

Dominic1 wrote:

Releasing Version 1.1 - go check it out!
I will probably be on the public channel for a while, try it out there!
(The public channel is the default one you start in; channel can be changed in config file)

source code? for panther project

Sorry, There's about a 0.5% chance of me releasing the source code. I need to keep the variables hidden so the chat is private.

why dont you just release it, but hide the vars example:
instead of puttin

[show var: (varnamehere)]
put,
[show var: (xxx)]


◕‿◕

Offline

 

#48 2011-11-25 08:53:26

hello12345678910
Scratcher
Registered: 2009-07-11
Posts: 100+

Re: ScratchChat--A global chat program in Panther!

flashgocrazy wrote:

Dominic1 wrote:

flashgocrazy wrote:


source code? for panther project

Sorry, There's about a 0.5% chance of me releasing the source code. I need to keep the variables hidden so the chat is private.

why dont you just release it, but hide the vars example:
instead of puttin

[show var: (varnamehere)]
put,
[show var: (xxx)]

Do this:
Click on the "Paint a new Sprite" button. Double click on the white square in the center of the screen. click the "Paint a new Sprite" button again, and cancel out of one window. the other window should close also, leaving you with a sprite that can be programed, but not visible in the sprites viewer. you can set its transparence to 99 and hide all the scripts in there.
;]


http://tinyurl.com/8yt32o9 http://tinyurl.com/6tgwp5r || Fish = F+I+S+H = 6+9+19+8 = 42<<The answer to Life, the Universe and Everything

Offline

 

#49 2011-11-25 09:03:44

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: ScratchChat--A global chat program in Panther!

hello12345678910 wrote:

flashgocrazy wrote:

Dominic1 wrote:


Sorry, There's about a 0.5% chance of me releasing the source code. I need to keep the variables hidden so the chat is private.

why dont you just release it, but hide the vars example:
instead of puttin

[show var: (varnamehere)]
put,
[show var: (xxx)]

Do this:
Click on the "Paint a new Sprite" button. Double click on the white square in the center of the screen. click the "Paint a new Sprite" button again, and cancel out of one window. the other window should close also, leaving you with a sprite that can be programed, but not visible in the sprites viewer. you can set its transparence to 99 and hide all the scripts in there.
;]

See, then the problem is, we might as well not release the sourcecode.


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#50 2011-11-25 09:06:27

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: ScratchChat--A global chat program in Panther!

gbear605 wrote:

hello12345678910 wrote:

flashgocrazy wrote:


why dont you just release it, but hide the vars example:
instead of puttin

[show var: (varnamehere)]
put,
[show var: (xxx)]

Do this:
Click on the "Paint a new Sprite" button. Double click on the white square in the center of the screen. click the "Paint a new Sprite" button again, and cancel out of one window. the other window should close also, leaving you with a sprite that can be programed, but not visible in the sprites viewer. you can set its transparence to 99 and hide all the scripts in there.
;]

See, then the problem is, we might as well not release the sourcecode.

why? my suggestion is perfect


◕‿◕

Offline

 

Board footer