You are viewing our Forum Archives. To view or take place in current topics click here.
Creating a Modded L4D2 US File (Tut)
Posted:

Creating a Modded L4D2 US File (Tut)Posted:

Kibblre
  • TTG Senior
Status: Offline
Joined: Dec 15, 200915Year Member
Posts: 1,936
Reputation Power: 130
Status: Offline
Joined: Dec 15, 200915Year Member
Posts: 1,936
Reputation Power: 130
As of 4/21/10, L4D2 modding has been patched.

I'm going to teach you how to make your own modded UserSettings file. This took me awhile to figure out how to get aliases working perfectly, so I thought I would share my findings.

First, you're going to need your US file from your HDD. You can obtain this using either Xport or Xplorer, but I recommend Xport because it names all the games for you. Next, you need to download a program called L4D2Editor. You can get it [ Register or Signin to view external links. ] . Now I'm going to teach you how to set up an alias, attach it to a bind, and finally use multi-button commands (hold LT and push A for noclip, just pushing A is default).

(Keep in mind that your default controls might be different depending on which config set you use)

First, you start with the default:

unbind all
sv_cheats 1

bind "A_BUTTON" "+jump;+menuAccept"
bind "B_BUTTON" "+reload"
bind "X_BUTTON" "+use"
bind "Y_BUTTON" "lastinv"
bind "L_SHOULDER" "vocalize smartlook"
bind "R_SHOULDER" "+lookspin"
bind "BACK" "togglescores"
bind "START" "gameui_activate"
bind "STICK1" "+duck
bind "STICK2" "+zoom"
bind "UP" "impulse 100"
bind "RIGHT" "slot4"
bind "DOWN" "slot5"
bind "LEFT" "slot3"
bind "S1_DOWN" "+menuDown"
bind "S1_UP" "+menuUp"
bind "L_TRIGGER" "+attack2"
bind "R_TRIGGER" "+attack"
joy_cfg_preset "3"
joy_inverty "0"
joy_legacy "0"
joy_movement_stick "0"
joy_pitchsensitivity "-0.8"
joy_yawsensitivity "-2.25"
option_duck_method "0"

For a simple bind, you can do something like this:

bind "BACK" "noclip"

Therefore, pushing the back button will give you noclip. You can also bind multiple commands to one button, using a semicolon to divide them. Like so:

bind "BACK" "noclip; z_spawn tank"

Now, pushing back will turn noclip on or off, and also spawn a tank.

You can also use a toggle command for commands with an on and off value (1, 0):

bindToggle "BACK" "sv_infinite_ammo"

Pressing back will toggle the _ammo command from 1 (on) to 0 (off) for each time you push the button.

Next, I will teach you how to use aliases. Aliases are a great way to save space and stay organized, but are also needed in multi-button commands. Here is an example of an alias and how to bind one:

alias "tnk" "z_spawn tank" (NOTE: you can NOT name an alias something the game uses. Make it your own)
bind "BACK" "tnk"

Now, when you push the back button, it will read the "tnk" alias which will spawn a tank. You can also bind multiple commands to one alias, and multiple aliases to one button:

alias "spwn" "z_spawn tank; z_spawn witch"
alias "com" "say TTG is the best!"
bind "BACK" "spwn; com"

Pushing the back button will now spawn a tank, spawn a witch, and put "TTG is the best!" in the top left corner.

Finally, and possibly the hardest part of L4D2 modding, I will show you multi-button commands. First, you need to set a "default" alias for ALL your buttons along with our aliases for whatever mods we want. I'm going to make one that spawns and tank and a witch. You also need to decide which button will be used to initiate the command set (we're going to use LT for this example). Also, when you use this method, you cannot have any commands with a space in either the "default" or "set" areas. If you have one like that, you need to make an alias. For example, the "impulse 100" and "vocalize smartlook"

alias "defup" "impulse 100"
alias "defls" "vocalize smartlook" (Those two are needed because they included a space. If you wish to use a command with a space it HAS to have an alias)
alias "spwn" "z_spawn tank; z_spawn witch"

alias "default" "bind L_TRIGGER +Set[LT's default will be "+Set" to initiate the commands] ; bind Y_BUTTON lastinv; bind B_BUTTON +reload; bind X_BUTTON +use; bind R_TRIGGER +attack; bind A_BUTTON +jump;+menuAccept; bind UP defup; bind LEFT slot3; bind RIGHT slot4; bind START gameui_activate; bind L_SHOULDER defls; bind R_SHOULDER +lookspin; bind BACK togglescores; bind STICK1 +duck; bind STICK2 +zoom; bind DOWN slot5"

Since LT was called +Set, we need to define +Set (the + is telling the game "when LT is held down, do this". (notice how LT is NOT in the +Set alias!). You only need to include the buttons that actually have mods in them.

alias "+Set" "bind Y_BUTTON spwn [remember, this was our alias to spawn a tank and a witch]"

After that has been setup, you need to tell the game to revert to default controls (Y will be lastinv instead of our spawn alias).

alias "-Set" "default"

Finally, you finish up your bind set. You ONLY add the button that you used for the button-holding. We used LT in the example. All the other buttons are defined in the "default" alias. This is what the final example will look like:

unbind all
sv_cheats 1

alias "defup" "impulse 100"
alias "defls" "vocalize smartlook"
alias "spwn" "z_spawn tank; z_spawn witch"

alias "default" "bind L_TRIGGER +Set; bind Y_BUTTON lastinv; bind B_BUTTON +reload; bind X_BUTTON +use; bind R_TRIGGER +attack; bind A_BUTTON +jump;+menuAccept; bind UP defup; bind LEFT slot3; bind RIGHT slot4; bind START gameui_activate; bind L_SHOULDER defls; bind R_SHOULDER +lookspin; bind BACK togglescores; bind STICK1 +duck; bind STICK2 +zoom; bind DOWN slot5"

alias "+Set" "bind Y_BUTTON spwn [remember, this was our alias to spawn a tank and a witch]"

alias "-Set" "default"

default (this MUST be placed here!)
bind "L_TRIGGER" "+Set" (this is the only button you need to define, like I had said)
bind "S1_DOWN" "+menuDown"
bind "S1_UP" "+menuUp" (you still define these two, however, because you can't use these to mod)
joy_cfg_preset "3"
joy_inverty "0"
joy_legacy "0"
joy_movement_stick "0"
joy_pitchsensitivity "-0.8"
joy_yawsensitivity "-2.25"
option_duck_method "0"

Finally, you need to put this into your US file. Open up L4D2E (link is at the top), click Open File, and find your file. Select the drop down arrow and select "left4dead2_cfg_ss.cfg". Finally, paste your finished set into that section over the defaults that will be there. Click save, rehash/resign, and transfer back to your Xbox.

If you have any questions, feel free to ask me. You can find a list of all the CVARS in this same subforum. If you are having trouble creating yours or it doesn't work correctly, I have a request thread as a sticky in this same forum. Paste your settings there and I will find the errors in it.

Have fun modding, TTG!

(This tutorial was written by Kibblre. I give anyone permission to copy this to any other website, but ONLY if you link to this thread and give credit to me)

Link to L4D2E (created by thetechgame.org): [ Register or Signin to view external links. ]

Having trouble making your file? Post what commands you want on which buttons, and I'll be happy to make it for you free of charge. Just post it in this thread: LINK[b]


Last edited by Kibblre ; edited 7 times in total

The following 7 users thanked Kibblre for this useful post:

-Rukus (03-11-2013), -Hex (01-06-2013), Tyler (07-15-2012), Famous (05-12-2012), davidforever (04-01-2012), Tobacco (11-03-2011), Keatonium (03-27-2010)
#2. Posted:
Stijnie
  • New Member
Status: Offline
Joined: Feb 13, 201014Year Member
Posts: 26
Reputation Power: 1
Status: Offline
Joined: Feb 13, 201014Year Member
Posts: 26
Reputation Power: 1
awesome!
can you help me, when i push "BACK" my screen stops...
why ?
-----------------------
unbind all

sv_cheats 1


alias "no" "noclip"
alias "say" "say Made By ALLNUKESKULL"
bind "A_BUTTON" "+jump;+menuAccept"
bind "B_BUTTON" "+reload"
bind "X_BUTTON" "+use"
bind "Y_BUTTON" "lastinv"
bind "L_SHOULDER" "+duck"
bind "R_SHOULDER" "+lookspin"
bind "BACK" "togglescores; say; noclip"
bind "START" "gameui_activate"
bind "STICK1" "vocalize smartlook"
bind "STICK2" "+zoom"
bind "UP" "impulse 100"
bind "RIGHT" "slot4"
bind "DOWN" "slot5"
bind "LEFT" "slot3"
bind "S1_DOWN" "+menuDown"
bind "S1_UP" "+menuUp"
bind "L_TRIGGER" "+attack2"
bind "R_TRIGGER" "+attack"
joy_cfg_preset "0"
joy_inverty "0"
joy_legacy "0"
joy_movement_stick "0"
joy_pitchsensitivity "-1.300000"
joy_yawsensitivity "-2.500000"
option_duck_method "1"
#3. Posted:
Kibblre
  • TTG Senior
Status: Offline
Joined: Dec 15, 200915Year Member
Posts: 1,936
Reputation Power: 130
Status: Offline
Joined: Dec 15, 200915Year Member
Posts: 1,936
Reputation Power: 130
Stijnie wrote awesome!
can you help me, when i push "BACK" my screen stops...
why ?


Take a look at your "say" alias. An alias CANNOT be named a command that exists. Rename your "say" alias into something else that isn't a command, and you'll be fine.

Actually, since you are doing single button commands, you don't even need aliases. Just do this:

bind "BACK" "togglescores; say Made by ALLNUKESKULL; noclip"

and you should be fine.
#4. Posted:
Stijnie
  • New Member
Status: Offline
Joined: Feb 13, 201014Year Member
Posts: 26
Reputation Power: 1
Status: Offline
Joined: Feb 13, 201014Year Member
Posts: 26
Reputation Power: 1
Haa it works thanks buddy!
#5. Posted:
TTG_Clownin
  • Junior Member
Status: Offline
Joined: Mar 22, 201014Year Member
Posts: 61
Reputation Power: 5
Status: Offline
Joined: Mar 22, 201014Year Member
Posts: 61
Reputation Power: 5
COOL THANKS
#6. Posted:
Kibblre
  • TTG Senior
Status: Offline
Joined: Dec 15, 200915Year Member
Posts: 1,936
Reputation Power: 130
Status: Offline
Joined: Dec 15, 200915Year Member
Posts: 1,936
Reputation Power: 130
Stijnie wrote Haa it works thanks buddy!


No problem. If you have any other issues, post them on here and I'll fix them as soon as I can.
#7. Posted:
TTGConey
  • Challenger
Status: Offline
Joined: Mar 21, 201014Year Member
Posts: 111
Reputation Power: 5
Status: Offline
Joined: Mar 21, 201014Year Member
Posts: 111
Reputation Power: 5
damn!!!
#8. Posted:
Stijnie
  • New Member
Status: Offline
Joined: Feb 13, 201014Year Member
Posts: 26
Reputation Power: 1
Status: Offline
Joined: Feb 13, 201014Year Member
Posts: 26
Reputation Power: 1
Trying the Multiple buttons now
#9. Posted:
Stijnie
  • New Member
Status: Offline
Joined: Feb 13, 201014Year Member
Posts: 26
Reputation Power: 1
Status: Offline
Joined: Feb 13, 201014Year Member
Posts: 26
Reputation Power: 1
Yooo kibblre
the multiple buttons are really hard, but to keep it easy i made this hahah
only my, unlimited ammo buttons are not working, why??

unbind all

sv_cheats 1


alias "ia" "sv_infinite_ammo"
alias "iaoff" "sv_infinite_ammo 0"

alias "sa" "z_ghost_delay_min 10; z_ghost_delay_max 20"
alias "sd" "z_ghost_delay_min 0; z_ghost_delay_max 0"
bind "A_BUTTON" "+jump;+menuAccept"
bind "B_BUTTON" "+reload"
bind "X_BUTTON" "+use"
bind "Y_BUTTON" "lastinv"
bind "L_SHOULDER" "+duck"
bind "R_SHOULDER" "+lookspin; ia"
bind "BACK" "togglescores; noclip"
bind "START" "gameui_activate"
bind "STICK1" "vocalize smartlook"
bind "STICK2" "+zoom"
bind "UP" "impulse 100"
bind "RIGHT" "slot4; sd"
bind "DOWN" "slot5; iaoff"
bind "LEFT" "slot3; sa"
bind "S1_DOWN" "+menuDown"
bind "S1_UP" "+menuUp"
bind "L_TRIGGER" "+attack2"
bind "R_TRIGGER" "+attack"
joy_cfg_preset "0"
joy_inverty "0"
joy_legacy "0"
joy_movement_stick "0"
joy_pitchsensitivity "-1.300000"
joy_yawsensitivity "-2.500000"
option_duck_method "1"
#10. Posted:
Kibblre
  • TTG Senior
Status: Offline
Joined: Dec 15, 200915Year Member
Posts: 1,936
Reputation Power: 130
Status: Offline
Joined: Dec 15, 200915Year Member
Posts: 1,936
Reputation Power: 130
You forgot one simple thing. It's added in bold

Stijnie wrote
unbind all

sv_cheats 1

default
alias "ia" "sv_infinite_ammo"
alias "iaoff" "sv_infinite_ammo 0"
alias "sa" "z_ghost_delay_min 10; z_ghost_delay_max 20"
alias "sd" "z_ghost_delay_min 0; z_ghost_delay_max 0"
bind "A_BUTTON" "+jump;+menuAccept"
bind "B_BUTTON" "+reload"
bind "X_BUTTON" "+use"
bind "Y_BUTTON" "lastinv"
bind "L_SHOULDER" "+duck"
bind "R_SHOULDER" "ia"
bind "BACK" "togglescores; noclip"
bind "START" "gameui_activate"
bind "STICK1" "vocalize smartlook"
bind "STICK2" "+zoom"
bind "UP" "impulse 100"
bind "RIGHT" "sd"
bind "DOWN" "iaoff"
bind "LEFT" "sa"
bind "S1_DOWN" "+menuDown"
bind "S1_UP" "+menuUp"
bind "L_TRIGGER" "+attack2"
bind "R_TRIGGER" "+attack"
joy_cfg_preset "0"
joy_inverty "0"
joy_legacy "0"
joy_movement_stick "0"
joy_pitchsensitivity "-1.300000"
joy_yawsensitivity "-2.500000"
option_duck_method "1"


More commands, as you requested: [ Register or Signin to view external links. ]
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.