Garry's Mod

Garry's Mod

Azbr's Autonomous Sentry Weapons
Bad Dreems  [developer] 17 Jul @ 5:15pm
BUG REPORTS
If any issues arise while using this addon, please report them here.
Copy and Paste the error and/or describe what happened and what you were doing leading up to the bug.

Thank you!
< >
Showing 1-15 of 44 comments
Repair tool freezes the person holding it's screen when held, can still move around and use things but screen remains frozen, npcs spawned by npcs dont get targetted, sentries sometimes dont even work
errors:

[Azbr's Autonomous Sentry Weapon] lua/entities/azbrsentrygun_shotgun.lua:932: attempt to index field 'OrigAngle' (a nil value)
1. func - lua/entities/azbrsentrygun_shotgun.lua:932
2. unknown - lua/includes/extensions/net.lua:34

[Azbr's Autonomous Sentry Weapon] 'AzbrBoxFont' isn't a valid font
1. SimpleText - lua/includes/modules/draw.lua:65
2. SimpleTextOutlined - lua/includes/modules/draw.lua:106
3. unknown - lua/entities/azbrsentrygun_repair_kit.lua:141

[Azbr's Autonomous Sentry Weapon] lua/includes/modules/draw.lua:69: attempt to perform arithmetic on local 'w' (a nil value)
1. SimpleText - lua/includes/modules/draw.lua:69
2. SimpleTextOutlined - lua/includes/modules/draw.lua:106
3. unknown - lua/entities/azbrsentrygun_repair_kit.lua:141

(These next 2 happen when holding repair tool)

[Azbr's Autonomous Sentry Weapon] 'B1R1ReserveFont' isn't a valid font
1. SimpleText - lua/includes/modules/draw.lua:65
2. draw_func - lua/weapons/azbr_aasw_repair_tool.lua:97
3. unknown - lua/weapons/azbr_aasw_repair_tool.lua:396

[Azbr's Autonomous Sentry Weapon] lua/includes/modules/draw.lua:69: attempt to perform arithmetic on local 'w' (a nil value)
1. SimpleText - lua/includes/modules/draw.lua:69
2. draw_func - lua/weapons/azbr_aasw_repair_tool.lua:97
3. unknown - lua/weapons/azbr_aasw_repair_tool.lua:396
Also small request: Can you make the sentries movable? I'm making a gamemode and in the gamemode you don't have a physgun so you can't move them around that way and instead I use an addon to be able to drag props and entities around and the sentries seem to be frozen. Could you atleast add a toggle to the options tab that unfreezes them?
Bad Dreems  [developer] 21 Jul @ 1:00pm 
I will get right on these issues.
Concerning the unfreeze ability, I want to implement that but currently: unfreezing the guns makes them very angry.
Bad Dreems  [developer] 21 Jul @ 1:22pm 
OK, missing fonts should be good now. As should the rotate function,
concerning not targeting NPCS spawned by Others, could we elaborate on this?
As an example: There are npcs from the cry of fear pack that spawn 4 npcs to fight for them. Regularly spawning them works. But if theyre spawned by a different npc the sentries dont target any of them. As another example, from another pack, theres a "nest" that spawns retextured (and possibly renamed and reclassed) npcs. Sentries attack some but one npc in particular wasnt targetted. These npcs (talking about those from the "nest") im pretty sure cant be spawned from the q menu so that could have something to do with it
Getting this error when spawning a sentry with the Customizable Entity Spawner (Only gun spawns, bottom part is an error:

[Azbr's Autonomous Sentry Weapon] lua/entities/azbrsentrygun_shotgun.lua:344: Tried to use a NULL entity!
1. GetName - [C]:-1
2. unknown - lua/entities/azbrsentrygun_shotgun.lua:344
3. Spawn - [C]:-1
4. spawn_zombie - lua/autorun/server/serverdogman.lua:298
5. unknown - lua/autorun/server/serverdogman.lua:263
6. pcall - [C]:-1
7. unknown - lua/autorun/server/serverdogman.lua:166
The bottom part isnt an error. Its still there, but theres a huge error covering the whole gun still.
Connecting a terminal to it doesnt work at all. Repair tool now doesnt freeze anymore thankfully.
Physgun doesnt work on these, neither does toolgun, they dont work, they just sit there in midair flashing red.
Could you perhaps change the way terminals work, so they dont have to be spawned by the player to be used, but instead only work for the person who connected the terminal to a sentry?
extra errors from using said spawning mod:

[Azbr's Autonomous Sentry Weapon] lua/entities/azbrsentrygun.lua:345: Tried to use a NULL entity!
1. GetName - [C]:-1
2. unknown - lua/entities/azbrsentrygun.lua:345
3. Spawn - [C]:-1
4. spawn_zombie - lua/autorun/server/serverdogman.lua:298
5. unknown - lua/autorun/server/serverdogman.lua:263
6. pcall - [C]:-1
7. unknown - lua/autorun/server/serverdogman.lua:166

[Azbr's Autonomous Sentry Weapon] lua/entities/azbrsentrygun_terminal.lua:146: attempt to call method 'ChatPrint' (a nil value)
1. Pairup - lua/entities/azbrsentrygun_terminal.lua:146
2. unknown - lua/entities/azbrsentrygun_terminal.lua:178

[Azbr's Autonomous Sentry Weapon] lua/entities/azbrsentrygun_terminal.lua:146: attempt to call method 'ChatPrint' (a nil value)
1. Pairup - lua/entities/azbrsentrygun_terminal.lua:146
2. unknown - lua/entities/azbrsentrygun_terminal.lua:178

(this last one happens when trying to use an ammo kit spawned by the spawner on a sentry )

[Azbr's Autonomous Sentry Weapon] lua/entities/azbrsentrygun_ammo_kit.lua:186: Tried to use a NULL entity!
1. EmitSound - [C]:-1
2. unknown - lua/entities/azbrsentrygun_ammo_kit.lua:186
note: sentries spawned in the q menu are movable
they do not target npcs always, even if spawned by q menu
I do not know if this helps but this is the spawning mod I use: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2243186467
Bad Dreems  [developer] 22 Jul @ 1:15pm 
So from what I can see regarding CES, the issue is because when the gun is spawned outside of the Q-Menu. It lacks a "Creator" or an owner which some of the gun's features require to work...

I've already been working on an improved method of claiming gun ownership that may fix this when implemented.

I cannot say for sure when this will be ready.

Concerning the failure to target NPCs I am still unable to reproduce this issue.
The failure to target npcs sometimes is random but it always happens when using CES. Might be because they aren't spawned from the q menu too?
< >
Showing 1-15 of 44 comments
Per page: 1530 50