Code Monkey home page Code Monkey logo

calladmin's Introduction

CallAdmin

CallAdmin is a multilingual, modular and extendable system to allow in-game reports for HL2-Games and Mods.

The system is based on multiple parts.

  • A multilingual, extendable sourcemod-plugin to report players in-game
  • Modules that catch reports and relay them to steam, ts3, mysql, etc
  • A Desktop Client to notify admins when a new report was made
  • Web scripts to make reports available from outside the game and interact with the modules and/or the client

Please take a look at the wiki for more information.

Development builds

Build plugin
Build plugin release

We encourage you to to use our development builds and tell us about problems that arise.
Prebuild packages of CallAdmin can be found at the releases page. If you want the newest changes you can clone/download this repository and compile the code yourself. We tried to make this as easy as possible.

calladmin's People

Contributors

cripix avatar dordnung avatar extacy avatar frisasky avatar impact123 avatar maxijabase avatar rcon420 avatar sarrus1 avatar xvitaly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calladmin's Issues

Call to undefined function GetAuthIDType() in calladmin_helpers.php

Hey guys,
Looks like we're missing the self:: in line 103 of the development calladmin_helpers.php

Currently:

    /**
     * Converts an steamid to an friendid
     * 
     * @var       string
     * @return    string
     */
    function SteamIDToComm($steamId)
    {
        if (GetAuthIDType($steamId) == AuthIDType::AuthString_SteamID2)
        {
            $steamId = SteamID2ToSteamId($steamId);
        }

Should be:

    /**
     * Converts an steamid to an friendid
     * 
     * @var       string
     * @return    string
     */
    public function SteamIDToComm($steamId)
    {
        if (self::GetAuthIDType($steamId) == AuthIDType::AuthString_SteamID2)
        {
            $steamId = SteamID2ToSteamId($steamId);
        }

new dev version give me errors (Steam Module)

Hey Impact,

danke erstmal für das Update und ich habe seit dem neuen Release ein Problem mit dem Calladmin Steam Modul. Es zeigt mir diesen Fehler hier an.

L 03/28/2020 - 12:21:20: SourceMod error session started
L 03/28/2020 - 12:21:20: Info (map "de_mirage") (file "/home/user2-9/server/csgo/csgo/addons/sourcemod/logs/errors_20200328.log")
L 03/28/2020 - 12:21:20: [SM] Exception reported: Option with value '4' is invalid!
L 03/28/2020 - 12:21:20: [SM] Blaming: calladmin_steam.smx
L 03/28/2020 - 12:21:20: [SM] Call stack trace:
L 03/28/2020 - 12:21:20: [SM]   [0] MessageBot_SetOption
L 03/28/2020 - 12:21:20: [SM]   [1] Line 119, gameserver/calladmin_steam.sp::OnConfigsExecuted
L 03/28/2020 - 12:25:52: Error log file session closed.
L 03/28/2020 - 12:25:53: SourceMod error session started
L 03/28/2020 - 12:25:53: Info (map "de_mirage") (file "/home/user2-9/server/csgo/csgo/addons/sourcemod/logs/errors_20200328.log")
L 03/28/2020 - 12:25:53: [SM] Exception reported: Option with value '4' is invalid!
L 03/28/2020 - 12:25:53: [SM] Blaming: calladmin_steam.smx
L 03/28/2020 - 12:25:53: [SM] Call stack trace:
L 03/28/2020 - 12:25:53: [SM]   [0] MessageBot_SetOption
L 03/28/2020 - 12:25:53: [SM]   [1] Line 119, gameserver/calladmin_steam.sp::OnConfigsExecuted

CallAdmin Desktop Client Error when shutting down

The CallAdmin Desktop Client shows an error when shutting down. This happens everytime I shutdown my pc while the client is running. I have to press ok to the error and afterwards the pc finally shuts down.

I do not receive messages when someone calls for admin

Hello,
I have my plugin setup as follow:
in calladmin_steam_groupidlist.cfg file:
// List of group names (custom group name), separated by a new line
// So for example if your community link is: http://steamcommunity.com/groups/Valve then write in a new line: Valve
// YourGroupName
adminsbynox

in calladmin_steam_steamidlist.cfg file:
// List of steamids or communityids, seperated by a new line
// STEAM_0:0:1
// 76561197960265730
STEAM_0:1:544522056
STEAM_0:0:571660736

I'm not sure if I missed something here, I have extracted both the Call Admin Plugin .zip & the Steam Module .zip files into my server, but in the sourcemod logs folder I get the following in a logged text file:

L 05/06/2021 - 22:48:33: [CallAdmin: Steam module] Failed to send steam message: (result: 1 [No recipients were setup prior to sending a message] | error: No receiver was configurated)
L 05/07/2021 - 00:27:35: [CallAdmin: Steam module] Failed to send steam message: (result: 1 [No recipients were setup prior to sending a message] | error: No receiver was configurated)

I don't get the message to my steam chat if that's what the plugin does, I have a running 24/7 VPS which has steam installed in it (it has admin #1 logged in to his steam there, and I'm the second one on my PC which is not running 24/7) so that means I have total 2 admins on my server. Maybe I missed something here?

With much thanks!

[MySQL module] CallAdmin not working

Hi, I'm having troubles with calladmin mysql module, when a player types /calladmin and reports someone, this report isn't saved in the mysql, causing I won't receive an alert in the desktop client

Little sourcebans support ( sb_admins.cfg instead of calladmin_steam_steamidlist.cfg)

Because then when you add the administrator to SourceBans have to re-add to calladmin_steam_steamidlist
or simply forget to add or remove

file location /addons/sourcemod/configs/sourcebans/sb_admins.cfg
sb_admins.cfg example

"Admins"
{
    "nickname"
    {
        "auth"      "steam"
        "identity"      "STEAM_1:1:53533556"
        "group"     "Admins"
    }
    "nickname2"
    {
        "auth"      "steam"
        "identity"      "STEAM_1:0:443849190"
        "group"     "Admins"
    }
    "nickname3"
    {
        "auth"      "steam"
        "identity"      "STEAM_1:1:53479065"
        "group"     "Admins"
    }
}

I think that most servers use SourceBans

CallAdmin not sending messages and giving errors at start

This is the error:

L 12/01/2018 - 23:08:32: [SM] Exception reported: Could not open file "csgo/"
L 12/01/2018 - 23:08:32: [SM] Blaming: calladmin.smx
L 12/01/2018 - 23:08:32: [SM] Call stack trace:
L 12/01/2018 - 23:08:32: [SM] [0] LogToFileEx
L 12/01/2018 - 23:08:32: [SM] [1] Line 263, C:\Users\friendz-\Desktop\sourcemod-1.9.0-git6261-windows\addons\sourcemod\scripting\calladmin.sp::Native_LogMessage
L 12/01/2018 - 23:08:32: [SM] [3] CallAdmin_LogMessage
L 12/01/2018 - 23:08:32: [SM] [4] Line 129, C:\Users\friendz-\Desktop\sourcemod-1.9.0-git6261-windows\addons\sourcemod\scripting\calladmin_steam.sp::OnPluginStart
L 12/01/2018 - 23:08:32: [SM] Unable to load plugin "calladmin_steam.smx": Error detected in plugin startup (see error logs)

The plugin works, I can report and it opens the menu after !call and everything but there the bot dont send any message. The login information is correct

Win XP Client

Hi,

kannst du bitte denn Client für XP noch Programmieren?
Haben im Clan noch einige XP User die nicht auf Win Vista/7/8 umsteigen können, aufgrund schlechter Hardware.

MfG
Blacky

Help Call admin+discord

Hello very good that I have a question, I just want to have the call admin + discord. as I don't see a guide on how to configure the discord plugin. I would only have to place those two complements or would I have to add any more? that's why my question is a rookie and I really am in matters of complements, I hope your answer thanks.

Suggestion: Add target immunity for admins

It would be interesting to add immunity for administrators, I mean, so that their names are not displayed in the report players menu, this is useful so that players do not know that there are administrators on the server (if admins are invisible in spectator mode, which is mine case.)

mysql module table name does not allow configuration

Setting: sm_calladmin_table_name "calladmin" in the plugin.calladmin_mysql.cfg with latest version does not create a table "calladmin" instead it createst the default one "CallAdmin" (notice the capitals)

As if it does not get read at all.

Steam Guard - Disable

Sorry, some kind of error has occurred: To post this comment, your account must have Steam Guard enabled.

Steam Module - Returns no recipients

I'm having an issue with the Steam Module. I currently have the settings as follows:

"calladmin_steam_groupidlist.cfg"

BOOM_Gaming_Admins

"calladmin_steam_steamidlist.cfg"


The "calladmin_steam_steamidlist.cfg" file is empty as I want it to pull the steam IDs from the group instead of manually adding them to each config file. The strange thing is that with this configuration I get the following error:

"[calladmin_steam.smx] Failed to send message, result was: (3, 1)"

I didn't get this error when I entered my own ID into the "calladmin_steam_steamidlist.cfg", in fact when I had just my steam ID in the file it would message me correctly. Even though I get this error I still see the steam account login but it doesn't send the message. To my understanding this error means there are no recipients (I could be wrong). I checked the group name with the following URL and the 3 group members show up correctly:

http://steamcommunity.com/groups/BOOM_Gaming_Admins/memberslistxml/?xml=1

any help you can offer here would be appreciated as I love this mod and would like to get it running on all of our servers. Thank you!

[TeamSpeak 3] Add idea

Hello,

I want to know if it will be possible to add into ts3 module, sending a message in function of id groups of the users ?

Thank you,

Have a good day.

[CallAdmin: Mysql module] ConErr: [2002]: Can not connect to local MySQL server through socket '/tmp/mysql.sock' (2)

In the logs there is such an error
[CallAdmin: Mysql module] ConErr: [2002]: Can not connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Looked Variables in phpmyadmin: socket = /var/run/mysqld/mysqld.sock , but I have no right to change these values on my hosting. Maybe once, you can change the path to mysql.sock?

The comments are advised to do so:
https://forums.alliedmods.net/showthread.php?p=2261276&highlight=/tmp/mysql.sock#post2261276
and
https://forums.alliedmods.net/showthread.php?p=2065223&highlight=%2Ftmp%2Fmysql.sock#post2065223

Databases.cfg problems

Hi, i have team fortress 2 serveur and i make a bot to call all admins in the steam group, all work correctly but when i call, my bot is still sleeping, i'm not sure what i'm supposed to write in "database.cfg" file, thanks for help me.

Translation calladmin_steam

https://github.com/Impact123/CallAdmin/blob/development/gameserver/calladmin_steam.sp#L481

If I replace text on rusian on 481 line, server crashing

for example
"\nНовая жалоба на сервере: %s (%s:%d)\nID жалобы: %d\nЖалуется: %s (%s)\nНа игрока: %s (%s)\nПричина: %s\nПрисоединиться: steam://connect/%s:%d\nВойдя на сервер напишите !calladmin_handle %d или /calladmin_handle %d в чат чтобы закрыть жалобу"

[Feature Request] Add Cvar for Custom IP/Domain Names for Reports from the server

In most of the scenario i see that plugin automatically finds the IP and sent to Reported Module like Steam or Custom like Discord. The issue which most of server operator face is ip is set to 0.0.0.0 and even with changing in server.cfg about hostip as the real IP still we get same IP all over the place.

Can you make a cvar that which IP to be reported like we can add own Custom Domains for Reports. That will make the work more easier.

curl

hey i have a problem with calladmin client when i do update trackers i get a messge from windown saying couldn't init curl connect any way to fix it

Rss-Feed

I have some Problems with the rss feed everytime when i call the feed it will download rss.php. On my Forum Xenforo2 the rss works without any Problems.
PHP Version = 7.2.34-8+ubuntu20.04.1+deb.sury.org+1

Failed opening required 'include/feedwriter\item.php'

require_once(): Failed opening required 'include/feedwriter\item.php' (include_path='.:/usr/share/pear:/usr/share/php') in .../calladmin/autoload.php on line 28

I've been getting this on the rss.php whenver a new calladmin comes in.
I haven't dug too much to see where the includes path is funky or where nested requires loading is being problematic.

Function has a different Type !

/opt/SteamCompile/addons/sourcemod/scripting/include/calladmin.inc(165) : error 181: function argument named 'type' differs from prototype

/**
 * Called when the serverdata data is changed.
 *
 * @param convar       Handle to the convar which was changed.
 * @param type         Type of data which was changed.
 * @param oldVal       Value of data before change.
 * @param newVal       Value of data after change.
 * @noreturn
 */
forward void CallAdmin_OnServerDataChanged(ConVar convar, ServerData type, const char[] oldVal, const char[] newVal);

enum ServerData
{
    ServerData_HostName,     /**< This is the hostname of the server, gathered from the `hostname` convar */
    ServerData_HostIP,       /**< This is the hostip of the server, gathered and converted from the `hostip` convar */
    ServerData_HostPort      /**< This is the hostport of the server, gathered from the `hostport` convar */
};

https://github.com/Impact123/CallAdmin/blob/development/gameserver/calladmin.inc#L175

[CallAdmin: Ts3 module] Error on receiving tracker count: HTTP status code 500

I'm getting this error when just somebody is on the server, not really sure what is causing this
the same happens for calladmin/ts3/index.php via browser but calladmin/notice.php works fine
I'm using latest sourcemod, I have just compiled all of the plugins I used myself, except for this one as I need to be sure it works great before recompiling it myself.

I'm also running MySQL 8 and PHP 7.3 and yes, everything else is running great. I have updated and fixed each and every failing/outdated plugin so far by hand, here I'm quite confused where to even look for the problem

CallAdmin Client / Teamspeak3

Hello,

The CallAdmin Client crash after 10-15sec without error message,

And the CallAdmin Teamspeak3, don't send message to admins but i've error of socket even i've installed it. (Error : [CallAdmin: Ts3 module] Socket Error: 3, 1)

Thanks.

Desktop Client

Hey,

It seems whenever I open the desktop client, around 10 seconds or so it says the application is no longer responding and closes.

Are you aware of this?

Plugin Error

L 04/09/2023 - 16:51:33: [SM] Exception reported: Language phrase "CallAdmin_RecentlyReported" not found (arg 7)
L 04/09/2023 - 16:51:33: [SM] Blaming: calladmin.smx
L 04/09/2023 - 16:51:33: [SM] Call stack trace:
L 04/09/2023 - 16:51:33: [SM] [0] Format
L 04/09/2023 - 16:51:33: [SM] [1] Line 1145, gameserver/scripting/calladmin.sp::ShowClientSelectMenu
L 04/09/2023 - 16:51:33: [SM] [2] Line 797, gameserver/scripting/calladmin.sp::Command_Call

API Error Auth

<CallAdmin_Ts3>
APP_AUTH_FAILURE
</CallAdmin_Ts3>

I have set the right ID but always say error !

Steam module messages throttled

The interface the MessageBot extension has been using seems to have been throttled by Valve significantly now and messages only get sent to 1-2 people and the rest never get it.

Ability for admins to 'handle' a report in-game and in steam chat

Currently there is no way of letting other admins know that you handled a report,
it would be great that when you receive a report while you are playing in the server that you can use a command like !handle and the reporter gets a message that his report is currently being handled.

When you use the steam module it would be nice if there is a extra variable called 'status' that when there isn't a admin online and the report gets send to all the admins, the status is something like 'Ready to be handled', when the admins receives this report he can send a message with 'handle' in it to the bot and all the admins get a message with "status of report #1 changed to 'handled'"

Examples:

New report on server:  Tf2 server(127.0.0.1)
Id: 1
Reporter: Dude (STEAM_0:1:00000000)
Target: Dude2 (STEAM_0:0:00000000)
Reason: Hack
Status: Active

Admin types 'handle' to the bot

Status of report #1 changed to 'Handled'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.