Upvote Upvoted 6 Downvote Downvoted
4Script Recording Feature
1
#1
5 Frags +

My TF2 editor 4Script now has the feature of starting TF2 with different huds/plugins enabled. Remember that this only is stil a beta feature and may not be having everything you want.

Right now there is no option in the editor itself and it can only be started by start parameters aka batch files. Also note that I have no idea how other tools work (I've never tried any) and this is just my idea of how it should work.

How does it work?
When you start the application, it will move all files that have "_norec" in the filename to the folder "tf/4Script". All files that have "_rec" in their name will be moved for into the "tf/custom" folder. TF2 gets launched.

When you close tf2 the process above will be executed in the reverse order (all files with "_rec" -> "tf/4Script", all files with "_norec" -> "tf/custom")

You can chose one script file to be executed at the beginning or at the end of autoexec.cfg, it will be cleared again if you close tf2!

For instance:
You put the folder "Medic_Hud_rec" and the folder "Normal_Hud_norec" into tf/custom and if you start the .bat you use your medic hud, if you start tf2 normally you use your normal hud.

What do I need?
You need to have at least v3.3 of 4Script and if you should have started 4Script at least once (and have set the tf/cfg if it ask you for it).

How to use it?
Create a .bat or a .cmd file and add the direct path of 4Script (you can shift-rightclick and click on copy path) like this:

"C:\Users\Daniel\Desktop\4Script.exe"

After that you can add all commands you want, some of them are necessary tho. You need at least

"path to 4Script" -nowin -game "Team Fortress 2" -launchsteam "440" -rec 

in my case

"C:\Users\Daniel\Desktop\4Script.exe" -nowin -game "Team Fortress 2" -launchsteam "440" -rec 

Now save it as a .bat or .cmd file and execute it. :)

List of all Commands:
-nowin: Disables the main Form (currently needed for recording mode)
-game "path": The cfg folder of the game. NOTE: the path has to end with a double backslash (\\)!
-game "game name": Same as above, but it get's the information from the 4Script settings (only "Team Fortress 2" possible right now)
-rec: enables recording mode
-launchsteam "id": Name of the steam app to launch.
-exec "name": Name of the cfg file that gets execute at the beginning of the autoexec in rec mode
-execend "name": Same as above, gets added at the end of autoexec.cfg

My TF2 editor [url=http://www.teamfortress.tv/forum/thread/8782]4Script[/url] now has the feature of starting TF2 with different huds/plugins enabled. Remember that this only is stil a beta feature and may not be having everything you want.

Right now there is no option in the editor itself and it can only be started by start parameters aka batch files. Also note that I have no idea how other tools work (I've never tried any) and this is just my idea of how it should work.

[b]How does it work?[/b]
When you start the application, it will move all files that have "_norec" in the filename to the folder "tf/4Script". All files that have "_rec" in their name will be moved for into the "tf/custom" folder. TF2 gets launched.

When you close tf2 the process above will be executed in the reverse order (all files with "_rec" -> "tf/4Script", all files with "_norec" -> "tf/custom")

You can chose one script file to be executed at the beginning or at the end of autoexec.cfg, it will be cleared again if you close tf2!

For instance:
You put the folder "Medic_Hud_rec" and the folder "Normal_Hud_norec" into tf/custom and if you start the .bat you use your medic hud, if you start tf2 normally you use your normal hud.

[b]What do I need?[/b]
You need to have at least v3.3 of [url=http://www.teamfortress.tv/forum/thread/8782]4Script[/url] and if you should have started 4Script at least once (and have set the tf/cfg if it ask you for it).

[b]How to use it?[/b]
Create a .bat or a .cmd file and add the direct path of 4Script (you can shift-rightclick and click on copy path) like this:
[code]"C:\Users\Daniel\Desktop\4Script.exe"[/code]

After that you can add all commands you want, some of them are necessary tho. You need at least
[code]"path to 4Script" -nowin -game "Team Fortress 2" -launchsteam "440" -rec [/code]

in my case
[code]"C:\Users\Daniel\Desktop\4Script.exe" -nowin -game "Team Fortress 2" -launchsteam "440" -rec [/code]

Now save it as a .bat or .cmd file and execute it. :)

[b]List of all Commands:[/b]
-nowin: Disables the main Form (currently needed for recording mode)
-game "path": The cfg folder of the game. NOTE: the path has to end with a double backslash (\\)!
-game "game name": Same as above, but it get's the information from the 4Script settings (only "Team Fortress 2" possible right now)
-rec: enables recording mode
-launchsteam "id": Name of the steam app to launch.
-exec "name": Name of the cfg file that gets execute at the beginning of the autoexec in rec mode
-execend "name": Same as above, gets added at the end of autoexec.cfg
2
#2
2 Frags +

Thats pretty Rad

Thats pretty Rad
3
#3
0 Frags +

neat

neat
4
#4
0 Frags +

Is this different than using -insert_search_path...

Is this different than using -insert_search_path...
5
#5
0 Frags +
jp_Is this different than using -insert_search_path...

Right now it does the same as -insert_search_path + the -exec and -execend commands maybe. There is definitely more to come tho :)

[quote=jp_]Is this different than using -insert_search_path...[/quote]

Right now it does the same as -insert_search_path + the -exec and -execend commands maybe. There is definitely more to come tho :)
Please sign in through STEAM to post a comment.