Zet0rz / nzombies

A GM13 Nazi Zombies style (WIP) gamemode
GNU General Public License v3.0
73 stars 78 forks source link

Error with Setmaterial on wall weapons. #700

Closed ValkyrWarframe closed 3 years ago

ValkyrWarframe commented 3 years ago

I've been having a lot of issues with the material of wall weapons not functioning properly as of the latest GMod patch.

Full error message is:
[nzombies-master-workshop] addons/nzombies-master-workshop/gamemodes/nzombies/entities/entities/wall_buys/shared.lua:85: bad argument #1 to 'SetMaterial' (string expected, got userdata)
  1. SetMaterial - [C]:-1
   2. RecalculateModelOutlines - addons/nzombies-master-workshop/gamemodes/nzombies/entities/entities/wall_buys/shared.lua:85
    3. Draw - addons/nzombies-master-workshop/gamemodes/nzombies/entities/entities/wall_buys/shared.lua:315
     4. unknown - gamemodes/base/entities/entities/base_anim.lua:49

I have no idea how to code or how lua works so is there any solution to this? Weapons on walls don't render anymore.

Lewin225 commented 3 years ago

Open addons/nzombies-master-workshop/gamemodes/nzombies/entities/entities/wall_buys/shared.lua

Find and replace :SetMaterial(chalkmaterial)

With :SetMaterial("chalk.png")

ValkyrWarframe commented 3 years ago

Open addons/nzombies-master-workshop/gamemodes/nzombies/entities/entities/wall_buys/shared.lua

Find and replace :SetMaterial(chalkmaterial)

With :SetMaterial("chalk.png")

Thank you