Half-Life

Half-Life

McReally Feb 20, 2018 @ 5:27am
How to install Scripts
I done everything i can but it doesnt work.
Everytime i try to save the modified config.cfg file with script in it, it says "access denied" or something like that.
Originally posted by Blyte:
FYI : installing script files.

The userconfig.cfg is great for small or a few little scripts.
If you run several or very large scripts. I recommend the following.

The reasons for doing it this way.
1 Testing: At some time you may have a conflict between plugins and your scripts.
2 Change the order that the scripts are loaded into the game. (They load in the order listed in autoexec.cfg)
3 Ability to turn scripts ON and OFF
4 Each script will have its own file.
5 Remove the possibility of script files being overwritten or deleted during an update.

------
1 You will need to make a .cfg file and put the script in it. (Use notepad and be sure to change the file extension to .cfg)
2 Name the file whatever you want. Save it in the valve folder. )
3 Then put a line in the autoexec.cfg file.
EXAMPLE:
exec testscript1.cfg
Do not put spaces in the file name.

This way you have each script in its own file. Each script can be turned OFF or ON. To turn off a script (comment out) by putting // at the beginning of each exec line in the autoexec.cfg. To turn ON remove //
EXAMPLE:
//exec testscript1.cfg
The line will not be read

So that script files do not get overwritten or deleted from an update. Go to the file properties and select read-only then apply.

I hope this help people understand a little better about loading script files.

< >
Showing 1-5 of 5 comments
LiveWire Feb 20, 2018 @ 9:58am 
Is the file is write protected?

The best place for scripts is a userconfig.cfg. Just copy then renane your config.cfg, delete the contents and paste your scripts in there.
McReally Feb 20, 2018 @ 11:08am 
Originally posted by LiveWire:
Is the file is write protected?

The best place for scripts is a userconfig.cfg. Just copy then renane your config.cfg, delete the contents and paste your scripts in there.
I did that but with cs 1.6 and it works great thanks for help
The author of this topic has marked a post as the answer to their question.
Blyte Feb 21, 2018 @ 2:46am 
FYI : installing script files.

The userconfig.cfg is great for small or a few little scripts.
If you run several or very large scripts. I recommend the following.

The reasons for doing it this way.
1 Testing: At some time you may have a conflict between plugins and your scripts.
2 Change the order that the scripts are loaded into the game. (They load in the order listed in autoexec.cfg)
3 Ability to turn scripts ON and OFF
4 Each script will have its own file.
5 Remove the possibility of script files being overwritten or deleted during an update.

------
1 You will need to make a .cfg file and put the script in it. (Use notepad and be sure to change the file extension to .cfg)
2 Name the file whatever you want. Save it in the valve folder. )
3 Then put a line in the autoexec.cfg file.
EXAMPLE:
exec testscript1.cfg
Do not put spaces in the file name.

This way you have each script in its own file. Each script can be turned OFF or ON. To turn off a script (comment out) by putting // at the beginning of each exec line in the autoexec.cfg. To turn ON remove //
EXAMPLE:
//exec testscript1.cfg
The line will not be read

So that script files do not get overwritten or deleted from an update. Go to the file properties and select read-only then apply.

I hope this help people understand a little better about loading script files.

Last edited by Blyte; Feb 21, 2018 @ 11:41am
LiveWire Feb 21, 2018 @ 9:43am 
Does the commandmenu work for HL or is it a DOD only thing?
Blyte Feb 21, 2018 @ 11:01am 
In regular half-life the only commandmenu I know of is built into the Metamod plugin AmxModX It is geared more for game sever. But you can customize the menu. for the commands you want.
Last edited by Blyte; Feb 21, 2018 @ 11:45am
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Feb 20, 2018 @ 5:27am
Posts: 5