M30W Programming Forum

M30W is a text-based version of Scratch

You are not logged in.

Announcement

This is the development forum for M30W (also known as Emerald, do not confuse with Emerald Programming Language).
Our Non-development forums are available here

M30W(Emerald) 0.3 is out! (Download) Requires Python 2.6 or higher.
Opal 0.3(A better command line M30W) is out! (Download) Requires Python 2.6 or higher.
M30W 0.3.6 GUI barebones (Download) Requires Python 2.6 or higher and wxPython
Diamond-2 RED2 GUI Barebones (Fancy M30W editor) s out! (Download) Requires .NET Framework 3.5 or higher, does not require Python
M30W++ GUI barebones (Java M30W) Alpha 1 is out! (Download) Requires Java.


Gershmer.net, our hosting, will close in February 2011. We have not fully decided what to do with our hosting after that, but we will tell you when we decide.

Adverts

Adverts

#1 2009-10-27 23:18:38

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

General Emerald Discussion

Can you think of any acronyms for Emerald?
I can't.


Can you think of a practical use of making command line Emerald?
(Or is GUI always going to be the better option?)


If you wish to show us your programming skills that can help with Emerald's development, and are not on the Emerald Team, post here.


http://card.ly/images/vcard-green-small.png

Offline

 

2009-10-27 23:18:38

AdBot
Advertisements

#2 2009-12-03 00:50:22

hidas
M30W Team
From: The 3rd dimension
Registered: 2009-11-11
Posts: 142
Website

Re: General Emerald Discussion

i think that everyone went to the forum chat room instead :D


Heh heh heh (Semi-evil laugh)

Offline

 

#3 2009-12-03 00:56:08

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: General Emerald Discussion

This is nothing like chat...


http://card.ly/images/vcard-green-small.png

Offline

 

#4 2009-12-03 01:03:10

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Re: General Emerald Discussion

Excellent
Marvelous
Entertaining
R
A
Language
D


Creator of Opal

Offline

 

#5 2009-12-03 01:05:33

hidas
M30W Team
From: The 3rd dimension
Registered: 2009-11-11
Posts: 142
Website

Re: General Emerald Discussion

no it isn't. XD.
then i shall show what i have been working on thus far:

Code:

import pygame      # imports pygame (duh)

import sys   #imports the sys module for closing pygame
#from graphic import * #NOT WORKING RIGHT NOW!!!!!   imports the specialized graphic module for sprites and basic movement

pygame.init()#                                 get pygame up and working

screen = pygame.display.set_mode([640, 480])#     ^^^

screen.fill([255, 255, 255])#                               ^^^
user_variable_FOR_LIST = False
clock = pygame.time.Clock()#                        ^^^
user_variables = []  # this is where all of the names of the variables that the user makes will be stored
user_variables_VALUES = False # this is where all of the actual values of the variables specified by the user are stored
what_the_user_variable_is = False
ask = True
what_program_will_print = []
# that is a LOT of variables and there will be a lot more =D
list_helper = 0
# START OF MAIN LOOP

'''this is a triple-quoted string. i added it because i wanted to. XD

and this is still part of the string %)
'''
print "This is Emerald version ? by the Emerald Team."
print "Type 'info' for a list of each command, and what it does."
if ask == True:
    user_command = input("Enter a command: ")
    if user_command == 'info':
        print "Type 'info' for this."
        print "Type 'graphic' to bring up a seperate graphic interface."
        print "Type 'print' to have your program print something."
        print "Type 'declare variable' to make a new variable in your program."
        print "Type 'ask' for your program to ask the user something."
        print "Type 'list' to make a simple list."
        print "And that's basically it!"
    elif user_command == 'declare variable':
        user_variable_FOR_LIST = input("What would you like to call your variable?")
        user_variables.append(user_variables_FOR_LIST)
        what_the_user_variable_is = input("What value should your variable hold?")
        user_variables_VALUES.append(what_the_user_variable_is)
        # wow that is confusing =(
    elif user_command == 'print':
        what_the_program_will_print.append(input("What should it print?"))
    else:
        print "I don't know that command."
while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            sys.exit()

btw, it barely does ANYTHING and i have about a week's more to do on it. :D


Heh heh heh (Semi-evil laugh)

Offline

 

#6 2009-12-03 01:09:35

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: General Emerald Discussion

hidas wrote:

no it isn't. XD.
then i shall show what i have been working on thus far:

Code:

import pygame      # imports pygame (duh)

import sys   #imports the sys module for closing pygame
#from graphic import * #NOT WORKING RIGHT NOW!!!!!   imports the specialized graphic module for sprites and basic movement

pygame.init()#                                 get pygame up and working

screen = pygame.display.set_mode([640, 480])#     ^^^

screen.fill([255, 255, 255])#                               ^^^
user_variable_FOR_LIST = False
clock = pygame.time.Clock()#                        ^^^
user_variables = []  # this is where all of the names of the variables that the user makes will be stored
user_variables_VALUES = False # this is where all of the actual values of the variables specified by the user are stored
what_the_user_variable_is = False
ask = True
what_program_will_print = []
# that is a LOT of variables and there will be a lot more =D
list_helper = 0
# START OF MAIN LOOP

'''this is a triple-quoted string. i added it because i wanted to. XD

and this is still part of the string %)
'''
print "This is Emerald version ? by the Emerald Team."
print "Type 'info' for a list of each command, and what it does."
if ask == True:
    user_command = input("Enter a command: ")
    if user_command == 'info':
        print "Type 'info' for this."
        print "Type 'graphic' to bring up a seperate graphic interface."
        print "Type 'print' to have your program print something."
        print "Type 'declare variable' to make a new variable in your program."
        print "Type 'ask' for your program to ask the user something."
        print "Type 'list' to make a simple list."
        print "And that's basically it!"
    elif user_command == 'declare variable':
        user_variable_FOR_LIST = input("What would you like to call your variable?")
        user_variables.append(user_variables_FOR_LIST)
        what_the_user_variable_is = input("What value should your variable hold?")
        user_variables_VALUES.append(what_the_user_variable_is)
        # wow that is confusing =(
    elif user_command == 'print':
        what_the_program_will_print.append(input("What should it print?"))
    else:
        print "I don't know that command."
while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            sys.exit()

btw, it barely does ANYTHING and i have about a week's more to do on it. :D

For me, that program doesn't even start. And yes, I have PyGame.


http://card.ly/images/vcard-green-small.png

Offline

 

#7 2009-12-03 01:12:06

hidas
M30W Team
From: The 3rd dimension
Registered: 2009-11-11
Posts: 142
Website

Re: General Emerald Discussion

Gershmer wrote:

hidas wrote:

no it isn't. XD.
then i shall show what i have been working on thus far:

Code:

import pygame      # imports pygame (duh)

import sys   #imports the sys module for closing pygame
#from graphic import * #NOT WORKING RIGHT NOW!!!!!   imports the specialized graphic module for sprites and basic movement

pygame.init()#                                 get pygame up and working

screen = pygame.display.set_mode([640, 480])#     ^^^

screen.fill([255, 255, 255])#                               ^^^
user_variable_FOR_LIST = False
clock = pygame.time.Clock()#                        ^^^
user_variables = []  # this is where all of the names of the variables that the user makes will be stored
user_variables_VALUES = False # this is where all of the actual values of the variables specified by the user are stored
what_the_user_variable_is = False
ask = True
what_program_will_print = []
# that is a LOT of variables and there will be a lot more =D
list_helper = 0
# START OF MAIN LOOP

'''this is a triple-quoted string. i added it because i wanted to. XD

and this is still part of the string %)
'''
print "This is Emerald version ? by the Emerald Team."
print "Type 'info' for a list of each command, and what it does."
if ask == True:
    user_command = input("Enter a command: ")
    if user_command == 'info':
        print "Type 'info' for this."
        print "Type 'graphic' to bring up a seperate graphic interface."
        print "Type 'print' to have your program print something."
        print "Type 'declare variable' to make a new variable in your program."
        print "Type 'ask' for your program to ask the user something."
        print "Type 'list' to make a simple list."
        print "And that's basically it!"
    elif user_command == 'declare variable':
        user_variable_FOR_LIST = input("What would you like to call your variable?")
        user_variables.append(user_variables_FOR_LIST)
        what_the_user_variable_is = input("What value should your variable hold?")
        user_variables_VALUES.append(what_the_user_variable_is)
        # wow that is confusing =(
    elif user_command == 'print':
        what_the_program_will_print.append(input("What should it print?"))
    else:
        print "I don't know that command."
while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            sys.exit()

btw, it barely does ANYTHING and i have about a week's more to do on it. :D

For me, that program doesn't even start. And yes, I have PyGame.

that's weird, it starts for me. But then again, The-Whiz's Opal took like 10 minutes to even print 2/3s of the greeting :P


Heh heh heh (Semi-evil laugh)

Offline

 

#8 2009-12-03 01:13:33

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: General Emerald Discussion

hidas wrote:

Gershmer wrote:

hidas wrote:

no it isn't. XD.
then i shall show what i have been working on thus far:

Code:

import pygame      # imports pygame (duh)

import sys   #imports the sys module for closing pygame
#from graphic import * #NOT WORKING RIGHT NOW!!!!!   imports the specialized graphic module for sprites and basic movement

pygame.init()#                                 get pygame up and working

screen = pygame.display.set_mode([640, 480])#     ^^^

screen.fill([255, 255, 255])#                               ^^^
user_variable_FOR_LIST = False
clock = pygame.time.Clock()#                        ^^^
user_variables = []  # this is where all of the names of the variables that the user makes will be stored
user_variables_VALUES = False # this is where all of the actual values of the variables specified by the user are stored
what_the_user_variable_is = False
ask = True
what_program_will_print = []
# that is a LOT of variables and there will be a lot more =D
list_helper = 0
# START OF MAIN LOOP

'''this is a triple-quoted string. i added it because i wanted to. XD

and this is still part of the string %)
'''
print "This is Emerald version ? by the Emerald Team."
print "Type 'info' for a list of each command, and what it does."
if ask == True:
    user_command = input("Enter a command: ")
    if user_command == 'info':
        print "Type 'info' for this."
        print "Type 'graphic' to bring up a seperate graphic interface."
        print "Type 'print' to have your program print something."
        print "Type 'declare variable' to make a new variable in your program."
        print "Type 'ask' for your program to ask the user something."
        print "Type 'list' to make a simple list."
        print "And that's basically it!"
    elif user_command == 'declare variable':
        user_variable_FOR_LIST = input("What would you like to call your variable?")
        user_variables.append(user_variables_FOR_LIST)
        what_the_user_variable_is = input("What value should your variable hold?")
        user_variables_VALUES.append(what_the_user_variable_is)
        # wow that is confusing =(
    elif user_command == 'print':
        what_the_program_will_print.append(input("What should it print?"))
    else:
        print "I don't know that command."
while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            sys.exit()

btw, it barely does ANYTHING and i have about a week's more to do on it. :D

For me, that program doesn't even start. And yes, I have PyGame.

that's weird, it starts for me. But then again, The-Whiz's Opal took like 10 minutes to even print 2/3s of the greeting :P

Oh. Lols. I didn't copy all the code. Oops.


http://card.ly/images/vcard-green-small.png

Offline

 

#9 2009-12-03 01:16:34

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: General Emerald Discussion

OK. I now have a screwed up PyGame window, and a console window that if I type a command (Defined By You), and press enter, I get a crash.


http://card.ly/images/vcard-green-small.png

Offline

 

#10 2009-12-03 01:18:01

hidas
M30W Team
From: The 3rd dimension
Registered: 2009-11-11
Posts: 142
Website

Re: General Emerald Discussion

exactly. that's why it still need's a week's worth of work. :lol:


Heh heh heh (Semi-evil laugh)

Offline

 

#11 2009-12-03 01:42:51

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: General Emerald Discussion

Excellent
Marvelous
Entertaining
Radical
Amazing
Language
Dominant

Anyways, I can't wait to see it Hidas. :D


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#12 2009-12-10 14:42:40

hidas
M30W Team
From: The 3rd dimension
Registered: 2009-11-11
Posts: 142
Website

Re: General Emerald Discussion

finally, i have finished some more of emerald after it being deleted:

Code:

import pygame, sys
#from graphics import *
#make all of the variables and lists
pygame.init()
screen = pygame.display.set_mode([640, 480])
screen.fill([255, 255, 255])
commands = []
user_command = 0
LISTOFPRNT = []
WHAT_WILL_PRNT = 0
userVARIABLES_NAMES = []
userVARIABLES_VALUES = []
userLIST_NAMES = []
userLIST_VALUES = []
print "Emerald version ? by the Emerald Team."
print "System ready. Type 'info' for help."
def info():
    print '''DON'T KNOW ALL OF THE COMMANDS YET, SO THIS IS OBSOLETE.'''
def PRINT():
    global WHAT_WILL_PRNT
    global LISTOFPRNT
    global commands
    WHAT_WILL_PRNT = raw_input("What would you like your program to print?")
    LISTOFPRNT.append(WHAT_WILL_PRNT)
    commands.append(LISTOFPRNT)
    del LISTOFPRNT[0]
    MAIN_LOOP()
def CHANGE_VARIABLE():
    global userVARIABLES_NAMES, userVARIABLES_VALUES
    what_to_replace = raw_input("What variable would you like to replace? ") #NOTE THAT THIS IS A LOCAL VARIABLE
    try:
        if what_to_replace in userVARIABLES_NAMES:
        index_of_variable_to_change = userVARIABLES_VALUES.index[what_to_replace]
        thing_to_replace = raw_input("What would you like to replace it with? ")
        userVARIABLES_VALUES.insert[index_of_variable_to_replace]
        print "Okay! It was succesful!"
        MAIN_LOOP()
    except:
        YES_NO = raw_input("Sorry, that variable does not exist. Would you like to make it? [YES/NO]: ")
        if YES_NO == 'yes':
            MAKE_VARIABLE()
        else:
            MAIN_LOOP()
def MAKE_VARIABLE():
    global userVARIABLES_VALUES
    global userVARIABLES_NAMES
    userVARIABLES_NAMES.append(raw_input("Enter the name of your variable: "))
    userVARIABLES_VALUES.append(raw_input("Enter the value of your variable: "))
def MAKE_LIST():
    global userLIST_VALUES, userLIST_NAMES
    name_of_list = raw_input("What is the name of your list? ")
    userLIST_NAMES.append(name_of_list)
    what_to_append = raw_input("What is the value that you would like to put in this list? ")
    userLIST_VALUES.append(what_to_append)
    MAIN_LOOP()
def MAIN_LOOP():
    # set all of the globals
    global commands
    #get a command
    user_command = raw_input("Enter a command: ")
    if user_command == 'info':
        info()
        MAIN_LOOP()
    elif user_command == 'print':
        PRINT()
    elif user_command == 'add variable':
        MAKE_VARIABLE()
        MAIN_LOOP()
    elif user_command == 'change variable':
        CHANGE_VARAIBLE()
    else:
        print "I don't know that command."
        MAIN_LOOP() 
MAIN_LOOP()
while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            sys.exit()

as you can see, i am planning on having the entire program run using defs. i also have an idea on how to make the graphics sort of like scratch. you should be able to specify how fast you move, what direction, and whether you want the sprite to bounce off a wall, wrap around it, or just keep going. plus, the sprites will be draggable! :D

Last edited by hidas (2009-12-10 14:49:18)


Heh heh heh (Semi-evil laugh)

Offline

 

#13 2009-12-10 23:13:29

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: General Emerald Discussion

Found a bug, and you can't run the program. :(


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#14 2009-12-11 14:05:39

hidas
M30W Team
From: The 3rd dimension
Registered: 2009-11-11
Posts: 142
Website

Re: General Emerald Discussion

Magnie wrote:

Found a bug, and you can't run the program. :(

you found a bug?


Heh heh heh (Semi-evil laugh)

Offline

 

#15 2009-12-11 15:44:19

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: General Emerald Discussion

The bug is you can't run the program, I said that incorrectly, oops!


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#16 2009-12-11 17:49:18

hidas
M30W Team
From: The 3rd dimension
Registered: 2009-11-11
Posts: 142
Website

Re: General Emerald Discussion

oh. hmmm. that's not good.


Heh heh heh (Semi-evil laugh)

Offline

 

#17 2009-12-12 01:04:37

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: General Emerald Discussion

There isn't a command for it. xD


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#18 2009-12-23 15:59:27

hidas
M30W Team
From: The 3rd dimension
Registered: 2009-11-11
Posts: 142
Website

Re: General Emerald Discussion

okay, i am officially quitting doing a 'nother version of emerald. i'll just make the graphics thing then dump it onto the newest version of Opal. :(


Heh heh heh (Semi-evil laugh)

Offline

 

#19 2009-12-23 19:57:08

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: General Emerald Discussion

hidas wrote:

okay, i am officially quitting doing a 'nother version of emerald. i'll just make the graphics thing then dump it onto the newest version of Opal. :(

Good idea. (plus it makes Whiz sound awesome)


http://card.ly/images/vcard-green-small.png

Offline

 

#20 2009-12-23 21:39:37

hidas
M30W Team
From: The 3rd dimension
Registered: 2009-11-11
Posts: 142
Website

Re: General Emerald Discussion

Gershmer wrote:

hidas wrote:

okay, i am officially quitting doing a 'nother version of emerald. i'll just make the graphics thing then dump it onto the newest version of Opal. :(

Good idea. (plus it makes Whiz sound awesome)

that's why he's The Whiz. to live up to his name, he has to be awesomez. :cool:


Heh heh heh (Semi-evil laugh)

Offline

 

#21 2009-12-24 12:45:13

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: General Emerald Discussion

MEOW
Massive
Emerald
Over
Wowzered


I am A M30Wr.
I always get the last word.

Offline

 

#22 2009-12-27 03:55:23

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: General Emerald Discussion

That isn't a sentence.
M Mavellous
3 Editor
0 Of
W Wonder
Is so much better. o.O


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#23 2009-12-27 12:49:29

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: General Emerald Discussion

its just another one. but yeah, its simply awesome compared to mine.


I am A M30Wr.
I always get the last word.

Offline

 

#24 2009-12-27 14:42:59

cds56
THE TOOOTH! THE TOOOOOOOOOOOOTH!!!!!
From: Canamadiana
Registered: 2009-11-07
Posts: 423

Re: General Emerald Discussion

M30W
Eats
Other
Worlds

or alternately

M30W
Eats
Other
Wonders


http://www.catb.org/esr/faqs/glider.png

Offline

 

#25 2009-12-27 19:28:35

floppy_gunk
I Am Your Father.
From: Earth, The Milky Way (I think)
Registered: 2009-10-08
Posts: 186
Website

Re: General Emerald Discussion

M30W
(Emerald it
Once
Was)

Not only is it a recursive acronym, which is awesome, but it also makes sense!


Big Bob bites black bugs, but black bugs bite Big Bob back.

Offline

 

Adverts

Board footer

Powered by FluxBB
Hosted by PunBB-Hosting