ETScript v0.3 released! Ready for download!


(Flippy) #1

Hey,

Version 0.3 of ETScript, the script editor for W:ET, is done!

It fixes alot of nasty bugs and adds loads of cool new features:

  • comment/uncomment block
  • change font
  • automatic indenting (tab-remembering)
  • automatic linebreak+tab on {
  • new options screen with more options such as color choice.

Known bugs, not in the readme:

  • The Find function doesn’t work if you don’t select “Up” or “Down” first.
    You may or may not have this bug. If you start the “Find” dialog (Ctrl+F) and see that no option is selected, just select one.
  • Changing font needs a restart. The ‘Redraw text’ button does not want to work for some unknown reason.
  • I accidently left an old bit of the old readme in… The script reference IS complete, even though the readme says it’s not :stuck_out_tongue:

Download:
http://rapidshare.com/files/40124931/ETScript.zip.html
(You might need to de-install the last version, I don’t know)

Screenshot

Details in the readme:

ETScript	-	V 0.3
--------

Made by Nick Thissen	aka Flippy	aka reT!reD.Nick
[email]r0fnick@gmail.com[/email]

============


0. SPECIAL NOTES - Vista users
1. ABOUT
2. FEATURES
3. KNOWN BUGS
4. BUGFIXES
5. TO DO
6. CREDITS
7. BUG REPORT


============



0. Special Notes - Vista users
================

If you are using Windows Vista, the program will have the 
Windows Classic look by default.
If you want your buttons etc to look like Vista, you will have 
to set the Compatibility of the program to "Windows XP - SP2".

To do this:
- Go to the installation folder (usually "C:\Program Files\ETScript")
and locate "ETScript.exe".

- Rightclick this file and go to the "Compatibility" tab.

- Check "Run this program in compatibility mode for:" and choose 
"Windows XP (Service Pack 2)"




1. About
========

This program will help you writing script files for
Wolfenstein Enemy Territory maps.
It features a few handy things that will make your
scripting life easier!

This program is made in Visual Basic 6, in Windows Vista.
Tested to run in both Windows XP and Windows Vista.


In the Options menu, you can specify the path to your
Enemy Territory folder. Click the Browse button and select
any file inside the folder that contains your script files
(usually etmain\maps).
If you specify this, the Open and Save dialog boxes will
default to that location.
By default, this is set to:
"C:\Program Files\Wolfenstein - Enemy Territory\etmain\maps"


Any options you set get stored in the file "options.dat".
Please do not edit this file if you don't know what you're doing.
The line numbers for each option are hardcoded into the program.
IF you must edit this file, be sure to keep every setting on the same line!

---------------------------------------------------------------------------------


2. Features
===========

Currently, the program features:

- Notepad-like script editor:
	Open and save in the .script filetype by default, never worry about
	the wrong filetype again!

- Syntax Highlighting:
	Special scriptcommands are colored, so you can easily see what you're
	doing!

- Customizable Preset:
	If checked in the Options menu, the program will load a game_manager
	preset when you open a new file.
	You can customize the preset by simply editing the "preset.txt" file.


NEW IN V0.3:
----
	
- Ability to change font.

- Automatic tab-indenting. 
	The program remembers the number of tabs on the previous line when
  	you press enter and adds that number of tabs. So you don't need to
	press tab everytime after a linebreak!

- Automatic { block indent.
	When you type an opening bracket ( { ) the program also adds a linebreak
	and an extra tab.

- If you want to type brackets without the linebreak and tab effects, you can use
	[ and ] to type { and }.

All above 3 options are optional and can be set in the Options screen.


- Comment Block and Uncomment Block features.
	Select a few lines of text and comment them out with a click of a button!

- New Options screen with more options and a new layout.

- Nice looking toolbar with most tools at the ready.

- Bracket count function. Counts the difference between opening and closing brackets.
	So far, this feature works perfectly but it does not always give an accurate
	read. Any brackets in a commented out line or in a wm_announce text for example
	will be counted aswell.

- Save to Preset function.
	Saves the current script text to the preset.txt file.
	Note that there is no backup. You cannot go back to the default preset unless
	you recreate it yourself.


- TreeView with the complete scripting reference from Chruker's website.
    	Select any script command and see it's usage and description.
	Doubleclick any command and it will insert itself into the script, at the
	last cursor position.
	Unfortunately, I didn't have the time to include ALL commands yet. Only
	about 1/3 of the commands are currently there. It will include all commands 
	in the next release.
	You can hide or unhide the treeview with Ctrl+T or via the View menu.

	A script reference editor is also included, which allows you to easily view all commands
	as well as edit their descriptions.

- Standard notepad functions:
	Cut, Copy, Paste, Select All, Find, Replace, and a buggy GoTo.
	There is also an option to insert the current Date and Mapname (only if you have a map loaded).

---------------------------------------------------------------------------------


3. Known Bugs
=============

- Not really a bug, but when loading a very large script file, it can take a few
seconds to load the syntax highlighting. Please have patience for this, I will
try to make it faster in the future.

- Searching "Upwards" (selecting the "Up" radiobutton) in the Find dialog can be very slow, 
	especially on large files, and might crash the program. Use with caution!

- Adding a { with automatic linebreak+tab can be buggy when used in the middle of the script.



---------------------------------------------------------------------------------


4. BugFixes
===========

Lots of bugs from v0.2 fixed!

*Cannot find picture bugs
*Some major speedlag fixed
*Some minor bugs fixed


---------------------------------------------------------------------------------


5. To do
========

In the future I'm planning to add a few very cool features.
I don't promise anything, I don't know if I can pull it off.


- IntelliSense:
	A form of auto-completion that will show you a popup with available commands
	for the part of a command you typed.
	Example, type "abor", and a popup will show, saying "abort_if_equal, abort_if_not_equal, etc..."

- ToolTips:
	A tip popup that will tell you exactly what the command you typed
	does, and how you need to use it.

- Scriptname/targetname import from map file



---------------------------------------------------------------------------------


6. Credits
==========

I would like to thank Chruker, for his complete scripting reference:
http://games.chruker.dk/enemy_territory/scripting_reference.php

I would also like to thank Roeltje for his original idea (MasterScript), which
unfortunately never got finished.

And last but certainly not least, I would like to thank FreeVBCode, for the
Syntax Highlighting Textbox control, that is ofcourse the heart of this program:
http://www.freevbcode.com/ShowCode.Asp?ID=8548

---------------------------------------------------------------------------------


7. Bug Report
=============

Please report any bugs you find to the corresponding thread in the
SplashDamage forums, or email me: [email]r0fnick@gmail.com[/email]
Thanks in advance for your cooperation!

Enjoy!


(broloi) #2

Wow… This tool is quickly evolving… Very nice… Gonna check it out tommorrow, and see if its as good as it sounds…


(Igloo) #3

N1 m8 :evil:


(etconfigs.net) #4

Nice one thanks!


(Flippy) #5

I’m getting nearer to completing this!
The scriptname/targetname entity import works aswell now.
It shows all scriptnames, targetnames and targets you might need to use ordered by classname.
Doubleclicking one will add it to the script.

I will start working on Intellisense and autocompletion, but that is probably never going to happen… seems too hard. :frowning:


(DC9) #6

Excellent Flippy. Just in time. I’m writing a script tonight. :wink:


(Flippy) #7

k :slight_smile: Let me know if anything is not working or you think should be changed :slight_smile:


(DC9) #8

Due to a tight deadline, I ended up using parts from another script I wrote. I did use your program though and I like it. The text colouring really helps in distinguishing the script components and the ability to check matching braces for consistency is great (I wish I had that when I was programming COBOL).

I noticed one small thing though. The captions for the “new file” and “save” weren’t displayed.

cheers,


(Flippy) #9

Thanks!

What do you mean with the captions?
Do you mean the windows that allow you to browse for files? They have captions here… I dunno what’s wrong then?


(DC9) #10

No, I was referring to the little pop-up windows that appear when you move your cursor over the buttons in the menu. They’re information only and don’t affect the operation.


(Flippy) #11

Ahh you mean the ToolTips of the New and Save toolbar-buttons?
You’re right about the New button, I must have forgotten that one :slight_smile: But the Save button works fine here? It says “Save File”…?


(ShadowAgent) #12

wow that seems very useful! thanks for making it :smiley: :banana:


(DC9) #13

I guess I just moved over the Save button too fast. You’re right it does have the ToolTip.

I’ve done some more testing - this time focusing on opening files. I was able to open .map, .srf, .prt, .script, .shader, and regular .txt files. For files that aren’t text based though (.tga, .bsp, etc.) the application throws a “Run-time error - 62 input past end of file” error and then crashes. I know you don’t intend on opening these types of files, however if the application can catch the error and stop the process without crashing it would be good.

There was something else that I saw when putting content into a script. It has to do with the tabbing functionality. I haven’t been able to re-create it yet. I’ll let you know if I find it.

I’m still like this. :slight_smile:


(Flippy) #14

Yes you’re right about catching errors. I haven’t done alot of that yet, it only checks for missing files (options file, database file etc). Good that you remind me ^^

The autotabbing, do you mean typing a { ?
That still doesn’t work 100% right.
If you type a { in the middle of some text it doesn’t work as intended (yet)… still figuring that out.


(murka) #15

how about a mirror, rapidshare says i have reached a DL limit…
i just wanna try it out.
edit:O, didn’t see the wait 2 minutes :stuck_out_tongue:
k, if someone comments { or } then the counter reads wrong :stuck_out_tongue: but i can’t imagine why should anyone have them in comments.


(Flippy) #16

I know, it says that in the readme aswell :wink: It counts every bracket, not just those that matter… haven’t been able to get it to count only those that matter yet :stuck_out_tongue: