Garry's Mod

Garry's Mod

Killable Nextbots
 This topic has been pinned, so it's probably important
dedactedlife  [developer] 26 Apr, 2023 @ 3:34pm
Bug Reports
report bugs and nextbot incompabilities here.

read the description before reporting!!!!
< >
Showing 1-11 of 11 comments
NNinja1255 2 May, 2023 @ 9:14am 
[SCP:CB SNPCs] lua/autorun/cpt_scp_autorun.lua:95: attempt to index local 'killer' (a nil value)
1. fn - lua/autorun/cpt_scp_autorun.lua:95
2. Call - lua/ulib/shared/hook.lua:109
3. unknown - lua/autorun/server/nextbotgonnadiefrfr.lua:24
4. FireBullets - [C]:-1
5. ShootBullet - lua/weapons/weapon_doom3_base/shared.lua:312
6. StuckPrimaryAttack - lua/weapons/weapon_doom3_shotgun/shared.lua:32
7. unknown - lua/autorun/server/sv_playerunstuck.lua:183

Does this conflict with CPTBase SCP Containment Breach NPCs?
dedactedlife  [developer] 2 May, 2023 @ 9:53am 
cant fix/see today but that might not be a conflict but something on this addon’s end. i might be not checking the killer’s existence.
NNinja1255 2 May, 2023 @ 10:41am 
The SCP addon has this hook:
hook.Add("OnNPCKilled","CPTBase_SCP079_KillPoints",function(victim,inflictor,killer)
local canRun = false
local SCP = NULL
if killer.CPTBase_NPC then <-- error is found here (killer is nil)
if killer != victim then
for _,v in ipairs(ents.GetAll()) do
if v:IsNPC() && v:GetClass() == "npc_cpt_scp_079" then
canRun = true
SCP = v
break
end
end
if canRun then
if table.Count(SCP.tbl_LockedDoors) > 0 then
for _,v in ipairs(SCP.tbl_LockedDoors) do
if victim:GetPos():Distance(v:GetPos()) <= 450 then
SCP.ExperiencePoints = SCP.ExperiencePoints +15
break
end
end
end
end
end
end
end)

Your addon calls this:
hook.Call("OnNPCKilled", GAMEMODE, ent,damageinfo:GetAttacker())

so the SCP addon does not check to see if kliller is nil. also the addon's comments and discussion is disabled meaning the creator has a MASSIVE EGO and thinks that they aren't the issue.
idk, maybe find a workaround or just mark that addon as incompatible in the description.
Last edited by NNinja1255; 2 May, 2023 @ 10:47am
Holydrg 2 May, 2023 @ 11:12am 
So i found out that the reason why nextbots don't get killed is because of a mod called "CPTbase redux" which means anyone who has this mod gotta remove it for the nextbots being killable.
If you have any mods that require CPTbase redux, im sorry that you gotta remove them including the base for the mod to work.
dedactedlife  [developer] 2 May, 2023 @ 12:29pm 
thanks for reporting, i will take a look at that someday
NNinja1255 2 May, 2023 @ 1:10pm 
Lua Repair fixed this issue.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2403043112
Honestly I'm surprised it still works up to this day.

Probably still try to find a way to work out this issue though nonetheless
Last edited by NNinja1255; 2 May, 2023 @ 1:12pm
Nova 6 Jun, 2023 @ 12:30pm 
[[VJ] Return to Ravenholm SNPC's] lua/autorun/vj_cncr_autorun.lua:237: attempt to index local 'attacker' (a nil value)
1. v - lua/autorun/vj_cncr_autorun.lua:237
2. Call - lua/includes/modules/hook.lua:96
3. unknown - lua/autorun/server/nextbotgonnadiefrfr.lua:32
4. DispatchTraceAttack - [C]:-1
5. LeftClick - lua/weapons/gmod_tool/stools/drgbase_tool_damage.lua:52
6. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:226

i have return to ravenholm snpcs installed this is the error message
Baconexx28 27 Jun, 2023 @ 1:57am 
Help! The nextbot can't be killed. Can you report that?
dedactedlife  [developer] 27 Jun, 2023 @ 8:29am 
im currently no longer working on the mod because im not into gmod that much anymore
could you open the code and mark this mod as discontinued so others could build upon it?
dedactedlife  [developer] 17 Jan @ 7:38am 
i mean i can do that but the original not decompiled version of this addon is lost because my other pc broke

the best i can do is unpack my addon gma and put it in github or something idk if thats okay
< >
Showing 1-11 of 11 comments
Per page: 1530 50