Zet0rz / nzombies

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

Nagging Starting Weapon Bug #661

Closed CruntDUCKY closed 5 years ago

CruntDUCKY commented 6 years ago

It's not a big issue, but still could be fixed.

If you disable a gun addon that was used as a starting weapon for a config, and then you load that config, a missing addon menu will show up and will allow you to replace the missing weapon. BUUUTTTT, if you are lazy like me and exit the menu without changing anything, the starting weapon becomes a nil value and the toolgun gets fucked up. When attempting to change the starting weapon after, it shows this error

[ERROR] addons/nzombies-master-workshop/gamemodes/nzombies/gamemode/tools/sh_tools_settings.lua:61: attempt to index field 'BaseStartingWeapons' (a nil value)

  1. interface - addons/nzombies-master-workshop/gamemodes/nzombies/gamemode/tools/sh_tools_settings.lua:61
    1. RebuildToolInterface - addons/nzombies-master-workshop/gamemodes/nzombies/gamemode/q_menu/cl_menu.lua:598
    2. DoClick - addons/nzombies-master-workshop/gamemodes/nzombies/gamemode/q_menu/cl_menu.lua:666
      1. unknown - lua/vgui/dlabel.lua:232

This is what it looks like 20180705221223_1 (notice how I didn't select map settings)

This wouldn't be a big issue, but it gets annoying the more I encounter it and have to reload the config to fix it because I'M LAZY 2018.05.28plsfixthx

CruntDUCKY commented 5 years ago

why did I open this?