Garry's Mod

Garry's Mod

Chuck's Weaponry 2.0
 This topic has been pinned, so it's probably important
sрy  [developer] Nov 30, 2014 @ 10:40am
Experiencing a Lua error that the CW 2.0 SWEPs cause? Post here.
Post the full Lua error output here that you get in the console. If you have a pirated version - don't post here.

COMMON PROBLEMS:
1. can't open customization menu - uninstall other addons, both Workshop ones and non .gma addons, some hook into PlayerBindPress and return variables incorrectly
2. crash on start - uninstall other addons, delete CW 2.0 .gma files (every single one you find) and let workshop redownload them, both Workshop ones and non .gma addons
3. can't attach X attachment (most often the AN/PEQ-15) - bind 1 slot1; bind 2 slot2; bind 3 slot3; etc (for AN/PEQ-15 - bind 7 slot7)

Bug reports without providing:
1. the weapon that was used (official or community made)
2. list of addons, especially weapon packs
3. steps to reproduce
4. Lua errors (if any)

will be ignored.

Errors that occur with community made weapons are not my concern. Take it up with the community, not me.
Last edited by sрy; Jun 24, 2016 @ 12:09pm
< >
Showing 106-120 of 284 comments
Master Gau May 19, 2015 @ 2:37pm 
Originally posted by Spy:
stop using "life mod"

ok ill try and see if this works! Thanks.
REDCELL May 21, 2015 @ 8:13pm 
Originally posted by Nelson01023:
Originally posted by Kcthewwechamp:
Holographic sight and acog sight is messed up liked the old version CW!
uninstall M9K
Which M9K does really cause this?
MDK May 22, 2015 @ 2:03pm 
Any fix for the AN/PEQ LUA error on page 1? >.>
KDawg Jun 4, 2015 @ 4:38pm 
[ERROR] lua/weapons/cw_base/cl_model.lua:1330: bad argument #2 to 'GetBonePosition' (number expected, got no value)
1. GetBonePosition - [C]:-1
2. unknown - lua/weapons/cw_base/cl_model.lua:1330

This is the only error I get while using the weapons. I am going to assume its because of certain playermodels with weird bone names or something of that matter. Is there any solution to this other than changing the playermodels? I tried to recreate the error using the same models my players were using except I had no progress in reproducing it myself. This is the one of the only errors I get in my clientside errors file when my server crashes so I have no where else to turn. Any information would be great!
Azrael Jun 20, 2015 @ 1:43am 
[cw20] lua/cw/shared/menutabs/customization.lua:148: CW 2.0 - attempt to display non-existent weapon attachment 'md_deltasight' in category index '1' of weapon 'cw_ragingbull' AKA 'Taurus Raging Bull'
1. error - [C]:-1
2. drawFunc - lua/cw/shared/menutabs/customization.lua:148
3. draw - lua/cw/shared/cw_interactionmenuhandler.lua:53
4. drawInteractionMenu - lua/weapons/cw_base/cl_model.lua:903
5. _drawViewModel - lua/weapons/cw_base/cl_model.lua:691
6. drawViewModel - lua/weapons/cw_base/cl_model.lua:545
7. v - lua/weapons/cw_base/cl_hooks.lua:34
8. unknown - lua/includes/modules/hook.lua:84

8Z Jul 30, 2015 @ 12:42pm 
Error model, and shows following error when firing.

[cw20] lua/weapons/cw_base/cl_model.lua:133: bad argument #2 to 'ManipulateBonePosition' (number expected, got nil)
1. ManipulateBonePosition - [C]:-1
2. offsetBoltBone - lua/weapons/cw_base/cl_model.lua:133
3. simulateRecoil - lua/weapons/cw_base/shared.lua:1171
4. Function - lua/weapons/cw_base/shared.lua:1646
5. unknown - lua/includes/modules/usermessage.lua:87

This only happens to AK-74, oddly. Others work perfectly fine, except some sights are errors too. What the heck...?
Nopeful Aug 9, 2015 @ 4:51pm 
[cw20] lua/weapons/cw_base/cl_model.lua:1092: attempt to index field 'SprintViewNormals' (a nil value)
1. performViewmodelMovement - lua/weapons/cw_base/cl_model.lua:1092
2. v - lua/weapons/cw_base/cl_hooks.lua:33
3. unknown - lua/includes/modules/hook.lua:84

This happens whenever I sprint regardless of it being a Community or Official weapon pack. :steamsalty:
[cw20] lua/weapons/cw_base/cl_model.lua:1092: attempt to index field 'SprintViewNormals' (a nil value)
1. performViewmodelMovement - lua/weapons/cw_base/cl_model.lua:1092
2. v - lua/weapons/cw_base/cl_hooks.lua:33
3. unknown - lua/includes/modules/hook.lua:84

Whenever I run with a CW weapon, it disappears. Some weapons it doesn't though.
sрy  [developer] Aug 10, 2015 @ 12:41pm 
@Nopeful Engineer, HybridMG you can thank the community weapon makers for distributing old copies of the weapon base and fu­cking over literally every update I ever put out for this

and even though I made an entire ♥♥♥♥♥♥♥♥ system to avoid bull­s­hit like this, nobody gave a F­UCK and instead just copy-paste the base all the fuc­king time

seriously, fu­ck those ret­ards

the only fix there is: disable the community made weapons which redistribute the weapon base and then tell them to quit being stupid and remove the base files from their addons

yes, that's the only fix until those morons realize that what they're doing is dumb and remove their copies of cw_base out of there
Last edited by sрy; Aug 10, 2015 @ 12:45pm
Hrulia_rus Aug 11, 2015 @ 2:58pm 
http://steamcommunity.com/sharedfiles/filedetails/?id=498243120

Happens on all of the cw 2.0 weapons

No other addons besides this and the extra one

Press c then F2 and this happens

[cw20] lua/cw/client/cw_statdisplay.lua:91: attempt to index local 'wep' (a nil value)
1. draw - lua/cw/client/cw_statdisplay.lua:91
2. drawFunc - lua/cw/shared/menutabs/weaponstats.lua:35
3. draw - lua/cw/shared/cw_interactionmenuhandler.lua:59
4. drawInteractionMenu - lua/weapons/cw_base/cl_model.lua:927
5. _drawViewModel - lua/weapons/cw_base/cl_model.lua:703
6. drawViewModel - lua/weapons/cw_base/cl_model.lua:557
7. v - lua/weapons/cw_base/cl_hooks.lua:34
8. unknown - lua/includes/modules/hook.lua:84
Riggi Aug 18, 2015 @ 6:08pm 
Same issue with ez wallh4x like in previous posts, however after reading them all, it's a different error and only occurs with one weapon.

The MR96: after applying an attachment and attempting to open the attachment customization menu (F4), you can see through walls and the console is spammed with this error:
[ERROR] 1. unknown - [C]:-1 Error in hook PostDrawViewModel: addons/customizable weaponry/lua/cw/shared/cw_sight_position_adjustment.lua:58: attempt to index field 'AttachmentModelsVM' (a nil value) stack traceback: addons/customizable weaponry/lua/cw/shared/cw_sight_position_adjustment.lua:58: in function 'canSetAttachment' addons/customizable weaponry/lua/cw/shared/cw_sight_position_adjustment.lua:174: in function 'draw' addons/customizable weaponry/lua/cw/shared/menutabs/sight_adjustment.lua:42: in function 'drawFunc' addons/customizable weaponry/lua/cw/shared/cw_interactionmenuhandler.lua:59: in function 'draw' addons/customizable weaponry/lua/weapons/cw_base/cl_model.lua:927: in function 'drawInteractionMenu' addons/customizable weaponry/lua/weapons/cw_base/cl_model.lua:703: in function '_drawViewModel' addons/customizable weaponry/lua/weapons/cw_base/cl_model.lua:557: in function 'drawViewModel' addons/customizable weaponry/lua/weapons/cw_base/cl_hooks.lua:34: in function 'fn' addons/ulib/lua/ulib/shared/hook.lua:179: in function <addons/ulib/lua/ulib/shared/hook.lua:162> [C]: in function '‭‬‌‎'
Any assistance would be appreciated.
I was unable to reproduce this with any weapon other than the MR96, and the only two weapon addons in use are CW 2.0 and ECW 2.0.


Thanks in advance.

EDIT: P.S. - is the fact that M203s have a grenade in them when you first attach them a bug or intended?
Last edited by Riggi; Aug 18, 2015 @ 7:55pm
Loyalists™ Aug 23, 2015 @ 7:59am 
[Customizable Weaponry 2.0] lua/cw/shared/cw_callbacks.lua:33: attempt to call local 'v' (a string value)
1. processCategory - lua/cw/shared/cw_callbacks.lua:33
2. getReserveAmmoText - lua/weapons/cw_base/cl_model.lua:722
3. drawCustomHUD - lua/weapons/cw_base/cl_hud.lua:579
4. unknown - lua/weapons/cw_base/cl_hud.lua:455

This fatal error happened when i spawn any CW 2.0 weapon.

http://steamcommunity.com/sharedfiles/filedetails/?id=504994240
sрy  [developer] Aug 23, 2015 @ 8:33am 
you have an old version of the mag system
Dr. Flat Soda Aug 29, 2015 @ 10:26pm 
All of the sudden out of nowhere, I am starting to crash whenever I spawn any CW 2.0 weapon. Community Made or Default. The Console says nothing and I usually get a Lua Panic error when it crashes but sometimes I just get a simple hl2.exe has stopped working. Honestly getting impatient and last addons I downloaded was just some L4D maps ported to GMod. This only happens on CW 2.0. FA:S 2.0 weapons don't crash either and they seem to use the same base but CW 2.0 seems to be modified. I have a screenshot of the last error I had with this. Please I am honestly at a loss here and I completely doubt Maps do something like this as no matter what map it is, it still happens.

http://prntscr.com/8ahsi8
olivervantil Sep 5, 2015 @ 11:00am 
Im trying to setup cw on my mp server, but whenever I equip a cw weapon this happens : SWEP (cw_ump45) is derived from non existant SWEP (cw_base) - Expect errors!

< >
Showing 106-120 of 284 comments
Per page: 1530 50