Support me by joining the steam group :3
Hey I'm four and I've always liked Juzz's script editor link so since he doesn't seam to be updating this anymore I decided to write my own one. My goal is to write a small handy tool with small features that make scripting for tf2 easier. I don't wanna give this tool a shitload of features but smaller ones that actually improve the flow of coding.
I wrote it in c# and works on Windows.
Most features of the tool:
- Auto-completion
- Tabbed editor for all cfg files
- Advanced Syntax highlighting
- Highlighting of same words
- Rectangular selection
- Dialogs to easily insert loops and toggles
- File Blacklist
- Find/Replace
- Batch add to selected files
- Backups
- Add numpad key names by pressing Ctrl+Numpad
- A Person who is willing to keep this tool up to date
Screenshots:
- Editor with highlighting and auto-complete menu
http://puu.sh/3b2e7.png
- Dark theme:
http://puu.sh/3Et8c.png
- Insert loop menu
http://puu.sh/34mfq.png
- Batch add menu
http://puu.sh/34mgc.png
Handy hotkeys:
- F1 / F3: changes tabs
- Ctrl+F1 / Ctrl+F3: goes to the previous/next search
- Ctrl+Numpad: to insert the name of the key
- Ctrl+(1-9): select the classfile (e.g. Ctrl+1 -> scout.cfg)
- Ctrl+Shift+C: Comment/Uncomment line
- Ctrl+Backspace: Delete whole word
The obvious hotkeys should be visible in the tool itself by hovering over the icon.
Download:
directlink
This program uses the opensource project fastColoredTextBox and it's source can be downloaded here.
You need to have at least .Net framework 2.0 installed but it should be already installed on you pc (if not google it).
Please be picky and tell me any error/bug you find. Even if it is just a typo or a wrong tab index.
I've bugtested every feature of the tool but there is always a possibility that another one exists!
If you wanna help me, you can share this post in other forums <3
Support me by joining the [url=http://steamcommunity.com/groups/4Script]steam group[/url] :3
[b]Hey I'm four[/b] and I've always liked Juzz's script editor [url=steam.gamebanana.com/tools/3513]link[/url] so since he doesn't seam to be updating this anymore I decided to write my own one. My goal is to write a small handy tool with small features that make scripting for tf2 easier. I don't wanna give this tool a shitload of features but smaller ones that actually improve the flow of coding.
I wrote it in c# and works on Windows.
[b]Most features of the tool:[/b]
- Auto-completion
- Tabbed editor for all cfg files
- Advanced Syntax highlighting
- Highlighting of same words
- Rectangular selection
- Dialogs to easily insert loops and toggles
- File Blacklist
- Find/Replace
- Batch add to selected files
- Backups
- Add numpad key names by pressing Ctrl+Numpad
- A Person who is willing to keep this tool up to date
[b]Screenshots:[/b]
- Editor with highlighting and auto-complete menu
[img]http://puu.sh/3b2e7.png[/img]
- Dark theme:
[img]http://puu.sh/3Et8c.png[/img]
- Insert loop menu
[img]http://puu.sh/34mfq.png[/img]
- Batch add menu
[img]http://puu.sh/34mgc.png[/img]
[b]Handy hotkeys:[/b]
- F1 / F3: changes tabs
- Ctrl+F1 / Ctrl+F3: goes to the previous/next search
- Ctrl+Numpad: to insert the name of the key
- Ctrl+(1-9): select the classfile (e.g. Ctrl+1 -> scout.cfg)
- Ctrl+Shift+C: Comment/Uncomment line
- Ctrl+Backspace: Delete whole word
The obvious hotkeys should be visible in the tool itself by hovering over the icon.
[b]Download:[/b]
[url=http://fourtf.com/4script/4Script.zip]directlink[/url]
This program uses the opensource project fastColoredTextBox and it's source can be downloaded [url=www.codeproject.com/Articles/161871/Fast-Colored-TextBox-for-syntax-highlighting]here[/url].
You need to have at least .Net framework 2.0 installed but it should be already installed on you pc (if not google it).
Please be picky and tell me any error/bug you find. Even if it is just a typo or a wrong tab index.
I've bugtested every feature of the tool but there is always a possibility that another one exists!
If you wanna help me, you can share this post in other forums <3
this looks amazing, gonna test it
this looks amazing, gonna test it
http://www.reddit.com/r/truetf2/comments/1cip2e/cfg_a_syntax_highlighter_for_tf2_scripting_xpost/c9hd9wx
syntax highlighting?
I'm gonna download the shit outta this.
Also, shared http://foros.3dgames.com.ar/team-fortress-2.21/811586.programa-para-crear-scripts-four.html#post17105435
atmohttp://www.reddit.com/r/truetf2/comments/1cip2e/cfg_a_syntax_highlighter_for_tf2_scripting_xpost/c9hd9wx
syntax highlighting?
I thought about that and I also tried it once but it's not really possible for me alone to write a proper one. I could use an already made control like Scintilla.Net to do this without having much trouble. Maybe I'll add that in the near future, as well as easy auto completion. However, I want the core features of the editor to be prefect first, then I'll add extras like that. After all tf2 script is not really in need of syntax highlighting since it's easy to read but I'll try to make it happen.
[quote=atmo]http://www.reddit.com/r/truetf2/comments/1cip2e/cfg_a_syntax_highlighter_for_tf2_scripting_xpost/c9hd9wx
syntax highlighting?[/quote]
I thought about that and I also tried it once but it's not really possible for me alone to write a proper one. I could use an already made control like Scintilla.Net to do this without having much trouble. Maybe I'll add that in the near future, as well as easy auto completion. However, I want the core features of the editor to be prefect first, then I'll add extras like that. After all tf2 script is not really in need of syntax highlighting since it's easy to read but I'll try to make it happen.
Not trying to rain on your parade, but I'm not really seeing what this offers over Notepad++.
Not trying to rain on your parade, but I'm not really seeing what this offers over Notepad++.
krakowNot trying to rain on your parade, but I'm not really seeing what this offers over Notepad++.
Loops, toggles, and it's a community contribution.
[quote=krakow]Not trying to rain on your parade, but I'm not really seeing what this offers over Notepad++.[/quote]
Loops, toggles, and it's a community contribution.
krakowNot trying to rain on your parade, but I'm not really seeing what this offers over Notepad++.
Notepad++ is a great tool but my program focuses on tf2 scripting and adds some features that are only useful for tf2 scripting like ckap said the loop dialog and some optimizations that only work for tf2 scripting. What does Notepad++ offer for scripts over this tool other than keywork highlights?
[quote=krakow]Not trying to rain on your parade, but I'm not really seeing what this offers over Notepad++.[/quote]
Notepad++ is a great tool but my program focuses on tf2 scripting and adds some features that are only useful for tf2 scripting like ckap said the loop dialog and some optimizations that only work for tf2 scripting. What does Notepad++ offer for scripts over this tool other than keywork highlights?
Notepad++ is extremely useful for editing code of any language, and I just don't see myself downloading another text editor when Notepad++ can do the job just fine. If you're going to promote a tf2-specific editor, you may as well add more tf2 features than just toggles/loops.
Notepad++ is extremely useful for editing code of any language, and I just don't see myself downloading another text editor when Notepad++ can do the job just fine. If you're going to promote a tf2-specific editor, you may as well add more tf2 features than just toggles/loops.
krakowNotepad++ is extremely useful for editing code of any language, and I just don't see myself downloading another text editor when Notepad++ can do the job just fine. If you're going to promote a tf2-specific editor, you may as well add more tf2 features than just toggles/loops.
Then don't. If you don't see the features of this tool fit your needs then you simply don't need to download it. I wouldn't want to open all cfgs and close them all when I wanna edit something else but that's you decition.
[quote=krakow]Notepad++ is extremely useful for editing code of any language, and I just don't see myself downloading another text editor when Notepad++ can do the job just fine. If you're going to promote a tf2-specific editor, you may as well add more tf2 features than just toggles/loops.[/quote]
Then don't. If you don't see the features of this tool fit your needs then you simply don't need to download it. I wouldn't want to open all cfgs and close them all when I wanna edit something else but that's you decition.
I found a control that suits my needs and that's what the syntax highlight looks like right now:
http://puu.sh/3573p.png
There are still some wrong markups tho~
I found a control that suits my needs and that's what the syntax highlight looks like right now:
[img]http://puu.sh/3573p.png[/img]
There are still some wrong markups tho~
I attempted to use the Interp Exploit with a teammate on an empty pub server last night using 4Script, and for some reason it wasn't working. I tried it in autexec, binds, and sniper configs. But when I went in manually to autoexec and put it in it worked. Don't know if this was a problem on my end, or something you want to address, but just thought I would mention it.
I attempted to use the Interp Exploit with a teammate on an empty pub server last night using 4Script, and for some reason it wasn't working. I tried it in autexec, binds, and sniper configs. But when I went in manually to autoexec and put it in it worked. Don't know if this was a problem on my end, or something you want to address, but just thought I would mention it.
BolshevikI attempted to use the Interp Exploit with a teammate on an empty pub server last night using 4Script, and for some reason it wasn't working. I tried it in autexec, binds, and sniper configs. But when I went in manually to autoexec and put it in it worked. Don't know if this was a problem on my end, or something you want to address, but just thought I would mention it.
I did the same and it worked for me. The first question would be, did you save it? And in case you had tf2 running, id you reexecute the file?
[quote=Bolshevik]I attempted to use the Interp Exploit with a teammate on an empty pub server last night using 4Script, and for some reason it wasn't working. I tried it in autexec, binds, and sniper configs. But when I went in manually to autoexec and put it in it worked. Don't know if this was a problem on my end, or something you want to address, but just thought I would mention it.[/quote]
I did the same and it worked for me. The first question would be, did you save it? And in case you had tf2 running, id you reexecute the file?
Yes I saved it, restarted TF 2 a few times to check and tried a couple of servers. It has worked for all of my other binds though so i'm not sure, I got it working anyway though so it's all good. Very helpful tool man, thanks a bunch :]
Yes I saved it, restarted TF 2 a few times to check and tried a couple of servers. It has worked for all of my other binds though so i'm not sure, I got it working anyway though so it's all good. Very helpful tool man, thanks a bunch :]
.: Update :.
I added a new text box control which allows line numbers (turn them off in settings) and syntax highlighting as well as some smaller updates like Ctrl+Shift+C automatically comments/uncomments a line.
.: Update :.
I added a new text box control which allows line numbers (turn them off in settings) and syntax highlighting as well as some smaller updates like Ctrl+Shift+C automatically comments/uncomments a line.
As soon as I open it it I get:
http://i.imgur.com/L1tQR8x.png
EDIT: I think I forget to install .NET framework.
As soon as I open it it I get:
[img]http://i.imgur.com/L1tQR8x.png[/img]
EDIT: I think I forget to install .NET framework.
hooliAs soon as I open it it I get:
{error message}
I actually forgot to include a dll in the download :P
Sorry about that. .Net 2.0 should be installed by default on you PC.
[quote=hooli]As soon as I open it it I get:
{error message}[/quote]
I actually forgot to include a dll in the download :P
Sorry about that. .Net 2.0 should be installed by default on you PC.
what are loops and toggles?
what are loops and toggles?
Alfiewhat are loops and toggles?
A loop repeats an alias until you stop it again.
For example
alias loopStart "alias loopRedir loopDo; loopDo"
alias loopStop "alias loopRedir "
alias loopRedir "loopDo"
alias loopDo "code; wait 1; loopRedir"
loopStart would repeat the alias "loopDo" every frame.
A toggle means that the alias switches between two possible functions.
alias toggle1 "alias toggleT toggle2;"
alias toggle2 "alias toggleT toggle2;"
alias toggleT "toggle2"
bind A "toggleT"
The first time you press A toggle2 gets executed, the second time toggle1, then toggle2 again and so on.
[quote=Alfie]what are loops and toggles?[/quote]
A loop repeats an alias until you stop it again.
For example[code]alias loopStart "alias loopRedir loopDo; loopDo"
alias loopStop "alias loopRedir "
alias loopRedir "loopDo"
alias loopDo "code; wait 1; loopRedir"[/code] loopStart would repeat the alias "loopDo" every frame.
A toggle means that the alias switches between two possible functions.
[code]alias toggle1 "alias toggleT toggle2;"
alias toggle2 "alias toggleT toggle2;"
alias toggleT "toggle2"
bind A "toggleT"[/code]
The first time you press A toggle2 gets executed, the second time toggle1, then toggle2 again and so on.
Just a notion, you should make it so that when you batch-add to the end of file it writes it on a new line. At the moment it just writes it at the end of the last line, unless there is an empty line after that.
Just a notion, you should make it so that when you batch-add to the end of file it writes it on a new line. At the moment it just writes it at the end of the last line, unless there is an empty line after that.
RakeJust a notion, you should make it so that when you batch-add to the end of file it writes it on a new line. At the moment it just writes it at the end of the last line, unless there is an empty line after that.
I changed that as well as some other minor things.
[quote=Rake]Just a notion, you should make it so that when you batch-add to the end of file it writes it on a new line. At the moment it just writes it at the end of the last line, unless there is an empty line after that.[/quote]
I changed that as well as some other minor things.
.: Update v3 :.
- added auto-completion :D
- improved the toggle function of loops
- the settings editor now automaticly aplies changes
- fixed minor issues
note that the auto-completion allows all commands found on the valve developer site + newer ones from the tf2 changelog
.: Update v3 :.
- added auto-completion :D
- improved the toggle function of loops
- the settings editor now automaticly aplies changes
- fixed minor issues
note that the auto-completion allows all commands found on the valve developer site + newer ones from the tf2 changelog
I have to re-write my scripts (will be saving to dropbox this time) so this is coming in handy.
if you could add intellisense for the available keys that can be bound that'd be great.
I have to re-write my scripts (will be saving to dropbox this time) so this is coming in handy.
if you could add intellisense for the available keys that can be bound that'd be great.
Can you also add TAB completion on top of RETURN completion.
Can you also add TAB completion on top of RETURN completion.
.: Update (v3.1) :.
- I revised the ui and fixed some smaller mistakes
- Added rcon command support
- Added autocompletion for keys and maps (also unbind)
- Added gui options
- Improved autocompletion
- Same word highlighting is now finished
4Script scans your installed maps at the start.
Tell me if you want anything else in the options.
.: Update (v3.1) :.
- I revised the ui and fixed some smaller mistakes
- Added rcon command support
- Added autocompletion for keys and maps (also unbind)
- Added gui options
- Improved autocompletion
- Same word highlighting is now finished
4Script scans your installed maps at the start.
Tell me if you want anything else in the options.
.: Update v3.2 :.
- Fixed 4Script using the default script path even though another one is saved in the settings
- Added images to the autocompletion
(Blue cube means variable, red cube means command, and green cube means alias)
- Autocompletion now shows the default values of variables (taken from the valve dev page)
- Improved incrementvar and key autocompletion
- The autocomplete-menu now hides when ctrl is pressed
- Request: There are now options to save the window size and location when closing 4Script
.: Update v3.2 :.
- Fixed 4Script using the default script path even though another one is saved in the settings
- Added images to the autocompletion
(Blue cube means variable, red cube means command, and green cube means alias)
- Autocompletion now shows the default values of variables (taken from the valve dev page)
- Improved incrementvar and key autocompletion
- The autocomplete-menu now hides when ctrl is pressed
- Request: There are now options to save the window size and location when closing 4Script
I just wanted to point out that you can join my steam group if you wanna support 4Script!
I just wanted to point out that you can join my [url=steamcommunity.com/groups/4Script]steam group[/url] if you wanna support 4Script!
It is still using the default path when I change it. Any way to fix this?
It is still using the default path when I change it. Any way to fix this?