Author Topic: AAFK V_3.1 : Anti-AFK system for Garry's Mod  (Read 110892 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #45 on: April 21, 2014, 09:26:41 PM »
Bryan, what commands do you want him to integrate?
There are no commands, only console variables, which are totally different than commands.

As for double, it's answered on first page of posts.
Also, it prints twice because the first is the FancyLog. Which will only display if you have logecho on. The second is the notification I added to show to all connected players when a player goes in and out of afk. If you want to disable the second one, look in the code for anywhere you see ulib.tsayColor and comment it out.
« Last Edit: April 21, 2014, 09:28:36 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline JasonMan34

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #46 on: July 28, 2014, 04:40:24 AM »
Am I the only one that has no idea how to download this???

Nvm it was bugged and the attachment file didn't show up.
I see it now
And btw, it doesn't work
« Last Edit: July 28, 2014, 04:59:21 AM by JasonMan34 »

Offline Bryantdl7

  • Jr. Member
  • **
  • Posts: 86
  • Karma: -2
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #47 on: July 28, 2014, 09:13:59 AM »
Put it in lua/autorun



Offline JasonMan34

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #48 on: August 04, 2014, 06:15:59 PM »
Put it in lua/autorun

Actually I just put it in the lua/ulx/modules/sh...
I thought it didn't work because I tested it in a wrong way

Offline Bryantdl7

  • Jr. Member
  • **
  • Posts: 86
  • Karma: -2
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #49 on: August 05, 2014, 03:17:21 PM »
Yeah, this has no affect on ULX, and can even run without it.



Offline Mates

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #50 on: August 07, 2014, 02:09:09 AM »
I've noticed the DrawAFKStatus() function, which looks like it's supposed to draw something above players, but I can't see anything above/around players that go AFK. Is it supposed to work?

Offline Valgoid

  • Full Member
  • ***
  • Posts: 103
  • Karma: -15
  • Wanna Be Lua King
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #51 on: August 16, 2014, 01:55:11 PM »
Mr. P please update this if you can! This is really useful, and needs to be updated

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #52 on: August 16, 2014, 07:21:30 PM »
What's wrong with it currently? I was unaware that it was broken.

Offline ChaosWolf

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 2
  • "The Exiled One's" Server Owner
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #53 on: August 19, 2014, 07:46:57 AM »
Edited:

perhaps this is whats wrong with it... -_-

been lingering for a while on these forums bout time I joined.

heres the error message, server didn't like this at all!

[ERROR] lua/autorun/aafk.lua:375: Tried to use a NULL entity!
    1.GetAnges - [C]:-1
       2.unknown lua/autorun/aafk.lua:375

getting similar errors for lua/ulx/modules/sh directory as well, therefore thusly, I conclude said file is broken kind sir. (puff puff)

-a lot of us server owners have had updates recent to the last time THIS particular addon was updated. and some of us aren't lua geniouses and cant fix it ourselves. Prognosis = update: confirmed. ^_^
« Last Edit: August 19, 2014, 03:03:47 PM by chaoswolf »
"Someone once told me, scripting lua is like trying to build a rocket ship, once your finished with it and think your done, you start it up only to realize you had just built it upside down." ~Programmer

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #54 on: August 19, 2014, 03:12:15 PM »
The latest gmod update did change the way entities are handled. I'll have to take a look. Thanks for the error. It helps.

Offline ChaosWolf

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 2
  • "The Exiled One's" Server Owner
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #55 on: August 19, 2014, 03:19:17 PM »
New to the language
New to the forum

Veteran Programmer
XDA Developer

always glad to help... and look forward to working with you guys.

Edit:
if you need anything else let me know, my server was throwing a tantrum.
« Last Edit: August 19, 2014, 03:20:53 PM by chaoswolf »
"Someone once told me, scripting lua is like trying to build a rocket ship, once your finished with it and think your done, you start it up only to realize you had just built it upside down." ~Programmer

Offline Mates

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #56 on: August 19, 2014, 03:39:03 PM »
My version of aafk.lua only has about 190 lines, so I am kinda surprised by the
Quote
[ERROR] lua/autorun/aafk.lua:375: Tried to use a NULL entity!

I am sort of new to LUA and this forum too, programmer for about 4 years, I'll do my best to help as well.

Offline ChaosWolf

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 2
  • "The Exiled One's" Server Owner
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #57 on: August 19, 2014, 04:00:15 PM »
Trust me its not the only error I get... there are about three total, but they all tell me the same thing.

Me: "hey server, check this out, try running this new script."
Server: "What the <censor> is this? what am I supposed to do with it?"

it reads, it runs, it follows the command structure, all commands work properly. but it's function is bugged somehow and does not follow up.
EXAMPLE: console: aafk_enabled 1
                Server responds with "something is creating script errors" (error msg) Admin: Chaoswolf has enabled AFK

Then nothing just an ongoing plethora of admin console errors telling me I cant read this . and the server console spitting the taste out its mouth with the script error, the only difference is the directory.

Edit:

here are the other two Errors:


[ERROR] LuaCmd:1: attempt to call method 'AddNotify' (a nil value)
  1. unknown - LuaCmd:1


[ERROR] lua/autorun/aafk.lua:340 BadArgument #2 to 'SetNetoworkedInt' (number expected, got nil)
   1. SetNetworkedInt - [C]:-1     
      2. unknown lua/autorun/aafk.lua:340

« Last Edit: August 19, 2014, 04:10:22 PM by chaoswolf »
"Someone once told me, scripting lua is like trying to build a rocket ship, once your finished with it and think your done, you start it up only to realize you had just built it upside down." ~Programmer

Offline Mates

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #58 on: August 19, 2014, 05:07:26 PM »
Trust me its not the only error I get... there are about three total, but they all tell me the same thing.

Me: "hey server, check this out, try running this new script."
Server: "What the <censor> is this? what am I supposed to do with it?"
...
Are you using the latest version, 3.1?

Offline ChaosWolf

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 2
  • "The Exiled One's" Server Owner
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #59 on: August 19, 2014, 05:16:21 PM »
@mr. p

yep just downloaded it from the zip file you left in the OP.
picked it up, plugged it in... server spat it out.
"Someone once told me, scripting lua is like trying to build a rocket ship, once your finished with it and think your done, you start it up only to realize you had just built it upside down." ~Programmer