Garry's Mod

Garry's Mod

Star Wars Lightsabers
此主题已被锁定
Lee 2015 年 11 月 22 日 下午 12:52
CalcView
Sir, you are incorrectly calling CalcView. I get a bunch of errors from your addon.
[ERROR] addons/3d escape/lua/autorun/client/cl_3dmenu.lua:547: attempt to compare nil with number
1. func - addons/3d escape/lua/autorun/client/cl_3dmenu.lua:547
2. unknown - addons/swep_star-wars-lightsabers/lua/weapons/weapon_lightsaber.lua:1392
< >
正在显示第 1 - 7 条,共 7 条留言
Rubat  [开发者] 2015 年 11 月 22 日 下午 12:56 
I do not provide support for oudated, extracted or modified versions of my mods.
Lee 2015 年 11 月 22 日 下午 12:59 
I did not edit it, it's not out of date, and I only extracted it to sheep what the error was.
Lee 2015 年 11 月 22 日 下午 1:00 
See not sheep lmao.
UselessGhost 2015 年 11 月 22 日 下午 1:03 
I'm gonna chime in here because that stacktrace is happening in my addon. The current version of the lightsabers is still not calling CalcView hooks that use entities or panels as their identifiers properly. Whatever update you seem to think fixed this issue never wound up published on Workshop, the latest update that can be seen is one from October 15th.
UselessGhost 2015 年 11 月 22 日 下午 1:18 
Specifically, line 1392 of weapon_lightsaber can be replaced with this:
if ( isstring( str ) ) then if ( func && func( LocalPlayer(), EyePos(), EyeAngles(), 90, 4, 16000 ) != nil ) then clr = Color( 255, 128, 128 ) end else if ( func && func( str, LocalPlayer(), EyePos(), EyeAngles(), 90, 4, 16000 ) != nil ) then clr = Color( 255, 128, 128 ) end end
To fix this issue.
Rubat  [开发者] 2015 年 11 月 28 日 上午 6:16 
Ok, you can blame Steam for not updating the mod properly. I thought I already had uploaded the fix, but apparently not.
Rubat  [开发者] 2015 年 11 月 28 日 上午 6:33 
Fixed.
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50