ET Scripting Lessons: Adding content to your cfg

ET Scripting Lessons: Adding content to your cfg Because this is the part where most people get lost, since it’s the hardest part to explain, i will be trying to go over every single step. In this case i’ll use my own cfg (the advanced one) to get you as fast as possible to a […]

ET Scripting Lessons: Adding content to your cfg
Because this is the part where most people get lost, since it’s the hardest part to explain, i will be trying to go over every single step.
In this case i’ll use my own cfg (the advanced one) to get you as fast as possible to a clean cfg combination with everything you need in it.

First, we are going to create subdirectories in your etmain to keep the folder clean so you can find all your files at any time.
Now create 3 folders inside etmain called: effects, binds and others

I’ll explain why we’re doing this.
When you get familiar with cfg’s, you’ll want to create new ones every time but you keep your old ones because you like them too, but you end up with a bunch of configs with partially the same content in them (like your binds)
That’s why i like to keep your binds at one folder, and your effects at another.
The “others” folder is just there for other stuff you can’t categorize, feel free to remove/rename or add other folders.

Now open up your mycfg.cfg and put the following in it:
exec binds/default.cfg
exec effects/default.cfg
echo Binds&Effects loaded!
This will make you exec your binds and effects every time you exec your mycfg.cfg

As you might have noticed, you don’t have those default.cfg files yet.
Believing you already played ET and got some changes in it, we will try to get those out of ET and put them in those default configs.

To do this you’ll have to open up your ET and join a server you usually play at and make sure your settings are like you want them or usually have them.
Now open up your console again (~orĀ²) and type the following:
/writeconfig backup.cfg
When this is done you can get out of ET again and search the backup.cfg you just created in your etmain. (it might happen for some reasons that you have to search it in your modfolder [e.g.: Jaymod])
Open it up in notepad (right click open as) and now you’ll get a huge list of commands. Don’t worry, you won’t be editing them yet.
As you can see, the commands are all written behind eachother separated with some square-like characters. Those give the command to ET to start a new line, but notepad doesn’t recognize them.
Because it’s very hard to find what you’re searching for, we will get those commands split up.
To do this you’ll have to copy all the content into a text-editor like Microsoft Word. If everything goes right, you get a nice list of commands all beneath eachother.
Now copy all the content from the text editor again and paste it into your cfg (you may overwrite the old content since it isn’t needed anymore)
Now just save it again so it’s ready to go.

Tip: If something goes wrong during this tutorial, you can always /exec backup to get your standard settings back!

Lets get this all into our configs.
First you create a new config into your etmain/binds folder, call it default.cfg
Open up the config and copy all the content from backup.cfg starting with “bind” into it. So actually you take everything from your backup.cfg from the start to the first “seta”.
Keep the unbindall command out of it for the safety.
Paste all those lines into your default.cfg and save it. Close it and re-open it to check if it’s all saved correctly.

Now go into your effects folder and create a new default.cfg again.
Paste all the other lines from backup.cfg into it.
Tip: If you get familiar with the commands, you can create multiple configs with different command types like sound, visual and net effects.
Save this again and do the same check as the other config you just created.

4 Responses

06.30.09

Eheheh , great tutorial mate (:

keep rolling :D

06.30.09

Lzer7B Excellent article, I will take note. Many thanks for the story!

06.30.09

I liking Your style boy

06.30.09

So amazing in my opinion dude. Good luck :D

Leave Your Response

* Name, Email, Comment are Required


About Us

I recently started my higher education as a Graphic Designer and I will be running the Interactive Design part of it. That includes photography, making movies, flash animations and web design and the design of web applications.

Learn More About Us

Write For Us

Want to write an article for us? Just go for it and get your name out. The good part compared to others is that your article DOESNOT have to be exclusive, meaning you can have it on your own website too!

Read More Details