Talk:Scripting

From Team Fortress Wiki
Revision as of 00:39, 31 August 2021 by Mr.Panface (talk | contribs) (Clean up "Timed Actions" section)
Jump to: navigation, search

Rewrote page. Open review.

I've replaced the old page with a rewritten one based on suggestions from people on IRC. I've also dumped an Open Review at the top of the new page, suggesting that people should come talk about the new page. The old scripting page is currently stored at User:Zoolooman/Scripting for future reference. -- Zoolooman 12:52, 22 October 2010 (UTC)

I like it, but it could use a few images to catch the casual reader's eye. Don't really know what images could go in here, though. --Latin Geek 15:59, 7 November 2010 (UTC)
It's much cleaner than the old scripting page, but is still very long and difficult to read. Perhaps it could be broken apart and have a separate page for the script commands and possibly other sections. Mrnoj 18:06, 9 November 2010 (UTC)
Are we going to get individual script sections for each class again? I'd love to see those come back. (nanosheep_inc) 06:15, 10 November 2010 (UTC)
I agree with the difficult to read comment from Latin Geek it is alot of text to swallow all at once. Darkstar516 21:53, 13 December 2010 (UTC)

Information Missing

So far I can see that the "use" commands have disappeared, never to be seen again. I suggest they be included in the List of useful console commands page.


What happened?

What happened to the individual class script pages? They are on the old wiki. Icheyne 18:00, 23 September 2010 (UTC)

I see. Looks like they weren't transferred correctly. Thanks for the heads up.  – Smashman (talk) 18:54, 23 September 2010 (UTC)
I happened. :)-RJ 18:57, 23 September 2010 (UTC)
Right, I see. I don't recall that, but you made a good point.  – Smashman (talk) 19:05, 23 September 2010 (UTC)
Shame. :( --Icheyne 15:51, 26 September 2010 (UTC)

Replacing the current scripting page

It's been hectic in IRC, so I'll add this here. I've prepared a rewritten scripting page based on the suggestions from the IRC channel.

User:Zoolooman/Scripting

If anyone has further suggestions, or if anyone would approve the replacement, I'd like to finish this up and replace the current guide soon. :D -- Zoolooman 03:33, 22 October 2010 (UTC)

That is a... heh... large page. Seems like a lot of information for somthing people with at least some experience would use, so my two cents are either shorten it with more external links to sites dedicated to scripting, shorten it, or split it up, putting them all within a catagory.--Kurathedog 20:31, 6 November 2010 (UTC)
It's vastly shorter than before, and while I wanted to make an even shorter page, the general consensus in IRC was that the page should contain these subjects. Thus, it is this long. Zoolooman 20:33, 6 November 2010 (UTC)

Information Missing

So far I can see that the "use" commands have disappeared, never to be seen again. I suggest they be included in the List of useful console commands page.

Bindable keys?

I can't find a list of them. The archived chat below mentions it though. Is it gone now? And can capslock be binded to? Z Overlord 07:44, 26 December 2010 (UTC)

Class scripts

I think it's worth mentioning that every time you select a class it runs its script (as expected), but these changes are not reverted whenever you switch to another class. The script overwrites whatever values are in your config.cfg and thereby apply to every class. This is rather counter-intuitive to the notion of class-individual scripts, but can be solved by creating a "default.cfg" and exec-ing that at the start of every class file. Took me a while to figure that one out, anyway. Atmo 18:03, 15 May 2011 (UTC)

Scripting one keystroke unto another.

Hello. I was learning about scripting and I realized that the visual menus (class select, map info, server welcome/map rotation, etc.) are not addressed by any game commands that I'm aware of. Because we effectively press enter, C for continue, B for back, or 1-9 to navigate these menus, being able to bind these keystrokes within an alias could be potentially useful. Is there a method to do this? After my searching, I'm afraid to conclude that there is not. Would anyone with more experience or knowledge on the subject of scripting and game commands care to weigh in on this question? Being that this information is seemingly non-existent (there's no shortage of scripting 101 tutorials out there, but nothing regarding this) it may be a worthwhile mention on the scripting page. Thanks! -Bilberry

Rocket Jumping

To reach the max height, you have to crouch, jump, crouch, shoot / crouch, jump, shoot, crouch to reach the maximum height. Sokair 11:58, 11 December 2011 (PST)

Echoing a semicolon

I don't know why the page says you can't echo a semicolon, but I just tested it and it turns out if you enclose a semicolon inside quotation marks, it will actually echo it. I would update the page myself but I wanted to make sure others could confirm it as well. Lord Manship Engineer.png 14:15, 15 August 2013 (PDT)

Can confirm. I assumed on creating this that semicolons overpowered quotes, but it seems to be the other way around. Darkid (Talk|Contribs) 16:53, 15 August 2013 (PDT)

Please contribute to the idling section

there are scripts and commands that need to be added to the idling section, please contribute to the idling section. The preceding unsigned comment was added by 2sagan4u (talk) • (contribs)

Out of date

Hey, so I'm sorry if this isn't very formal, I've just made an account here, but isn't the section on the location of the auto exec out of date? Maybe I'm misunderstanding what it's saying, but on my Windows 8, the place to put the auto exec folder is under custom, not cfg, and then inside that is the auto exec.cfg, and then inside that is a folder named cfg, and finally the autoexec.cfg along with all the class specific ones. I also have some incentive to believe that the article is out of date for Linux and Mac, but I could be wrong. Is this part describing the documents in the cfg folder? If so, it seems out of place, and not to mention that I can't find any article in which it explains the location to put an autoexec script other than here. Either way, I feel that action is probably required. The preceding unsigned comment was added by Tenju (talk) • (contribs)

You don't need to put autoexec.cfg anywhere inside the custom folder, it works fine in the cfg folder outside of the custom folder. It's where I have my one (along with a few other scripts) currently. The page does also say that it can be put in the custom folder, but it's not really the default place for it or any other cfg files. So nothing really needs changing. Additionally, make sure that you sign your posts in future. --Omolong (talk) 13:42, 25 February 2015 (PST)

Launch options

I made some changes to the launch options section. I removed -high because it actually decreases performance. I removed -threads since the Source Engine automatically determines the value for this, and caps it at 3. Valve also recommends removing this launch option. And I also removed the resolution launch options since its better to just set your resolution in game as the launch options might create improper video mode, reducing performance. I removed DXLevel 98, as its the same as 95 as 98 was made for the Xbox 360 and added DXLevel 100, a DXLevel that allows max graphics settings. And I removed the text that lower DXLevels increase performance when that's really system dependent as higher DXLevels give better performance for modern systems while lower DXLevels are best for low end systems. 2th (talk) 05:02, 28 March 2020 (UTC)

Regardless if it makes your game run worse or if there's a "better" alternative, these should still be on the page for information. If -threads does nothing it's not necessary, but I feel like -high, -h, and -w should still be on here.
GrampaSwood (talk) 11:25, 28 March 2020 (UTC)
Pictogram minus.png Disagree I think for listing all launch options, the topic is better left to other sites. I think it's more important to just list the good launch options if there are other sites for that information. 2th (talk) 18:02, 28 March 2020 (UTC)
Pictogram minus.png Disagree Having a list of launch-options is great, but I feel that it should be a separate page from scripting. Launch options can be used to run console commands, and thus there should be a link to this page for more info, but the intent of most options are detached from the console so keeping them here just clutters the page. At the very least, if the options don't receive a page of their own, the list should be given a drop-down so people don't have to scroll through a wall of text. Mr.Panface - "I hate snipers so much" (talk) 23:44, 30 August 2021 (UTC)

How to unbind keys?

I put in a keybind for Q, and now, when i play engineer or any class that requires that key, i can't escape the gui. How can i undo binds? The preceding unsigned comment was added by Trip2511 (talk) • (contribs) 00:29 4 February 2021

Use talk pages only for questions about the article itself. Btw, is unbind <key> · Ashe (talk) 00:35, 4 February 2021 (UTC)
Execute the file config_default.cfg with the command exec config_default. Just type it in the console and you'll reset all your binds. Also, this page is for discussion on the wiki article, not for scripting help. In the future, please ask elsewhere like in the TF2 Discussions. Mr.Panface - "I hate snipers so much" (talk) 23:51, 30 August 2021 (UTC)

Clean up "Timed Actions" section

I'm fairly new to editing wiki's, so I'm concerned that edits I make may not be in the spirit or style of the wiki. I try to keep things as clean and wiki-like as possible but I feel that someone with more experience should comb over my contrib just to make sure. Can a few people go over the new "Timed Actions" section and make any appropriate edits? Mr.Panface - "I hate snipers so much" (talk) 00:39, 31 August 2021 (UTC)