Welcome to Soldier of Fortune Community Forums
24 Apr 2018, 11:42


View unanswered postsView active topics



Reply to topic  [ 6 posts ] 
How to use CFG files 
Author Message
Netherlands

User avatar

Joined:
Mon Nov 21st, 2011
Posts: 949
Reply with quote
To install/use .cfg files:
1 - put the cfg file in your user folder
2 - In-game typ in console:
Code:
exec example.cfg


or bind it to a key by entering:
Code:
bind (KEY) exec example.cfg


25 Nov 2011, 18:17
Profile WWW
Netherlands

User avatar

Joined:
Fri May 23rd, 2014
Posts: 476
Reply with quote
exec will print the file in console.
print = "execing file.cfg"
this won't
sp_sc_exec_file


23 Mar 2016, 16:15
Profile
Canada

User avatar

Joined:
Wed Jan 22nd, 2014
Posts: 147
Reply with quote
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.


23 Mar 2016, 17:27
Profile
Netherlands

User avatar

Joined:
Fri May 23rd, 2014
Posts: 476
Reply with quote
5

Code:
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


23 Mar 2016, 18:02
Profile
Canada

User avatar

Joined:
Wed Jan 22nd, 2014
Posts: 147
Reply with quote
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 ;)


23 Mar 2016, 22:54
Profile
Netherlands

User avatar

Joined:
Mon Jun 25th, 2012
Posts: 112
Reply with quote
Code:
sp_sc_alias x "sp_sc_exec_file ${1}.cfg"
x bc


27 Mar 2016, 20:53
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 
Topic Views: 1186


Who is online

Users browsing this forum: No registered users and 1 guest


Top
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group
www.sof1.org