Page 1 of 1

How to use CFG files

Posted: 25 Nov 2011, 17:17
by Persian
To install/use .cfg files:
1 - put the cfg file in your user folder
2 - In-game typ in console:

Code: Select all

exec example.cfg


or bind it to a key by entering:

Code: Select all

bind (KEY) exec example.cfg

Re: How to use CFG files

Posted: 23 Mar 2016, 15:15
by Sauron
exec will print the file in console.
print = "execing file.cfg"
this won't
sp_sc_exec_file

Re: How to use CFG files

Posted: 23 Mar 2016, 16:27
by Trekker
Has anyone tried to see at what point we can omit the ".cfg"?

I know we have to include it when the CFG file has only 2 or 3 letters!

I have Bastard's Corner rcon saved as bc.cfg and bas.cfg that changes my name and binds the same key to another profile, both of these I have to type "exec bc.cfg or exec bas.cfg"

But to exec my dedicated or another password file, I can just type "exec dedicated or exec pass1" without the ".cfg".

Next time I have to try a file with 4 letters in the name since "bas" needs the ".cfg" but "pass1" does not.

Re: How to use CFG files

Posted: 23 Mar 2016, 17:02
by Sauron
5

Code: Select all

Console initialized.
]exec z
Unable to exec z
]exec zz
Unable to exec zz
]exec zzz
Unable to exec zzz
]exec zzzz
Unable to exec zzzz
]exec zzzzz
execing zzzzz.cfg
5

Re: How to use CFG files

Posted: 23 Mar 2016, 21:54
by Trekker
Don't call me lazy eh!

Not that it makes a lot of diff, but all my files going to be changed accordingly this point on ;)

Re: How to use CFG files

Posted: 27 Mar 2016, 20:53
by 3klnk4jh

Code: Select all

sp_sc_alias x "sp_sc_exec_file ${1}.cfg"
x bc