This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-09-07 19:09:49

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Emerald

Emerald is a text version of Scratch. Currently it does barely anything.

Code:

- Print: Puts something on the screen.
- Ask: Asks the user a question (input).
- Add Variables: Make new variables.
- Save: Save your program currently on your computer (It will save to the folder with Emerald.py)
- Load: Load a program (It must be in the same folder as Emerald.py)
- About: About Emerald
<It is not Case Sensitive>

The coding is done in a way that it doesn't matter how you type ANYTHING, any code, anything. So you could type 'AsK' or 'aSk' and it will still do the same.

Emerald Updates
Emerald Forums
Official Emerald Website
Emerald Survey
This was made in Python 2.6 if you have problems, just ask.  smile

Please Please all the ideas you have please give them to me.  smile 

We need Python Graphic Programmers!

Subside programming languages:

Emerald+ ( Aka Diamond ) - By Filo5
Emerald+ is a programming environment for Emerald.
( Filo: Please contact me if you want this to be changed to something more descriptive.  tongue  )

Opal - by The-Whiz
Opal is an amazing programming language, which may be Emerald 0.4
( Whiz: Please contact me if you want this to be changed to something more descriptive.  tongue  )

Last edited by Magnie (2009-12-05 22:48:59)

Offline

 

#2 2009-09-07 19:33:15

Food-dude
Scratcher
Registered: 2009-08-16
Posts: 100+

Re: Emerald

? what r u talking about?


http://iaza.com/work/100209C/BananaCid93944.gifhttp://iaza.com/work/100209C/045865.gif

Offline

 

#3 2009-09-07 19:35:36

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Emerald

Is it something made in Scratch or a whole separate program?

Offline

 

#4 2009-09-07 21:28:27

illusionist
Retired Community Moderator
Registered: 2008-07-02
Posts: 1000+

Re: Emerald

are you using my code? or something else?


http://i.imgur.com/8LX1NrV.png

Offline

 

#5 2009-09-07 22:48:55

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

Food-Dude: A programming language I made, it is supposed to be Scratch in Text.
The-Whiz: This is in Python. Completely.
Illusionist: As far as I'm concerned, no.

I might get it uploaded tonight, if not, hopefully tomorrow morning.  smile

Offline

 

#6 2009-09-08 09:18:36

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

Emerald 0.1 is out!

Offline

 

#7 2009-09-08 17:02:54

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Emerald

Feedback: (drag the image into your tab bar)
http://gershmer.net/emerald1.png

Pros:
-The first implementation (that I know exists) of Scratch's syntax in a text based environment.
-It works.
-It's simple.

Cons:
No GUI.  sad

Last edited by gershmer (2009-09-08 17:28:00)


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#8 2009-09-08 19:04:19

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

I know that there isn't GUI, I don't know how to add it yet, but hopefully I'll make it so you can save your programs, won't that be fun.  smile

Offline

 

#9 2009-09-09 03:34:59

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Emerald

Slow but surely!


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#10 2009-09-09 07:46:33

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Emerald

Looks good, I just downloaded it and we'll check it out after school. BTW I think naming Emerald and not giving credit to scratch might be infringing on their trademark . . .


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#11 2009-09-09 07:47:55

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Emerald

Oh, one note, I can probably help you with the python  smile


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#12 2009-09-09 08:52:29

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

1Demothenes: True... I'll go change it right now! It's so simple to change it.  big_smile
2Demothenes: Thanks!

Offline

 

#13 2009-09-09 15:41:40

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

I can help you with some things, I'm a C# programmer.


Converting my Scratch projects to Python!

Offline

 

#14 2009-09-09 18:48:44

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

I would be a C# and C and C++ programmer if it weren't for the admin privs and such an amount of space it takes. But I guess you could help, this is in python if you didn't know and have you tried the program yet?

Offline

 

#15 2009-09-10 03:04:23

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

I've tried this program, but I know Python only from name and Tab-based formatting. As for C#, you can get a gcc compiler for this, and write console apps in text editor (but forms are not an option, for forms (windows) you need designer). Also, C# is object-oriented, and no operations should be done outside methods, except using (import from python? or require?) directives, variable assignments (in-class only), namespace, class and method declarations. An example C# code:

Code:

using System;

namespace TestProgram
{
  class Test {
    static void Main ()
    {
      Console.WriteLine("Hello World");
      Console.ReadKey();
    }
  }
}

Converting my Scratch projects to Python!

Offline

 

#16 2009-09-10 07:52:48

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

Hmm, I might be able to do some C# coding...

Code:

using System;

namespace Emerald
(
  class Test (
    static void Main ()
    (
      Console.WriteLine("Emerald 0.1 - Based off of Scratch");
      Console.WriteLine("By Emerald Team");
      Console.ReadKey();
    )
  )
)

^^ If that works ^^
Then I'm a genius. lol I have never coded anything in C# I just took what I had from your example and made that! Is there anything that allows the user to type something in? Give me an example for the then I could do a 3 Year Old Simulator. I'll also need an example of a Repeat thing, (Forever Block in Scratch in coding for C#) I could make a few things out of this! I'll just make a Text version then give it to you!

You'd also need to get me a link to a Gcc Compiler, I can't find one.

Last edited by Magnie (2009-09-10 08:00:35)

Offline

 

#17 2009-09-10 12:47:56

filo5testing
Scratcher
Registered: 2009-08-17
Posts: 63

Re: Emerald

The data acquisition from C# console application looks pretty much like printing text on screen, it's like this:
Console.ReadLine()
But you have to call it either from variable assignment or IF statement. BTW, do you know why there is that ReadKey thing at the end? To prevent application closure after printing the text - it waits for any key to be pressed then terminates the program. I recommend you checking out MinkoTwit - Tweet application with sources included (if the installer doesn't work, I'll give you a ZIP). I made it on my own, with almost nil knowledge of C#.


It is proven that practising random acts of kindness helps you live your life easy.

Offline

 

#18 2009-09-10 14:44:35

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

I have no idea of what you're talking about, how about you just learn Python.  smile  I don't have Admin Privs, and you just lost me. WHAT ARE YOU TALKING ABOUT?? You switched subjects completely out of nowhere I have no idea what brought you to Twitter.

Offline

 

#19 2009-09-10 19:55:24

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Emerald

Interesting. I know a bit of python, I think I could help you. I think there is a way to save. (well of course there is) Let's see if I can remember...


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#20 2009-09-10 21:34:19

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

I know just learned how, but I can't get the coding right.

Code:

vv Save vv
open("[name]","[R/W/other commands which I forgot.]")

I got it to save I just can't get it to load correctly, I did a few experiments and saved Program.py and loaded it and came out with Program.pyc ...

Offline

 

#21 2009-09-11 10:17:57

filo5testing
Scratcher
Registered: 2009-08-17
Posts: 63

Re: Emerald

PYC is a python compiled file (like Java or Smalltalk bytecode). As for the Twitter application, there are sources included in well-commented programming style. If you can't install it, here's the ZIP package with sources and binaries (+ installer with source installer script(NSIS)).

As for my version of EMERALD, I'm now working on it.


It is proven that practising random acts of kindness helps you live your life easy.

Offline

 

#22 2009-09-11 10:53:18

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

Just forget the Twitter okay? If you want to help you need to work with Python. Okay?

Offline

 

#23 2009-09-11 11:41:05

filo5testing
Scratcher
Registered: 2009-08-17
Posts: 63

Re: Emerald

Well, I'm learning ruby if this helps, but... Python? Nah.


It is proven that practising random acts of kindness helps you live your life easy.

Offline

 

#24 2009-09-11 12:55:10

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

Ruby takes to much space on my computer.  tongue  Python, sure.  tongue

Offline

 

#25 2009-09-12 03:25:08

filo5testing
Scratcher
Registered: 2009-08-17
Posts: 63

Re: Emerald

Hmm.... 2.0 or 3.0?


It is proven that practising random acts of kindness helps you live your life easy.

Offline

 

Board footer