Talk:Scripting

From Team Fortress Wiki
Revision as of 21:26, 25 February 2015 by Tenju (talk | contribs) (Out of date: new 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.