Download ETScript 4 beta!


(Flippy) #61

[QUOTE=Diego;191652]I must have missed the meeting about the “Select BSP” Button. I thought it would load automatically like before.

I FAIL[/QUOTE]
No you don’t lol. It should load automatically, but only if it finds the BSP file*. The Select BSP button is only if you want to select a different BSP, or if you have your BSP in a different location. Or possibly, you are making a last man standing script, where you have to append the “_lms” in the filename. This will also cause the BSP file not to be found, so you can now select it manually.

*Note, when a script is opened, ETScript does a search for the BSP file, with the same name except the .bsp extension, in two folders:

  1. The same folder as your script file.
  2. If not found in 1), it also searches your ‘etmain\maps’ path (the one you specify in the options).

If your BSP file is not in the same directory as your script file, and also not in the normal etmain\maps directory, it cannot be found automatically.


(Diego) #62

I’m using the same etmain/maps directory for my script and bsp file.


(Flippy) #63

And what happens exactly? Does the BSP file not load automatically? Do you get the entities in the Entity List or not? Do you get the entities in the List Members (Intellisense) list or not? Does the editor color the entities or not?


(unf4z3d) #64

hmmm…

i swaer i had .net 3.5 cause catalyst needed it, but now i look and its gone… woorking again after install!!!

sorry, bout exclamation points but i just bought my 24" samsung 1900x1200 for 300 bucks, it was 100 off, and it will rock

ET@ 1900x1200 will be too mcuh awesome

sorry, im excited so im appending this to this post XD


(Diego) #65

Ok, I have answers to your questions as well as the solution to my problem:

BSP file does not load automatically.
Nothing in the Entity list.
Nothing in the List Members.
No coloring of the Entities.

And the reason why?
I name my scripts like this: praetoria_two.SCRIPT

It doesn’t like the CAPS for the file extension. Why do I use caps, you ask? Just another habbit I picked up early on in mapping to help me keep track of all the different file types that we use. And it is easier to see them quickly in the filebrowser. I’ve never had any problem using caps extensions in the maps.

So, if that’s not worth fixing, I’ll either adjust my habbits, or just load the BSP manually. Thanks for helping me figure it out.


(Flippy) #66

I’m not sure why caps can cause this problem… Did you verify that the BSP loads automatically if you don’t use caps? I would be very surprised if a capital extension was not recognized…


(Diego) #67

yeah, all I did was rename my script to lowercase and the bsp comes right in.


(S14Y3R) #68

Ey’a, I haven’t found too many things awry, just a couple:

-Windows/Reset_Window_Layout Doesn’t work

  • It needs to remember where the window is set to, it keeps going to default size. I like having my script program open while i map, and it’s open all of the time while map testing because a quick \map_restart will reload any changes in the script. When loading to default size while ET is running ('cause i want to change something), but its loading over where ET is and lagging my cheap_ass vid_card, lol. But remembering where the window is shouldn’t be a prob, eh?

  • Can we get a quick button for ‘Find_next/_prev’?(instead of ctrl+F window) That was always handy in Crimson, and you should have it too :slight_smile:

  • If not, maybe a find up key beside findnext(instead of hit+/checkbox for find_up/find next[+3 hits])(repetetive to search up, it happens alot):confused:

  • When hitting Enter after a { or } auto spacing is not working, I forgot to mention it earlier(sry). Or should I just get used to it and hit the autoformat key? :rolleyes:

//== ==

-Load last files when reloading the program is handy, but maybe limit it to two or three last saved? I had a bunch of reference files open once and they all re-opened on me :eek:(was checking through a few testers and some prefabs that caught my eye).

-I’ve error’d out a few times(but allowed to continue with window) while using the accum list, and finding lines. its mostly happening with global accums[once in a while], although it has happened with a local once. I thought it was happening while searching(with accum window)after editing something and not saving. But it has happened after saving too, although not as frequently. *should know.

-Other than that its cool beans, though the drag button still doesn’t refresh bottom window like the nice new button does(remove that drag button maybe?:P), but i’m just a nit-picker-at-heart.It’s coming along greatly, the only thing i have turned off is the intellisense(it lags me while typing) but I can always reference the keyword list.

I like the new ‘reload to back-up’ window(calender ftw), though i think the default of every 3 minutes is a bit too much to sort through if trying to revert. 15/30min should be plenty for default, eh?

-my right-click window hasn’t disappeared on me yet with B4 :cool:
:stroggtapir:


(Flippy) #69

[QUOTE=S14Y3R;191883]Ey’a, I haven’t found too many things awry, just a couple:

-Windows/Reset_Window_Layout Doesn’t work[/QUOTE]
I am aware of this issue, although it should have been fixed in beta2. I’m not sure why it’s still not working, which is why I didn’t re-release beta 2 with this fix :wink:

Do you mean the main window, or the layout of individual Task Panes in the main window?
If you mean the main window, I suppose I could have it store its location when it closes, and reload that location when it opens.
If you mean the individual Task Panes then they should already do that!

I am still planning a ‘Quick Find’ (you can see the menu button in the View menu, which is not working yet :wink: ) which looks the same as the Find feature in Mozilla Firefox: a small pane at the bottom of the script where you can search with a Next / Back button.

I have no control over the Find/Replace dialog right now. It comes with the editor. I suppose I can always make my own Find/Replace dialog, that’s not so much of a problem, but at the moment I have not found it necessary. Do you think it is (keeping in mind that the Quick Find function will soon be added)?

Sorry, what do you mean exactly?
Do you mean after typing a {, the next line should automatically add one extra tab, and after typing a }, the current line should ‘cut’ away one tab? I have been working on doing that, but I did not find a clean way yet. The main reason is that not everyone likes the layout to behave like that. Some people want the opening brace { on the same line as the class / event name, etc. This causes trouble if I implement it wrongly… I am still looking at this though as it does really make typing a lot easier.

I am pretty sure you can turn this option off. If not, I forgot it, :tongue: I’ll check later and add it if I did…
Even so, you can either load all scripts on opening, or none. There is no possible way for my code to determine which scripts you want to open and which you don’t… So I cannot have it ‘limit’ to 2 or 3 files.

I’ve not come across any bugs with the Accum List yet. Can you try to reproduce this and tell me exactly how you did it?

Drag button?

Yeah, maybe you are right. I kept the 3 mins from ETScript 3 just never changed it. Right now, it also (by default) auto-backups when you open and save a script. So that way you get to the maximum of 50 scripts really quickly, possibly too quickly (the oldest backups are automatically deleted once you have more than 50 backups, but if the oldest backups are actually only 5 minutes old that’s not very good…).

[QUOTE=S14Y3R;191883]-my right-click window hasn’t disappeared on me yet with B4 :cool:
:stroggtapir:[/QUOTE]
Good, me neither :stuck_out_tongue:


(S14Y3R) #70

Right on. The Drag(able) button i meant is the little one for ‘splitting’ the window, at top right of window. And i mean the whole program window, for to re-open where it was, that’d be great. I guess the { } bracket auto indent would be a pain with people using different styles. :frowning:

Back to Pluggin’ away :slight_smile:


(Diego) #71

I turn this feature off. I save regularly so I just use the backup on save feature on. Even that gives me more that I would want to look through.


(valkyr) #72

This is a really useful tool.

After a quick look round its features, I’m going to give some suggestions for what I’d really like to see added / improved…

Syntax highlighting

  • Separate highlighting for scriptnames / targetnames. In the screenshot below, the first “truckbox1” is the scriptname and the rest are targetnames. It shouldn’t be too tricky to differentiate, as the scriptname is always going to be the first line of the top-most level foldable part of the code, and if it appears after the trigger keyword (I think those are the only places scriptnames appear anyway…). The rest will be targetnames, if it comes after a setstate keyword for example.
  • The scriptname in the next screenshot isn’t highlighted at all. It could be because of the slashes (I like to name entities in a path-based format to sort them out) The class is in the class list drop-down at the top though
  • Also, if you have a scriptname “tank”, anything containing the word tank inside the procedure/class will be highlighted like :

    playsound sound/vehicles/[B]tank[/B]/tank_idle.wav looping volume 512

[ul]
[li]Finally… maybe allow highlighting like underlining/italicization/bolding.[/li][/ul]
Intellisense

[ul]
[li]The ability to link in .sounds/.sps files to give drop-down lists of the available sounds would be great, bringing with it intellisense for keywords like enablespeaker / disablespeaker and wm_addteamvoiceannounce / wm_teamvoiceannounce from the list of available sounds.[/li][/ul]

[ul]
[li]The same as above for .shader files for remapshader auto-complete / tree-view of available shaders?[/li][/ul]

[ul]
[li]And similarly… read all of the .md3/.wav files available in etmain/models etmain/sounds pak0.pk3/models/ pak0.pk3/sounds to give a tree-view of available assets and auto-completion for keywords like playsound and the “model” key of ETPro’s “create” event… (the “model” keys of a loaded BSP can be used for that as well)[/li][/ul]
Other bits and pieces

[ul]
[li]A simple count of the number of entities in the BSP entity list would be useful.[/li][/ul]

[ul]
[li]Double-clicking a keyword in the keyword list could add it at the cursor.[/li][/ul]

[ul]
[li]Keyword usage/description section needs to be resizeable - The area is too small at the moment and the tiny scrollbars aren’t ideal.[/li][/ul]

[ul]
[li]Class list drop-down should be bigger - maybe double the height, and when you click on a class (or an event in the event list), it should appear in the editor at the top, or the middle of the screen, not the bottom. As it is now you have to scroll further down the editor every time to see the contents.[/li][/ul]

[ul]
[li]Accum list would be easier to work with if it was a tab in the side-bar along with the file explorer and keyword list.[/li][/ul]

[ul]
[li]Showing all the keys from each entity (origin / model / spawnflags etc) in the entity list would be especially helpful for ETPro map-scripters.[/li][/ul]

[ul]
[li]Need tabbing. Auto-indent uses spaces at the moment - where tabs would be preferable (as an option), but even pressing the tab key doesn’t insert tabs, just a number of spaces…[/li][/ul]

[ul]
[li]Font settings (size / typeface)[/li][/ul]
Hopefully at least some of the above ideas can be implemented. It’s good work already and It’ll certainly be used here until the next version comes along :slight_smile:


(Flippy) #73

Thanks for your interest. I have kinda stopped developing this tool as the interest didn’t seem very large, especially compared to the effort and time required for me to make it :stuck_out_tongue:

[QUOTE=valkyr;202022]This is a really useful tool.

After a quick look round its features, I’m going to give some suggestions for what I’d really like to see added / improved…

[ul]
[li]Separate highlighting for scriptnames / targetnames.
[/li][/ul][/quote]
If I remember correctly, the script and targetnames are highlighted separately, so I’m not sure why I didn’t make them different colors. This may be an easy ‘fix’.

[QUOTE=valkyr;202022][ul]
[li]The scriptname in the next screenshot isn’t highlighted at all. It could be because of the slashes (I like to name entities in a path-based format to sort them out) The class is in the class list drop-down at the top though
[/li][/ul][/quote]
It may be due to slashes, I’m not sure. Syntax highlighting is done using regex; the slashes might screw it up. I’m not sure if I have much control over this.

[QUOTE=valkyr;202022][ul]
[li]Also, if you have a scriptname “tank”, anything containing the word tank inside the procedure/class will be highlighted
[/li][/ul][/quote]
Yes, syntax highlighting is done by name only, not by parsing the script, so unfortunately there is no (at least no quick/easy) fix for this.

[QUOTE=valkyr;202022][ul]
[li]Finally… maybe allow highlighting like underlining/italicization/bolding.
[/li][/ul][/quote]
That should be possible.

[QUOTE=valkyr;202022][ul]
[li]The ability to link in .sounds/.sps files to give drop-down lists of the available sounds would be great, bringing with it intellisense for keywords like enablespeaker / disablespeaker and wm_addteamvoiceannounce / wm_teamvoiceannounce from the list of available sounds.
[/li][/ul]

[ul]
[li]The same as above for .shader files for remapshader auto-complete / tree-view of available shaders?
[/li][/ul]

[ul]
[li]And similarly… read all of the .md3/.wav files available in etmain/models etmain/sounds pak0.pk3/models/ pak0.pk3/sounds to give a tree-view of available assets and auto-completion for keywords like playsound and the “model” key of ETPro’s “create” event… (the “model” keys of a loaded BSP can be used for that as well)
[/li][/ul][/quote]
I had that idea too, but abandoned it. I can’t remember why though. There was probably something that made it too difficult. I think one problem also was that the intellisense list became HUGE, and there wasn’t an easy way to filter it based on what the user wants to see (eg, only show models in one case, but show keywords in another case or something).

[QUOTE=valkyr;202022][ul]
[li]A simple count of the number of entities in the BSP entity list would be useful.
[/li][/ul]

[ul]
[li]Double-clicking a keyword in the keyword list could add it at the cursor.
[/li][/ul]

[ul]
[li]Keyword usage/description section needs to be resizeable - The area is too small at the moment and the tiny scrollbars aren’t ideal.
[/li][/ul]

[ul]
[li]Class list drop-down should be bigger - maybe double the height, and when you click on a class (or an event in the event list), it should appear in the editor at the top, or the middle of the screen, not the bottom. As it is now you have to scroll further down the editor every time to see the contents.
[/li][/ul]

[ul]
[li]Accum list would be easier to work with if it was a tab in the side-bar along with the file explorer and keyword list.
[/li][/ul]

[ul]
[li]Showing all the keys from each entity (origin / model / spawnflags etc) in the entity list would be especially helpful for ETPro map-scripters.
[/li][/ul][/quote]
Seems easy enough.

[QUOTE=valkyr;202022][ul]
[li]Need tabbing. Auto-indent uses spaces at the moment - where tabs would be preferable (as an option), but even pressing the tab key doesn’t insert tabs, just a number of spaces…
[/li][/ul][/quote]
There’s an option to change that under the Text Editor settings. There is also the Edit - Advanced - Tabify / Untabify option to change tabs to spaces (and vice versa) in the selected text.

[QUOTE=valkyr;202022][ul]
[li]Font settings (size / typeface)
[/li][/ul][/quote]
There’s probably a reason why I didn’t add that, but I can’t remember it.

Thanks, good to hear!

I’ll add the easy changes you suggest if I get some time to do it. For the harder changes, I’m not sure if I’ll ever do them… I just don’t have the time or motivation anymore :stuck_out_tongue:


(Mateos) #74

Sorry to up a quite dead thread, I would like to know if there’s still a dev version which include the features requested after Beta 2, and also because I have some issues under 7 with it… It always says me while opening/closing/switching of file that it fails to use the copy/paste. I tried to run it as Admin but it keeps showing this window all the time…


(Flippy) #75

Hi. Unfortunately, no I never implemented any more changes after beta 2. I could possibly send you the source if I can dig it up, but it uses a few components that you’ll probably don’t have the license for. Besides that the code is most probably a huge mess so you wouldn’t be able to do anything useful with it anyway:tongue:

I’ll see if I can fix up a new version any time soon, but don’t count on it. It seems to me the number of people using it (I don’t think there are very many) just doesn’t justify the time required to make it…


(Destroy666) #76

I’d use it if this won’t happen:

[QUOTE=unf4z3d;191592]
i install, run it and:

only info i get from the windows report error thing…

EventType : clr20r3 P1 : etscript4.exe P2 : 0.2.0.0 P3 : 4a1ac9c2
P4 : etscript4 P5 : 0.2.0.0 P6 : 4a1ac9c2 P7 : 1b P8 : c6
P9 : system.invalidoperationexception[/QUOTE]

Tried reinstalling, restarting computer.
I use Win XP and NET 4.0.

Any way to fix this?


(Mateos) #77

@Flippy
Thanks for quick answer!

Well I tried to learn C++ because he guy also sent me his source for a kind of trainer for GTA Vice City: it is showing the hidden packages and rampages still not done, and I wanted to implement the unique jumps, but I can’t see how simple words could be understood by a file o.o I’m just learning the spawn scripting in ET, it’s enough for now x)

@Destroy666
Do you have only the 4.0? You can maybe try to install the 2.0, I have some programs which says “2.0 or higher” and installs the 2.0 or 3.5 because they can’t find the 4.0…


(Flippy) #78

It’s not written in C++ though, it’s written in VB.NET, which is a lot easier to understand. Still, I’m sure my code writing was poor enough back in the day (this is really old :tongue:) that it would still be a challenge, ever for me :eek:

As for the error, I’m not sure what could cause that. Installing .NET framework 2.0, 3.0 and/or 3.5 might work, as I haven’t written it in .NET 4.0. Other than that, I’m clueless, sorry :rolleyes:


(Destroy666) #79

I have also NET 2.0 installed. I can’t try 3.5 on my old, filled disc.
However, your PK3 Creator works.
Will you ever try to fix this?


(Flippy) #80

I can no longer fix the existing ETScript, since I also no longer have the license for some of the components I used (technically; I can no longer compile my code without having to pay a ridiculous amount to third parties).

I might look into making a complete rewrite though if I find some time. I can still re-use most of the old code so it wouldn’t take too much time (and it will definitely turn out much better in the process). I’ll keep it in mind if I’m ever bored:wink: