Garry's Mod

Garry's Mod

Killable Nextbots
 此主题已被置顶,因此可能具有重要性
dedactedlife  [开发者] 2023 年 4 月 26 日 下午 3:34
Bug Reports
report bugs and nextbot incompabilities here.

read the description before reporting!!!!
< >
正在显示第 1 - 11 条,共 11 条留言
NNinja1255 2023 年 5 月 2 日 上午 9:14 
[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  [开发者] 2023 年 5 月 2 日 上午 9:53 
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 2023 年 5 月 2 日 上午 10:41 
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.
最后由 NNinja1255 编辑于; 2023 年 5 月 2 日 上午 10:47
Holydrg 2023 年 5 月 2 日 上午 11:12 
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  [开发者] 2023 年 5 月 2 日 下午 12:29 
thanks for reporting, i will take a look at that someday
NNinja1255 2023 年 5 月 2 日 下午 1:10 
Lua Repair fixed this issue.
https://psteamcommunity.yuanyoumao.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
最后由 NNinja1255 编辑于; 2023 年 5 月 2 日 下午 1:12
Nova 2023 年 6 月 6 日 下午 12:30 
[[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 2023 年 6 月 27 日 上午 1:57 
Help! The nextbot can't be killed. Can you report that?
dedactedlife  [开发者] 2023 年 6 月 27 日 上午 8:29 
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  [开发者] 1 月 17 日 上午 7:38 
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
< >
正在显示第 1 - 11 条,共 11 条留言
每页显示数: 1530 50