Zet0rz / nzombies

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

Tried to use a NULL CNavArea #696

Open Marty0McFly0 opened 3 years ago

Marty0McFly0 commented 3 years ago

I'm not sure if this gamemode is still being updated or not, but it seems like some recent gmod update has broken nzombies in a few ways. Most notably zombies wont properly follow navmeshes correctly anymore. On every fully working map that I know has had a working navmesh, the zombies will always get stuck. Maps that have worked before no longer do. And an error will flood the console saying:

NextBot [nz_zombie_walker] Error: addons/nzombies-master-workshop/gamemodes/nzombies/entities/entities/nz_zombiebase.lua:1070: Tried to use a NULL CNavArea!

Now I'm not sure if anyone else has been having this issue, but I hope somebody can confirm this is happening to them too. Every map that I tried to play on I know did not have any null navmesh areas anywhere so im not sure why this is happening.

Edit: They seem to usually error out on slopes or ramps or when trying to jump gaps.

ActuallyCoract commented 2 years ago

nz_zombiebase.zip Okay I've never touched LUA in my life but somehow I fixed this after some trial and error, just extract this in gamemodes>nzombies>entities>entities and replace. From what I have gathered the newest update of gmod requires npcs to check if the navmesh is valid before doing any navigation actions relating to the current or previous navmesh tile, I found out the creator of the navigation for nzombies (lolle) had to fix this in another gamemode so I attempted to adapt that fix to this and it magically worked. I don't know if you are still trying to play but I needed to share this with someone.