Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Scratch 2.0 Modding for Newbs
- Jonathan50
-
1000+ posts
Scratch 2.0 Modding for Newbs
Did you successfully change the directory? Each time you open Command Prompt, the working directory is reset, so you need to do this each time.when green flag clicked
NOPE
- 1a3c5e7g9i
-
100+ posts
Scratch 2.0 Modding for Newbs
What does this mean:(happens after doing ./gradlew build)Could not determine java version from '9.0.4'.
- _D52
-
16 posts
Scratch 2.0 Modding for Newbs
Attempted to make a block like this:
In Specs.as, I inserted @“if %b then %s else %s”, “r”, 6, “if:then:else:”@,
In Interpreter.as, I inserted primTable@“if:then:else:”@ = function(b:*):* { if (arg(b, 0)) return (b, 1); else return (b, 2); };
(Note that I replaced square brackets with @ because otherwise it thinks it's formatting)
And once I recompiled it, I got a white screen attempting to open the file. What went wrong?
EDIT: I added spacings between the if then blocks and that's what screwed it up.
if <> then [] else [] :: control reporter // Reports first value if true, else reports second value.
In Specs.as, I inserted @“if %b then %s else %s”, “r”, 6, “if:then:else:”@,
In Interpreter.as, I inserted primTable@“if:then:else:”@ = function(b:*):* { if (arg(b, 0)) return (b, 1); else return (b, 2); };
(Note that I replaced square brackets with @ because otherwise it thinks it's formatting)
And once I recompiled it, I got a white screen attempting to open the file. What went wrong?
EDIT: I added spacings between the if then blocks and that's what screwed it up.
Last edited by _D52 (July 19, 2019 08:59:51)
- _D52
-
16 posts
Scratch 2.0 Modding for Newbs
./gradlew build suddenly won't work. I didn't make any changes to the source code after it worked fine.
- 1a3c5e7g9i
-
100+ posts
Scratch 2.0 Modding for Newbs
What does this mean:(happens after doing ./gradlew build)Could not determine java version from '9.0.4'.
- SpaceChuck
-
2 posts
Scratch 2.0 Modding for Newbs
How to edit the sprite/sound library? (add sprites,change the default sprite)
My browser / operating system: Windows 7, Chromium 78.0.3895.0, No Flash version detected
My browser / operating system: Windows 7, Chromium 78.0.3895.0, No Flash version detected
- irvinborder
-
2 posts
Scratch 2.0 Modding for Newbs
It is because of Java version mismatch. Unsupported major.minor version error happens when you compile your projects on higher version of java(e.g. jdk 1.8) and then run it on a lower version (e.g. jdk 1.7). Depending on your situation, you have two ways to resolve this error: compile your code for an earlier version of Java, or run your code on a newer Java version. Sometimes you may have more than one version of Java SDK installed in your machine. Make sure the application you are running is pointing to the right or highest version available . It is better you need to install both JRE/JDK with the same version.
http://net-informations.com/java/cjava/unsupport.htm
http://net-informations.com/java/cjava/unsupport.htm
- D-07N2
-
92 posts
Scratch 2.0 Modding for Newbs
2.0 is outdated, what is the point of this anymore?
- Sheep_maker
-
1000+ posts
Scratch 2.0 Modding for Newbs
Some people prefer the 2.0 editor, so let's not discourage them from continuing to work with it 2.0 is outdated, what is the point of this anymore?
- iransound
-
1 post
Scratch 2.0 Modding for Newbs
I need Help Now
https://guitarmusics.com/madahi/

https://guitarmusics.com/madahi/
Last edited by iransound (April 10, 2020 08:31:52)
- R4356th
-
1000+ posts
Scratch 2.0 Modding for Newbs
What kind of? I need Help Now
https://guitarmusics.com/madahi/
- DragoCuven
-
61 posts
Scratch 2.0 Modding for Newbs
2.0 Modding for Newbs
Here's a tutorial for making Scratch 2.0 mods, as they are somewhat harder to make than Scratch 1.4 mods. The purpose of this topic is to prevent a wave of people asking how to do this in the future. Please correct me if any of this information is wrong.
First off, Scratch 2.0 is programmed in a language called ActionScript. You'll need basic knowledge of it (or some other ECMAScript dialect) in order to follow most of this tutorial.The New WayGetting the Source Code
- If you don't already have it, install git.
- Run the command
git clone https://github.com/LLK/scratch-flashCompiling Scratch
You'll need to compile Scratch every time you make changes.
- Open a terminal.
- Change the directory to the one containing the Scratch source code (the one containing the src directory, not the src directory itself) by running
cd <path to source code>- If you're using a Unix-like OS, run
If you're using Windows, run./gradlew buildgradlew.bat build- If all goes well, Scratch can be found at build/11.6/Scratch.swf. If you get an error, and you've made changes to the code, then it's likely a problem with your code.
If you get an error sayingthen manually download OSMF_1.0.zip and put it in <your home directory>/.gradle/gradleFx/sdks/<some number>/in. (Thanks Jonathan50)Redirection detected from https to http. Protocol switch unsafe, not allowed.
if i were to actually do all of this would my project still be shareable? and if so would the screen resolution stay that way? or would it go back to normal?
- Ascold
-
23 posts
Scratch 2.0 Modding for Newbs
2.0 Modding for Newbs
Here's a tutorial for making Scratch 2.0 mods, as they are somewhat harder to make than Scratch 1.4 mods. The purpose of this topic is to prevent a wave of people asking how to do this in the future. Please correct me if any of this information is wrong.
First off, Scratch 2.0 is programmed in a language called ActionScript. You'll need basic knowledge of it (or some other ECMAScript dialect) in order to follow most of this tutorial.The New WayGetting the Source Code
- If you don't already have it, install git.
- Run the command
git clone https://github.com/LLK/scratch-flashCompiling Scratch
You'll need to compile Scratch every time you make changes.
- Open a terminal.
- Change the directory to the one containing the Scratch source code (the one containing the src directory, not the src directory itself) by running
cd <path to source code>- If you're using a Unix-like OS, run
If you're using Windows, run./gradlew buildgradlew.bat build- If all goes well, Scratch can be found at build/11.6/Scratch.swf. If you get an error, and you've made changes to the code, then it's likely a problem with your code.
If you get an error sayingthen manually download OSMF_1.0.zip and put it in <your home directory>/.gradle/gradleFx/sdks/<some number>/in. (Thanks Jonathan50)Redirection detected from https to http. Protocol switch unsafe, not allowed.
Execution failed for task ‘:compileFlex’.
> Could not resolve all dependencies for configuration ‘:external’.
> Could not resolve macromedia.com:playerglobal:11_6.
Required by:
:scratch-flash:1.0-SNAPSHOT
> Could not resolve macromedia.com:playerglobal:11_6.
> Could not get resource 'http://fpdownload.macromedia.com/get/flashplayer/installers/archive/playerglobal/playerglobal11_6.xml'.
> Could not GET 'http://fpdownload.macromedia.com/get/flashplayer/installers/archive/playerglobal/playerglobal11_6.xml'. Received status code 403 from server: Forbidden
I go to the site from the error says that I do not have the necessary rights



My browser / operating system: Windows NT 10.0, Chrome 100.0.4896.75, Flash 32.0 (release 0)
- roforb
-
14 posts
Scratch 2.0 Modding for Newbs
Scratch 2.0 is old. The download link might be down now, try to find a mirror download. Or it might be because flash died 2 years ago. I go to the site from the error says that I do not have the necessary rights![]()
![]()
My browser / operating system: Windows NT 10.0, Chrome 100.0.4896.75, Flash 32.0 (release 0)
- SysDataSoft
-
5 posts
Scratch 2.0 Modding for Newbs
Hello,after starting compiling i see this:
gradlew.bat build
Downloading https://services.gradle.org/distributions/gradle-2.5-bin.zip
…………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………….
Unzipping C:\Users\Егор\.gradle\wrapper\dists\gradle-2.5-bin\7mk8vyobxfh3eazpg3pi2y9mv\gradle-2.5-bin.zip to C:\Users\Егор\.gradle\wrapper\dists\gradle-2.5-bin\7mk8vyobxfh3eazpg3pi2y9mv
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from ‘19.0.1’.
* Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.
I know,this error is invail Java version,but how wersion is correct?????
gradlew.bat build
Downloading https://services.gradle.org/distributions/gradle-2.5-bin.zip
…………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………….
Unzipping C:\Users\Егор\.gradle\wrapper\dists\gradle-2.5-bin\7mk8vyobxfh3eazpg3pi2y9mv\gradle-2.5-bin.zip to C:\Users\Егор\.gradle\wrapper\dists\gradle-2.5-bin\7mk8vyobxfh3eazpg3pi2y9mv
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from ‘19.0.1’.
* Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.
I know,this error is invail Java version,but how wersion is correct?????
- Discussion Forums
- » Advanced Topics
-
» Scratch 2.0 Modding for Newbs