Lua virus ?

So i was just building, and now my physgun random unfreezes things :frowning: and with all the other tools and weapons, i get random mouse 1 clicks. I didnt click on R or Mouse 1 in either problems. I tryed to unbind r and mouse 1 in console and then rebinding them again but that didnt work.

Open your config.cfg in your cfg folder and paste it here in code tags.

config.cfg


unbindall
bind "0" "slot0"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
bind "9" "slot9"
bind "a" "+moveleft"
bind "d" "+moveright"
bind "e" "+use"
bind "f" "impulse 100"
bind "g" "impulse 201"
bind "h" "ttt_radio suspect"
bind "p" "kill"
bind "q" "+menu"
bind "s" "+back"
bind "t" "fap_menu"
bind "u" "messagemode2"
bind "v" "noclip"
bind "w" "+forward"
bind "x" "gmod_undo"
bind "y" "messagemode"
bind "z" "+zoom"
bind "KP_INS" "+gm_special 0"
bind "KP_END" "+gm_special 1"
bind "KP_DOWNARROW" "+gm_special 2"
bind "KP_PGDN" "+gm_special 3"
bind "KP_LEFTARROW" "+gm_special 4"
bind "KP_5" "+gm_special 5"
bind "KP_RIGHTARROW" "+gm_special 6"
bind "KP_HOME" "+gm_special 7"
bind "KP_UPARROW" "+gm_special 8"
bind "KP_PGUP" "+gm_special 9"
bind "KP_SLASH" "+gm_special 15"
bind "KP_MULTIPLY" "+gm_special 14"
bind "KP_MINUS" "+gm_special 13"
bind "KP_PLUS" "+gm_special 12"
bind "KP_ENTER" "+gm_special 11"
bind "KP_DEL" "+gm_special 10"
bind "[" "host_timescale 0.14"
bind "]" "host_timescale 1"
bind "`" "toggleconsole"
bind "SPACE" "+jump"
bind "TAB" "+showscores"
bind "ESCAPE" "cancelselect"
bind "DEL" "ToggleWav"
bind "PAUSE" "pause"
bind "SHIFT" "+speed"
bind "ALT" "+walk"
bind "CTRL" "+duck"
bind "F1" "gm_showhelp"
bind "F2" "gm_showteam"
bind "F3" "gm_showspare1"
bind "F4" "gm_showspare2"
bind "F5" "jpeg"
bind "F6" "save quick"
bind "F9" "load quick"
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "MOUSE4" "phys_swap"
bind "MWHEELUP" "invprev"
bind "MWHEELDOWN" "invnext"
cl_rumblescale "1.0"
cl_debugrumble "0"
cl_thirdperson "0"
cl_team "default"
cl_class "default"
hud_takesshots "0"
hud_freezecamhide "0"
r_flashlightdepthres "1024"
cl_detail_max_sway "10"
cl_detail_avoid_radius "30"
cl_detail_avoid_force "0.5"
cl_detail_avoid_recover_speed "1"
cl_showhelp "1"
hud_draw_fixed_reticle "0"
cl_chatfilters "63"
cl_chatfilter_version "1"
cc_linger_time "1.0"
cc_predisplay_time "0.25"
cc_subtitles "0"
cc_lang ""
crosshair "1"
cl_observercrosshair "1"
cl_hudhint_sound "1"
g15_update_msec "250"
cam_snapto "0"
cam_ideallag "4.0"
cam_idealdelta "4.0"
cam_idealyaw "0"
cam_idealpitch "0"
cam_idealdist "150"
cam_idealdistright "0"
cam_idealdistup "0"
cam_collision "1"
c_maxpitch "90"
c_minpitch "0"
c_maxyaw "135"
c_minyaw "-135"
c_maxdistance "200"
c_mindistance "30"
c_orthowidth "100"
c_orthoheight "100"
joy_name "joystick"
joy_advanced "0"
joy_advaxisx "0"
joy_advaxisy "0"
joy_advaxisz "0"
joy_advaxisr "0"
joy_advaxisu "0"
joy_advaxisv "0"
joy_forwardthreshold "0.15"
joy_sidethreshold "0.15"
joy_pitchthreshold "0.15"
joy_yawthreshold "0.15"
joy_forwardsensitivity "-1"
joy_sidesensitivity "1"
joy_pitchsensitivity "1"
joy_yawsensitivity "-1"
joy_response_move "1"
joy_response_look "0"
joy_lowend "1"
joy_lowmap "1"
joy_accelscale "0.6"
joy_accelmax "1.0"
joy_autoaimdampenrange "0"
joy_autoaimdampen "0"
joy_diagonalpov "0"
joy_display_input "0"
joy_wingmanwarrior_turnhack "0"
joy_inverty "0"
joy_movement_stick "0"
joy_xcontroller_cfg_loaded "0"
lookspring "0"
lookstrafe "0"
joystick "0"
m_pitch "0.022"
m_filter "0"
sensitivity "10"
m_side "0.8"
m_yaw "0.022"
m_forward "1"
m_customaccel "0"
m_customaccel_scale "0.04"
m_customaccel_max "0"
m_customaccel_exponent "1"
m_mouseaccel1 "0"
m_mouseaccel2 "0"
m_mousespeed "1"
cl_mouselook "1"
cl_idealpitchscale "0.8"
net_scale "5"
net_graphpos "1"
net_graphsolid "1"
net_graphtext "1"
net_graphmsecs "400"
net_graphshowlatency "1"
net_graphshowinterp "1"
net_graph "0"
net_graphheight "64"
net_graphproportionalfont "1"
mat_software_aa_strength "0.000000"
mat_software_aa_quality "0"
mat_software_aa_edge_threshold "1.0"
mat_software_aa_blur_one_pixel_lines "0.5"
mat_software_aa_tap_offset "1.0"
mat_software_aa_strength_vgui "1.000000"
voice_modenable "1"
hud_fastswitch "0"
explosion_dlight "1"
cl_playerspraydisable "0"
muzzleflash_light "1"
overview_health "1"
overview_names "1"
overview_tracks "1"
overview_locked "1"
overview_alpha "1.0"
spec_scoreboard "0"
cl_disablehtmlmotd "0"
cl_playermodel "hostage_04"
cl_defaultweapon "weapon_physgun"
cl_autowepswitch "1"
cl_npc_speedmod_intime "0.25"
cl_npc_speedmod_outtime "1.5"
g_antlion_maxgibs "16"
hud_quickinfo "1"
hud_showemptyweaponslots "0"
fov_desired "75"
spawnmenu_icon_rollover "1"
spawnicon_fov "15"
spawnicon_fov_face "10"
spawnicon_dist "5"
spawnicon_eyeup "0"
spawnicon_eyeright "0"
spawnicon_zfar_face "100"
spawnicon_disablepreload "0"
myinfo_debug "0"
physgun_rotation_sensitivity "0.05"
vgui_message_dialog_modal "1"
commentary_firstrun "0"
scene_showfaceto "0"
ai_report_task_timings_on_limit "0"
ai_think_limit_label "0"
npc_height_adjust "1"
sv_pvsskipanimation "1"
ai_keepragdolls "1"
scene_showlook "0"
scene_showmoveto "0"
scene_showunlock "0"
commentary "0"
xbox_throttlebias "100"
xbox_throttlespoof "200"
xbox_autothrottle "1"
func_break_max_pieces "15"
suitvolume "0.25"
xc_uncrouch_on_jump "1"
option_duck_method "1"
sk_autoaim_mode "1"
sv_noclipaccelerate "5"
sv_noclipspeed "5"
sv_specaccelerate "5"
sv_specspeed "3"
sv_specnoclip "1"
sv_backspeed "0.6"
sv_skyname "militia_hdr"
sv_stickysprint "0"
xc_crouch_range "0.85"
xc_use_crouch_limiter "0"
g_test_new_antlion_jump "1"
g_antlion_cascade_push "1"
npc_citizen_auto_player_squad "1"
sv_maxplayers "8"
lua_networkvar_refreshtime "60"
physgun_limited "0"
sbox_noclip "0"
sbox_godmode "0"
sbox_plpldamage "0"
sbox_maxprops "7"
sbox_maxragdolls "0"
sbox_maxvehicles "0"
sbox_maxeffects "0"
sbox_maxballoons "0"
sbox_maxnpcs "0"
sbox_maxdynamite "0"
sbox_maxlamps "0"
sbox_maxlights "0"
sbox_maxwheels "0"
sbox_maxthrusters "0"
sbox_maxhoverballs "0"
sbox_maxbuttons "5"
sbox_maxemitters "0"
sbox_maxspawners "2"
sbox_maxturrets "0"
sbox_weapons "1"
bugreporter_uploadasync "0"
cl_cmdrate "30"
cl_updaterate "30"
closecaption "0"
skill "1"
net_maxroutable "1260"
cl_allowupload "1"
name "Patrick Star"
password ""
sv_unlockedchapters "19"
tv_nochat "0"
cl_showpluginmessages "1"
cl_timeout "45"
cl_logofile "materials/vgui/logos/spray.vtf"
cl_soundfile "sound/player/jingle.wav"
cl_forcepreload "0"
cl_allowdownload "1"
cl_downloadfilter "all"
con_enable "1"
r_eyemove "1"
r_eyeshift_x "0"
r_eyeshift_y "0"
r_eyeshift_z "0"
r_eyesize "0"
r_ambientboost "1"
r_ambientmin "0.3"
r_ambientfactor "5"
r_drawmodelstatsoverlaymin "0.1"
r_drawmodelstatsoverlaymax "1.5"
mp_decals "5000"
sv_logsdir "logs"
sv_logfile "1"
sv_logflush "0"
sv_logecho "1"
sv_log_onefile "0"
sv_logbans "0"
sv_voiceenable "1"
sv_forcepreload "0"
snd_legacy_surround "0"
snd_pitchquality "1"
volume "0.300000"
snd_musicvolume "0.310000"
snd_mixahead "0.1"
adsp_debug "0"
snd_ducktovolume "0.55"
snd_duckerattacktime "0.5"
snd_duckerreleasetime "2.5"
snd_duckerthreshold "0.15"
dsp_slow_cpu "0"
dsp_volume "1.0"
dsp_enhance_stereo "0"
voice_scale "0.290000"
voice_enable "1"
voice_forcemicrecord "1"
budget_bargraph_background_alpha "128"
budget_peaks_window "30"
budget_averages_window "30"
budget_show_peaks "1"
budget_show_averages "0"
budget_show_history "1"
budget_history_numsamplesvisible "100"
budget_history_range_ms "66.666666667"
budget_panel_bottom_of_history_fraction ".25"
budget_bargraph_range_ms "16.6666666667"
budget_background_alpha "128"
budget_panel_x "0"
budget_panel_y "50"
budget_panel_width "512"
budget_panel_height "384"
texture_budget_panel_x "0"
texture_budget_panel_y "450"
texture_budget_panel_width "512"
texture_budget_panel_height "284"
texture_budget_panel_bottom_of_history_fraction ".25"
texture_budget_background_alpha "128"
vprof_graphwidth "512"
vprof_graphheight "256"
vprof_verbose "1"
vprof_unaccounted_limit "0.3"
vprof_warningmsec "10"
mat_monitorgamma_tv_enabled "0"
mat_queue_mode "0"
mat_texture_list_content_path ""
joy_wingmanwarrior_centerhack "0"
joy_axisbutton_threshold "0.3"


And also config_default.cgg cause after resetting its still there.


unbindall
bind "TAB" "+showscores"
bind "ESCAPE" "cancelselect"
bind "SPACE" "+jump"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
bind "9" "slot9"
bind "0" "slot0"
bind "`" "toggleconsole"
bind "a" "+moveleft"
bind "c" "+menu_context"
bind "d" "+moveright"
bind "e" "+use"
bind "f" "impulse 100"
bind "g" "impulse 201"
bind "p" "impulse 101"
bind "q" "+menu"
bind "r" "+reload"
bind "s" "+back"
bind "u" "messagemode2"
bind "w" "+forward"
bind "y" "messagemode"
bind "z" "undo"
bind "x" "+voicerecord"
bind "ALT" "+walk"
bind "CTRL" "+duck"
bind "SHIFT" "+speed"
bind "F5" "jpeg"
bind "F6" "save quick"
bind "F9" "load quick"
bind "MWHEELDOWN" "invnext"
bind "MWHEELUP" "invprev"
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "MOUSE4" "phys_swap"
bind "PAUSE" "pause"
bind "F1" "gm_showhelp"
bind "F2" "gm_showteam"
bind "F3" "gm_showspare1"
bind "F4" "gm_showspare2"
bind "KP_HOME" "+gm_special 7"
bind "KP_UPARROW" "+gm_special 8"
bind "KP_PGUP" "+gm_special 9"
bind "KP_LEFTARROW" "+gm_special 4"
bind "KP_5" "+gm_special 5"
bind "KP_RIGHTARROW" "+gm_special 6"
bind "KP_END" "+gm_special 1"
bind "KP_DOWNARROW" "+gm_special 2"
bind "KP_PGDN" "+gm_special 3"
bind "KP_ENTER" "+gm_special 11"
bind "KP_INS" "+gm_special 0"
bind "KP_DEL" "+gm_special 10"
bind "KP_SLASH" "+gm_special 15"
bind "KP_MINUS" "+gm_special 13"
bind "KP_PLUS" "+gm_special 12"
bind "KP_MULTIPLY" 	"+gm_special 14"
cl_allowupload "1"
mp_decals "5000"
r_decals "5000"
bind "v" "noclip"
name "MingeBag"
sensitivity 10
cl_smooth "1"
spawnmenu_icon_precache "1"

are you sure this is only in gmod?

I’ve had the same problem with dying mice, they start double clicking and stuff.

Yeah pretty sure. I’ll try reinstalling it and just copying my addons. If the problem is still there it should be an addon causing it.

You tried deleting your LUA folder?

It’s gone after a fresh install

Get rid of faphack, maybe? I had problems with it when I tried it.

http://www.facepunch.com/showthread.php?822683-The-Help-and-Support-FAQ-(CHECK-HERE-BEFORE-POSTING-A-THREAD)

Your question is answered clearly in this thread. Check there first next time.

I released an update a few days ago that sorted that, even though I didn’t have the problem myself.