nZombies-Time / nZombies-Rezzurrection

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

Global nzRound (a nil value) #18

Open kevinhenschen opened 3 years ago

kevinhenschen commented 3 years ago

When i launch my map with nZombies-Rezzurection gamemode i have this error :

[nzombies_rezzurrection_master] addons/nzombies_rezzurrection_master/gamemodes/nzombies/gamemode/config/sh_constructor.lua:1133: attempt to index global 'nzRound' (a nil value)

  1. unknown - addons/nzombies_rezzurrection_master/gamemodes/nzombies/gamemode/config/sh_constructor.lua:1133
    1. include - [C]:-1
    2. AutoInclude - addons/nzombies_rezzurrection_master/gamemodes/nzombies/gamemode/loader.lua:36
      1. unknown - addons/nzombies_rezzurrection_master/gamemodes/nzombies/gamemode/loader.lua:58
      2. include - [C]:-1
      3. unknown - addons/nzombies_rezzurrection_master/gamemodes/nzombies/gamemode/init.lua:14

Any solutions ? Thank 👍

rezaniofficial commented 3 years ago

i have this same problem and none of my maps work cause of it

rezaniofficial commented 3 years ago

@Ethorbit please help fix this (or anyone who can help.)

Ethorbit commented 3 years ago

@Ethorbit please help fix this (or anyone who can help.)

It's not my gamemode or code but you guys can try moving the entire if SERVER then code block from config/sh_constructor.lua at line 1095 to round/sh_constructor.lua which is where nzRound is defined at

let me know if it fixes the error

rezaniofficial commented 3 years ago

@Ethorbit so it did not work and made it so i am unable to load a config or really do anything. image

rezaniofficial commented 3 years ago

it is also giving me this image which results in image

rezaniofficial commented 3 years ago

it says this image is making problems @Ethorbit that is in sv_round