nZombies-Time / nZombies-Rezzurrection

An updated version of nZombies 1.0 for Garry's Mod
38 stars 51 forks source link

Wallbuys broken #14

Open ghost opened 3 years ago

ghost commented 3 years ago

wall buys have no outer ring and lag the game

[nzombies-rezzurrection-master] addons/nzombies-rezzurrection-master/gamemodes/nzombies/entities/entities/wall_buys/shared.lua:86: bad argument #1 to 'SetMaterial' (string expected, got userdata)

  1. SetMaterial - [C]:-1
    1. RecalculateModelOutlines - addons/nzombies-rezzurrection-master/gamemodes/nzombies/entities/entities/wall_buys/shared.lua:86
    2. Draw - addons/nzombies-rezzurrection-master/gamemodes/nzombies/entities/entities/wall_buys/shared.lua:316
      1. unknown - gamemodes/base/entities/entities/base_anim.lua:49 (x392)

pls fix

Lewin225 commented 3 years ago

Reading the gmod offical discord SetMaterial wasn't ever supposed to accept IMaterial, A change was on the beta branch (Rolling out right now it seems) that removes the silent failing that setmaterial used to do when passed an IMaterial

Just doing SetMaterial("chalk.png") works

Rubat @ Gmod Discord 19/11/2020
@mcNuggets it doesnt work, thats the whole point. SetMaterial never accepted Imaterial objects, it would've just silently fail if done so before, so what's the point of "fixing it" to be broken again?