Any type of Rope Constraint no longer spawns.
Poly180 opened this issue · 9 comments
You name it rope, elastic, slider, and any related constraint cannot even be spawned now because Adv Dupe 2 is having errors, here is a list of examples
Trying to spawn Rope:
[Advanced Duplicator 2] lua/includes/modules/constraint.lua:506: attempt to index local 'rope' (a nil value)
- oldFunc - lua/includes/modules/constraint.lua:506
- Rope - lua/advdupe2/sv_misc.lua:85
3. LeftClick - gamemodes/sandbox/entities/weapons/gmod_tool/stools/rope.lua:60
4. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:214
Trying to spawn Slider:
[Advanced Duplicator 2] lua/includes/modules/constraint.lua:735: attempt to index local 'rope' (a nil value)
- oldFunc - lua/includes/modules/constraint.lua:735
- Slider - lua/advdupe2/sv_misc.lua:85
3. RightClick - gamemodes/sandbox/entities/weapons/gmod_tool/stools/slider.lua:138
4. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:239
Trying to spawn Elastic:
[Advanced Duplicator 2] lua/includes/modules/constraint.lua:604: attempt to index local 'rope' (a nil value)
- oldFunc - lua/includes/modules/constraint.lua:604
- Elastic - lua/advdupe2/sv_misc.lua:85
3. LeftClick - gamemodes/sandbox/entities/weapons/gmod_tool/stools/elastic.lua:57
4. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:214
Might be the new color update that was added to ropes.
Precision Alignment Ropes (or related) constraints still work, but it's just the base game ones that are having an issue, so probably is. :)
Why's your stacktrace contain 'oldFunc' at the SetColor positions? Seems strange.
I don't know why all I know is this started happening after the June updates to Gmod.
Works fine on my server. I think you have an addon that broke
Well thanks, sorry for the inconvenience, I'll have to figure it out.
You can use PrintTable(debug.getinfo(FindMetaTable("Entity").SetColor))
to figure out which addon is overriding the function (hence oldFunc)
edit: assuming this is the function causing the error. thegrb mentioned a color function might be an issue so I just put that in there. just swap the function there for whichever you think might be doing it
Well the problem there is 'nil rope' so something is causing the keyframe_rope to not spawn as well.