r/Tf2Scripts • • Nov 19 '20

Issue I need help

I've been trying to add woolens class switch, it's a number pad script, when. You press 1 in the number pad it'll switch to scout, I'm using master config btw, it's not working. Does anyone know what the problem
is? Could someone make the script?

3 Upvotes

14 comments sorted by

View all comments

Show parent comment

2

u/pdatumoj Nov 21 '20 edited Nov 21 '20

It's less about past experiences / performance and much more about potential future problems. cfg is a directory of files managed (and, critically, updated) by the game. While a collision, or conflict, is unlikely, it's still bad practice to risk making a mess of things in such a manner when the game will load config files from anywhere in the tf hierarchy equally well.

Addendum: All the above said, apparently mastercomfig does want the stuff under cfg (per https://docs.mastercomfig.com/en/latest/customization/custom_configs/ ), which, given how that loads things is more specific, is less flexible. :/ I'll just chalk it up to another difference of opinion on programming practices that I have with mastercoms.

Edits:

  1. Added "Addendum" section after checking mastercomfig docs.