Tremulous Forum

Mods => Modding Center => Topic started by: infestor1 on May 26, 2009, 03:19:21 am

Title: !report
Post by: infestor1 on May 26, 2009, 03:19:21 am
This will be for my new server. Not for a QVM that I am hoping to release.

This will probably be very complicated, but I am willing to go to almost any lengths to get this operational. I am hoping to create a command to report cheaters, deconners, and abusing admins.

the description of my idea
command: !report
syntax: !report abuse|cheat|decon (PLAYER NAME) How they abused|suspected of what kind of cheating|what they deconned

This command will be able to report any admin abusers, cheaters, and deconners safely without notifying anyone else in game (except if there is an admin in game). Only level 5 admins will be able to read incoming messages. If someone !reports when a level 5 is not online, then the next time the level 5 comes on, they will be able to do !listreports. !listreports will bring up a list of unread reports. The report will have the name of the person reported, and a report ID. Each report has a different ID. Then the admin will do !readreport (ID number). That will show them something like this:

ABUSE REPORT
Player: JOE
ADMIN ABUSE
Reported by: BOB
Description: joe is really mean. he deconned the om then started muting us all.
(LAST 60 seconds of chat before !report)

And since this will be able to report admin abuse, people will be able to use this command as a spectator, and even if they are muted. The next feature will probably be the hardest to make of all. It will show the last 60 seconds of chat before the !report was issued. This log will have all admin activity, all gameplay (who killed who), and ALL admin activity).

Please, if you can only help with one part of this, only help with one. But i need all the help i can get with this, and I have no experience. I want to make my server fun and safe for everyone, and I would need this to make sure that people arent having an unfair gameplay experience.

I hope this command is not too much...

thanks,
Andrew

p.s. the report system could be like the same idea as: /m console

Title: Re: !report
Post by: Archangel on May 26, 2009, 03:25:28 am
already exists more or less
Title: Re: !report
Post by: Undeference on May 26, 2009, 03:56:13 am
!report command logs client names, GUIDs, and IPs (http://patches.mercenariesguild.net/index.php?do=details&task_id=49)
Of course, you could do about the same with admin chat and grep—and people won't have to learn a new command. But it's up to you, of course.
Title: Re: !report
Post by: David on May 26, 2009, 11:48:15 am
I almost made a !summonadmin that was just an empty admin.dat command block and tail -f on admin.log.  Worked perfectly fine.
Title: Re: !report
Post by: danmal on May 27, 2009, 08:42:34 am
Slacker (http://tremulous.net/forum/index.php?action=profile;u=5714) made something similiar to this I believe. Maybe ask him for his code?
Title: Re: !report
Post by: infestor1 on July 07, 2009, 12:30:02 am
I almost made a !summonadmin that was just an empty admin.dat command block and tail -f on admin.log.  Worked perfectly fine.

Could you send me the code for that?
Title: Re: !report
Post by: kevlarman on July 07, 2009, 01:57:30 am
I almost made a !summonadmin that was just an empty admin.dat command block and tail -f on admin.log.  Worked perfectly fine.

Could you send me the code for that?
Code: [Select]
[command]
name = summonadmin
exec =
levels = 0 1 2 3 4 5
(note: only works with the old admin.dat format, i'm too lazy to look up the new one to replace levels)
Title: Re: !report
Post by: infestor1 on July 07, 2009, 02:21:42 am
I almost made a !summonadmin that was just an empty admin.dat command block and tail -f on admin.log.  Worked perfectly fine.

Could you send me the code for that?
Code: [Select]
[command]
name = summonadmin
exec =
levels = 0 1 2 3 4 5
(note: only works with the old admin.dat format, i'm too lazy to look up the new one to replace levels)


Whats the use of that?
Title: Re: !report
Post by: Undeference on July 07, 2009, 03:52:32 am
Code: [Select]
[command]
command = summonadmin
exec    =
desc    = summon the admin
flag    = help // assuming "help" is available to everyone

Whats the use of that?
Reread what David said until you understand or until you realize that asking for something when you have no idea what it does is silly.
Title: Re: !report
Post by: infestor1 on July 07, 2009, 04:36:29 am
Code: [Select]
[command]
name = summonadmin
exec =
desc = summon the admin
flag = help // assuming "help" is available to everyone

Whats the use of that?
Reread what David said until you understand or until you realize that asking for something when you have no idea what it does is silly.

I have no idea what tail -f is.
Title: Re: !report
Post by: Undeference on July 07, 2009, 06:14:07 am
http://en.wikipedia.org/wiki/Tail_(Unix)#File_monitoring