r/tf2scripthelp • u/Mcdreamer1 • Nov 22 '17
Resolved [class].cfg not present; not executing
Now i realize there are several search results that show up when you google this, but none of them seem to fix my problem. My problem is I've been trying to figure out where my scripts go, and as in the "tutorial" on this site, I've placed my scripts under Team Fortress 2\tf\custom\my_custom_stuff\cfg but every time i try to run them it still says "sniper.cfg not present; not executing" or something like that. I've also tried placing them directly under tf\custom\my_custom_stuff instead of adding another folder AND under tf\cfg but to no avail. Any help i could get would be great!
View all comments
Show parent comment
1
u/bythepowerofscience Nov 22 '17 edited Nov 30 '17
bind <key> "<alias or list of commands separated by semicolons>"is the only rule. https://wiki.teamfortress.com/wiki/Scripting#List_of_key_names (I think) shows the names of the keys.Make sure not to rebind keys mid-script (with
bind). Instead, bind those keys to aliases and then change what those aliases mean. The game can process alias changes better than bindings in general.