Code Monkey home page Code Monkey logo

7daysmanager's Introduction

7DaysManager

Author: Jesse Buffington

				*** This is a work in progress!!! ***
		   *** Feel free to contribute/fork to your hearts content! ***

This is a small collection of scripts that eventually will be merged in to a much greater toolset. My end goal is to eventually replace the current closed source tool (CBSM) with an open source platform that the server operators can then host on their own systems.

Setup:

  • Start by configuring variables under includes/config.php and includes/dbConn.php.
  • Modify the absolute path to log files under 7daysManager and 7daysManager.php (This will probably be moved in to a config file eventually).

7daysmanager's People

Contributors

jessebuffington avatar

Stargazers

emtee40 avatar sLim Long avatar  avatar  avatar

Watchers

 avatar

7daysmanager's Issues

Full server reset

Need a way to reset 7DM when server resets. This either needs to be automated OR needs to be user executable from the web page.

Sync hostile location

Simply stores location of all hostiles and entityid. Can probably use a single script to pull all entities and query DB as needed (less taxing on the server).

Player give option from admin site

Need to add a button and action. Also need an itemized master list from the games xml in order to populate a running item list to choose from.

Run command from web

Need to add an immediate server telnet call to push a command to 7dtd server console. Depending on type of functionality, the command will either output some data or just run silently. Would also be nice to set up a scheduler to keep things in check.

Server data management from website

[3:36 PM] NuTcAsE: The remote access thing I will add to the to-do list on github for the new manager
[3:37 PM] NuTcAsE: No reason I can't add in some code that will enable anyone to manage backups and stuff
[3:37 PM] NuTcAsE: and to reset regions...etc

Add admin paging functionality

Need to add a command to either page/email/alert an admin. We would want to dynamically update admin users based on server level admins and handle the notification based on settings from a web user.

zgate location

Stores zgate information and references playerid/steamid. Will need to be included in the telnet command/chat sync scripts.

Player ping monitor

  • Need to add way to watch player ping and alert after so many infractions.
  • Will need this configurable in DB (will also need to pull config value on each run for live updates).
  • Will need to add configuration method via dashboard.

Sync all players

Occasional update...maybe once or twice daily -- Syncs all information regarding player

Sync animal location

Simply stores location of all animals and entityid. Will probably be combined in entity sync script.

Periodic broadcasts

Will message from DB and broadcast based on last time broadcasted and how often needed.

Sync in-game time

Will only pull game time if players are active in server -- outputs to database to show on website

Add more governance to teleport command

Will need to add a cooldown timer to the teleport command. Will also need to add some form of governance (ie: a player can only teleport after so many minutes/hours of server play.)

Server Update Check

Need a way to verify if server is running the latest version and if it needs to be updated.

Chat poller

Will need to update chat log as well as watch for any user commands and execute as needed

Sync online players

This will pull current location, inventory, health/kills/death stats -- but only from the players set to online in the DB.
This will be updated via the above script.

Get serverID before run

Need to add logic to pull serverID prior to a run -- this will keep the manager from running if no server is configured.

Bot/Server cross functionality with Discord

[3:38 PM] Dragoon1CaN: too bad you cant allow it so that we can command one of these admin bots to restart the server through discord
[3:39 PM] NuTcAsE: You know I thought of that too
[3:39 PM] NuTcAsE: I wanted the admin bot to be able to do everything you can do at the server console
[3:40 PM] NuTcAsE: as well as post a chat message anytime someone talks in game
[3:40 PM] Dragoon1CaN: it was probably mentioned before, i just think that it would be the simplest way for players to contact us to and have us do it
[3:40 PM] NuTcAsE: so it would be like a mirrored chat
[3:40 PM] NuTcAsE: it really would
[3:40 PM] NuTcAsE: in game they could do like /admin or /page
[3:40 PM] NuTcAsE: and in discord it would to @nutcase or @Dragoon1CaN
[3:40 PM] Dragoon1CaN: good idea

Get online players

Update all rows in DB to offline only leaving current online players as online -- this will remove unnecessary logic.

ie:

UPDATE players SET onlineStatus = '0';
replace INTO players (playerid, playerName, steamid, onlineStatus) VALUES ('999999', 'NuTcAsE', '76561197976204251', '1');
replace INTO players (playerid, playerName, steamid, onlineStatus) VALUES ('5', 'sanfordthegreat', '76561198065671347', '1');

Player history checker

This will look for recent players and check their ban status on other servers and report as needed

Add auto-remediation to script monitoring

Will need a configurable value in the DB to act as a master switch as well as timeout settings. Possibly some kind of notification system as well -- probably on the dashboard/discord message.

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.