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

#51 2009-12-16 11:47:41

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

Re: Opal

it look like it, but ok.

How are you doing a GUI in vb when your programing in c++?


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

Offline

 

2009-12-16 11:47:41

AdBot
Advertisements

#52 2009-12-16 20:47:18

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

Re: Opal

Well, the VB program is a separate thing to the CPP program, so all I need to do is make the save and open routines compatable. and
the run sequence. Which shouldnt be too hard, all things considered


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

Offline

 

#53 2009-12-16 21:25:56

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

Re: Opal

Can you program in the Gui? or is it still in the CP?


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

Offline

 

#54 2009-12-16 22:07:53

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

Re: Opal

markyparky56 wrote:

Can you program in the Gui? or is it still in the CP?

Right now cds56's VBEmerald can not program files.


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

Offline

 

#55 2009-12-16 22:49:43

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

Re: Opal

Oh, I've made a version that can program and save files, but it cant open them due to rich text box issues.
So the status is,
A. There is a List-box version that can open, not save or edit files, but it is the most professional
B. The rich text-box version can save, edit, and (soon) run programs, but not open them.

The specific error it calls is, uh,

Improper file format. (for opening .emr files)
http://www.gershmer.net/emeraldteam/CPPE/ERRAR.png


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

Offline

 

#56 2009-12-16 23:53:17

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

Re: Opal

cds56 wrote:

Oh, I've made a version that can program and save files, but it cant open them due to rich text box issues.
So the status is,
A. There is a List-box version that can open, not save or edit files, but it is the most professional
B. The rich text-box version can save, edit, and (soon) run programs, but not open them.

The specific error it calls is, uh,

Improper file format. (for opening .emr files)
http://www.gershmer.net/emeraldteam/CPPE/ERRAR.png

Can you do it with .txt files or something so I can see the rest of the program?


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

Offline

 

#57 2009-12-17 00:45:28

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

Re: Opal

oh.

I just got news. It's not the uh .emr files.

*grins*
It was me not using the write save routine!

heres the updat:

http://www.gershmer.net/emeraldteam/CPPE/vbemerld.exe

try saving a file,  getting rid of the text, and opening it again(amusing, I know)

DONT press "highlight keywords"
DONT press "test program"
the testprogram form will be the window that pops up for your programs to run in, but right now it's an empty window. albeit a pretty empty window, but pressing "Start" will crash it.
that is all


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

Offline

 

#58 2009-12-17 01:05:34

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

Re: Opal

^ But the .emr files aren't in plain text :(


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

Offline

 

#59 2009-12-17 01:21:20

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

Re: Opal

So?
why question it if it works.

If WHAT works

okay, heres what i changed,

old save method

Code:

Dim writer as StreamWriter = _
New StreamWriter
~~~~~~~~~~~~~~`
(unessesary streamWriter code)

Let's just say I used the StreamWriter method, which would work perfectly had I also used the StreamReader opening method.
I replaced the bunches of streamwriter code with:

Code:

SaveFileDialog1.ShowDialog()
RichTextBox1.SaveFile(SaveFileDialog1.Filename)

And it worked perfectly.
is there a reason you want .txt files?
Because opening .emr files in VBemrld works the same as opening text files in VBemrld, except that wouldnt go over well with the (soon to be ) syntax checker.


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

Offline

 

#60 2009-12-17 01:33:56

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

Re: Opal

^ They need to be in plain text because our other programs (Emerald in python, etc. have to be able to read them properly)


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

Offline

 

#61 2009-12-17 02:12:19

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

Re: Opal

K, well, They don't really have much extra structure, ergo, a hello world program looks like so,

Code:

print hello world!

one line.
that's how both CPPE and VBemrld save their stuff.

Is that close enough?


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

Offline

 

#62 2009-12-17 03:46:43

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

Re: Opal

We need it in Plain Text so even if the code were different from Python Emerald, we can program the text-file and not require CPPE to program in it, but you would need CPPE to run it, sometimes it's easier to program in notepad than the actual program.


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#63 2009-12-18 21:07:24

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

Re: Opal

What about moving the cppe(soon to be cpp(something else)) to its own thread?


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

Offline

 

#64 2009-12-18 21:18:07

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

Re: Opal

markyparky56 wrote:

What about moving the cppe(soon to be cpp(something else)) to its own thread?

http://www.punbb-hosting.com/forums/Eme … .php?id=74


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

Offline

 

#65 2010-01-06 20:25:32

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

Re: Opal

Whats happened to the_whiz? :/


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

Offline

 

#66 2010-01-06 21:08:18

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

Re: Opal

markyparky56 wrote:

Whats happened to the_whiz? :/

Busy being a mod on the TBGs, most likely.


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

Offline

 

#67 2010-01-07 12:07:01

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

Re: Opal

yeah, but that must get a bit borring.


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

Offline

 

#68 2010-01-09 22:12:42

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

Re: Opal

Hi guys. Sorry I haven't posted in a while.

I've been having many difficulties using pygame, so I've now switched to using wxPython, which I'm having a much easier time using.


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

Offline

 

#69 2010-01-09 22:22:08

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

Re: Opal

floppy_gunk wrote:

Hi guys. Sorry I haven't posted in a while.

I've been having many difficulties using pygame, so I've now switched to using wxPython, which I'm having a much easier time using.

Can I at least see what you have so far in PyGame? (If you have anything at all)

Are you using the PGU?


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

Offline

 

#70 2010-01-10 00:33:39

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

Re: Opal

I checked out pygame, and it seemed even alot harder than uh, GTK+, winAPI, GLUT, tKinter, uh, well all of them window meisters.


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

Offline

 

#71 2010-01-13 04:00:50

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

Re: Opal

PyGame is good for creating games with a lot of graphics. However, if you want to make a program with things like dialogue windows, buttons, menus, textboxes, etc., then PyGame is not the tool to use.

I don't think I've done much with using PyGame for M30W. I soon discovered that you can't make multiple windows (like dialogue windows) with it, with PGU you can't select text, you can't make a scrolling text box, I couldn't figure out how to draw anything on the screen, the windows aren't resizeable, you can't make menus or buttons unless they are hand-made (metaphorically speaking), I couldn't find any tutorials except for the examples, etc. etc. </rant>

And that's why I've switched to wxPython. :)


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

Offline

 

#72 2010-01-13 16:32:48

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

Re: Opal

floppy_gunk wrote:

PyGame is good for creating games with a lot of graphics. However, if you want to make a program with things like dialogue windows, buttons, menus, textboxes, etc., then PyGame is not the tool to use.

I don't think I've done much with using PyGame for M30W. I soon discovered that you can't make multiple windows (like dialogue windows) with it, with PGU you can't select text, you can't make a scrolling text box, I couldn't figure out how to draw anything on the screen, the windows aren't resizeable, you can't make menus or buttons unless they are hand-made (metaphorically speaking), I couldn't find any tutorials except for the examples, etc. etc. </rant>

And that's why I've switched to wxPython. :)

Thats why its called PyGame What a surprise! :O


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

Offline

 

Adverts

Board footer

Powered by FluxBB
Hosted by PunBB-Hosting