Garry's Mod

Garry's Mod

[TFA] Attachment Entities + Gun Workbench
44 Comments
c4t 30 Jun @ 11:43pm 
Got this error :

[[TFA] Attachment Entities + Gun Workbench] lua/tfa/external/cl_attachment_options.lua:71: attempt to call field 'AddColorMixer' (a nil value)
1. ControlPanelBuildFunction - lua/tfa/external/cl_attachment_options.lua:71
2. FillViaTable - gamemodes/sandbox/gamemode/spawnmenu/controlpanel.lua:188
3. ActivateTool - lua/includes/modules/spawnmenu.lua:116
4. DoClick - gamemodes/sandbox/gamemode/spawnmenu/toolpanel.lua:203
5. unknown - lua/vgui/dlabel.lua:253
audhubhehe 5 Jun @ 11:06pm 
can it just let workbench work,but dont need the atttachment ?
Gnilomord 3 Jun @ 4:19am 
your mod trolled me. Very much. I used the fucking mysterious watermelon, and now with this addon when I enter the world I have constant errors
Melow  [author] 9 Mar @ 7:41am 
I’ve pushed the update. Now, I’m working on the attachment-dropping feature.
Melow  [author] 8 Mar @ 6:07pm 
Soon, I will push a new update with a few fixes and improvements. In the meantime, I'm trying to break everything - but so far, everything seems stable. I also made a few concepts for dropping attachments with a pretty UI instead of the old chat commands method.
Melow  [author] 8 Mar @ 12:37pm 
Hi. It should be fixed now.
Khaela 8 Mar @ 8:56am 
Hey, got the following error on a dedicated server :

[TFA Base] lua/tfa/modules/cl_tfa_settingsmenu.lua:51: Unknown ConVar: sv_tfa_ents_deathreset!
1. assert - [C]:-1
2. CheckBoxNet - lua/tfa/modules/cl_tfa_settingsmenu.lua:51
3. ControlPanelBuildFunction - lua/tfa/external/cl_attachment_options.lua:51
4. FillViaTable - gamemodes/sandbox/gamemode/spawnmenu/controlpanel.lua:126
5. ActivateTool - lua/includes/modules/spawnmenu.lua:116
6. DoClick - gamemodes/sandbox/gamemode/spawnmenu/toolpanel.lua:202
7. unknown - lua/vgui/dlabel.lua:254
Melow  [author] 7 Mar @ 3:07pm 
Absolutely.
Khaela 7 Mar @ 2:33pm 
Ok great ! In case of player death then yeah one single entity would be better. If you add that drop on death feature could you include the option to turn it off please ?
Melow  [author] 7 Mar @ 1:32pm 
Oh, sorry, I meant as if the player dies, should their inventory drop as a single entity? But the idea you suggested would work without any problems, so I'll start with that.
Khaela 7 Mar @ 1:30pm 
I was thinking players should be able to drop one attachment of their choice at a time, as dropping the entire inventory at once wouldn't be very interesting or useful. As for performance, I'm thinking it shouldn't be so much of an issue if the entities are picked back up immediatly by someone else as they would be in most scenarios.
Melow  [author] 7 Mar @ 1:17pm 
Hi. Should the player’s inventory drop as a single entity? I can make each item drop separately, but that would be bad for performance.
Khaela 7 Mar @ 8:14am 
Hey, me again, still a fan of this addon, I was wondering if you could consider adding the possibility for players to drop attachments in their inventory ? Would be useful for roleplay to let players give attachments to eachother.
Melow  [author] 6 Mar @ 6:39am 
Just updated the addon and changed how the saving system works and few other things. I tested it and didn’t encounter any issues, but please let me know if you find any.
screwdriver lobotomy 5 Mar @ 5:56pm 
yippee :3
Melow  [author] 5 Mar @ 5:55pm 
I will consider doing that. Thanks for the idea.
screwdriver lobotomy 3 Mar @ 9:36am 
can you make work for npcs too? I wanna be able to set what attachments npcs can spawn with!!!
Melow  [author] 28 Feb @ 10:14am 
No worries. Glad to hear everything is working well now.
Khaela 28 Feb @ 9:58am 
Okay did some testing, turns out the first bug was actually entirely my fault (I was using an outdated version of TFA Base), apologies for wasting your time

Other than that, everything seems to be working super well. Many thanks for the updates and I'll let you know if I run into any other issues that I couldn't fix on my own.
Melow  [author] 28 Feb @ 7:17am 
Hi! I've updated the addon.

However, I couldn't replicate the first issue you mentioned. If possible, could you provide more details? (e.g., which weapons, which attachments, any errors?)

You can try out the new features, and if you find any errors or mistakes again, let me know! :steamthumbsup:
Khaela 28 Feb @ 1:27am 
Hey, just tested it, here's my first review of it :
This is just brilliant and it's gonna be stupidly useful for what I'm personaly working on. Currently, I've found two issues :

- Once a whitelisted attachment has been equipped in an attachment category of a given weapon, it is impossible to fully unequip it without a workbench or without switching to a different attachment of the same category (switching from one sight to another for example). It's something I can work around but it's also quite frustrating

- Attachments no longer seem to save after restart, and are no longer reset after death. Maybe turning these into convars would be a good idea ?

Everything else seems to be working just fine and I absolutely love it, thank you and please keep it up !
Melow  [author] 27 Feb @ 5:59pm 
Khaela,

All functions have been added. Let me know if any issues arise.
Khaela 27 Feb @ 9:47am 
your addon is gonna be super useful for me
Khaela 27 Feb @ 9:46am 
very nice
Melow  [author] 27 Feb @ 8:57am 
Not yet, but I plan on adding it.
Khaela 27 Feb @ 8:52am 
is there a whitelist system for the workbench, just like in the ArcCW version ?
Melow  [author] 26 Feb @ 1:53pm 
Lenny,

Workbench functionality has been added.
Melow  [author] 25 Feb @ 12:13pm 
th3maldonado & G_Monkey1,

I have updated the addon with these features.
Khaela 25 Dec, 2024 @ 7:44pm 
hey, could there be a way to make some attachments available by default without having to pick them up ?
Melow  [author] 5 Aug, 2024 @ 8:54am 
Yes
Miller 5 Aug, 2024 @ 8:44am 
Do they save after server restart?
𝕳𝖆𝖗𝖔𝖓 3 May, 2024 @ 3:12pm 
Is it possible to somehow remove the body kit, that is, throw it away?
G_Monkey1 24 Jan, 2024 @ 8:05pm 
found it?
G_Monkey1 24 Jan, 2024 @ 8:04pm 
hey kinda late but where would i be able to make these admin spawnable only?
th3maldonado 13 Jan, 2024 @ 12:54pm 
One real quick suggestion. Is it possible to add an autopickup toggle to this mod? It would be ideal for this scenario I'm working on
Lenny 25 Apr, 2023 @ 8:35pm 
This mod is amazing. For a while I've been trying to find a plausible way of recreating this addon for TFA.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2622286057&searchtext=workbench

I don't know if something like this would be possible for TFA, but this addon has given me some hope to try and pick up the project again. I've had minimal success though. Wondering if you think this would be an easy thing to accomplish.
Melow  [author] 10 Dec, 2022 @ 3:32am 
Glad it helped!
FrostbitTe 10 Dec, 2022 @ 2:55am 
Omg this is everything i wanted!!! İts hard to fond the right atts when you have alot of guns but thi is still incredible
happy banana 27 Aug, 2022 @ 1:54pm 
does this work for halo or is taht a different mod
Renauld 24 Jun, 2022 @ 5:03am 
Thank you !
Melow  [author] 23 Jun, 2022 @ 7:40am 
Honestly, no. But I will try to fix it ASAP as I get to PC!
Renauld 22 Jun, 2022 @ 2:17pm 
Hey, your addon work well for me in sp, but on mp server it get broken for no reason, do you get any idea why?
Fried Borscht 22 Jun, 2022 @ 4:05am 
Кто уморительно поставил?
заибал 17 Jun, 2022 @ 4:42am 
like