Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Scratch compiler beta test
- mactro
- Scratcher
28 posts
Scratch compiler beta test
Hey! Great work! Are you planning to release the source code? I have a project in mind that would compile Scratch projects (with extension) to a .hex file that could be uploaded to Arduino.
- procd
- Scratcher
100+ posts
Scratch compiler beta test
Thanks. Not planning on releasing source soon as rebuilding for Mac, Linux next. If you have questions then feel free to ask, however I'm not sure how it would help as I assume a hex file is just arduino machine code? This project creates .net il code which then needs a .net jit compiler for whatever machine it has to run on and I doubt there's one for arduino. Hey! Great work! Are you planning to release the source code? I have a project in mind that would compile Scratch projects (with extension) to a .hex file that could be uploaded to Arduino.
- DCPU-16
- Scratcher
100+ posts
Scratch compiler beta test
Not really. What you posted has most of this work shuffled into a special function, which I would argue is cleaner code. If the whole engine were translated from AS, it would look somewhat the same but with stricter typing on numbers. I guess AS is more efficient than CS…
- mactro
- Scratcher
28 posts
Scratch compiler beta test
Thanks. Not planning on releasing source soon as rebuilding for Mac, Linux next. If you have questions then feel free to ask, however I'm not sure how it would help as I assume a hex file is just arduino machine code? This project creates .net il code which then needs a .net jit compiler for whatever machine it has to run on and I doubt there's one for arduino. Hey! Great work! Are you planning to release the source code? I have a project in mind that would compile Scratch projects (with extension) to a .hex file that could be uploaded to Arduino.
Yes, hex is machine code for Arduino. I guess it's not critical for me to copile the project, just parsing scipts to arduino language would do probably, as I can later compile it with external tools…
- goldfish678
- Scratcher
1000+ posts
Scratch compiler beta test
Oh, ALL the files.Have you extracted the nlog.dll from the zip file to the same folder as procd.exe? (Extract all the files from the zip file to the same directory)Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\NAMEEDITEDOUT>cd Documents\Scratch 2.0 Projects
C:\Users\NAMEEDITEDOUT\Documents\Scratch 2.0 Projects>procd -o="It's June!.exe" "It's J
une!.sb2"
Unhandled Exception: System.TypeInitializationException: The type initializer fo
r 'procd.Program' threw an exception. ---> System.IO.FileNotFoundException: Coul
d not load file or assembly 'NLog, Version=2.0.1.0, Culture=neutral, PublicKeyTo
ken=5120e14c03d0593c' or one of its dependencies. The system cannot find the fil
e specified.
at procd.Program..cctor()
--- End of inner exception stack trace ---
at procd.Program.Main(String[] args)
- procd
- Scratcher
100+ posts
Scratch compiler beta test
Well they're not there as paddingOh, ALL the files.Have you extracted the nlog.dll from the zip file to the same folder as procd.exe? (Extract all the files from the zip file to the same directory)Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\NAMEEDITEDOUT>cd Documents\Scratch 2.0 Projects
C:\Users\NAMEEDITEDOUT\Documents\Scratch 2.0 Projects>procd -o="It's June!.exe" "It's J
une!.sb2"
Unhandled Exception: System.TypeInitializationException: The type initializer fo
r 'procd.Program' threw an exception. ---> System.IO.FileNotFoundException: Coul
d not load file or assembly 'NLog, Version=2.0.1.0, Culture=neutral, PublicKeyTo
ken=5120e14c03d0593c' or one of its dependencies. The system cannot find the fil
e specified.
at procd.Program..cctor()
--- End of inner exception stack trace ---
at procd.Program.Main(String[] args)
- sithsiri
- Scratcher
100+ posts
Scratch compiler beta test
Thanks. Not planning on releasing source soon as rebuilding for Mac, Linux next. If you have questions then feel free to ask, however I'm not sure how it would help as I assume a hex file is just arduino machine code? This project creates .net il code which then needs a .net jit compiler for whatever machine it has to run on and I doubt there's one for arduino. Hey! Great work! Are you planning to release the source code? I have a project in mind that would compile Scratch projects (with extension) to a .hex file that could be uploaded to Arduino.
Click for a version of procd's compiler with an assistant to make it easier to use.
Whelp… if you're doing mac… and linux… I'd better learn to code in .bash . The above only works with windows.
Click here for an addition to procd's .sb2 to .exe compiler! It makes the compiler easier to use.
Copy some various emojis and chars from here. It'll come in handy for comments and things: ☁∞πℼ℉℃©®℗™℠§
Find more symbols at www.fsymbols.com
Told you kumquats are nice! That one over there gave me my signature!
9+10=19
Imagine+Program+Share=7+7+5
7+7+5=19
Scratch just makes sense.
Fake link! I used 00a1ff
- CodeLegend
- Scratcher
500+ posts
Scratch compiler beta test
Click for a version of procd's compiler with an assistant to make it easier to use.
Wow, that's really something! I've been following this forum topic for a year waiting for this.
However, I haven't been able to compile something that actually works… They all compile, but one thing or another just makes it unplayable. And I don't really have any way to troubleshoot.
- Thepuzzlegame
- Scratcher
1000+ posts
Scratch compiler beta test
Same here, I've compiled before but the end result always crashes after the loading screen.Click for a version of procd's compiler with an assistant to make it easier to use.
Wow, that's really something! I've been following this forum topic for a year waiting for this.
However, I haven't been able to compile something that actually works… They all compile, but one thing or another just makes it unplayable. And I don't really have any way to troubleshoot.
hi!
- procd
- Scratcher
100+ posts
Scratch compiler beta test
Same here, I've compiled before but the end result always crashes after the loading screen.Click for a version of procd's compiler with an assistant to make it easier to use.
Wow, that's really something! I've been following this forum topic for a year waiting for this.
However, I haven't been able to compile something that actually works… They all compile, but one thing or another just makes it unplayable. And I don't really have any way to troubleshoot.
If you can provide a link to the project which crashes then I can take a look.
- Thepuzzlegame
- Scratcher
1000+ posts
Scratch compiler beta test
Hmmm, I went back and tried compiling again, and it worked! The project in question was my If you can provide a link to the project which crashes then I can take a look.Archery Engine. Not sure why it didn't work before…probably a problem on my end and not one with the compiler.
Last edited by Thepuzzlegame (July 28, 2015 18:21:57)
hi!
- EnhancedOS
- Scratcher
36 posts
Scratch compiler beta test
Please give us the source code to prove that you're not using wizardry.
…
- Tymewalk
- Scratcher
1000+ posts
Scratch compiler beta test
Would this support Cloud Data? For example, if I had a multiplayer project, could users running the .exe actually play with other people?
bold thing - italic thing - underlined thing - strikethrough thing
- s_federici
- Scratcher
500+ posts
Scratch compiler beta test
If you are interested in having a Scratch 2.0 compiler that is open source, you can:
Have Fun!!! … and let me know how this worked for you
- convert your SB2 project to a Snap project by using Snapin8er2. Note: not all SB2 projects can be converted to Snap projects.
- use Snapp to convert your Snap Project to executable for the desired OS (Win, Mac, Linux)
Have Fun!!! … and let me know how this worked for you
- procd
- Scratcher
100+ posts
Scratch compiler beta test
No it would have to use the scratch servers to do that. Although the API is there now the update rate would make multiplayer impossible for anything outside scratch. You could do it using an extension but would have to write a suitable scratch extension. Cloud variables are supported but not to be stored on the scratch servers. Would this support Cloud Data? For example, if I had a multiplayer project, could users running the .exe actually play with other people?
– Will get this topic closed as the beta test is over and compiler is released. See signature.
Last edited by procd (Nov. 12, 2015 18:15:13)
- Discussion Forums
- » Advanced Topics
- » Scratch compiler beta test