How to use CFG files

Post Reply
Reactions: 0
Posts: 947
Joined: 21 Nov 2011, 18:55

How to use CFG files

Post 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
Reactions: 2
Posts: 525
Joined: 23 May 2014, 10:09
Location: Samsung smart fridge

Re: How to use CFG files

Post by Sauron »

exec will print the file in console.
print = "execing file.cfg"
this won't
sp_sc_exec_file
Reactions: 5
Posts: 234
Joined: 22 Jan 2014, 22:58

Re: How to use CFG files

Post 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.
Reactions: 2
Posts: 525
Joined: 23 May 2014, 10:09
Location: Samsung smart fridge

Re: How to use CFG files

Post 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
Reactions: 5
Posts: 234
Joined: 22 Jan 2014, 22:58

Re: How to use CFG files

Post 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 ;)
Reactions: 0
Posts: 113
Joined: 25 Jun 2012, 21:52

Re: How to use CFG files

Post by 3klnk4jh »

Code: Select all

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

Who is online

Users browsing this forum: No registered users and 12 guests