Counter-Strike 2

Counter-Strike 2

View Stats:
KupoMof416 Nov 2, 2019 @ 11:43pm
My Keybind keeps clearing itself every time I reset the game
Hey all.

I seem to be be having a problem with setting up key binds recently, though more specifically the Previous Inventory bind.

By default, it should be bound to the mouse wheel moving up. However, I have noticed that my game tends to delete the bind for that function whenever I start it up again. I have entered it again and again into the settings, but when I go back into the game it's cleared again.

When this happens, I can't get back to an item I need as quickly. When I scroll down on the mouse wheel, I select the next item in my inventory just fine, but if I forget to re-assign the mouse wheel scrolling up to go back an item, I have to scroll through my entire inventory to get back to the top of the list.

I've tried going into config.cfg and autoexec.cfg to see if anything was going on, but the bind is declared just fine in there.
< >
Showing 1-15 of 16 comments
POURY4 Nov 3, 2019 @ 12:43am 
It seems there is a conflict between MWdown bind. Double check for duplicate binds in your cfgs
Make your config.cfg and autoexec.cfg read-only. See if it helps.
Also put "host_writeconfig" in your autoexec's last line (before making it read only)
Put "exec (Your custom config).cfg" in your launch options
Last edited by POURY4; Nov 3, 2019 @ 12:50am
KupoMof416 Nov 3, 2019 @ 6:05pm 
I checked the files more closely. MWup and MWdown are both defined and are bound to the appropriate function, though I'm not sure if the line that the declaration is held on will impact functionality of a binding.

I do have host_writeconfig at the bottom of autoexec.cfg, but I don't have a custom config to use with the exec command. Do you mean one of the other config files or should I make up an entirely new config file to add in?
KupoMof416 Nov 3, 2019 @ 6:14pm 
Originally posted by TheDude:
Originally posted by KupoMof416:
I checked the files more closely. MWup and MWdown are both defined and are bound to the appropriate function, though I'm not sure if the line that the declaration is held on will impact functionality of a binding.

I do have host_writeconfig at the bottom of autoexec.cfg, but I don't have a custom config to use with the exec command. Do you mean one of the other config files or should I make up an entirely new config file to add in?
autoexec.cfg is a custom config. You don't need to add +exec autoexec to launch options because it will auto execute if it's in the correct directory.

Maybe post your autoexec.cfg content so we can review it.

Here you go:

//CORE HAVEN [autoexec.cfg]

//ALPHA
host_writeconfig

//Alias
alias "taser" "give weapon_taser"
alias "zeus" "give weapon_taser"
// Knive's
alias "bayonet" "give weapon_bayonet"
alias "flip" "give weapon_knife_flip"
alias "gut" "give weapon_knife_gut"
alias "karambit" "give weapon_knife_karambit"
alias "m9_bayonet" "give weapon_knife_m9_bayonet"
// Nade's
alias "decoy" "give weapon_decoy"
alias "flashbang" "give weapon_flashbang"
alias "grenade" "give weapon_hegrenade"
alias "incendiary" "give weapon_Incgrenade"
alias "molotov" "give weapon_molotov"
alias "smoke" "give weapon_smokegrenade"
// Pistol's
alias "deagle" "give weapon_deagle"
alias "fiveseven" "give weapon_fiveseven"
alias "glock" "give weapon_glock"
alias "p2000" "give weapon_hkp2000"
alias "P250" "give weapon_P250"
alias "usp" "give weapon_usp_silencer"
// Smgs
alias "bizon" "give weapon_bizon"
alias "mac10" "give weapon_mac10"
alias "mp7" "give weapon_mp7"
alias "mp9" "give weapon_mp9"
alias "P90" "give weapon_P90"
alias "ump" "give weapon_ump45
// Heavy's
alias "mag7" "give weapon_mag7"
alias "Negev" "give weapon_negev"
alias "Nova" "give weapon_nova"
alias "Sawedoff" "give weapon_SAWEDOFF"
alias "Xm" "give weapon_XM1014"
// Rifles
alias "ak" "give weapon_ak47"
alias "aug" "give weapon_aug"
alias "awp" "give weapon_awp"
alias "colt" "give weapon_m4a1_silencer"
alias "famas" "give weapon_famas"
alias "galil" "give weapon_galilar"
alias "m4" "give weapon_m4a1"
alias "scar" "give weapon_SCAR20"
alias "scout" "give weapon_ssg08"

// Map's
alias "aztec" "map de_aztec "
alias "cache" "map de_cache"
alias "cobblestone" "map de_cbble"
alias "dust" "map de_dust"
alias "dust2" "map de_dust2"
alias "inferno" "map de_inferno"
alias "mill" "map de_mill"
alias "mirage" "map de_mirage"
alias "nuke" "map de_nuke"
alias "overpass" "map de_overpass"
alias "seaside" "map de_seaside"
alias "season" "map de_season"
alias "train" "map de_tain"
alias "vertigo" "map de_vertigo"

//Bindings For Practice
bind "alt" "noclip"
bind "=" "give weapon_hegrenade; give weapon_flashbang; give weapon_smokegrenade; give weapon_decoy"
bind "end" "quit" //quits the game from within a map.
bind "home" "disconnect" //disconnects from server and returns to home screen.
bind "mwheelup" "r_cleardecals" //clears bullet holes and blood spatter.
bind "pgdn" "volume 0.01" //Lowers in game volume easily while DM'ing
bind "pgup" "volume .20" //Change to your default volume
sv_noclipspeed 2

//Buy Binds (Make your binds whatever you would like)
bind "f1" "Buy m4; Buy ak47"
bind "f2" "Buy famas; Buy galilar"
bind "f3" "Buy ump45"
bind "f4" "Buy p250"
bind "f5" "Buy smokegrenade"
bind "f6" "Buy hegrenade"
bind "f7" "Buy flashbang"
bind "f8" "buy molotov; buy incgrenade"
bind "f9" "Buy vesthelm; Buy vest"
bind "f10" "Buy defuser; Buy rescue"
bind "i" "Buy Decoy"
bind "O" "Buy fiveseven; Buy tec9"
bind "P" "Buy deagle"
bind "]" "Buy awp"
bind "\" "Buy scar20; buy g3sg1"
bind "k" "Buy nova"
bind "l" "Buy mag7; Buy sawedoff"
bind "'" "Buy aug; Buy Sg553"

//Crosshair
crosshair "1"
cl_crosshairalpha "255"
cl_crosshaircolor "5"
cl_crosshaircolor_b "255"
cl_crosshaircolor_g "255"
cl_crosshaircolor_r "255"
cl_crosshairdot "0"
cl_crosshairgap "2"
cl_crosshairsize "5.75"
cl_crosshairstyle "4"
cl_crosshairthickness "0.5"
cl_crosshairusealpha "1"
cl_crosshair_drawoutline "1"
cl_crosshair_outlinethickness "1"


//Miscellaneous
cl_allowdownload "1
cl_autowepswitch "0"
cl_autohelp "0"
cl_disablehtmlmotd 1 //This has to be "0" for Altpug
cl_downloadfilter "0"
cl_showhelp "0"
cl_forcepreload "1"
cl_lagcompensation "1"
cl_show_clan_in_death_notice "1" //0 if you want only names of players in kill feed.
cl_showfps "0"
cl_showloadout "1"
cl_teammate_colors_show "0" //1 if you want teamates to have color coded :)
cl_use_opens_buy_menu "0" /doesn't allow E to open buy menu! YAY!
con_filter_text "damage" // Filters damage in the console nicely!
con_filter_enable "2" // Filters damage in the console nicely!
ds_get_newest_subscribed_files "1"
fps_max "121" //Put your refresh rate +1, you cannot see frames past your Hz
fps_max_menu "121" //Put your refresh rate +1
gameinstructor_enable "0"
hud_showtargetid "1" //Makes it easier to spot enemies
mm_dedicated_search_maxping "85" //No more than 100
r_drawtracers_firstperson "1" //I have gone back to it because I feel it helps me control recoil better.

//Mouse
m_rawinput "1"
m_mouseaccel1 "0"
m_mouseaccel2 "0"
m_mousespeed "0"
sensitivity "1.3" //Put your sensitivity PUT YOUR OWN SENS HERE! :)
zoom_sensitivity_ratio_mouse "1.0"

/////// Net Graph (Makes netgraph appear while pressing Tab)
alias "+ng" "+showscores; net_graph 1; net_graphpos 2"
alias "-ng" "-showscores; net_graph 0"
bind "TAB" "+ng"
net_graphheight "0"
net_graphpos "2"
net_graphproportionalfont "0"

//Radar [Greatly increases radar visibility]
cl_radar_always_centered "0"
cl_radar_icon_scale_min "0.4"
cl_radar_rotate "1"
cl_radar_scale "0.5"
hud_scaling .88

//Rates and Interpolation
net_graph "0"
net_graphpos "1"
net_graphheight "0"
cl_cmdrate "128"
cl_interp "0"
cl_interp_ratio "1"
cl_updaterate "128"
rate "128000"

//Viewmodel Postion [Set values to your preference] This is what I use!
cl_bob_lower_amt "10"
cl_bobamt_vert ".1"
cl_bobamt_lat ".1"
cl_bobcycle .10
cl_viewmodel_shift_right_amt ".25"
cl_viewmodel_shift_left_amt ".5"
viewmodel_fov "68"
viewmodel_presetpos "3"
viewmodel_offset_x "2.5"
viewmodel_offset_y "0"
viewmodel_offset_z "-1.5"

///Zomega
host_writeconfig
KupoMof416 Nov 3, 2019 @ 6:24pm 
No prob.
the_jACK_Ripper Nov 3, 2019 @ 6:25pm 
You should check off cloud synchronization. The correct spot for the config file is steamdir/userdata/[UUID]/730/. Somewhere in there I think. Local, possibly remote.

But I've never had to do that and my config applies across OSs. Click enable steam cloud synchronization in properties of game in steam.
KupoMof416 Nov 3, 2019 @ 8:56pm 
Originally posted by the_jACK_Ripper:
You should check off cloud synchronization. The correct spot for the config file is steamdir/userdata/[UUID]/730/. Somewhere in there I think. Local, possibly remote.

But I've never had to do that and my config applies across OSs. Click enable steam cloud synchronization in properties of game in steam.

I tried that, but I still have the bind deleting itself whenever I leave the game. I'm not sure if I should just try to check the integrity of the game files or whatever.

Originally posted by TheDude:
Do you mean what q is normally bound to? lastinv? If so, you don't that in your autoexec.

I think you want bind "mwheelup" "r_cleardecals;lastinv"

Also update rate, it's much higher now.

I couldn't find anything bound to Q when I tried to search for it in the file. I have also tried to suggested bind and I still get the same issue.

What do you mean by the higher rate?
KupoMof416 Nov 3, 2019 @ 9:03pm 
Originally posted by TheDude:
Originally posted by KupoMof416:

I tried that, but I still have the bind deleting itself whenever I leave the game. I'm not sure if I should just try to check the integrity of the game files or whatever.



I couldn't find anything bound to Q when I tried to search for it in the file. I have also tried to suggested bind and I still get the same issue.

What do you mean by the higher rate?
Use bind "mwheelup" "r_cleardecals;lastinv" in place of your existing mwheelup bind.

You have hard-coded rate to an old setting. You should set it to the proper rate for your Internet speed.

Yes, I did do that in my autoexec.cfg file.
KupoMof416 Nov 3, 2019 @ 9:06pm 
Originally posted by TheDude:
Originally posted by KupoMof416:

Yes, I did do that in my autoexec.cfg file.
Is it working now?

The autoexec you posted didn't have the bind I suggested and rate was the old maximum setting?

As far as rate goes, I'm testing my internet speed to see what's going on. How is the rate measured, in Mbps or...?

Yeah, I put it in the autoexec file, saved it, went in, re-binded the MWup button to Previous Inventory and then quit, then came back and it deleted itself! I haven't gotten into any gameplay to actually try it out though, I'm only seeing the results from the settings menu.
KupoMof416 Nov 3, 2019 @ 9:18pm 
Originally posted by TheDude:
Originally posted by KupoMof416:

As far as rate goes, I'm testing my internet speed to see what's going on. How is the rate measured, in Mbps or...?

Yeah, I put it in the autoexec file, saved it, went in, re-binded the MWup button to Previous Inventory and then quit, then came back and it deleted itself! I haven't gotten into any gameplay to actually try it out though, I'm only seeing the results from the settings menu.
You're setting binds manually. Don't focus on the settings menu for binds in that case. And note that any change to autoexec requires either a second load of the game or a manual "exec autoexec" in the console for the latest changes to be shown in the game.

Just add the bind I suggested to the autoexec.cfg file and try it in the game (restart CSGO twice).

I added the bind to the autoexec file and even put in 'exec autoexec.cfg' in the Launch Options console, but nothing has changed, even when I reset twice.
KupoMof416 Nov 3, 2019 @ 9:22pm 
Originally posted by TheDude:
Originally posted by KupoMof416:

I added the bind to the autoexec file and even put in 'exec autoexec.cfg' in the Launch Options console, but nothing has changed, even when I reset twice.
Delete your config.cfg file, or rename it.

The one in userdata? Or some other file I can't seem to find?
KupoMof416 Nov 3, 2019 @ 9:27pm 
Originally posted by TheDude:
Originally posted by KupoMof416:

The one in userdata? Or some other file I can't seem to find?
Yes, under the userdata folder.

Nothing changed. Same behaviors.
KupoMof416 Nov 3, 2019 @ 9:31pm 
Originally posted by TheDude:
Originally posted by KupoMof416:

Nothing changed. Same behaviors.
I tested your config on my PC. Works fine.

Just to be sure of what you're trying to do. You want to clear decals, and select the last inventory (weapon), when you scroll up with mouse scroll wheel, right?

Sounds about right.
KupoMof416 Nov 3, 2019 @ 9:36pm 
Originally posted by TheDude:
Originally posted by KupoMof416:

Sounds about right.
Your config works for me. Make sure you are in the correct userdata folder. If you have more than one account or more than one player uses the PC, you will have more than one userdata folder.

I'm going into Steam\userdata\870887077\730\local\cfg

I do not have more than one account and nobody else uses my PC.
KupoMof416 Nov 3, 2019 @ 10:01pm 
Alright, so I played around with it. With the renamed file the game created a brand new config.cfg file. I still had the same problem, MWup wasn't bound to the prev inventory option.

However, I have noticed something when I went into a practice map.

When I scroll the MW up, it acts as though I were pressing the Q button (as in it goes back to the previous weapon I used), but it also clears the decals. When I manually put the previous inventory bind to MWup, it works as it usually does, but the decals do not get cleared when I scroll up.

Removing the clear decals attribute from MWup didn't change the fact that it still didn't bind it to Previous Inventory when I tried that out.
KupoMof416 Nov 4, 2019 @ 8:10pm 
I think I've decided to roll with these behaviors after all. It'll take some time to get used to, but I'm sure I can manage.

Since MWup now acts like the Q button, I can just use it to not only clear decals, but to also switch between the two quicker. All I really need is my main weapon and my knife to switch between quickly. The pistol is for those duels you sometimes get caught in.

Thanks to everyone who helped!
< >
Showing 1-15 of 16 comments
Per page: 1530 50

Date Posted: Nov 2, 2019 @ 11:43pm
Posts: 16