Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mod kept making errors so I re-installed it and I keep getting errors again. #98

Open
gmoduser38 opened this issue May 28, 2023 · 1 comment

Comments

@gmoduser38
Copy link

D3bot gives me these 2 errors, and they keep increasing.

[d3bot] lua/includes/util.lua:228: attempt to index local 'object' (a function value)
1. IsValid - lua/includes/util.lua:228
2. UpdateBotCmdFunction - addons/d3bot/lua/d3bot/sv_zs_bot_handler/handlers/undead_crow.lua:18
3. fn - addons/d3bot/lua/d3bot/sv_zs_bot_handler/handle.lua:31
4. unknown - lua/ulib/shared/hook.lua:109

[d3bot] lua/includes/util.lua:228: attempt to index local 'object' (a function value)
1. IsValid - lua/includes/util.lua:228
2. UpdateBotCmdFunction - addons/d3bot/lua/d3bot/sv_zs_bot_handler/handlers/undead_fallback.lua:30
3. fn - addons/d3bot/lua/d3bot/sv_zs_bot_handler/handle.lua:31
4. unknown - lua/ulib/shared/hook.lua:109

Zombie Survival Gamemode also gives me these 2 errors.

[Zombie Survival] gamemodes/zombiesurvival/gamemode/zombieclasses/zombie.lua:120: attempt to index local 'revive' (a function value)
1. CalcMainActivity - gamemodes/zombiesurvival/gamemode/zombieclasses/zombie.lua:120
2. unknown - gamemodes/zombiesurvival/gamemode/sh_animations.lua:55

[Zombie Survival] gamemodes/zombiesurvival/gamemode/zombieclasses/zombie.lua:159: attempt to index local 'revive' (a function value)
1. P_CallZombieFunction - gamemodes/zombiesurvival/gamemode/zombieclasses/zombie.lua:159
2. unknown - gamemodes/zombiesurvival/gamemode/sh_animations.lua:130

Did I do something wrong? I've tried on zs_villagehouse and other maps but the errors won't stop showing.

@Dadido3
Copy link
Owner

Dadido3 commented May 28, 2023

Which version of ZS are you using? What other addons do you have installed? Does ZS work without D3bot, can you test with other players playing as zombies?

The error is related to the "revive" status of zombies. There are some rules that have to be met in order to kill a zombie (headshot, or legshot, or specific damage type, or damage > 70, ...), otherwise zombies will ragdoll for some seconds and then get revived with a small amount of HP.

For some reason the player's revive variable is set to a function, instead of the revive status entity. I have no idea how that happens, D3bot doesn't even set this variable. Either it's some other addon, or the gamemode is broken, or GMod's newest update causes problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants