Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Pages: 1 2 3 [All]

Author Topic: WME Visual Script Editor  (Read 25494 times)

0 Members and 1 Guest are viewing this topic.

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
WME Visual Script Editor
« on: October 13, 2005, 12:52:35 AM »

Hi all,

I wrote myself a little script editor for WME yesterday and of course I want to share it with the community. I wrote it because editors like UltraEdit and such are too much feature packed and too shitty for my personal needs.



Features:
- Simplicity  ;)
- Syntax highlighting
- Code block system (insert whole text blocks with a simple mouse click)
- Features all build-in WME methods, commands and keywords with parameters and short description - just double click a method and it pastes to your script (directly ripped out of the WME docs)
- Printing
- Quickhelp system

Not finished yet:
- Changeable printing color
- Block comment/Block uncomment
- Search in files

The current version is V0.7 (10/05/07):

http://mac-bs.de/bullsoft/download/WME_VSE.zip
http://mac-bs.de/bullsoft/download/WME_VSE.rar

Please write for suggestions, bugs and wishes.

Cheers
Mac
« Last Edit: October 06, 2007, 11:56:41 AM by Mac »
Logged

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
Re: WME Visual Script Editor
« Reply #1 on: October 13, 2005, 08:34:01 AM »

Wooooo GREAT! :D

Would be possible to implement some kind of "IntelliSense" ??
Logged

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re: WME Visual Script Editor
« Reply #2 on: October 13, 2005, 11:36:24 AM »

Great work!

But I find search & replace a basic feature, I think you should try to implement it as soon as possible.

Keep it up man!
Logged

Click here to sign my sig!

PoselSmrti

  • Guest
Re: WME Visual Script Editor
« Reply #3 on: October 13, 2005, 02:44:34 PM »

Hi Mac!

I have downloaded your editor, but i cant excract the files. WinZip has wrote me: no files to excract! :)
Logged

organican

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 74
    • View Profile
Re: WME Visual Script Editor
« Reply #4 on: October 13, 2005, 05:11:38 PM »

Nice!

But I'm not sure if it's my piece of cake.

You see, I do all my scripting in notepad. ;D

Maybe it's a little like what Spock said in that episode...

"I am endeavoring, ma'am, to construct a mnemonic memory circuit...using stone knives
and bearskins." - Spock in "The City on the Edge of Forever"

But maybe that's more like what Mnemonic is doing with the WME engine ;)

But back to the topic...
I've tried these kinds of programs in the past. And now I try this. And I have to say, that I just don't like all the colors. It's just looks too... messy for me.

I simply prefer Notepad's simplicity and clearness.

Am I the only one?
« Last Edit: October 13, 2005, 05:31:07 PM by organican »
Logged

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re: WME Visual Script Editor
« Reply #5 on: October 13, 2005, 06:31:03 PM »

I personally prefer syntax highligting. It makes it easier to locate a concrete section of code you're looking for just by scrolling the text and not paying too much attention, just by the colors.

I have to program assembler using MS-DOS edit because of university, and it's a pain in the ass. Once you get 1000 lines of codes is a nightmare to jump from section to section of code without colors.
Logged

Click here to sign my sig!

organican

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 74
    • View Profile
Re: WME Visual Script Editor
« Reply #6 on: October 13, 2005, 07:31:39 PM »

I personally prefer syntax highligting. It makes it easier to locate a concrete section of code you're looking for just by scrolling the text and not paying too much attention, just by the colors.

I have to program assembler using MS-DOS edit because of university, and it's a pain in the ass. Once you get 1000 lines of codes is a nightmare to jump from section to section of code without colors.

Ahhhh Edit...

*drools*

The ultimate word processor...

;)

But seriously, this is one of the things that WME does so well that we have to give Mnemonic credit for: how easy the code is to handle. You have total control of where everything is in WME, it's really great!
Logged

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: WME Visual Script Editor
« Reply #7 on: October 13, 2005, 08:04:50 PM »

Hi,

@MMR:
A good idea. I implemented a thing that goes into the 'IntelliSense' direction. If the cursor is right of a '.' character it opens a listbox with WME methods to choose from. I think it will be usable tomorrow.

@McCoy:
Of course search and replace are very important. I will also implement the opportunity to replace only in the current selection (blockwise). Will be done tomorrow morning.

@organican
I used Notepad for all of the WME scripting until yesterday when I thought it would be nice to have the opportunity to implement whole code blocks with a mouseclick. Scripting became copying and pasting most of the time. And when I was happily coding I thought that code coloring would give it all a cleaner look. I never used any syntax highlighting before but I find it quite usefull. If you like to have your script plain black on white like in good ol' Notepad, you can disable the syntax highlighting in the 'Settings' window. But it saves you the quick code implementation and the method tooltips in the status bar.

Now I'm off to work on it a lil'.

Will post a new version soon.

Cheers
Mac
Logged

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re: WME Visual Script Editor
« Reply #8 on: October 14, 2005, 02:03:12 AM »

Hey Mac, try to implement also a "fins and replace in files" option if possible, I also use it a lot to update things a lot of different files in one go.
« Last Edit: October 14, 2005, 02:05:19 AM by McCoy »
Logged

Click here to sign my sig!

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: WME Visual Script Editor
« Reply #9 on: October 14, 2005, 12:20:16 PM »

Hi Mac, I'm writing the scripting reference in the form of simply formatted text files, which are then used to generate the HTML pages. The intention was to use these files also for code completion/call tips in script editors. Please consider using these files instead of ripping the HTML docs, they are easy to parse and they get updated with each WME release. I have a parser class too, but it's written in C# 2.0 so probably of no use to you.

http://dead-code.org/misc/wme_doc_src.zip
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: WME Visual Script Editor
« Reply #10 on: October 14, 2005, 01:59:56 PM »

Thanks Mnemonic,

the files are really easy to parse, of course I will change my parsing code to match it.

A new version is online with 'IntelliSense' like stuff and of course Find & Replace. Get it using the link in the first post.

PoselSmrti had problems with the zip-file so I uploaded a rar-file, too.

Mac
Logged

organican

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 74
    • View Profile
Re: WME Visual Script Editor
« Reply #11 on: October 14, 2005, 03:27:43 PM »

Okay, I turned off the colors. It looks much better. ;D

I played around a bit, learned how to make some of my regular code snippets automated. Really nice!

I might try this out some more and see if it's my cup o' tea after all.

Just a few small suggestions:
1. The icon... is horrible. The windows icon just looks really ugly. It's aestetically appalling. At least to me. Just a small thing.
2. Everytime I'm choosing "open file", the search path is always in "my documents". Why can't it be where I last opened a file?
And you can't "drag" a file into the WME visual script editor, from outside folders either. So this means some extra work for all us fellow scripters. Just a minor thing. But it would be nice with an custom option or an automatic memory of the last directory you've been in.
3. The font size. If you have a high resolution, it looks just a little small. And some people might have bad eye sight, as well. Maybe an option for the font size (10, 12, 14...)?
4. Possibly some other way to deal with the highlighting. Say, bold and italic, and underlined text. And possibly "glowed" (in a neutral color ;)).
I might be the only one who's hating the colors, so I guess this one is not that important.

Just a few suggestions that might imrove the program.

Great job so far. Keep up the good work.
Logged

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: WME Visual Script Editor
« Reply #12 on: October 14, 2005, 08:33:48 PM »

Hi organican,

all four of your suggestion are nice, usefull and easy to implent (I hope ... coding things I declared to be easy normaly turn to a real mess  ;)) so they all will find their way in, together with replacing in selections only and in files. Gimme some days.

Mac
Logged

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: WME Visual Script Editor
« Reply #13 on: October 15, 2005, 01:32:59 AM »

Hi,

I have a new version ready.

Changes and additions:
- now the method list is directly scanned out of Mnemonics doc source files.
- it has an icon now
- the open-requester now points to the exe path or the path of the last opened script
- added an option to insert the parameters for methods (instead of '()')
- I wrote a little read me file
- some minor things

Get it using the links above.

Have fun
Mac
Logged

holmss

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 9
    • View Profile
    • Lullaby Studios
Re: WME Visual Script Editor
« Reply #14 on: October 15, 2005, 01:37:48 PM »

Mac,

I like your program, but I have one suggestion for now. There must be a way for horizontal resizing of a right window (with method's library).

10x.
Logged
"I wonder how much of love are your veins able to receive?" / T. (translated by metamorphium)

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: WME Visual Script Editor
« Reply #15 on: October 15, 2005, 04:37:11 PM »

Scaling of the methods list could be usefull, but what way would be better:

1. Make a bar between the script window and the tree view to adjust the horizontal scaling of them.

or

2. Transfer the tree view to a client window so that you can drag it where you like.

What are your opinions 'bout it, wintermuters ?

Mac
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: WME Visual Script Editor
« Reply #16 on: October 15, 2005, 06:14:25 PM »

I think a splitter would be better. Floating windows tend to get in the way if they cannot be docked.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: WME Visual Script Editor
« Reply #17 on: October 15, 2005, 06:55:28 PM »

So the editor control and the tree view are now connected using a splitter. Looks good.

Always download the actual version using the link in the first post.

Mac
Logged

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re: WME Visual Script Editor
« Reply #18 on: October 15, 2005, 08:30:36 PM »

Also an option to hide the tree view to the side just by pressing a button and being able to return it to its past size pressing the same button would be nice. But it's not that important.
Logged

Click here to sign my sig!

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: WME Visual Script Editor
« Reply #19 on: October 15, 2005, 08:59:17 PM »

In case anyone wants to have the list of wme methods & attributes in greek (I doubt it  ;))
here are the greek files http://master.math.upatras.gr/~odnorf/files/wme_gen_sources_greek.zip
Just replace the english ones.

Thanks Mac for the editor. It really is faster and lighter than a complete editor.
Logged
fl*p

holmss

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 9
    • View Profile
    • Lullaby Studios
Re: WME Visual Script Editor
« Reply #20 on: October 15, 2005, 09:22:01 PM »

Mac,

I guess it will be better to create a VSE page at WME Wiki and keep updates there.
Logged
"I wonder how much of love are your veins able to receive?" / T. (translated by metamorphium)

organican

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 74
    • View Profile
Re: WME Visual Script Editor
« Reply #21 on: October 16, 2005, 08:48:02 AM »

Mac, great job so far! Keep up the good work!  8)

I just have one more simple suggestion.

When you close the VSE, or open up a new document without saving the one you've been working on, it will be lost.

So can't you have a reminder or a message that says that you haven't saved, so something like that?

That would be really good.

Mac,

I guess it will be better to create a VSE page at WME Wiki and keep updates there.

But this is also a discussion on how to improve the VSE.
Logged

varnama

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 44
    • View Profile
Re: WME Visual Script Editor
« Reply #22 on: October 16, 2005, 12:23:10 PM »

Hi all! First, Good Work Mac! It's greattttttt! :D
I have only a little one suggestion if it's possible, usually i have the bad habit to select text from down to up, but vse doesn't leave me only from up to down.. That's all, thanks very much!

P.D: I think  'MiniIntelliSense' and the option of listbox areeeee cooooool!!  ::rock
« Last Edit: October 16, 2005, 12:27:47 PM by varnama »
Logged

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: WME Visual Script Editor
« Reply #23 on: October 16, 2005, 03:02:36 PM »

Another version update:

Version 0.4:
- NEW: VSE now checks if the actual script is unsaved before quitting/loading/...
- NEW: Backward selecting is available
- NEW: The mothods list can now opened and closed via 'ESC'-Key
- FIX: Undo/Redo were killed in Version 0.2, now they're back again

Mac
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: WME Visual Script Editor
« Reply #24 on: October 17, 2005, 11:50:57 AM »

Man, I wish I was as fast as you are :) From my point of view, there's only one vital thing missing: check syntax. I'm using it all the time when scripting. Perhaps integrating wme_comp.exe similarly to UltraEdit wouldn't be too hard...?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

organican

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 74
    • View Profile
Re: WME Visual Script Editor
« Reply #25 on: October 17, 2005, 09:04:20 PM »

Man, I wish I was as fast as you are :) From my point of view, there's only one vital thing missing: check syntax. I'm using it all the time when scripting. Perhaps integrating wme_comp.exe similarly to UltraEdit wouldn't be too hard...?

Yeah, it's getting really good, this VSE.

There's not much missing now for this program. An object-specific intellisense, that also allows for direct selecting with the arrow keys, would be nice.

And also Mnemonic's idea...

Syntax checking would truly make this a killer app!

But maybe that's too much to ask for. :(

But still, really really nice, the VSE is becoming. :)
« Last Edit: October 18, 2005, 12:56:59 AM by organican »
Logged

varnama

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 44
    • View Profile
Re: WME Visual Script Editor
« Reply #26 on: October 18, 2005, 12:05:40 AM »

I'm Really happy with this program!!  :D
Implement "check Syntax" i think it will do perfecttt :o
Good job Mac an other time!!
Logged

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: WME Visual Script Editor
« Reply #27 on: October 18, 2005, 03:47:37 PM »

Hi,

thanks again for your suggestions and I am proud that you like the proggy. An object-specific MinitelliSense is in developement, syntax checking will of course be there too. (I need it very often too, so I'm ashamed that I didn't think about this myself) Choosable font and font size for the editor control is nearly done and also optional bold, italic and underline for the syntax highlighting (I also integrated a color requester to get rid of those RGB values in the settings window). I also thought about a way to scroll through the methods with the cursor keys, but that would deny you to scroll through the text at the same time, because the editor control or the MinitelliSense method list window can be active at a time not both. I could scan for some not text editing needed keys to scroll through the methods, maybe some F-keys, or Ctrl-PageUp/PageDown for example. Ideas are welcome.

By the way, updates will take a little longer from now on because my week off from work is now over  :'( (that's the reason I was able to create this app in 3 days - usually I can't code 15 hours a day), but I think a new version with the new features will be available before the weekend starts.

Mac
Logged

Nihil

  • Supporter
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 528
  • Fear me! I'm evil!
    • View Profile
    • Order of Dagon
Re: WME Visual Script Editor
« Reply #28 on: October 18, 2005, 05:45:15 PM »

thanks again for your suggestions and I am proud that you like the proggy.

And can be proud about it ;-)

That's really a cool and helpful tool you created there! (I especially like the point "Users" ;-) )

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: WME Visual Script Editor
« Reply #29 on: October 21, 2005, 09:27:28 PM »

Hi,

I just finished a new version:

Version 0.5:
- NEW: If MinitelliSense method list is open you can scroll through it via cursor keys while holding down the CTRL key - pressing Enter inserts the method to the script (while still pressing CTRL)
- NEW: 'Game', 'actor' and 'Scene' are recognized as method members and the methods are filtered (in MinitelliSense list)
- NEW: Color requesters for the highlighting colors instead of those ugly RGB values
- NEW: Text styles (bold,italic,underline) in addition to colors for syntax highlighting
- NEW: Choosable font and font size for the editor
- NEW: Syntax checking via wme_comp.exe
- FIX: Check for unsaved data when clicking on 'New'

To make syntax checking work you should choose a project file from within the settings dialog.

Mac
Logged

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: WME Visual Script Editor
« Reply #30 on: October 06, 2007, 12:03:03 PM »

Hi,

despite the fact Mnemonic made this fantastic WME Integrator tool I'm still using and developing my own baby. I integrated a quickhelp system yesterday and of course you are invited to take a look and use it as you like. The current version is 0.7.

The last additions are the following:

Version 0.7 (10/05/07)
- NEW: Pressing the F1-Key while something in the method list is selected opens a
         quickhelp window with further informations
- NEW: A HTML viewer is integrated to show the help file
- NEW: Child windows like Find/Replace/Help,... are now a bit transparent

Version 0.6a (03/13/07)
- NEW: The editor window now remembers it's position and size
- FIX: WME methods were not colored correctly if characters like !+-*/ were in front
- FIX: Switched app name and script name in the window title
- FIX: If a method was more then one time in a line only the first one was colored

Version 0.6 (02/08/07)
- NEW: Added a direct link to the WME docs in the help menu
- NEW: The WME methods and attributes and so on are now scanned from the xml-file that
         is included in all wme releases. So this app will grow as WME grows ...
- FIX: Fixed some bugs with Minitellisense object recognition (Game, actor, Scene)
- FIX: The flickering when running through the script using the arrow keys is gone
- FIX: Problems with scripts bigger than 32kb fixed
- FIX: New script loading routine (streambased, much faster)
- FIX: When highlighting a whole script (after load or options change) the editor
         is locked to prevent scrolling of the whole script over the screen

As always look in the first post of this thread for the download links.
Logged
Pages: 1 2 3 [All]
 

Page created in 0.075 seconds with 23 queries.