Join us on our TWC Discord channel

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mod specific configs (archived by Destroy666)
#1
Ligustah Wrote:Hello,

as i just set it up for TC:E, i thought i'd share a little, yet useful trick with you guys.

Basically, this is about using the same config for different mods, while still allowing
customisations to be made. I'll demonstrate it using TC:E.

In my main config i have some lines like this:
Code:
echo "^3loading mod specific settings..." exec "mod.cfg"

Now we take advantage of the way ET scans its directories for files to execute.
Put the main config file into your etmain folder and create a file called "mod.cfg"
in each mod folder you want to customise settings for.

So in this example i will assume the main config to be called "config.cfg".

Somwhere in the config.cfg i have this:
Code:
bind MOUSE1 "+attack" bind MOUSE2 "weapalt" bind MOUSE3 "+vstr bind_mouse_down bind_mouse_up"

My mod.cfg for TC:E contains this:
Code:
bind mouse2 +zoom bind mouse3 +firemode

My mod.cfg for Jaymod looks like this:
Code:
bind mouse2 +attack2

In game i can simply do /exec config.cfg
Now, depending on which mod i am on, it will either load tcetest/mod.cfg or jaymod/mod.cfg
or just show an error message, because the file does not exist.

Hope this is of any use.

-- Ligustah
[Image: ?xbxZzcw.jpg,G2VMmih.jpg]

Spoiler[Image: 20u5t8l.jpg]
#2
http://board.twcclan.org/showthread.php?tid=23

Smile
"If you tell the truth, you don't have to remember anything."
#3
It seems the point of this topic is that.....

Lig can give me a headache through proxy now -_- Damn that technical guy :P
[Image: mayhem.png]
[Image: slaughterhaus.gif]
Joint Quote: [20-11-2009 12:39:32] Wessel: did you let me ban my own ip
[20-11-2009 12:39:33] MayheM: Wahahahhahahhahahahahhaha

|^^^^^^^^^^^\||____
| The STFU Truck |||""'|""\__,_
| _____________ l||__|__|__|)
|(@)@)"""""""**|(@)(@)**|(@)
A gift from ZonE


Possibly Related Threads…
Thread Author Replies Views Last Post
  HS Mod Schedule (archived by Vicky) (archived by Vicky) (archived by Vicky) (archived by Vicky) Vicky 30 11,700 02-11-2017, 01:28 AM
Last Post: iTim
Rainbow HS Mod/Schedule changes - Happy voting #2! (archived by Cross) Coffee 18 7,215 30-08-2017, 08:44 PM
Last Post: Raklap
  Panzerwar mod (archived by Thrasher) imma 21 7,976 30-03-2017, 11:31 PM
Last Post: NightFall
Exclamation Panzerwar Mod Vote (archived by Thrasher) Sn4cky 23 8,383 10-01-2017, 01:36 AM
Last Post: Thrasher
  Panzerwar Mod Change (archived by Sn4cky) Sn4cky 19 8,477 29-11-2016, 06:23 PM
Last Post: Sn4cky

Forum Jump:


Users browsing this thread: