Code Monkey home page Code Monkey logo

drgbase's Introduction

Todo: write something interesting

drgbase's People

Contributors

dragoteryx avatar zaurzo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

drgbase's Issues

More Documentation Needed

There is barely any documentation making it a bit hard to make NPCs. Please add more documentation.

NPC guns do not make sound in listen servers

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.

Possess bug

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

drgbase_navmesh_error concommand does not exist

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"

Music Not Playing In Multiplayer

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.

Something is creating script errors

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!

Server-side lag

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 »```

Error when interacting with non-drg nextbots

[DrGBase | Nextbot Base] lua/entities/drgbase_nextbot/relationships.lua:689: attempt to call method 'DrG_SetRelationship' (a nil value)

  1. _UpdateNPCRelationship - lua/entities/drgbase_nextbot/relationships.lua:689
  2. _SetRelationship - lua/entities/drgbase_nextbot/relationships.lua:202
    3. UpdateRelationshipWith - lua/entities/drgbase_nextbot/relationships.lua:532
    4. callback - lua/entities/drgbase_nextbot/relationships.lua:755
    5. callback - lua/drgbase/meta/entity.lua:111
    6. unknown - lua/drgbase/modules/timer.lua:4

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!

NPC Jumpscare glitch

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.

Possessing and right-clicking with an NPC causes error

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.

Allow Friendly DRGbase NPCs to follow the Player.

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.)

NPC Glitch

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

it will not work

i downloaded vjbase and every thing but no work i think its broken

Big error

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)

  1. DrG_Possessing - addons/drgbase-nextbot-base/lua/drgbase/meta/player.lua:8
  2. DrG_IsPossessing - addons/drgbase-nextbot-base/lua/drgbase/meta/player.lua:5
    3. v - addons/drgbase-nextbot-base/lua/drgbase/possession.lua:189
    4. unknown - lua/includes/modules/hook.lua:84

How to go about using default HL2/L4D animations

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/.

WiltOS Forcepowers conflict with NPC´s

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)

  1. HandleTarget - addons/wos-sentinel-prye/lua/wos/advswl/lightsaber/core/cl_hud.lua:646
  2. HandleHUD - addons/wos-sentinel-prye/lua/wos/advswl/lightsaber/core/cl_hud.lua:618
    3. unknown - addons/wos-sentinel-prye/lua/wos/advswl/lightsaber/core/cl_core.lua:831 (x90)

Animal Mod RP Issues

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.

Garrysmod.2021.08.19.-.09.34.44.01.mp4
Garrysmod.2021.08.19.-.09.40.06.02.mp4

sry for music, i forgot :3

The mod not appear in menu

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

Weapon overrights npc range fields

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.

entity possession issue

i cant possess entities even though im using the right tool (i dont know how this happened i could possess entities before)

no nextbot working

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)

  1. SetDesiredSpeed - lua/entities/drgbase_nextbot/locomotion.lua:100
  2. SetSpeed - lua/entities/drgbase_nextbot/movements.lua:124
    3. UpdateSpeed - lua/entities/drgbase_nextbot/movements.lua:650
    4. unknown - lua/entities/drgbase_nextbot/shared.lua:247

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)

  1. Function - lua/drgbase/spawnmenu.lua:15
  2. unknown - gamemodes/sandbox/gamemode/spawnmenu/creationmenu.lua:42
    and use the latest version of drgbase

where

do i put the drgbase lua code? in autorun,drgbase etc

New Functions

Can you add a new functions like "IsOnMeleeAttack" and "IsOnRangeAttack" which return "true" and "false" suitably?

chrash

why does my game crash if there is a drg nextbot in it

I have problems with NPC

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

possession keybinds dont work when changing the nextbot's speed

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)

posses bug

why when i posses a npc i can see my avatar on him?

Bug with teleport on depossess

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

OnRagdoll isnt called with self

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.

NPCs not firing when player is behind cover, but visible.

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

NPCs Not Attacking

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?

Single NPC

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.