Author Topic: AWarn2 - Advanced Warning Module  (Read 364380 times)

0 Members and 2 Guests are viewing this topic.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #225 on: September 18, 2015, 02:58:26 PM »
TTT Might be overriding how lua handles player deaths. In this case, the module wouldn't work.
I don't play or do code for TTT, so I can't help you past this. I'm sorry. Maybe someone who works with TTT could help you get the module working.

It would go in the Awarn2 modules folder though as it would need to be loaded after awarn2.

Offline Norwegian

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • Steam
Re: AWarn2 - Advanced Warning Module
« Reply #226 on: September 19, 2015, 05:25:04 AM »
Yeah, it is in the modules folder.

Anyways, thank you for your assistance so far. I'll either try resolving this myself somehow or I'll see if I can't get the assistance of a TTT Coder.

Offline Bryantdl7

  • Jr. Member
  • **
  • Posts: 86
  • Karma: -2
Re: AWarn2 - Advanced Warning Module
« Reply #227 on: September 21, 2015, 07:47:13 AM »
I'm still able to change the warn settings even with a group that doesn't have the awarn_options permission as you can see in the screenshot.



Offline Bryantdl7

  • Jr. Member
  • **
  • Posts: 86
  • Karma: -2
Re: AWarn2 - Advanced Warning Module
« Reply #228 on: September 22, 2015, 07:07:25 AM »
Another thing I'm running in to, when I try and change the values for how many warns it takes for a kick, and how many warns for a ban, the values I choose will default back to their original numbers.



Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #229 on: September 22, 2015, 12:33:56 PM »
The values get stored in the sv.db file. I've not been able to reproduce the defaulting issue that some people have. The only things I can think of are maybe you don't have folder permissions set up properly to save to the sv.db file or maybe your sv.db file is corrupt.

It'll only go to default values if it can't read custom values from the database file.

Offline Bryantdl7

  • Jr. Member
  • **
  • Posts: 86
  • Karma: -2
Re: AWarn2 - Advanced Warning Module
« Reply #230 on: September 23, 2015, 07:10:18 PM »
Also the anti noclip kill script gives this error
Code: [Select]
Lua Error: [ERROR] addons/awarn2/lua/autorun/sh_awarn.lua:109: attempt to index local 'target' (a number value)
1. awarn_getUser - addons/awarn2/lua/autorun/sh_awarn.lua:109
2. awarn_con_warn - addons/awarn2/lua/autorun/server/sv_awarn.lua:253
3. fn - addons/awarn2/lua/awarn/modules/auto_warn_noclip.lua:5
4. unknown - addons/ulib/lua/ulib/shared/hook.lua:110



Offline Buzzkill

  • Respected Community Member
  • Full Member
  • *****
  • Posts: 176
  • Karma: 59
    • The Hundred Acre Bloodbath
Re: AWarn2 - Advanced Warning Module
« Reply #231 on: September 27, 2015, 02:23:16 PM »
QQ -- I fixed the DB object  /  schema checks for MySQL.  Is the only other issue the callbacks?  Looks like it needs some callbacks pushed down (for example) in awarn_welcomebackannounce into the mysqloo select so that it can handle the queries in async.

Thx.

Offline Buzzkill

  • Respected Community Member
  • Full Member
  • *****
  • Posts: 176
  • Karma: 59
    • The Hundred Acre Bloodbath
Re: AWarn2 - Advanced Warning Module
« Reply #232 on: September 27, 2015, 02:54:34 PM »
NVM -- just noticed the un-refactored sql.Query() calls in the mysqloo lua.   :)


Offline Bryantdl7

  • Jr. Member
  • **
  • Posts: 86
  • Karma: -2
Re: AWarn2 - Advanced Warning Module
« Reply #233 on: September 28, 2015, 09:25:57 PM »
Lua Error: [M9K Specialties] addons/awarn2/lua/autorun/sh_awarn.lua:109: attempt to index local 'target' (a number value)
1. awarn_getUser - addons/awarn2/lua/autorun/sh_awarn.lua:109
2. awarn_con_warn - addons/awarn2/lua/autorun/server/sv_awarn.lua:253
3. fn - addons/awarn2/lua/awarn/modules/auto_warn_noclip.lua:5
4. unknown - addons/ulib/lua/ulib/shared/hook.lua:110
5. FireBullets - [C]:-1
6. unknown - lua/weapons/bobs_gun_base/shared.lua:619

[Wiremod] addons/awarn2/lua/autorun/sh_awarn.lua:109: attempt to index local 'target' (a number value)
           1. awarn_getUser - addons/awarn2/lua/autorun/sh_awarn.lua:109
            2. awarn_con_warn - addons/awarn2/lua/autorun/server/sv_awarn.lua:253
             3. fn - addons/awarn2/lua/awarn/modules/auto_warn_noclip.lua:5
              4. unknown - addons/ulib/lua/ulib/shared/hook.lua:110
               5. FireBullets - [C]:-1
                6. FireShot - lua/entities/gmod_wire_turret.lua:56
                 7. unknown - lua/entities/gmod_wire_turret.lua:75
         
« Last Edit: September 28, 2015, 09:29:38 PM by Bryantdl7 »



Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #234 on: September 29, 2015, 09:09:57 AM »
Same thing as with the TTT module.
I'm not sure, but it looks like maybe the custom weapons you are using handle player damage differently than engine weapons.
If this is the case, you'd not be able to use the module.

The module works with engine weapons, which is what I tested them with, and I can't test for every possible SWEP. I'm sorry.

Offline Buzzkill

  • Respected Community Member
  • Full Member
  • *****
  • Posts: 176
  • Karma: 59
    • The Hundred Acre Bloodbath
Re: AWarn2 - Advanced Warning Module
« Reply #235 on: September 29, 2015, 04:15:29 PM »
Pres --  I got MySQL working for UWarn.  No one would ever accuse me of writing it elegantly, but it's working (at the expense of SQLite support, I'm afraid, as I literally stuffed callback support into some of the core functions w/o regard for supporting SQLite as well).

Anyway, if you're at all interested let me know and I'll post the code somewhere.  It's the least I can do.

Thanks,
Buzz.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #236 on: September 29, 2015, 07:07:28 PM »
Thanks, but I know how I would do it, I just haven't had the time as of late.

Offline Buzzkill

  • Respected Community Member
  • Full Member
  • *****
  • Posts: 176
  • Karma: 59
    • The Hundred Acre Bloodbath
Re: AWarn2 - Advanced Warning Module
« Reply #237 on: September 30, 2015, 06:29:53 AM »
:) Never assumed otherwise... just wanted to be sure and make the offer.  Thanks.

Offline Bob4Porn

  • Newbie
  • *
  • Posts: 1
  • Karma: -2
Re: AWarn2 - Advanced Warning Module
« Reply #238 on: October 24, 2015, 10:31:55 PM »
Where do i place the extra stuff like killing in godmode

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: AWarn2 - Advanced Warning Module
« Reply #239 on: October 24, 2015, 10:41:29 PM »
Where do i place the extra stuff like killing in godmode
Modules: (THESE ONLY WORK WITH VERSION 2.0 AND ABOVE!)
- extract the single lua files into: garrysmod/addons/awarn2/lua/awarn/modules/
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming