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?
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
Last edited by Dominic1 (2011-06-16 09:53:55)
Offline
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)
Offline
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.
Offline
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?
Offline
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
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
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.
Offline
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)
Offline
awesome but after i login it says "Invalid connection to database
"
Offline
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
When will it support mac???

Offline
Nice, there isn't really usually anyone on though.
Offline
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.
Offline
nathanprocks wrote:
awesome but after i login it says "Invalid connection to database
"
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.
Offline
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)
Offline
Ok, so what I found, is that it saves to the directory where the panther image file is.
Offline
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
flashgocrazy wrote:
Dominic1 wrote:
flashgocrazy wrote:
source code? for panther projectSorry, 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.
;]
Offline
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.
Offline
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