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

0 Members and 2 Guests are viewing this topic.

Offline nathan736

  • Full Member
  • ***
  • Posts: 143
  • Karma: 4
Re: AWarn 3.3 - Robust warning system
« Reply #30 on: January 18, 2013, 06:43:46 AM »
Each entry is a separate file. If I did that, the script would have to open up each file in order until it found the the right steamid.
could you not just have a table that links the steam id with the normal  64bit steam id so the game can tell  steam id = the 64 bit one ?
ps: i don't mean steamid:0:0:533216 = 5251627321
a person asked me how to code lua and i said this " its like building a rocket up side down then  realizing you did it all wrong."

Offline Boncey

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: AWarn 3.3 - Robust warning system
« Reply #31 on: February 01, 2013, 12:34:11 PM »
Not working :l

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn 3.3 - Robust warning system
« Reply #32 on: February 01, 2013, 02:00:13 PM »
Not working :l

Care to elaborate? Are you getting any errors?

Offline delagious

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
Re: AWarn 3.3 - Robust warning system
« Reply #33 on: February 01, 2013, 08:22:09 PM »
Not working :|

Code: [Select]
] ulx_warnkick_ban 1
] ulx_warnkick_bantime 60
] ulx_warnkick_decayrate 25
] ulx_warnkick_num 2
] ulx_warnkick_decayrate
"ulx_warnkick_decayrate" = "25" ( def. "" )
 server_can_execute clientcmd_can_execute
 - Minutes a player needs to be connected before their warning count is decreased by 1.
] ulx_warnkick_decayrate 30
] ulx_warnkick_decayrate
"ulx_warnkick_decayrate" = "30" ( def. "" )
 server_can_execute clientcmd_can_execute
 - Minutes a player needs to be connected before their warning count is decreased by 1.
] ulx warn "Mistah Mee" Test
You warned Yourself (Test)
AWarn: You were warned by (Mistah Mee) for: Test
] ulx warn "Mistah Mee" Test
You warned Yourself (Test)
AWarn: You were warned by (Mistah Mee) for: Test
] ulx warn "Mistah Mee" Test
Disconnect: Warning threshold exceeded.
Disconnect: Warning threshold exceeded.

So it doesn't ban as it should and it doesn't trigger on the number I set not sure if bantime works because it won't ban.


Edit#1: What I mean by not working is it isn't allowing itself to be customized. I uses the default settings it came with.
1. It kicks ALWAYS.
2. It only works after 3 warns.
3. I haven't changed the refresh rate but I imagine it's stuck at 30 minutes.
4. Haven't had the chance to see if it will use a custom ban time.
« Last Edit: February 02, 2013, 11:00:09 AM by delagious »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn 3.3 - Robust warning system
« Reply #34 on: February 01, 2013, 10:44:47 PM »
I'll have to look into this a little more. Thanks for posting the log

Offline Boncey

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: AWarn 3.3 - Robust warning system
« Reply #35 on: February 02, 2013, 07:50:49 AM »
No errors, the plugin isn't detected, when I go !warn or 'ulx warn' it does nothing!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: AWarn 3.3 - Robust warning system
« Reply #36 on: February 02, 2013, 08:06:51 AM »
No errors, the plugin isn't detected, when I go !warn or 'ulx warn' it does nothing!
Does it show as loaded in your server console during server startup?
What does it say in your server console when you run the command, if anything?
What does it say in your client console when you run the command? (command not found?)

My first guess, without seeing answers to those questions, would be that it's not running from your servers addons folder.
"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.3 - Robust warning system
« Reply #37 on: February 02, 2013, 12:14:29 PM »
Edit#1: What I mean by not working is it isn't allowing itself to be customized. I uses the default settings it came with.
1. It kicks ALWAYS.
2. It only works after 3 warns.
3. I haven't changed the refresh rate but I imagine it's stuck at 30 minutes.
4. Haven't had the chance to see if it will use a custom ban time.

Try changing the configurations using the console variables and then changing map or restarting your server. It may be an issue with how the con variables are storing and retrieving info. Also make sure you are making those changes on the server. Don't attempt to run the console commands on your client, even if you are a superadmin.

Offline delagious

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
Re: AWarn 3.3 - Robust warning system
« Reply #38 on: February 02, 2013, 01:31:45 PM »
Try changing the configurations using the console variables and then changing map or restarting your server. It may be an issue with how the con variables are storing and retrieving info. Also make sure you are making those changes on the server. Don't attempt to run the console commands on your client, even if you are a superadmin.

Code: [Select]
No response from the server (this may be an invalid command)
 
 
"ulx_warnkick_bantime" = "60" ( def. "" )
game clientcmd_can_execute
- How long in minutes a player is banned if ulx_warkick_ban is set to 1.
 
 
No response from the server (this may be an invalid command)
 
 
"ulx_warnkick_decayrate" = "30" ( def. "" )
game clientcmd_can_execute
- Minutes a player needs to be connected before their warning count is decreased by 1.
 
 
No response from the server (this may be an invalid command)
 
 
"ulx_warnkick_num" = "2" ( def. "" )
game clientcmd_can_execute
- Number of warnings a player needs before they are kicked/banned.
 
 
No response from the server (this may be an invalid command)
 
 
"ulx_warnkick_ban" = "1" ( def. "" )
game clientcmd_can_execute
- If this is set to 1, the script will issue a temp ban instead of a kick.

Each time I tried changing a value I got "No response from the server (this may be an invalid command)" but
when I checked what the value was set to it returned the values I had set earlier through my client.
Would changing these values directly from the "warn.lua" file work?

Side note: Even though console returned an error these values now work...

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn 3.3 - Robust warning system
« Reply #39 on: February 03, 2013, 02:34:50 PM »
It's odd that it returns an error. The reason you need to do it from the server is because if you do it from the client it will change the value clientside as the convars are shared I believe.The script only reads from the serverside ones though.

So is everything working as intended now (even with the errors when run through the server console)?

Offline delagious

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
Re: AWarn 3.3 - Robust warning system
« Reply #40 on: February 03, 2013, 06:37:26 PM »
It's odd that it returns an error. The reason you need to do it from the server is because if you do it from the client it will change the value clientside as the convars are shared I believe.The script only reads from the serverside ones though.

So is everything working as intended now (even with the errors when run through the server console)?

Yes it works just fine with the new settings I ran through the server console but it also gives me the weird errors after I change a value.
It now bans as it should and after the right amount of warns and for the correct time.

Offline RoundEye

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: AWarn 3.3 - Robust warning system
« Reply #41 on: February 26, 2013, 08:03:00 PM »
Sweet!

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn 3.3 - Robust warning system
« Reply #42 on: February 27, 2013, 10:46:05 PM »
Yes it works just fine with the new settings I ran through the server console but it also gives me the weird errors after I change a value.
It now bans as it should and after the right amount of warns and for the correct time.
I hope youre still monitoring this thread. Could you copy and paste the errors you are getting?

Offline delagious

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
Re: AWarn 3.3 - Robust warning system
« Reply #43 on: February 28, 2013, 07:27:41 PM »
I hope youre still monitoring this thread. Could you copy and paste the errors you are getting?

when I type the command "ulx_warnkick_num" I get this response in console:
Code: [Select]
"ulx_warnkick_num" = "4" ( def. "" )
game clientcmd_can_execute
- Number of warnings a player needs before they are kicked/banned.

 
but when I type "ulx_warnkick_num 5" I get this response.
Code: [Select]
No response from the server (this may be an invalid command)even though I get an error the value is changed from 4 to 5. That error is what I get
for when I try to change any of the values whether it be any of these:
  • ulx_warnkick_num
  • ulx_warnkick_decayrate
  • ulx_warnkick_ban
  • ulx_warnkick_bantime

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: AWarn 3.3 - Robust warning system
« Reply #44 on: February 28, 2013, 07:52:22 PM »
You know you're supposed to be typing those on the server console or rcon, right?
Are you?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming