ZionDevelopers / playx

In-game Internet (YouTube, Twitch, SoundCloud, mp4 and etc.) media player for Garry's Mod
http://steamcommunity.com/sharedfiles/filedetails/?id=106516163
Other
18 stars 14 forks source link

lua error '__mul' (number expected, got nil) when spawning player #100

Closed X-Coder closed 7 years ago

X-Coder commented 7 years ago

Hi, recently this error shows up when I spawn the main player. Maybe caused by the latest October gmod update?

[PlayX] lua/entities/gmod_playx/cl_init.lua:258: bad argument #2 to '__mul' (number expected, got nil)

  1. __mul - [C]:-1
  2. GetProjectorTrace - lua/entities/gmod_playx/cl_init.lua:258
  3. ResetRenderBounds - lua/entities/gmod_playx/cl_init.lua:268
  4. UpdateScreenBounds - lua/entities/gmod_playx/cl_init.lua:118
  5. unknown - lua/entities/gmod_playx_repeater/cl_init.lua:33
juliocoliveira commented 7 years ago

Indeed is caused by the last GMOD update as always Garry keeps breaking our addons. Well the problem is only to screens / monitors, You still can use the projectors. I'll take a look to the issue. Thanks for reporting.

X-Coder commented 7 years ago

Thank you for fixing this so fast. This fixed the error on the screens, but now the projectors are spawning the projection on wrong angle.

I think I have a solution, I will create a patch in a few minutes when I'm finished testing.