Garry's Mod

Garry's Mod

[TTT/Sandbox] Riotshield
112 kommentarer
GhizZ 24. apr. 2021 kl. 8:47 
pls vanish durability it sucks with it
Gianni 31. okt. 2020 kl. 0:40 
Command doesnt work. Doesn't show up in item shop, doesn't show up in TTT2 universal item shop. Don't install until fix
Mr.Grumpy 6. mar. 2018 kl. 7:51 
For me it also doesnt apear in the weapons list / inventory and when its damage you can repair and when it destroyed the nest shield you spawn will say 300/300 but only has one hit point....
Gloomba-King 23. aug. 2017 kl. 13:53 
why doesn't appear in my weapons when i get it?

What i mean is it doesn't apear in the weapons list of what i have on me
76561198286801699 22. juni 2017 kl. 14:50 
I believe the active ability isnt working.
Bergster 23. mar. 2017 kl. 12:49 
Yeah the addon is still good without it; it's just a nice additional feature. Not sure how easy of a fix it is, but I wouldn't blame you if you didn't want to.
JKirO  [ophavsmand] 23. mar. 2017 kl. 11:22 
Sounds good. Hmm, I noticed too that the charge knockback doesn't work. However I do ask myself if it is necessary at all. After all, it is still nice engage/disengage tool
Bergster 23. mar. 2017 kl. 10:56 
Thanks for updating the addon! The new lua file isn't giving errors anymore, so that problem's been solved. However, after updating all my files, the charge ability still won't deal damage or knockback :(. Not sure what the cause could be at this point if it's working as intended for you, but not for me. If anyone else is having this problem, please leave a comment; I want to know if it's a problem that's specific to me, or if it's a universal problem.
JKirO  [ophavsmand] 23. mar. 2017 kl. 8:38 
I am sorry I had you wait for so long. I have updated the addon, please let me know if it worked.
Bergster 23. mar. 2017 kl. 7:33 
By the way Oladin, are you going to upload your files anytime soon? It's been over a month since we last discussed it and it doesn't seem that difficult or time consuming to do.
Bergster 23. mar. 2017 kl. 7:32 
If you're getting lua errors then you should try reading the comments, the problem's already been resolved.
ISR Mafia 14. mar. 2017 kl. 4:19 
still didnt fix this after half a year.... horrible support
ISR Mafia 14. mar. 2017 kl. 4:13 
[ERROR] addons/ttt riotshield/lua/weapons/riotshield/shared.lua:349: attempt to index upvalue 'durabilityBar' (a nil value)
1. unknown - addons/ttt riotshield/lua/weapons/riotshield/shared.lua:349

any fix?
Fenrii 7. mar. 2017 kl. 12:06 
Does not work.
D1.yt 3. mar. 2017 kl. 11:13 
[ERROR] lua/weapons/riotshield/shared.lua:349: attempt to index upvalue 'durabilityBar' (a nil value)
1. unknown - lua/weapons/riotshield/shared.lua:349
D1.yt 3. mar. 2017 kl. 11:12 
shield not visible when equiped and making errors
Viper 26. feb. 2017 kl. 8:38 
this addon is broken for TTT
JKirO  [ophavsmand] 22. feb. 2017 kl. 8:34 
Yes, try the fix mentioned in Bergster's last comment. When I'm done taking my exams next week, I can update this addon to include that fix.
Verflucht 21. feb. 2017 kl. 7:59 
its still creating script errors

Couldn't include file 'ola_progressbar.lua' (File not found) (@lua/weapons/riotshield/shared.lua (line 3))


any solution?
JKirO  [ophavsmand] 29. jan. 2017 kl. 3:36 
I am happy that this temporary fix worked! I really appreciate your understanding!
Mr Game 27. jan. 2017 kl. 15:30 
@Bergster thanks for the help it worked and Oladin take your time he's right it's free content that I do appreciate.
Bergster 26. jan. 2017 kl. 10:08 
I completely understand Oladin, take your time. I don't think I could do any better of a job than you. But from what I've gathered either an update to Gmod has changed how the code works, or you have a different version of the files that you haven't uploaded yet. When I extracted the files the ola.progressbar lua was still there along with the shared lua, which leads me to think that you have a different version in your possession that hasn't been published yet. However I did find a fix for the problem that Isaac and Jeeorc are having, since I ran into this problem too when I first got the addon. If you open the shared.lua file, on the very first line of code where it says AddCSLuaFile(), add "ola_progressbar.lua" (including the quotations) between the parentheses. That should fetch the other lua file and stop the errors you are getting.
JKirO  [ophavsmand] 26. jan. 2017 kl. 5:02 
I am very sorry that this is taking so long but I haven't done any gmod modding in the past two - three months and I am currently extremely busy, so I propably won't come around to a fix in the near future. I can only promise you something for next month, where my exams will be over. So either you are patient and wait until I come up with a solution, or, and I really don't mind at all, you can try fixing it yourself, you can even take ownership of this mod if you feel you are going to do better support for it.
akhira 25. jan. 2017 kl. 8:46 
I've got the same issue. The console is showing errors, when players log in or when they are holding the riot shield. It's also invisible, when holding it. Tested it on a Sandbox and a TTT Server, but still the same issue.
Mr Game 24. jan. 2017 kl. 6:47 
Maybe you didn't upload it because it's still there when I extract it out with Gmad.
JKirO  [ophavsmand] 24. jan. 2017 kl. 2:52 
That is very odd. I moved all code from the external file you mentioned to the main file of the weapon, so there is no need for it to look for that... Were there some major updates to gmod in the past half year?
Mr Game 23. jan. 2017 kl. 8:19 
two or three days ago
JKirO  [ophavsmand] 23. jan. 2017 kl. 7:32 
hmm, I removed the dependency on that file in the most recent update. Maybe that is your problem. How long have you been subscribed to this item?
Mr Game 22. jan. 2017 kl. 14:02 
Couldn't include file 'ola_progressbar.lua' (File not found) (@addons/[tttsandbox]_riotshield_378992622/lua/weapons/riotshield/shared.lua (line 2))

maybe this is causing the issue this is when the server starts.
Mr Game 22. jan. 2017 kl. 13:04 
I have several times
JKirO  [ophavsmand] 22. jan. 2017 kl. 12:14 
Hmm maybe try restarting the server a couple times, this problem usually sorts itself out.
Mr Game 22. jan. 2017 kl. 11:10 
[[TTT/Sandbox] Riotshield] lua/weapons/riotshield/shared.lua:349: attempt to index upvalue 'durabilityBar' (a nil value)
1. unknown - lua/weapons/riotshield/shared.lua:349
When you equipped it it's invisible
Mr Game 22. jan. 2017 kl. 11:09 
[[TTT/Sandbox] Riotshield] lua/weapons/riotshield/shared.lua:385: attempt to index global 'ProgressBar' (a nil value)
1. unknown - lua/weapons/riotshield/shared.lua:385

JKirO  [ophavsmand] 22. jan. 2017 kl. 3:59 
Could you explain why it doesn't work?
Mr Game 21. jan. 2017 kl. 19:03 
For some odd reason it works in single player but it doesn't work in multiplayer for TTT
Bergster 19. jan. 2017 kl. 14:19 
Cool, thank you for your time. Not sure why I'm the only one with this problem, but I guess I'm the first person commenting on this page in a couple months so something might have changed. Hopefully you find something!
JKirO  [ophavsmand] 19. jan. 2017 kl. 14:01 
Yes, it is. Or so I thought. This is an older mod and in my previous inexperience, I did the fetching slightly unoptimal, though on our own server it worked as it should. I will look into it tomorrow.
Bergster 19. jan. 2017 kl. 13:49 
Yes I'm sure because when I type the convar into the console in game (pressing tilda) it shows the new value at the end of the convar in the autofill options (when I type riotshield_). I don't even think the problem is the convars themselves since the values are all default, so the Riot Shield should be dealing it's damage and knockback (but it isn't). Is the code fetching the convars correctly?
JKirO  [ophavsmand] 19. jan. 2017 kl. 13:30 
Are you sure that it did change these variables? I am having no trouble whatsoever, everthing works as it should.
Bergster 19. jan. 2017 kl. 9:06 
I tried editing the charge duration in the server console again and after a map change it did change. However, I tried lowering the speed threshold and it still didn't make a difference (lowered it to as low as 1).
Bergster 19. jan. 2017 kl. 7:56 
So when I try to edit the convars (either temporarily by the server console, or permanently in the lua file) it doesn't have an effect in game. Tried to change the durability to 100, but it stayed at 300. Also tried changing the charge duration to 3, it stayed at 1.25. The lua code must not be reading the convars right, which is weird because I'm not getting any lua errors. I also did not alter the code in any way, I'm using the original lua files. Maybe this is why it isn't dealing any damage or knockback? Thoughts?
JKirO  [ophavsmand] 19. jan. 2017 kl. 5:59 
In case you don't know what a parameter is or how to change them: Open you console and type "riotshield_" ,you should get a list with all of the riotshield's parameters. Just enter for example riotshield_maxdurability 450 and voilá, after the next roundrestart (for TTT) or map change, the shield should have 450 durability instead of the default 300.
JKirO  [ophavsmand] 19. jan. 2017 kl. 5:57 
As for the post below: I am very sorry, I must have overlooked you.
No you can't make it infinite but you can make it incredible high.
Play with the parameter "riotshield_maxdurability". It's default Value is 300 but you are free to make it 6000000 or whatever you are more comfortable with.
JKirO  [ophavsmand] 19. jan. 2017 kl. 5:56 
You can play with the charge's parameters yourself, all of them are adjustable.
Look for
riotshield_speedThreshold - after which speed the game even considers an effect for your hit

or if you want to modify the charge itself:
riotshield_chargeSpeedMultMax - how fast you can get while charging
riotshield_acceleration - how fast your velocity increases
riotshield_chargeDuration - how long the charge will last
riotshield_knockbackMagnitude - how impactful the knockback on hit is
riotshield_damageMult - how much damage the hit will deal
riotshield_stuntimeMult - how long the target won't be able to act

If you don't want to alter the charge too much, you should adjust the parameter riotshield_speedThreshold, e.g. gradually decrease it until you're happy with it.
Otherwise, you can just play with the rest of these parameters.
Please leave an update whether this helped or not. :)
Bergster 18. jan. 2017 kl. 15:58 
The right click ability isn't dealing damage or knockback when you hit someone with it, regardless of how fast you're going. Any idea why?
Kino 11. nov. 2016 kl. 21:19 
Can you make the durability of the shield infinite?
danjono 16. okt. 2016 kl. 9:38 
[ERROR] addons/detective_weapons/lua/weapons/riotshield/shared.lua:349: attempt to index upvalue 'durabilityBar' (a nil value)
1. unknown - addons/detective_weapons/lua/weapons/riotshield/shared.lua:349

This is on a fresh server with no other addons to try and isolate the problem. I have extracted the files from the .gma file and added them into my addons folder. Trying to run this on the latest TTT version
JKirO  [ophavsmand] 31. aug. 2016 kl. 7:16 
Well not quite the exact same one, but yours has the same cause.
JKirO  [ophavsmand] 31. aug. 2016 kl. 7:16 
Please check the comments below - the exact same issue was adressed just yesterday. If that doesn't fix it, then post again and we can look into it.