ETScript version 0.4 released!


(Flippy) #1

[i]*** UPDATE: ETScript updated to v0.41 ! ***[/i]

The next version of ETScript (v0.41) is ready for download!

New in this version:

  • Scriptname / Targetname entity import (only if .map file is available)
  • Globalaccum count function.
  • Updated automatic { } block indent function.

New in updated version 0.41:

  • Undo / Redo functions
  • Double pasting bug fixed

Download links:
http://rapidshare.com/files/43981381/ETScript_v041.zip.html
http://www.megaupload.com/nl/?d=5D3KC64W

Readme:

ETScript	-	V 0.4
--------

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 GoTo.
	There is also an option to insert the current Date and Mapname (only if you have a map loaded).


NEW IN V0.4
-----------

- Entity import!
	When loading a script file from a map of which the .map file is available, the entities scriptnames
  	and targetnames are extracted and listed in a treeview. Doubleclicking a script or targetname will add it 
  	to the script.

- Updated 'Automatic { block indent' function. The program now automatically adds:
	{
		//<-- tab
	}
  when you type a { character. Bugs in this function have been fixed.

- Globalaccum list function.
	All globalaccums used throughout the script are listed so you can see instantly which ones are still free.

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


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!




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


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

Lots of bugs from v0.2 fixed!

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


Some more bugs from v0.3 fixed:

*Automatic block indenting ({ }) function bug fixed.
*W:ET Directory choice not transfering to the Open File dialog - 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.


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


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!


(PatRevenant) #2

This tool sounds really great, but the installer gives me an error everytime. Maybe you could make a manual install .zip file, or an installer with a different package?


(Flippy) #3

What kind of error?
What OS (Operating System, like windows, linux etc) are you using?
Afaik it only works on Windows.


(murka) #4

when is undo coming, as it is too important to leave out…


(-SSF-Sage) #5

I think that is the MOST important thing in an editor. That’s why i’m STILL using notepad or wordpad mfc (very good editor imO). Also redo. And make there enough slots for both of them, atleast 25 ;), please.


(Flippy) #6

I know :frowning: But I’m finding it very hard to make a good undo/redo function. The problem is that everytime you undo / redo something, the whole text has to be redrawn, which can take a few seconds depending on the size… IMO this is not acceptable…
I’m working on it!

EDIT
Well good news, I came a bit closer to having an undo/redo function ^^ I found one online somewhere which seems to do the trick nicely!


(-SSF-Sage) #7

Why couldn’t you steal it from notepad eg.? I tried the newest now and I find it excellent, especially the scripting reference, EXCELLENT idea! In my opinion this programm will be almost perfect when you have worked the undo/redo. Now I still have to use notepad eg. but use this too at the time (find/replace eg.). :S


(Flippy) #8

Sorry I didn’t understand what you meant with “(find/replace) :S” :stuck_out_tongue:

If you tell me how I could steal the undo/redo function from notepad then I would be happy to know, but for one, I don’t think the sourcecode for notepad is publicly available, and also it’s (most probably) written in C or C++ or something like that… ETScript is written in Visual Basic, so I can’t really steal it :stuck_out_tongue:

And the scripting reference wasn’t really my idea, it was Roeltje’s idea in the first place! He made a similar program but never finished it, because it was too slow… so I tried it aswell and luckily I found a fast syntax-highligthed textbox online somewhere :slight_smile:


(kamikazee) #9

JFYI: Newer versions of Notepad are said to be writtin in C#. (Or at least use .NET, which can be seen by the number of dll’s it uses compared to older versions.)


(-SSF-Sage) #10

I meant find/replace tool. Oh ok. I don’t know much about programming. :frowning:


(Flippy) #11

There is a find/replace tool… what is up with it?


(murka) #12

the copy/paste is wierd, i select text, press ctrl+c click some area, press ctrl+v and i get everything double, like i pressed paste 2 times but i didnt.


(Flippy) #13

Woops your right! I fixed it now, thanks for notifying me.

I updated ETScript to version 0.41 - to fix the double pasting bug and finally there is Undo/Redo support!

You have almost unlimited undo/redo actions, but you can only undo/redo one character at a time, so you can’t undo whole words like you can in Word for example…

Download links:
http://rapidshare.com/files/43981381/ETScript_v041.zip.html
http://www.megaupload.com/nl/?d=5D3KC64W

First post updated.


(murka) #14

so if i acidentally select one more line than i wanted and press backspace i can get it back by pressing undo 100 times?
also i have black boxes around the radio buttons where text should be, ex in search i have two black boxes which are suposed to be up and down but what are the 3 things in options.
i have set up my path to “C:/Program Files/Wolfenstein - Enemy Territory2/etmain/maps”, loaded a script named scheveningen_beach-B3.SCRIPT and it didnt find the map file but it is there, map name scheveningen_beach-B3.map
btw good job, very nice tool.


(Flippy) #15

No, if you delete an entire line in one go that counts as one ‘action’. If you delete the whole line by pressing backspace 100 times (once for each character) then yes, you need to undo 100 times :stuck_out_tongue:

I heard about the black boxes earlier and think it’s extremely weird :S The colors are setup correctly… I dunno what’s wrong with them…

In the options screen (General tab) they are the options to show at startup:

  1. Scripting reference
  2. Scriptname/targetname import
  3. None

Are you sure the name of the .map file is 100% the same as the name of the .script file (except for the extension obviously)?
I dunno why you should have it differently lol, since then the script wouldn’t work, but then I don’t know why it’s not finding it :S


(Flippy) #16

Well I solved the black optionbutton issue now, but I don’t think it’s worth yet another re-re-release…? You’ll have to wait until v0.5 :stuck_out_tongue:
I hope it doesn’t bother too much.


(murka) #17

maybe because i use caps in the extension, will try stuff…


(Flippy) #18

Good news!

ETScript version 0.5 is almost ready!

I finally managed to implement an AutoComplete feature.

If you type part of a keyword (let’s say “abort”) then a popup will show that lists all possible commands. Additionally, the word you are typing will automatically be completed with the first command in the popup. Pressing enter now will complete the word.

Let the picture speak for itself:

Just having some minor problems creating the install file right now, but it will be solved soon!


(broloi) #19

WOOOOOT!

That is soooooo cool and good… Good for newbie mappers too ^^