LS97 wrote:
Thanks for your opinions and tests, guys!
It seems to me that the last two scripts were converted perfectly by the plugin. The blank ask block in Lucario's script left me perplexed, but I figure it's also done in the original script (which makes sense, since it looks nicer).
This spacing issue has already been reported by scimonster. What browsers are you guys using? In any case remember blank lines don't actually affect the renderer, so blocks get parsed anyway.
Having such feature in Scratch 2.0 (as well as vice versa -- copying the text of a scratchblocks into Scratch, which I would happily create a plugin for too if it weren't for its current futility for reasons stated at asterisk*) would really be nice. You guys, being mods, don't happen to have any news/influence on this matter?
*Asterisk. I would have created a plugin to parse scratchblocks code and spawn a script, but I found the costs outweighed the benefits. This is because the user that wants the scratchblocks code must either view the wiki source or quote the forum user to get raw code, as selecting the text of the blocks and copying that instead does not work.
However, I thought of a mechanism that would allow such copying supported by all browsers. Shouldn't it be possible to hide brackets and other symbols used in scratchblocks code as invisible text in the rendered version? That way it wouldn't affect viewing, but would be copied when selected.
Anyway, that was a way too long footnote.
It would still be useful, even if I had to quote someone/view the wiki source. It could also be used to copy scripts from one project to another, or write scripts in a text-based way.
Offline
I used my patch importing system (based off of all sorts of other versions of it) and it worked well!
when gf clicked go back (10) layers go to x: (0) y: (0) forever hide wait (pick random (0) to ((22) - ((Difficulty) * (2)))) secs show go to x: (240) y: (pick random (-140) to (172)) point in direction (-90 v) turn ccw ((pick random (-2) to (2)) * (15)) degrees repeat until <touching [Paddle v]?> move (Difficulty) steps replace item (1 v) of [Xpos v] with ((10) * (round ((x position) / (10)))) if <touching color [#FFFFFF]?> point in direction (((direction) + (180)) * (-1)) end end go to x: (240) y: (0) replace item (1 v) of [Xpos v] with [1] change [Score v] by (1) change [red dots v] by (1) end
Offline
Bumping this awesome topic
Offline
That's nice, I don't even need to bump it myself
Offline
whizzer wrote:
Would it work with NXiii's patcher?
I'll try converting it to .patch. It should work.
It should work, because I once looked at the source of patch files and they are at least very similar to CS files. So try it, and if it doesn't, the second post on this thread has some information on how to install it manually
Offline
lol, thank you very much
Offline
LS97 wrote:
whizzer wrote:
Would it work with NXiii's patcher?
I'll try converting it to .patch. It should work.It should work, because I once looked at the source of patch files and they are at least very similar to CS files. So try it, and if it doesn't, the second post on this thread has some information on how to install it manually
.patch files ARE .cs files. .patch is an extension made up by NXiii.
Anyway, I converted it and it worked.
Here is the .patch version in case anyone wants it.
when gf clicked forever change [awesomeness v] by (999999999999999999999999999999999999999999999999999999999999999999999) say [This plugin rules!!!!!] for (2) secs think [I think...] for (2) secs end
Last edited by whizzer (2012-08-19 04:34:52)
Offline
I'm new to the Shift-Click-R thing, and when I right click on the file (the last step), weird buttons show up, none saying filein, can you tell me how to fix it?
Offline
Are you on a Mac? Maybe try any of Alt+Click, Ctrl+Click, or Shift+Click instead of right clicking. I can never remember which works...
Offline
I just downloaded and installed it. It seems to work perfectly. Thanks so much for coding it!
Last edited by Greenatic (2012-08-19 21:02:41)
Offline
whizzer wrote:
.patch files ARE .cs files. .patch is an extension made up by NXiii.
Anyway, I converted it and it worked.
Yes, I remember nXIII posting about them. The good old times when there were more awesome coders
Greenatic wrote:
I just downloaded and installed it. It seems to work perfectly. Thanks so much for coding it!
You're welcome and glad you like it
Offline
LS97, how's the Script-to-Squeak-converter working out?
Offline
I was playing with this earlier to see how you did obsolete blocks, to make sure I agreed with you: but you seem to have just put the block's text.
The only nice way I can think of doing them is as booleans — "<obsolete!>" — so that they get colored red:
if <(join <obsolete!> []) = [a ScratchSpriteMorph()]>And I'd also suggest adding indentation, so blocks inside the mouth of a C-block are indented one tab, and so on.
Last edited by blob8108 (2012-08-20 16:26:15)
Offline
Hardmath123 wrote:
LS97, how's the Script-to-Squeak-converter working out?
*blushes from shame*
Ehm, I kinda forgot about that right now, because I'm working on the API2 project with sparks and fg123, but I will continue it as soon as I can!
Sorry
Offline
blob8108 wrote:
I was playing with this earlier to see how you did obsolete blocks, to make sure I agreed with you: but you seem to have just put the block's text.
The only nice way I can think of doing them is as booleans — "<obsolete!>" — so that they get colored red:if <(join <obsolete!> []) = [a ScratchSpriteMorph()]>And I'd also suggest adding indentation, so blocks inside the mouth of a C-block are indented one tab, and so on.
obsolete blocks are rendered as just text because there are really no exceptions to any block in my code: what's written on the block comes out as scratchblocks as it is. It's a pity obsolete reporters aren't really reporters... but who would want to use that anyway
I agree with the indenting, but it would take an absolute overhaul of the system (well, really just renaming the functions to add another argument) but that would mean current users of my plugin would have duplicate functions in their copy of Scratch. Besides, it's not that important.
Offline
but it doesen't work in other languages...
I tried it in german, and I got this:
sage [this is awesome, thank you!]but I have set the language option to english anyway...
Offline
taddl wrote:
but it doesen't work in other languages...
@LS97: Reasons not to simply take the text on the block...
Offline
MathWizz wrote:
blob8108 wrote:
taddl wrote:
but it doesen't work in other languages...
@LS97: Reasons not to simply take the text on the block...
Lol.
Well well well... it's the forum's fault that they don't support all languages
I actually think it's a nice advantage, since you can always change the language to English, but can have (red coloured) blocks in your own language to use in other language forums!
Offline
LS97 wrote:
MathWizz wrote:
blob8108 wrote:
@LS97: Reasons not to simply take the text on the block...
Lol.
Well well well... it's the forum's fault that they don't support all languages
I actually think it's a nice advantage, since you can always change the language to English, but can have (red coloured) blocks in your own language to use in other language forums!
...not a bug, but an undocumented feature?
BTW, you posted 3 seconds after me (mine is in a different thread.)
Last edited by MathWizz (2012-08-23 12:40:29)
Offline
MathWizz wrote:
LS97 wrote:
MathWizz wrote:
Lol.Well well well... it's the forum's fault that they don't support all languages
I actually think it's a nice advantage, since you can always change the language to English, but can have (red coloured) blocks in your own language to use in other language forums!...not a bug, but an undocumented feature?
exactly!
BTW, you posted 3 seconds after me (mine is in a different thread.)
Ok... nice to know but doesn't that happen quite often?
Offline