Discuss Scratch

djdolphin
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

I'm attempting to create a Scratch 2.0 mod using the tutorial I made earlier, but it's far from complete. I've removed the link for now, since I technically don't have permission to distribute it. Features I've added so far:
  • GUI icons from Scratch 1.4 (I liked the old, bitmap ones better)
  • You can now put reporters into any menu or just type the value in
  • The default sprite is now a Coyote
  • More Blocks is now brown (like in 2.0 alpha)
  • Redesigned “define” block shape
  • Say/Think/Whisper/Shout block from early 2.0 alpha
  • Graphic Effect reporter
  • (( ) ^ ( )) block
  • hide all sprites block
The default coyote costume is public domain and the sound is from junglewalk.com

Last edited by djdolphin (April 20, 2014 23:22:32)


!
nXIII
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

Technically this was the first Scratch 2.0 mod (that I know of).

nXIII · GitHub
djdolphin
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

nXIII wrote:

Technically this was the first Scratch 2.0 mod (that I know of).
Hmm… wouldn't that technically be an extension? Or was it not made using the extension api? I've coded everything into the swf using a decompiler - was that that link you gave me made the same way? Or is there no technical distinction between extensions and modifications? (I'd change the title in that case.) Sorry for all the “or”s.

Last edited by djdolphin (April 6, 2014 02:10:02)


!
nXIII
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

djdolphin wrote:

nXIII wrote:

Technically this was the first Scratch 2.0 mod (that I know of).
Hmm… wouldn't that technically be an extension? Or was it not made using the extension api? I've coded everything into the swf using a decompiler - was that that link you gave me made the same way? Or is there no technical distinction between extensions and modifications? (I'd change the title in that case.) Sorry for all the “or”s.
No, that was programmed in ActionScript. But it was sort of a joke, since I never distributed it. Here's a screenshot of the full app:



Explanation of why the blocks look sort of like extension blocks: I was too lazy to actually implement the HTML-rendering code, and Scratch colors blocks with unimplemented selectors as 0x505050 (which is pretty close to the extension block color 0x4b4a60). EDIT: Here's a version with correct colors:

Last edited by nXIII (April 6, 2014 04:09:42)


nXIII · GitHub
djdolphin
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

nXIII wrote:

djdolphin wrote:

nXIII wrote:

Technically this was the first Scratch 2.0 mod (that I know of).
Hmm… wouldn't that technically be an extension? Or was it not made using the extension api? I've coded everything into the swf using a decompiler - was that that link you gave me made the same way? Or is there no technical distinction between extensions and modifications? (I'd change the title in that case.) Sorry for all the “or”s.
No, that was programmed in ActionScript. But it was sort of a joke, since I never distributed it. Here's a screenshot of the full app:

Image

Explanation of why the blocks look sort of like extension blocks: I was too lazy to actually implement the HTML-rendering code, and Scratch colors blocks with unimplemented selectors as 0x505050 (which is pretty close to the extension block color 0x4b4a60). EDIT: Here's a version with correct colors:

Image
Oh, I see now. Did you use Adobe Flash CS or CC to make that? I don't have either, so i use the built-in code editor in the decompiler I use, FFDec, which basically is just a text representation of all the hex codes in the swf file. Is there any better free tool? Every time I try adding blocks to the specs array, Scratch crashes as soon as I try opening it, and I don't know whether it's my fault or ffdec's. Edit: I got the flash debug projector, and it looks like I'm getting a stack overflow when I add another block onto the array. It works fine if I delete a block and then add one.

Last edited by djdolphin (April 6, 2014 12:16:52)


!
nXIII
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

djdolphin wrote:

Did you use Adobe Flash CS or CC to make that?
I used Adobe Flex, but I have the actual source code—you'd have to find a decompiler that got all the [Embed(…)]ed resources right.

nXIII · GitHub
nXIII
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

djdolphin wrote:

Every time I try adding blocks to the specs array, Scratch crashes as soon as I try opening it, and I don't know whether it's my fault or ffdec's. Edit: I got the flash debug projector, and it looks like I'm getting a stack overflow when I add another block onto the array. It works fine if I delete a block and then add one.
I looked into this specific problem a little more. You need to:
  1. Add a new block somewhere in the array:
    pushstring "new block!"
    pushstring "r"
    pushbyte 7
    pushstring "blockSelector"
    newarray 4
  2. Change the length of the main array: newarray 245
  3. Change the maxstack declaration at the top (because you end up with a deeper stack when you construct a longer array).

nXIII · GitHub
djdolphin
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

Update! Thanks to nXIII's help, I've added two new blocks - the say/think/whisper/shout block from early 2.0 alpha and a graphic effect reporter. I also changed the logo to Neigh temporarily since I'm technically not supposed to use the Scratch logo in mods. Edit: I've picked the name Coyote.

Last edited by djdolphin (April 7, 2014 21:22:30)


!
djdolphin
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

Please disregard this post. I wasn't thinking straight.

Last edited by djdolphin (April 8, 2014 00:42:12)


!
blob8108
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

nXIII wrote:

but I have the actual source code
Yeah, n's just showing off.

tosh · slowly becoming a grown-up adult and very confused about it
djdolphin
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

Update 1: I made it so say and think blocks imported from Scratch will work. The first time I implemented the say/think/shout/whisper block I took the lazy way out and replaced the old say primitives with the new ones.
Update 2: I added this block:
(() ^ ())//category=operators
Update 3: I added this block:
hide all sprites//category=looks

Last edited by djdolphin (April 9, 2014 00:00:40)


!
tatefly
Scratcher
46 posts

Coyote - Scratch 2.0 Mod

Hi hate to bother but I can't download any of the flash files for some reason. Looking for Scratch v2011.05.20 if someone could link me directly to a download or something? Thanks and sorry for bothering again

djdolphin
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

tatefly wrote:

Hi hate to bother but I can't download any of the flash files for some reason. Looking for Scratch v2011.05.20 if someone could link me directly to a download or something? Thanks and sorry for bothering again
Here's the direct link: http://scratch.gweb.io/swf/Scratch-v2011.05.20.swf Press the File menu, then Save Page As to save it.

!
tatefly
Scratcher
46 posts

Coyote - Scratch 2.0 Mod

djdolphin wrote:

tatefly wrote:

Hi hate to bother but I can't download any of the flash files for some reason. Looking for Scratch v2011.05.20 if someone could link me directly to a download or something? Thanks and sorry for bothering again
Here's the direct link: http://scratch.gweb.io/swf/Scratch-v2011.05.20.swf Press the File menu, then Save Page As to save it.

The problem being that when I try opening it with Safari it just shows a white screen

djdolphin
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

tatefly wrote:

djdolphin wrote:

tatefly wrote:

Hi hate to bother but I can't download any of the flash files for some reason. Looking for Scratch v2011.05.20 if someone could link me directly to a download or something? Thanks and sorry for bothering again
Here's the direct link: http://scratch.gweb.io/swf/Scratch-v2011.05.20.swf Press the File menu, then Save Page As to save it.

The problem being that when I try opening it with Safari it just shows a white screen
Try downloading the Flash Player Projector and opening it with that.

!
tatefly
Scratcher
46 posts

Coyote - Scratch 2.0 Mod

djdolphin wrote:

tatefly wrote:

djdolphin wrote:

tatefly wrote:

Hi hate to bother but I can't download any of the flash files for some reason. Looking for Scratch v2011.05.20 if someone could link me directly to a download or something? Thanks and sorry for bothering again
Here's the direct link: http://scratch.gweb.io/swf/Scratch-v2011.05.20.swf Press the File menu, then Save Page As to save it.

The problem being that when I try opening it with Safari it just shows a white screen
Try downloading the Flash Player Projector and opening it with that.

Still not working sadly.

Well wait how would I open it using the Projector? I just downloaded the flash player over again

Last edited by tatefly (April 9, 2014 00:43:05)


tatefly
Scratcher
46 posts

Coyote - Scratch 2.0 Mod

djdolphin wrote:

tatefly wrote:

djdolphin wrote:

tatefly wrote:

Hi hate to bother but I can't download any of the flash files for some reason. Looking for Scratch v2011.05.20 if someone could link me directly to a download or something? Thanks and sorry for bothering again
Here's the direct link: http://scratch.gweb.io/swf/Scratch-v2011.05.20.swf Press the File menu, then Save Page As to save it.

The problem being that when I try opening it with Safari it just shows a white screen
Try downloading the Flash Player Projector and opening it with that.

How would I open it with the Projector all I got was a redownload of the flash player

Edit: Flash projector isn't working I'm on a mac by the way

Last edited by tatefly (April 9, 2014 00:46:38)


tatefly
Scratcher
46 posts

Coyote - Scratch 2.0 Mod

djdolphin wrote:

tatefly wrote:

djdolphin wrote:

tatefly wrote:

Hi hate to bother but I can't download any of the flash files for some reason. Looking for Scratch v2011.05.20 if someone could link me directly to a download or something? Thanks and sorry for bothering again
Here's the direct link: http://scratch.gweb.io/swf/Scratch-v2011.05.20.swf Press the File menu, then Save Page As to save it.

The problem being that when I try opening it with Safari it just shows a white screen
Try downloading the Flash Player Projector and opening it with that.

Alright downloaded the Flash Projector and I guess my download of the swf was corrupt so redownloaded that and all is well! thanks

tatefly
Scratcher
46 posts

Coyote - Scratch 2.0 Mod

djdolphin wrote:

tatefly wrote:

djdolphin wrote:

tatefly wrote:

Hi hate to bother but I can't download any of the flash files for some reason. Looking for Scratch v2011.05.20 if someone could link me directly to a download or something? Thanks and sorry for bothering again
Here's the direct link: http://scratch.gweb.io/swf/Scratch-v2011.05.20.swf Press the File menu, then Save Page As to save it.

The problem being that when I try opening it with Safari it just shows a white screen
Try downloading the Flash Player Projector and opening it with that.

Alright thanks works now

djdolphin
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

Does anyone know where in the code it decides whether an argument will accept a reporter or not? I'm trying to make it so all %m arguments will take reporters.

!

Powered by DjangoBB