The Daily Click ::. Projects ::. Expression Editor Plus (E++) ::. Forum
 

Project: Expression Editor Plus (E++)
Project Started: 11th January, 2008 Last Update: 16th September, 2009
Project Owner: DeadmanDines Project Members:
Project Type: Application Project Progress:


 

Public Forum ::. Interesting...
 

Posted By Message

Aptennap



Registered
  23/04/2004
Points
  916
11th January, 2008

This sounds really interesting, how could it be done in notepad?

 
Oh sweet mary.

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
11th January, 2008

Well the method I always used to use in Notepad is very much like this, but it's not automated. So if we take the example I quoted in the 1st devlog:

//Code to find the Player's first name, 

//from a full name
//---------
//Load in his full name:
name = Edittext$("NAME");

//Find the first space in the name:
cut to = find(name, " ", 0);

//Extract only the first part:
first name = left$(name, cut to);

//Finally, send MMF the result:
first name


If we read it through, we've defined a 'name' variable as 'Edittext$("NAME")', so we can quickly copy the 'Edittext$("NAME")' bit and paste it over any bits which say "name" (i usually do it manually, but you can use Find and Replace if you have a big expression).

Then you do the same with the next variable we defined, 'cut to'. Then we do it to 'first name'.

That last bit should be our finished expression. So the above would become this:

left$(Edittext$("NAME"), find(Edittext$("NAME"), " ", 0))

That's a very simple example, so much so that I personally wouldn't bother using this technique for such a simple expression. But it shows how it all works.

For things like Bézier Curves, where the same value is used several times in different places, it's invaluable. It's also useful because if you keep the original script your wrote in Notepad, you can make changes a lot easier.

For instance, in the above example, the reference to Edittext$("NAME") is made twice (once for left$(), once for find()). So if I later decide to read the name from an array instead, I can change the 'name' variable just once and recompute it. It's better than searching through a complex expression a month later trying to find which bits did what.


I've been doing it that way for some time now, but this app basically just automates the process. And hopefully, it'll have some better error checking, like telling you where you're missing brackets, etc.

 
191 / 9999 * 7 + 191 * 7

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
12th January, 2008

This is amazing, really.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
13th January, 2008

Yeah, why do I get the feeling I'm gonna slave over this, then finally no one'll use it, LOL?

 
191 / 9999 * 7 + 191 * 7

EonDev



Registered
  13/01/2007
Points
  219
14th January, 2008

I don't get how'd you send it to MMF.
But if the program works i'll definately be using! I can code must faster than I can click and select

 
Breathing? It's optional!

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
14th January, 2008

It just generates an expression, and you paste it into the expression editor.

It won't do actions at all for you, it only works as a better environment for writing expressions. Makes 'em more organised and logical-lookin'.

I can't live without it now, lol.

 
191 / 9999 * 7 + 191 * 7

Deleted User
17th January, 2008

I have no idea what it does or what it is for, but MAN!

E++! What a name!

 

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
21st January, 2008

Good idea! must be a pain to code though. Will definitely make things easier.

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
23rd January, 2008

It already does! Now that it's actually generating working expressions, it's ossum!

At some point, I'm gonna try adding:

If Statements, to create immediate ifs using IIF Object. Eg:

if(count > limit)

{"Yes";}
else
{"No";}


Min/Max Statements, to return the lower or greater of a group of values. Eg:

min

{
value 1;
value 2;
value 3;
value 4;
}


This would simply create a layer of min() statements like this:

min(value 1, min(value 2, min(value 3, value 4)))

 
191 / 9999 * 7 + 191 * 7

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
22nd February, 2008

You should be getting paid for this imo..!

 
http://www.SilverNova.co.uk


DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
23rd February, 2008

Lol, wish I were, but there we go.

One day it'll be done, it'll be worth the time it took. It's a bit tricky to debug though.

 
191 / 9999 * 7 + 191 * 7

Mathias Kćrlev



Registered
  30/04/2005
Points
  16
3rd April, 2008

This is just excellent. I always get messed up in my MMF expressions, this'll make it much easier!
Thanks for your dedication to this application

 
http://matpow2.bandcamp.com - EP

Rob Rule

Rusten Crating

Registered
  22/12/2007
Points
  532
16th October, 2008

M just gave me the heads up on this, and I've had a bit of a read - this looks like an amazing project, and I think you'd be wrong to worry that people aren't going to use it.

 
It'll all blow over.
   


 



Project Forums


Advertisement

Worth A Click