Discuss Scratch

csf30816
Scratcher
500+ posts

Scratch 2.0 Modding for Newbs

NoMod-Programming wrote:

proffessor4 wrote:

csf30816 wrote:

Jonathan50 wrote:

csf30816 wrote:

I was making my mod, but when I uploaded it to my site the login and join buttons are showing, and the blocks I added are not there Note: I used a different way of modding Scratch, that might be the problem.
What do you mean by you used a different way? Are you sure you compiled Scratch and used the compiled .swf?
I downloaded the Scratch SWF. Decompiled it, edited it, and recompiled

Edit I tried using the way specified on the first page just now and I get a lot of errors, and it takes like 20 min to complete.
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'scratch-flash'.
> The following error occurred while executing this line:
C:\Users\...\.gradle\gradleFx\sdks\670bbff5635fa69cd45fade3edcdc078efa72cd8\installer.xml:662: The following error occurred while executing this line:
C:\Users\...\.gradle\gradleFx\sdks\670bbff5635fa69cd45fade3edcdc078efa72cd8\installer.xml:873: The following error occurred while executing this line:
C:\Users\...\.gradle\gradleFx\sdks\670bbff5635fa69cd45fade3edcdc078efa72cd8\installer.xml:881: The following error occurred while executing this line:
C:\Users\...\.gradle\gradleFx\sdks\670bbff5635fa69cd45fade3edcdc078efa72cd8\installer.xml:923: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
either you have errors in your code or you need to use a different operating system. if you have any vmware/other operating systems try on that. it worked perfect on kubuntu (i didn't edit the SWF).
No. It's an error with gradle building, which is the reason why I jumped through many hoops just to use ant. Gradle, at least for me, has been very unusable, and results in errors when trying to download files or build. Try using the old instructions to build it using “ant”, or if you need Ubuntu/Debian instructions, I can post some.
Thanks, although I could not get the old way to work either. I get
Unable to locate tools.jar. Expected to find it in <path to java>\jre1.8.0_144\lib\tools.jar

...

BUILD FAILED
<path to scratch-flash>\build.xml:30: Problem: failed to create task or type mxmlc
Cause: the name is undefined.

...
Any Ideas? or Help?

insert my old sig here
proffessor4
Scratcher
100+ posts

Scratch 2.0 Modding for Newbs

csf30816 wrote:

NoMod-Programming wrote:

proffessor4 wrote:

csf30816 wrote:

Jonathan50 wrote:

csf30816 wrote:

I was making my mod, but when I uploaded it to my site the login and join buttons are showing, and the blocks I added are not there Note: I used a different way of modding Scratch, that might be the problem.
What do you mean by you used a different way? Are you sure you compiled Scratch and used the compiled .swf?
I downloaded the Scratch SWF. Decompiled it, edited it, and recompiled

Edit I tried using the way specified on the first page just now and I get a lot of errors, and it takes like 20 min to complete.
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'scratch-flash'.
> The following error occurred while executing this line:
C:\Users\...\.gradle\gradleFx\sdks\670bbff5635fa69cd45fade3edcdc078efa72cd8\installer.xml:662: The following error occurred while executing this line:
C:\Users\...\.gradle\gradleFx\sdks\670bbff5635fa69cd45fade3edcdc078efa72cd8\installer.xml:873: The following error occurred while executing this line:
C:\Users\...\.gradle\gradleFx\sdks\670bbff5635fa69cd45fade3edcdc078efa72cd8\installer.xml:881: The following error occurred while executing this line:
C:\Users\...\.gradle\gradleFx\sdks\670bbff5635fa69cd45fade3edcdc078efa72cd8\installer.xml:923: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
either you have errors in your code or you need to use a different operating system. if you have any vmware/other operating systems try on that. it worked perfect on kubuntu (i didn't edit the SWF).
No. It's an error with gradle building, which is the reason why I jumped through many hoops just to use ant. Gradle, at least for me, has been very unusable, and results in errors when trying to download files or build. Try using the old instructions to build it using “ant”, or if you need Ubuntu/Debian instructions, I can post some.
Thanks, although I could not get the old way to work either. I get
Unable to locate tools.jar. Expected to find it in <path to java>\jre1.8.0_144\lib\tools.jar

...

BUILD FAILED
<path to scratch-flash>\build.xml:30: Problem: failed to create task or type mxmlc
Cause: the name is undefined.

...
Any Ideas? or Help?
try the new way again on linux or mac.

my best platformer
my github site

proffessor4 wrote:

if nobody else is going to do it, why not be the first?
siri the chatbot is an NSA spy
anyways, if you want some mild entertainment, try saving the internet (click this link for the forum that will help you)
MegaApuTurkUltra
Scratcher
1000+ posts

Scratch 2.0 Modding for Newbs

csf30816 wrote:

Thanks, although I could not get the old way to work either. I get
Unable to locate tools.jar. Expected to find it in <path to java>\jre1.8.0_144\lib\tools.jar

...

BUILD FAILED
<path to scratch-flash>\build.xml:30: Problem: failed to create task or type mxmlc
Cause: the name is undefined.

...
Any Ideas? or Help?
install JDK

$(".box-head")[0].textContent = "committing AT crimes since $whenever"
csf30816
Scratcher
500+ posts

Scratch 2.0 Modding for Newbs

MegaApuTurkUltra wrote:

csf30816 wrote:

Thanks, although I could not get the old way to work either. I get
Unable to locate tools.jar. Expected to find it in <path to java>\jre1.8.0_144\lib\tools.jar

...

BUILD FAILED
<path to scratch-flash>\build.xml:30: Problem: failed to create task or type mxmlc
Cause: the name is undefined.

...
Any Ideas? or Help?
install JDK
Thanks I installed JDK (a whooping 180MB) although this still happens:

Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\...>cd C:\Users\...\scratch-flash

C:\Users\...\scratch-flash>ant
Buildfile: C:\Users\...\scratch-flash\build.xml
[taskdef] Could not load definitions from resource flexTasks.tasks. It could not be found.

clean:

info:
[echo] scratchFlashCommitID = 10a60fa-dirty

compile-10.2:

BUILD FAILED
C:\Users\...\scratch-flash\build.xml:29: Problem: failed to create task or type mxmlc
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 2 seconds

C:\Users\...\scratch-flash>

I think that it is because it can not find flexTasks.tasks but I do not really know for sure. Thanks for any/all help in advanced.

insert my old sig here
proffessor4
Scratcher
100+ posts

Scratch 2.0 Modding for Newbs

arungupta wrote:

Is modding the same as creating a new plugin for Scratch ?

Is there any tutorial that shows how to create a simple plugin ?
no. creating the plugin is adding funtionality, modding is completely rebuilding it.
making plugins for scratch requires a bunch of java, and i don't remember it. scratchX is meant for plugins, just click this link to go to the main page.

Last edited by proffessor4 (Aug. 25, 2017 14:14:44)


my best platformer
my github site

proffessor4 wrote:

if nobody else is going to do it, why not be the first?
siri the chatbot is an NSA spy
anyways, if you want some mild entertainment, try saving the internet (click this link for the forum that will help you)
csf30816
Scratcher
500+ posts

Scratch 2.0 Modding for Newbs

proffessor4 wrote:

arungupta wrote:

Is modding the same as creating a new plugin for Scratch ?

Is there any tutorial that shows how to create a simple plugin ?
no. creating the plugin is adding funtionality, modding is completely rebuilding it.
making plugins for scratch requires a bunch of java, and i don't remember it. scratchX is meant for plugins, just click this link to go to the main page.
Actually making a Scratch Extension requires only a little bit JavaScript, and some JSON for the blocks. It is really quite simple. And you can learn how here. You can also find lot's of examples here.

insert my old sig here
ilovericebubbles
Scratcher
100+ posts

Scratch 2.0 Modding for Newbs

How do you add an input type to scratch?
e.g. an input with a drop down that has all lists & variables

Jonathan50
Scratcher
1000+ posts

Scratch 2.0 Modding for Newbs

ScriptedAwesome wrote:

Oh no its outdated! Oh no!
…That means you already have a folder called scratch-flash. You can just delete the folder, or if you just want to update it go cd scratch-flash and git pull

Not yet a Knight of the Mu Calculus.
Fudspy
Scratcher
2 posts

Scratch 2.0 Modding for Newbs

Lukas_Gaming
Scratcher
35 posts

Scratch 2.0 Modding for Newbs

Fudspy wrote:

Check out my Project at
https://scratch.mit.edu/projects/187790436/
If you want to advertise your project, go to the show and tell forum
Khanonymous
New to Scratch
11 posts

Scratch 2.0 Modding for Newbs

Hi! I am a webpage and Processing.js programmer elsewhere, and I would like to make a Scratch-type emulation. I saw some source code provided in a different topic that for some inexplicable reason, I can't post in, and saw it looked remarkably similar to what I already have on the emulation. Without downloading anything, do you know a way to access the code that runs Scratch downloaded files?
proffessor4
Scratcher
100+ posts

Scratch 2.0 Modding for Newbs

Khanonymous wrote:

Hi! I am a webpage and Processing.js programmer elsewhere, and I would like to make a Scratch-type emulation. I saw some source code provided in a different topic that for some inexplicable reason, I can't post in, and saw it looked remarkably similar to what I already have on the emulation. Without downloading anything, do you know a way to access the code that runs Scratch downloaded files?
if your talking about .sb2 files, then you have to download scratch here.
if your talking about the scratch download, then you need adobe air or adobe flash.

my best platformer
my github site

proffessor4 wrote:

if nobody else is going to do it, why not be the first?
siri the chatbot is an NSA spy
anyways, if you want some mild entertainment, try saving the internet (click this link for the forum that will help you)
landonwang
Scratcher
72 posts

Scratch 2.0 Modding for Newbs

gabrielsfananimator wrote:

when green flag clicked
say [Do Yu Know The Way?] for (2) secs
stop [all and press green flag v]
this forum is dead. also, DE WAY IS OVER THER


;
Bobbyguy1
Scratcher
100+ posts

Scratch 2.0 Modding for Newbs

Doesn’t modding count as a scratch extension? And aren’t they illegal, or is modding entirety different.

Gamer | Male | Scratcher | Funny | Creative | Friendly

Sheep_maker
Scratcher
1000+ posts

Scratch 2.0 Modding for Newbs

Bobbyguy1 wrote:

Doesn’t modding count as a scratch extension? And aren’t they illegal, or is modding entirety different.
No, Scratch extensions only add blocks; mods can do more. They aren't illegal, but the Terms of Use prevent you from sharing projects made with mods.

- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
ajlogo
New to Scratch
3 posts

Scratch 2.0 Modding for Newbs

Hello,

I've been successful in building (the Gradle way) the swf versions for Scratch.
I would like to be able to build the desktop/air/offline version, but can't find where to set the variable/flag/property to do it.

from the README.md:
“There are two versions of the Scratch 2.0 editor that can be built from this repository. ”
The two versions must be the 10.2 and 11.6 online/web/swf versions.

When building in the first group of build output is this line:
Offline Mode Enabled: false

The second group of build output has:
Target is:11.6

I've tried to make an Actionscript only air project in FlashBuilder, but I can't successfully install a newer AIRSDK in C:\Program Files (x86)\Adobe\Adobe Flash Builder x.x\eclipse\plugins\com.adobe.flash.compiler_x.x.x.x
Also tried FDT eclipse IDE but couldn't get the compiler arguments to work.


Any help would be appreciated.
Cheers,
Ajlogo


infinitytec
Scratcher
1000+ posts

Scratch 2.0 Modding for Newbs

aceacerockscool wrote:

for each [v v] in [10] {
define cool

Mars467 wrote:

when green flag clicked
point in direction ( The Future )
ask (join [I am from] (days since 2000)) and wait
if <(Cats still exist) = [True]> then
broadcast [Da future is safe!!! Weee!]
end

Please do not blockspam.


Not here much, but sometimes I lurk.
God has a plan. He has a plan for everything, and everyone.
LuckyLucky7
Scratcher
1000+ posts

Scratch 2.0 Modding for Newbs

My browser / operating system: Windows NT 10.0, Chrome 66.0.3359.181, Flash 30.0 (release 0)

Whenever I try to compile Scratch, I put the following:
gradlew.bat build
this error shows up:
'gradlew.bat' is not recognized as an internal or external command, operable program or batch file.
What do I do?

I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

Jonathan50
Scratcher
1000+ posts

Scratch 2.0 Modding for Newbs

LuckyLucky7 wrote:

My browser / operating system: Windows NT 10.0, Chrome 66.0.3359.181, Flash 30.0 (release 0)

Whenever I try to compile Scratch, I put the following:
gradlew.bat build
this error shows up:
'gradlew.bat' is not recognized as an internal or external command, operable program or batch file.
What do I do?
You must be in the same folder as gradlew.bat.

Not yet a Knight of the Mu Calculus.

Powered by DjangoBB