Pitusky12 wrote:
JsScratch Works in xbox
Then what is the point of creating another one?
Are you targeting some other system that mine doesn't work on?
Last edited by MathWizz (2012-10-26 09:56:45)
Offline
MathWizz wrote:
Pitusky12 wrote:
JsScratch Works in xbox
Then what is the point of creating another one?
Are you targeting some other system that mine doesn't work on?
Why in every advanced thread you need to judge or say that something already exist can you stop doing that stuff please?
Offline
MathWizz wrote:
Pitusky12 wrote:
JsScratch Works in xbox
Then what is the point of creating another one?
Are you targeting some other system that mine doesn't work on?
YES! iOS!! I just added touch support to ours. Now people can use a finger in place of a mouse. For the When Mouse Clicked hat block, and the mouse down block, and others.
Also, ours will be faster, because you are using morphic.js, which runs slow on most devices.
Offline
GP1 wrote:
MathWizz wrote:
Pitusky12 wrote:
JsScratch Works in xbox
Then what is the point of creating another one?
Are you targeting some other system that mine doesn't work on?YES! iOS!! I just added touch support to ours. Now people can use a finger in place of a mouse. For the When Mouse Clicked hat block, and the mouse down block, and others.
Last I checked, mine for the most part works on iOS.
Also, ours will be faster, because you are using morphic.js, which runs slow on most devices.
No, just no. For one thing, I am not using morphic.js. For another, my player is often faster than the FLASH player.
Last edited by MathWizz (2012-10-26 10:27:40)
Offline
MathWizz wrote:
GP1 wrote:
MathWizz wrote:
Then what is the point of creating another one?
Are you targeting some other system that mine doesn't work on?YES! iOS!! I just added touch support to ours. Now people can use a finger in place of a mouse. For the When Mouse Clicked hat block, and the mouse down block, and others.
Last I checked, mine for the most part works on iOS.
Also, ours will be faster, because you are using morphic.js, which runs slow on most devices.
No, just no. For one thing, I am not using morphic.js. For another, my player is often faster than the FLASH player.
Wait, I might be mistaking you for JsScratch. Did you make the one in our GitHub, or did you make JsScratch. Im confusing my self.
Offline
Pitusky12 wrote:
MathWizz wrote:
Pitusky12 wrote:
JsScratch Works in xbox
Then what is the point of creating another one?
Are you targeting some other system that mine doesn't work on?Why in every advanced thread you need to judge or say that something already exist can you stop doing that stuff please?
It's fine to try to emulate things you like, and we're not judging you. I think what MathWizz is saying is that you should try to make yours unique to distinguish it from the other players people have made. That way, can you not only learn by creating what others have made before, but also inspire others by adding your own inventions to the mix.
GP1 wrote:
nXIII wrote:
Pitusky12 wrote:
We're not gonna copy other peoples scratch viewer,we can use some code but not all,okay?
Why? because we have to develop our own code but we can use a few not all.Actually, you can't use it at all unless it has a license which allows redistribution and derivative works.
Yep, But there are some things wrong with the code, any way.
You can't use it at all. Your current GitHub repository comprises a PHP project reader you didn't write and seven files taken from this repository. Neither of those have licenses, so their copyright owners reserve all rights* regarding them. In short, that means you can't copy, distribute, or modify any of them without permission from the copyright holder. I don't think you have permission from either, so your use of the source files and images in your repository violates copyright law.
* Except the ones specified in the GitHub TOS
Last edited by nXIII (2012-10-26 16:04:17)
Offline
nXIII wrote:
Pitusky12 wrote:
MathWizz wrote:
Pitusky12 wrote:
JsScratch Works in xbox
Then what is the point of creating another one?
Are you targeting some other system that mine doesn't work on?Why in every advanced thread you need to judge or say that something already exist can you stop doing that stuff please?
It's fine to try to emulate things you like, and we're not judging you. I think what MathWizz is saying is that you should try to make yours unique to distinguish it from the other players people have made. That way, can you not only learn by creating what others have made before, but also inspire others by adding your own inventions to the mix.
GP1 wrote:
nXIII wrote:
Actually, you can't use it at all unless it has a license which allows redistribution and derivative works.Yep, But there are some things wrong with the code, any way.
You can't use it at all. Your current GitHub repository comprises a PHP project reader you didn't write and seven files taken from this repository. Neither of those have licenses, so their copyright owners reserve all rights* regarding them. In short, that means you can't copy, distribute, or modify any of them without permission from the copyright holder. I don't think you have permission from either, so your use of the source files and images in your repository violates copyright law.
* Except the ones specified in the GitHub TOS
we are not gonna use the files from the player we used were just using them to learn and then code a simpler code.
Offline
Should we use Canvas, or should we use HTML5 elements. Canvas is quicker, but harder to create, and HTML5 is a tad slower (when there are a LOT of elements) but easier to create?
Offline
I'm still confused. Why rewrite it, if other viewers work just as well (probably better)?
Offline
bobbybee wrote:
I'm still confused. Why rewrite it, if other viewers work just as well (probably better)?
We need our own, so that we can use it with Go Everywhere. We cant use anybody else's because it would be a copyright infringement, and also we need to understand their code COMPLETELY. Their code doesnt have very much comments, so we dont know how any of it works.
Offline
Why do you need Go Everywhere if you have sb.js and JsScratch
Offline
bobbybee wrote:
Why do you need Go Everywhere if you have sb.js and JsScratch
JsScratch is in development and Go Everywhere makes the EDITOR we are making the VIEWER.
Offline
Since we are going to need php, I think I'm going to go setup some hosting. I'll make a script that downloads the data from github automaticlly.
Last edited by pwiter (2012-10-26 19:34:54)
Offline
pwiter wrote:
Since we are going to need php, I think I'm going to go setup some hosting. I'll make a script that downloads the data from github automaticlly.
ok,
Offline
I made a php script that downloads and unzips the file to jscratch.tk/site. But theres a slight problem, theres a directory in it, and it changes everytime theres a new commit. Can someone help me with this?
<? if (!extension_loaded('zip')) { dl('zip.so'); } $target_url = "https://github.com/jScratch/jScratch/zipball/gh-pages"; $userAgent = 'Googlebot/2.1 (http://www.googlebot.com/bot.html)'; $file_zip = "downloads/new.zip"; $file_txt = "downloads/".md5(time())."new.txt"; $site = "site"; echo "<br>Starting<br>Target_url: $target_url"; echo "<br>Headers stripped out"; // make the cURL request to $target_url $ch = curl_init(); $fp = fopen("$file_zip", "w"); curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); curl_setopt($ch, CURLOPT_URL,$target_url); curl_setopt($ch, CURLOPT_FAILONERROR, true); curl_setopt($ch, CURLOPT_HEADER,0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_BINARYTRANSFER,true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_FILE, $fp); $page = curl_exec($ch); if (!$page) { echo "<br />cURL error number:" .curl_errno($ch); echo "<br />cURL error:" . curl_error($ch); exit; } curl_close($ch); echo "<br>Downloaded file: $target_url"; echo "<br>Saved as file: $file_zip"; echo "<br>About to unzip ..."; // Un zip the file $zip = new ZipArchive; if (! $zip) { echo "<br>Could not make ZipArchive object."; exit; } if($zip->open("$file_zip") != "true") { echo "<br>Could not open $file_zip"; } $zip->extractTo($site); $zip->close(); echo "<br>Unzipped file to: /site<br><br>"; ?>
Offline
pwiter wrote:
I made a php script that downloads and unzips the file to jscratch.tk/site. But theres a slight problem, theres a directory in it, and it changes everytime theres a new commit. Can someone help me with this?
Code:
<? if (!extension_loaded('zip')) { dl('zip.so'); } $target_url = "https://github.com/jScratch/jScratch/zipball/gh-pages"; $userAgent = 'Googlebot/2.1 (http://www.googlebot.com/bot.html)'; $file_zip = "downloads/new.zip"; $file_txt = "downloads/".md5(time())."new.txt"; $site = "site"; echo "<br>Starting<br>Target_url: $target_url"; echo "<br>Headers stripped out"; // make the cURL request to $target_url $ch = curl_init(); $fp = fopen("$file_zip", "w"); curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); curl_setopt($ch, CURLOPT_URL,$target_url); curl_setopt($ch, CURLOPT_FAILONERROR, true); curl_setopt($ch, CURLOPT_HEADER,0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_BINARYTRANSFER,true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_FILE, $fp); $page = curl_exec($ch); if (!$page) { echo "<br />cURL error number:" .curl_errno($ch); echo "<br />cURL error:" . curl_error($ch); exit; } curl_close($ch); echo "<br>Downloaded file: $target_url"; echo "<br>Saved as file: $file_zip"; echo "<br>About to unzip ..."; // Un zip the file $zip = new ZipArchive; if (! $zip) { echo "<br>Could not make ZipArchive object."; exit; } if($zip->open("$file_zip") != "true") { echo "<br>Could not open $file_zip"; } $zip->extractTo($site); $zip->close(); echo "<br>Unzipped file to: /site<br><br>"; ?>
we could finish the player,test the player in the website and dont do any more commits or just stay updating it.
Offline
Pitusky12 wrote:
pwiter wrote:
I made a php script that downloads and unzips the file to jscratch.tk/site. But theres a slight problem, theres a directory in it, and it changes everytime theres a new commit. Can someone help me with this?
Code:
<? if (!extension_loaded('zip')) { dl('zip.so'); } $target_url = "https://github.com/jScratch/jScratch/zipball/gh-pages"; $userAgent = 'Googlebot/2.1 (http://www.googlebot.com/bot.html)'; $file_zip = "downloads/new.zip"; $file_txt = "downloads/".md5(time())."new.txt"; $site = "site"; echo "<br>Starting<br>Target_url: $target_url"; echo "<br>Headers stripped out"; // make the cURL request to $target_url $ch = curl_init(); $fp = fopen("$file_zip", "w"); curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); curl_setopt($ch, CURLOPT_URL,$target_url); curl_setopt($ch, CURLOPT_FAILONERROR, true); curl_setopt($ch, CURLOPT_HEADER,0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_BINARYTRANSFER,true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_FILE, $fp); $page = curl_exec($ch); if (!$page) { echo "<br />cURL error number:" .curl_errno($ch); echo "<br />cURL error:" . curl_error($ch); exit; } curl_close($ch); echo "<br>Downloaded file: $target_url"; echo "<br>Saved as file: $file_zip"; echo "<br>About to unzip ..."; // Un zip the file $zip = new ZipArchive; if (! $zip) { echo "<br>Could not make ZipArchive object."; exit; } if($zip->open("$file_zip") != "true") { echo "<br>Could not open $file_zip"; } $zip->extractTo($site); $zip->close(); echo "<br>Unzipped file to: /site<br><br>"; ?>we could finish the player,test the player in the website and dont do any more commits or just stay updating it.
It's ok, I almost got it working, just need to redirect the user to the directory.
I can't use the header function, so i need to echo a meta tag. The problem is that i can't use $folder in there.
EDIT: I can, but it's broken, take a look at jscratch.tk and you'll see.
EDIT: YAY! I did it!
Last edited by pwiter (2012-10-26 22:28:18)
Offline
pwiter wrote:
Pitusky12 wrote:
pwiter wrote:
I made a php script that downloads and unzips the file to jscratch.tk/site. But theres a slight problem, theres a directory in it, and it changes everytime theres a new commit. Can someone help me with this?
Code:
<? if (!extension_loaded('zip')) { dl('zip.so'); } $target_url = "https://github.com/jScratch/jScratch/zipball/gh-pages"; $userAgent = 'Googlebot/2.1 (http://www.googlebot.com/bot.html)'; $file_zip = "downloads/new.zip"; $file_txt = "downloads/".md5(time())."new.txt"; $site = "site"; echo "<br>Starting<br>Target_url: $target_url"; echo "<br>Headers stripped out"; // make the cURL request to $target_url $ch = curl_init(); $fp = fopen("$file_zip", "w"); curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); curl_setopt($ch, CURLOPT_URL,$target_url); curl_setopt($ch, CURLOPT_FAILONERROR, true); curl_setopt($ch, CURLOPT_HEADER,0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_BINARYTRANSFER,true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_FILE, $fp); $page = curl_exec($ch); if (!$page) { echo "<br />cURL error number:" .curl_errno($ch); echo "<br />cURL error:" . curl_error($ch); exit; } curl_close($ch); echo "<br>Downloaded file: $target_url"; echo "<br>Saved as file: $file_zip"; echo "<br>About to unzip ..."; // Un zip the file $zip = new ZipArchive; if (! $zip) { echo "<br>Could not make ZipArchive object."; exit; } if($zip->open("$file_zip") != "true") { echo "<br>Could not open $file_zip"; } $zip->extractTo($site); $zip->close(); echo "<br>Unzipped file to: /site<br><br>"; ?>we could finish the player,test the player in the website and dont do any more commits or just stay updating it.
It's ok, I almost got it working, just need to redirect the user to the directory.
I can't use the header function, so i need to echo a meta tag. The problem is that i can't use $folder in there.
EDIT: I can, but it's broken, take a look at jscratch.tk and you'll see.
EDIT: YAY! I did it!
Cool!
Offline
Pitusky12 wrote:
pwiter wrote:
Pitusky12 wrote:
we could finish the player,test the player in the website and dont do any more commits or just stay updating it.
It's ok, I almost got it working, just need to redirect the user to the directory.
I can't use the header function, so i need to echo a meta tag. The problem is that i can't use $folder in there.
EDIT: I can, but it's broken, take a look at jscratch.tk and you'll see.
EDIT: YAY! I did it!Cool!
So, we can commit PHP scripts now onto the Git, and they will work?
EDIT: I updated some stuff on GitHub, but it doesnt update with the jscratch domain. Are you sure its updating its self?
Last edited by GP1 (2012-10-27 01:50:07)
Offline