Todo: write something interesting
dragoteryx / drgbase Goto Github PK
View Code? Open in Web Editor NEWA NextBot base for Garry's Mod, with other stuff.
A NextBot base for Garry's Mod, with other stuff.
Todo: write something interesting
nextbots keeps chasing when its into ignore and its not working
when you run from npc and you fly away from the map or get into the zone without navmesh, the game starts to lag a lot.
Every time I control an NPC, the character will be stuck at the NPC's waist and move with it. Is this normal
There is barely any documentation making it a bit hard to make NPCs. Please add more documentation.
I want to make nextbot with no collisions, so it still can be on surface, but player or other entities cant collide with it. How do i do this?
my game crashes
To replicate, start a listen server, spawn a gun-using bot (like npc_drg_testhuman), and let it shoot. This occurs for both HL2 weapons and ones based off drgbase_weapon. This does not occur in singleplayer, where the sound plays normally.
When i possess a npc my playermodel follows it and floats on it, i dont have any camera/ third person mods, please help its annoying
When spawning a drgbase nextbot on a map with no navmesh, it says that you can set this concommand to 0 to disable the warning.
But it appears to be missing.
Console:
drgbase_navmesh_error 0
Unknown command "drgbase_navmesh_error"
Hello. Apologies if this has an obvious fix listed somewhere, but I haven't found anything of the sort and this error is slightly annoying. It appears whenever I possess a nextbot that has a music option, if I am in a multiplayer server, the music does not play. For example, let's say I possessed a nextbot and pressed the M key to begin playing music. This works fine in singleplayer, but it does not seem to work in any multiplayer servers, even if I'm hosting it and there aren't any players in said server. Once again, apologies if this has an obvious fix, but suddenly all of the nextbots I have installed that make use of music no longer do so, and I would appreciate any assistance I could get. Thanks.
Uhhh soo, i was going to play gm_construct, then i got the surprise, the sky was black, no sun, the hints doenst appear and cant open context menu...Help!
I tried to disable all the mods I have except Dr G Base but it still didn't show up 3:
I did read somewhere that support was axed for DrGBase a while ago(sometime before July 11th), so is there anything I can do on my end in the way of convars to reduce the CPU impact on the server?
I am currently using Black Mesa Nextbots and Half Life Remaster Nextbots.
Identifier ------------------------------- Impact Execs Mean t /f Max time
Entity "drgbase_nextbot", function ENT.Han 13314% 11 16179.39us 2336120us
in "lua/entities/drgbase_nextbot/shared.lua" (lines 461 to 489),
found in Workshop addon « DrGBase | Nextbot Base »
Entity "drgbase_nextbot", function ENT.Att 13314% 11 16178.81us 2336017us
in "lua/entities/drgbase_nextbot/shared.lua" (lines 491 to 531),
found in Workshop addon « DrGBase | Nextbot Base »
Entity "npc_drg_blackmesa_knockouthoundeye 13314% 11 16178.67us 2335990us
in "lua/entities/npc_drg_blackmesa_knockouthoundeye_mdcversion.lua" (lines 185 to 188),
found in Workshop addon « [DrGBase] Black Mesa Nextbot's Pack »
Entity "drgbase_nextbot", function ENT.Pla 13314% 11 16178.32us 2335925us
in "lua/entities/drgbase_nextbot/animations.lua" (lines 233 to 272),
found in Workshop addon « DrGBase | Nextbot Base »
Entity "drgbase_nextbot", function ENT.Pla 13314% 11 16178.25us 2335911us
in "lua/entities/drgbase_nextbot/animations.lua" (lines 191 to 223),
found in Workshop addon « DrGBase | Nextbot Base »
Entity "drgbase_nextbot", function ENT.Yie 577.38% 521 33230.94us 183705us
in "lua/entities/drgbase_nextbot/shared.lua" (lines 355 to 380),
found in Workshop addon « DrGBase | Nextbot Base »
Timer "chemical_damage_think" 23.97% 26 68.859us 12376.5us
in "lua/autorun/server/gc_exposure.lua" (lines 16 to 1150),
found in Workshop addon « GChem - Chemical Warfare »
Entity "drgbase_nextbot", function ENT.Thi 19.50% 17270 3379.728us 9353.93us
in "lua/entities/drgbase_nextbot/shared.lua" (lines 233 to 309),
found in Workshop addon « DrGBase | Nextbot Base »
Timer "VC_VulnerabilityFix" 14.49% 2 3.201us 2874.52us
in "lua/gmodadminsuite/sv_database.lua" (lines 377 to 381),
found in Workshop addon « GmodAdminSuite »
Entity "drgbase_nextbot", function ENT.Tim 09.79% 21901 1696.676us 7143.53us
in "lua/drgbase/entity_helpers.lua" (lines 41 to 43),
found in Workshop addon « DrGBase | Nextbot Base »
Entity "drgbase_nextbot", function ENT._Ha 08.17% 17270 1416.375us 7148.75us
in "lua/entities/drgbase_nextbot/movements.lua" (lines 112 to 117),
found in Workshop addon « DrGBase | Nextbot Base »
Timer timer.Simple( 0.1, function: 0xedb4d 07.02% 1 0.775us 1216.12us
in "lua/drgbase/modules/timer.lua" (lines 3 to 5),
found in Workshop addon « DrGBase | Nextbot Base »
Timer "UTimeTimer" 06.34% 1 0.701us 1099.52us
in "addons/utime-master/lua/autorun/sv_utime.lua" (lines 39 to 47),
not found in Workshop addons
Event "Think", hook "simf_swimmode_" 04.97% 1569 861.469us 13414.4us
in "lua/autorun/simf_floatmode.lua" (lines 3 to 49),
found in Workshop addon « [simfphys] Float Base »
Entity "drgbase_nextbot", function ENT.Upd 04.91% 281 152.566us 8491.99us
in "lua/entities/drgbase_nextbot/ai.lua" (lines 96 to 99),
found in Workshop addon « DrGBase | Nextbot Base »```
[DrGBase | Nextbot Base] lua/entities/drgbase_nextbot/relationships.lua:689: attempt to call method 'DrG_SetRelationship' (a nil value)
Here's the addon that this conflicts with
https://steamcommunity.com/sharedfiles/filedetails/?id=2148063174
I just ran a local multiplayer session and spawned a drg npc, and an npc from this other base.
It looks like DRG is assuming that all nextbots are from DRG, which these guys aren't
Hope this is fixable! thanks!
I don't know exactly what github is and how it works so please forgive me if I make mistakes but recently DrGBase Bots have been acting up. It only applies for ones with jump scares though. It's happened to me before where I tried to Disable then Re-enable the mod and it fixed it. However doing so now is wasted energy. I have tried restarting Garry's Mod, uninstalling DrGBase then reinstalling it. I'm not sure if it's a problem with the base as a whole or the NPC's individually. The reoccurring theme of them all glitching makes it seem like a base problem. On the other hand attempts to restart the main addon in some way have failed, making it look like a problem with NPC's individually. I tried looking deeper into it and did find an error code stating every time I used one of the NPC's with a jump scare that I used a "Null enitity". So my hypothesis is that some sort of error is causing the code to be improperly ran resulting in the "jump scare entity" disappearing . I tried searching for links to my addons but only found the somewhat frequent use of the term "Devplat" upon which the only association I could find is with the "Long Devplat Revolver" Addon, however, when I installed the mod, there were no issues that I found, however if I want to fix this error, I know that some mods may need to be uninstalled.
To replicate: Spawn a NPC with a gun (like npc_drg_testhuman), possess it, and right click. The following error will occur:
NextBot [9][npc_drg_testhuman] Error: addons/drgbase/lua/entities/drgbase_nextbot/weapons.lua:485: attempt to index global 'wep' (a nil value)
This seems to happen both on HL2 weapons and weapons based off drgbase_weapon.
To replicate, spawn any bot (npc_drg_testhuman suffices) and watch it shoot. The bullet origin seems to be the eye, instead of the gun it is holding.
If Possible, I'd like to suggest the ability for players to have DRGbase NPCs that are friendly to follow the player when they press the interact button on them (e.g on +use, the NPC follows the player that interacted with them, provided they're of the same faction.)
Desc: When I spawn in the NPC's they will chase like normal until they kill me when, first, they don't give a jump scare for some reason, secondly, they get stuck on my dead ragdoll and if I try to drag the ragdoll away with the physics gun, the NPC pulls it back and does not chase me and when I get close to it, it doesn't even kill me, and at this point I have tried everything. I have tried downloading and reinstalling the mod, I have tried uninstalling my Ragdoll Mod, I have also tried at least 5 different maps to see if maybe it was the map each one with varying sizes and shapes. I will continue to search for the source of the problem, but I may need some assistance from one of the developers
Bro Why Cant i see drgbase
i downloaded vjbase and every thing but no work i think its broken
With this error i cant do nothing. i cant walk, cant open context menu, sound is repeating, and npcs are like statues
[ERROR] addons/drgbase-nextbot-base/lua/drgbase/meta/player.lua:8: attempt to call method 'GetNW2Entity' (a nil value)
I can't use the NPC Control addon to change the health values of the nextbots, so I want to how I have to do it.
Looking to keep the pipeline for NPC creation as simple as the NPCs im trying to do. I have a functional standard Rakghoul playermodel. Id like for it to use the same animations already available on the HL2 Fast zombie. Without a recompile am I able to force the playermodel to use the zombie animations while as an npc? Is there a template for this workflow?
My end goal is for me to have a template for what should essentially be a hl2 fast zombie with a rakghoul model and sounds instead. Doesnt need to have any extra functionality or w/.
If i use a ForcePower from the WiltOS Lightsaber Addon on a NPC (Nextbot) from the DRG Base this error comes to the player. (Everyone)
[wos-sentinel-prye] addons/wos-sentinel-prye/lua/wos/advswl/lightsaber/core/cl_hud.lua:646: attempt to call method 'Name' (a nil value)
Hello John
When i spawn animal from this mod nextbot just freeze with this issue
NextBot [158][drg_roach_des_penetrator] Error: lua/entities/drg_roach_ds1_base.lua:392: attempt to call method 'GetActiveWeapon' (a nil value)
This addon[Animal] very important for my server, like and DRG
P.S On Dark Souls 1 Players all fine.
sry for music, i forgot :3
When I open the game an hit (q) to open the menu the mod not appear there is a version mod can work with it? Please faster
NPC's won't have chase audio when playing on a dedicated server, but when in Singleplayer mode, the audio works just fine.
I have tried to add support for them with this method to no avail.
for a, b in pairs(list.Get("DrGBaseNextbots")) do
SpawnMenu.npcs[n] = a
n = n + 1
end
I'm thinking this was by design, but on line 115 in weapons.lua, you are overriding the NPCs variables for range config. It was incredibly annoying when I was making nextbots with weapons since the range was never being changed since your weapon range checks were overwriting it. My suggestion is just to remove code after the last else statement.
i cant possess entities even though im using the right tool (i dont know how this happened i could possess entities before)
Hey there
every time I spawn a nextbot it doesn't move or works and I have this problem with every nextbot
here is the error:
[ERROR] lua/entities/drgbase_nextbot/locomotion.lua:100: attempt to call method 'GetNextBot' (a nil value)
and the drgbase menu doesn't show up
here is the error for menu error:
[ERROR] lua/drgbase/spawnmenu.lua:15: attempt to call method 'EnableSearch' (a nil value)
do i put the drgbase lua code? in autorun,drgbase etc
Can you add a new functions like "IsOnMeleeAttack" and "IsOnRangeAttack" which return "true" and "false" suitably?
why does my game crash if there is a drg nextbot in it
why are bots drgbase bots ignoring me
Title is self-explanatory. Just set damage position do the projectile's pos.
Please.
It turns out that when I put an NPC (from Resident Evil or CoD Zombies) it turns out that when they want to chase me they get stuck in one place and never get out of that spot.
All this happens when they want to climb a wall to overcome an obstacle but they stay there jumping and never end up moving from that same place they jump.
Another thing that happens is that when I put maps where it is not open world (that is, if it is a map where there are structures or buildings or if it is a map that is inside a house or anything, it turns out that some NPC nextboot jump and leave the map: as if they went through the wall and disappear).
the co developer : Roach , told me that I should activate a command "drgbase_ia_climbing 0" but not only I could never find it but I get in the console that it does not exist .
I would love if you could help me , because I can not play with any NPC of DRGBASE if it is not open map and that is something boring because I really like to play with them but they have these flaws .
Thank you very much .
Atte : Mielsen Reiss
the title should explain it all, when i change the nextbot's speed to something faster the possession keybinds dont work
there are no errors in the console
heres my code
if not DrGBase then return end -- return if DrGBase isn't installed
ENT.Base = "drgbase_nextbot_sprite" -- DO NOT TOUCH (obviously)
-- Misc --
ENT.PrintName = "Peppino Spaghetti"
ENT.Category = "Pizza Tower"
ENT.CollisionBounds = Vector(10, 10, 100)
-- AI --
ENT.RangeAttackRange = 100
ENT.MeleeAttackRange = 0
ENT.ReachEnemyRange = 100
ENT.AvoidEnemyRange = 0
-- Stats --
ENT.WalkSpeed = 700
ENT.RunSpeed = 700
-- Animations --
ENT.SpriteFolder = "peppino/pep"
ENT.FramesPerSecond = 15
ENT.WalkAnimation = "run"
ENT.WalkAnimRate = 0.5
ENT.RunAnimation = "run"
ENT.IdleAnimation = "idle"
ENT.JumpAnimation = "run"
-- Climbing --
ENT.ClimbLedges = true
ENT.ClimbProps = true
ENT.ClimbLadders = true
ENT.ClimbLaddersUp = true
ENT.ClimbLaddersDown = true
ENT.ClimbUpAnimation = "run"
ENT.ClimbDownAnimation = "run"
ENT.ClimbAnimRate = 0.5
ENT.ClimbSpeed = 700
ENT.ClimbLedgesMaxHeight = math.huge
ENT.ClimbLedgesMinHeight = 0
ENT.LedgeDetectionDistance = math.huge
-- Detection --
ENT.EyeOffset = Vector(0, 0, 30)
-- Possession --
ENT.PossessionEnabled = true
ENT.PossessionMovement = POSSESSION_MOVE_8DIR
ENT.PossessionViews = {
{
offset = Vector(0, 30, 20),
distance = 100
},
{
offset = Vector(5, 0, 0),
distance = 0,
eyepos = true
}
}
ENT.PossessionBinds = {
[IN_JUMP] = {{
coroutine = false,
onkeypressed = function(self)
if not self:IsOnGround() then return end
self:EmitFootstep()
self:Jump()
end
}},
[IN_RELOAD] = {{
coroutine = false,
onkeypressed = function(self)
self:EmitSound("pep/taunt.wav")
self:PlaySpriteAnimAndWait("taunt")
end
}}
}
if SERVER then
-- Init/Think --
function ENT:CustomInitialize()
self:SetSelfClassRelationship(D_HT, 3)
self:SetDefaultRelationship(D_HT, 3)
self:SetPlayersRelationship(D_HT, 3)
self:SpriteAnimEvent("walk", {1, 2}, function(self, frame)
self:EmitFootstep()
end)
self:SpriteAnimEvent("climb", {1, 2}, function(self, frame)
if self:IsClimbingLadder() then self:EmitSound("player/footsteps/ladder"..math.random(4)..".wav") end
end)
end
-- AI --
function ENT:OnRangeAttack(enemy)
enemy:SetMoveType(MOVETYPE_NONE)
enemy:SetParent(self)
self:PlaySpriteAnimAndWait("kill")
enemy:SetParent(NULL)
enemy:TakeDamage(enemy:GetMaxHealth(), self)
end
function ENT:OnReachedPatrol()
self:Wait(math.random(3, 7))
end
function ENT:OnIdle()
self:AddPatrolPos(self:RandomPos(1500))
end
-- Sounds --
function ENT:OnLandOnGround()
self:EmitFootstep()
end
function ENT:OnTookDamage()
self:EmitSound("pep/taunt.wav")
self:SetHealth(self:GetMaxHealth())
self:PlaySpriteAnimAndWait("taunt")
end
end
-- DO NOT TOUCH --
AddCSLuaFile()
DrGBase.AddNextbot(ENT)
For some reason, the NPCs are really slow, making them boring, is there a way to fix this???
When I try to possess an NPC using DrgBase, I either cannot move at all besides attacking, or get stuck in the jumping animation for the NPC, I've disabled all camera and movement alteration mods.
why when i posses a npc i can see my avatar on him?
Tick the box, then undo the nextbot instead of leaving possession, and you get a script error that leaves the player in a limbo of sorts
-They appear invisible to other players
-They can't use weapons or a flashlight
-They are not targetted by npcs or nextbots
only killing yourself and respawning fixes it
In Line 625 of misc.lua of the base entity the OnRagdoll Funciton isn't called with ":" but with "."
This causes no "self" being available in the function.
I've run into a consistent issue while making a pack of NPCs. I've gone through all my detection settings, and I've tried to modify them to fix this issue, but it keeps persisting. If a player is behind cover, NPCs will still move towards and acknowledge the player's existence, but will not fire at the player.
They do fine if there's a clear line of sight, but if a player is behind any cover, they won't fire. This happens with steep hills as well.
https://files.jellyton.me/2020/05/hl2%20-%20May11%20-%2019.26%20-%20683.png -- Aren't firing
https://files.jellyton.me/2020/05/hl2%20-%20May11%20-%2019.26%20-%20685.png -- Are firing
Same here, has line of sight, and has me as an enemy, but will not shoot, and will not pathfind to find a place where it CAN shoot. https://files.jellyton.me/2020/05/hl2%20-%20May11%20-%2019.27%20-%20688.png
Hello, There's a Problem.
All NPCs Not Attacking me, They're Attacking Only Other NPCs.
Is There Anything I can Reset My Settings Or Something Else?
HELP PLS
I have a made npc but I can’t get it to fix a single weak point on the body but not elsewhere (just kill it at the neck in order to eliminate it)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.