Author Topic: AWarn 3.4 - Robust warning system  (Read 140988 times)

0 Members and 4 Guests are viewing this topic.

Offline ojbristow

  • Newbie
  • *
  • Posts: 47
  • Karma: 0
    • Superclocked
Re: AWarn 3.4 - Robust warning system
« Reply #90 on: December 24, 2013, 02:23:11 AM »
Hello,

I'm pretty new to to all this stuff but I've been trying.  I have just read through this thread as I was looking for a warning system for my server.  This looks like a great addon.  Just a bit confused about something I have read, this is probably going to make me look like such an idiot but here we go anyways.  Someone mentioned about it not working with Linux as there it doesn't like caps with gmod or source.  Is this client or server side?  My server is hosted using Linux, will I need to sort the caps out or is it down to what the client is running?

Thanks,

Owen

ps. Yes, I'm a noob :)


Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: AWarn 3.4 - Robust warning system
« Reply #91 on: December 24, 2013, 07:48:52 AM »
Server side
After extracting to linux, rename your folder from AWarn to awarn, make sure none of the files or folders have capital letters, and it should work.
« Last Edit: December 24, 2013, 07:51:27 AM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline ojbristow

  • Newbie
  • *
  • Posts: 47
  • Karma: 0
    • Superclocked
Re: AWarn 3.4 - Robust warning system
« Reply #92 on: December 24, 2013, 09:13:39 AM »
Thank you very much :)

Have a great Christmas :)

Owen


Offline Naawxz

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: AWarn 3.4 - Robust warning system
« Reply #93 on: December 30, 2013, 02:51:25 PM »
I don't know if this is a problem that is caused by your addon, but since I added it my console has started spamming "Decay timer running" like 8 times a second. A quick google search brought me to an unresolved facepunch thread that was unrelated to this addon but it seems like a little too much of a coincidence to me. Help would be appreciated, I don't want to have to remove this addon over this.

This happens with me too! "Decay timer running" spam in console. Please fix this, it makes the whole console unusable.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: AWarn 3.4 - Robust warning system
« Reply #94 on: December 30, 2013, 04:13:00 PM »
Seems MrPresident left a developer message in, at least, it looks like it was meant to be a dev message.
Go into warn.lua, down to line 97, and disable the " print("Decay timer running") " by placing -- (two dashes together) in front of it.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn 3.4 - Robust warning system
« Reply #95 on: December 30, 2013, 05:54:29 PM »
Yeah, sorry about that. You can simply remove or comment out that line and it will no longer spam your console with that message.

Offline Ramirex

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: AWarn 3.4 - Robust warning system
« Reply #96 on: January 03, 2014, 05:31:59 PM »
Can anyone help?
im trying to do one thing so after warning someone it will show how much warns you got.

tried something like

function ulx.warn( calling_ply, target_ply, reason )
local warn_num = target_ply.warntable["wcount"]
   if reason and reason ~= "" then
      ulx.fancyLogAdmin( calling_ply, "#A warned #T (#s) | Warn's: (" ..warn_num.. ")/3",  target_ply, reason )

anyway tried lots of things. nothing worked.
« Last Edit: January 03, 2014, 06:08:28 PM by Ramirex »

Offline Eccid

  • Full Member
  • ***
  • Posts: 115
  • Karma: 11
  • Hey, come on... We just met...
    • Terror Abound! Steam Group
Re: AWarn 3.4 - Robust warning system
« Reply #97 on: January 04, 2014, 10:04:44 AM »
Can anyone help?
im trying to do one thing so after warning someone it will show how much warns you got.

tried something like

function ulx.warn( calling_ply, target_ply, reason )
local warn_num = target_ply.warntable["wcount"]
   if reason and reason ~= "" then
      ulx.fancyLogAdmin( calling_ply, "#A warned #T (#s) | Warn's: (" ..warn_num.. ")/3",  target_ply, reason )

anyway tried lots of things. nothing worked.

You need to convert the table to a string
Code: [Select]
local warn_num = tostring(target_ply.warntable["wcount"])
If the person you're warning has had no warnings, the table will return nil, so you'll have to set up a fallback.

Offline TheNoobKid

  • Newbie
  • *
  • Posts: 25
  • Karma: -1
Re: AWarn 3.4 - Robust warning system
« Reply #98 on: January 31, 2014, 01:10:56 AM »
Is it possible to do so when a player got banned for max warnings, then when he come back he will have 0 active warnings?

Offline Eccid

  • Full Member
  • ***
  • Posts: 115
  • Karma: 11
  • Hey, come on... We just met...
    • Terror Abound! Steam Group
Re: AWarn 3.4 - Robust warning system
« Reply #99 on: February 07, 2014, 06:18:50 PM »
Warns still aren't decaying correctly. It seems that sometimes it does and sometimes it doesn't decay. Maybe if someone disconnects before the warning decays, it doesn't remove it? Or possibly mapchange/server restart.
« Last Edit: February 07, 2014, 06:21:36 PM by Eccid »

Offline Eccid

  • Full Member
  • ***
  • Posts: 115
  • Karma: 11
  • Hey, come on... We just met...
    • Terror Abound! Steam Group
Re: AWarn 3.4 - Robust warning system
« Reply #100 on: February 20, 2014, 07:16:49 PM »
From what I can tell, if someone is warned, and then leaves, when the timer runs out, it can't remove the warning, and when they rejoin after the timer has run out, the warning is permanent. I'm going to see if I can do anything to fix it, but I'd like if someone better than me could help.

Offline Tigster

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: AWarn 3.4 - Robust warning system
« Reply #101 on: February 28, 2014, 09:13:32 AM »
When i put in the addons folder and restart my sevrer it does not appear in the menu even though ive got all commands?

Offline RichM

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: AWarn 3.4 - Robust warning system
« Reply #102 on: February 28, 2014, 10:38:05 AM »
This is such a fantastic addon for ulx! It really simplifies a moderators job. Instead of having to choose what commands/punishments to carry out, they just need to focus on warning someone at the right time.

I would like to suggest a feature, if I may. The only way I could see this addon be any better is if it supported mysqloo/mysql integration. It would be so awesome if a players warning level could carry across multiple servers.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn 3.4 - Robust warning system
« Reply #103 on: February 28, 2014, 08:43:19 PM »
Thanks for your kind words. When I get back from my trip next week I plan on reworking some of this add-on. I will look into adding support for SQL at that time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn 3.4 - Robust warning system
« Reply #104 on: March 04, 2014, 10:36:10 PM »


I've rewritten the core completely. I am just working on clientside menu stuff now. I changed it from flat files to SQLite and I'll add either a swappable module or settings to allow MySQL as well.