ETScript - Updated! v0.1 released


(Flippy) #21

You get that error when trying to register the file, or when trying to run the program?

Are you sure you registered it properly?

regsvr32 "C:\Program Files\System32\RICHTX32.OCX"

And press OK.
Include the quotation marks " ".

Are you sure the file is located in “C:\Program Files\System32”?


(Pytox) #22

C:\WINDOWS\system32 :slight_smile:


(Flippy) #23

Oops, that’s what I mean yes… but anyway it shouldn’t matter really, as long as the path is correct :stuck_out_tongue:

Then i have no idea why it isn’t working for you… :frowning:


(Kic) #24

Yes Flippy I too.
I have also win XP SP2 as he and I got it to work


(Flippy) #25

In the next release I will make an installation file that will install all necessary files.

I updated it a little bit again, but not enough to make a new release… It now has a treeview which holds all scripting commands (thanks to Chruker’s site) and if you doubleclick one, it will insert into the script.


(deej) #26

Little Fick is making me proud :slight_smile:


(Flippy) #27

You still around? ^^


(deej) #28

Of course. Not so much as before though, real life is busy. Trying to practice etpro a bit more lately but I’ve completely lost my aim because of too much etpub :).


(Flippy) #29

Pytox, (did you send me the email?) your version of RICHTX32.OCX may be outdated.
I uploaded my own version:
http://rapidshare.com/files/34301304/RICHTX32.zip.html

Try it with that.


(Pytox) #30

I didn’t send you an email :?

will try that version.

EDIT: Thanks, this one works. :slight_smile:


(Flippy) #31

Oh well, someone send me an email and got the error that the control might be outdated :slight_smile: Guess you had the same problem…

Glad it works now!


([DS]-=Pencil=-) #32

Prison Downloadmirror with RICHTX32.OCX-File inserted.


(Flippy) #33

Thanks!

Little update on progress… I’m adding more and more features I didn’t think of before :slight_smile:

  • Find function is 99% done, it only has some problems searching Up still… I tried to keep the Find function the same as in notepad and I think I succeeded :slight_smile:

  • Find/Replace function will be done shortly after Find works as it works in the same way.

  • Added shortcuts to popular menu-items (New, Open, Save etc)

  • Added XP / Vista visual style control support. (By default, VB controls such as buttons have a win2000 or older look)

  • I added a Treeview to the right of the script containing all scripting commands sorted by category as found on Chruker’s website.
    Doubleclicking any of these commands will insert them into the script at the last cursor position.
    Selecting a command will show it’s usage + description beneath the treeview. If you hover your mouse over the usage or description text, a tooltip appears with the same text. I did this because the usage may not fit on one line, and you might not be able to see where you need to insert a space :). The tooltip however keeps the text on one line.

  • The treeview can be hidden and shown with Ctrl+T (shortcut might change) and you can specify in the options if you want it to show by default when you start the program.

  • Lastly, a statusbar shows the current linenumber you are on.

Fresh idea’s:

  • The scripting reference (treeview) will be customizable; you are able to search for a command (in a seperate window) and change it’s description if you want (change it to your own language for example). You will also be able to revert back to default on the click of a button.

  • Line numbering.

I’m still working on auto-indentation and { } parsing, but it turns out it’s as hard as I thought lol… didn’t make it work yet!

A screenshot:
(I didn’t add all script commands to the treeview yet)


(Donpedro) #34

I send you the mail :slight_smile:


(Flippy) #35

AAhh ok :slight_smile: So you could fix it too now?


(nUllSkillZ) #36

Looks good.
Very good work.


(Donpedro) #37

Yep :slight_smile:


(Flippy) #38

Version 0.2 is ready, but I have some trouble with the installation process. Expect it to be ready for download soon!

Here’s the updated readme file for now:

ETScript	-	V 0.2
--------

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

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



1. ABOUT
2. FEATURES
3. KNOWN BUGS
4. TO DO
5. CREDITS
6. BUG REPORT


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





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.2:
----
	
- 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, but is not fully functional yet.

- Standard notepad functions:
	Undo (unfortunately only one action for now, working on that), Cut, Copy, Paste, Select All, Find.
	In the next release the Replace and GoTo functions will be functional too.
	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.

- In the Find function, when searching "Up", there is no message telling you if nothing has been found.

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


4. 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.

- Replace and GoTo functions (soon)

- 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.

- Automatic indentation / tabbing

- Scriptname/targetname import from map file



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


5. 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

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


6. 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!



(aaa3) #39

just curious, is that “program flow checker” included in the more recent versions? or planned to be included after 0.6?
(this thread, “Tue May 29 2007” post by C)
just popped into my mind to ask this after reading a recent post in the warmup thread


(Flippy) #40

Not yet unfortunately :frowning:

Troy is working on re-writing the entire script parser from ET to something I can then use in ETScript, so if he can pull it off you can check the script for bugs exactly like the game does, without even starting the game! :slight_smile:

But cause we’re both busy at the moment, don’t expect that feature too soon…