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

Post Reply  Post Oekaki 
 

Posted By Message

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
4th January, 2008 at 18:35:58 -

I'm not looking for teammates, per se, just some people to add opinions and suggestions to this thread.

I'm working on an application to simplify expression writing. It will automate a method I've used to organise my expressions for ages. Its features are as follows:

Features (some implemented, some planned)
Full Commenting using /* or // comments.
Internal variables. Split your complex functions up into variables, letting you organise your formulae, and make changes easily.

E.G. A complex string formula using mid$(text, start, length) may need changes in the 'text' parameter. If you've isolated the text variable and defined it separately, it's easier to edit or replace with more efficient code.

Easier format for Immediate IFs:

if (a = b)

{ "YES" }
else
{ "NO" }


...is a basic example. This will be scanned and converted into an expression using the Immediate IF Object. So nested IFs with this will be a doddle, and they'll make more sense at a glance.

Better Debugging:
If your expression has a type mismatch (mixed strings, etc), this app will hopefully isolate where. Counting how many brackets there are per clause, etc (so it can say if you missed a bracket, and possibly where too).

Floating Point Handling:
Hopefully, it'll be possible to force the expression to handle values as floating points. So this:

float.= maxhealth("Object2) / health("Object2");

Will become this:

(maxhealth("Object2)+0.0)/health("Object2")



So yeah, that's the plan. What other features would you like in an app? If the expression editor could do something, that it currently doesn't, what would that be?

 
191 / 9999 * 7 + 191 * 7

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
5th January, 2008 at 01:23:21 -

So this lets us manage expressions and export them to MMF format? If so it definitely needs a way to keep track of expressions, so I can edit them easily

It does indeed sound like an awesome idea, there's a lot of improvement to be had in the Expression Editor.

If it helps with complex expressions, and Immediate Ifs then it'll be awesome!

A feature I'd like in the expression editor... UNDO! Why isn't it there!? . From reading about what you said on the CT forums I can't think of anything else...

Image Edited by the Author.

 
Image
http://bfollington.tumblr.com

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
6th January, 2008 at 10:28:30 -

Undo should be easy, since this is all based on the RTF Object.

It would keep multiple expressions which you could organise like a file/folder tree. So you could always come back to it.

 
191 / 9999 * 7 + 191 * 7

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
6th January, 2008 at 19:00:03 -

Ah sounds perfect! Note sure why this hasn't attracted more attention

Will it be able to do syntax highlighting? It's not that big of a deal but it's nice (if so choose colours you can differentiate between easily.. Purple and blue in the normal expression editor )

 
Image
http://bfollington.tumblr.com

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
8th January, 2008 at 07:44:20 -

I probably won't do coloured syntax, it's quite tough.

 
191 / 9999 * 7 + 191 * 7

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
8th January, 2008 at 20:55:54 -

Yeah It's ok if you don't need to colour it all the time, but in this it'd be too many loops and things...

Not a big feature in the scale of things, auto-suggest would be cool but just about impossible.

 
Image
http://bfollington.tumblr.com

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
10th January, 2008 at 06:26:07 -

The colour thing's a bit tough for the line that you're actually writing at the time, that's what I've always found. Maybe in a future version, though.

Auto-suggest would be very tough since E++ doesn't know what objects you've got in the frame. So it can't really suggest them.

 
191 / 9999 * 7 + 191 * 7

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
10th January, 2008 at 08:30:08 -

Maybe for extensions only? That'd still be tricky I must admit :\

 
Image
http://bfollington.tumblr.com

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
11th January, 2008 at 08:44:36 -

It has a Project entry now, so maybe it'll get more interest shown in it

http://www.create-games.com/project.asp?id=1046

 
191 / 9999 * 7 + 191 * 7

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
21st February, 2008 at 22:15:30 -

Hey, I was making something like this! Strange that it took me so long to notice. Inspired by stuff like this: http://www.create-games.com/forum_post.asp?id=214368

I support you all the way, man. Now all I need is a script-thingy for MMF that's more powerful than Lua.

Oh, suggestions.. change the name! It scared me away from looking at it!

I'd like a feature where it could keep track of variables. Or replace certain events with others. For example, I set this in E++:
X1 = XPosition("Active1")
X2 = XPosition("Active2")

So, I just enter in E++ something like:
([X1]+[X2])/([X2]-20)

And it comes out resulting as
(XPosition("Active1")+XPosition("Active2"))/(XPosition("Active2")-20)

See how much confusion I save? But I'm sure you guys have already thought of it before

Image Edited by an Administrator.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
21st February, 2008 at 22:32:46 -

Oh, wait, you did, lol. I was thinking something like a variable bin so I know which variable I stored in which XYZ of an array.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image
   

Post Reply



 



Advertisement

Worth A Click