Now let's talk about the operation of GameGuard: const gg = new GameGuard ( server, ) Operation log ( 'Listening on port 3000' ) ) // Set the GameGuard server to use a latency check interval of 1000ms. 'use strict' const path = require ( 'path' ) const express = require ( 'express' ) const GameGuard = require ( 'gameguard' ) const app = express ( ) // Have the server listen on port 3000. The connection string to use to connect to mongodb.Ī basic example of initializing GameGuard this with my personal favorite http server, fastify, is as follows: The maximum latency, in milliseconds, the player can have before being kicked. The interval at which each player's latency is calculated, in milliseconds. The interval at which each player is pinged, in milliseconds. paramĪ reference to the http server instance to bind to. To initialize GameGuard, you have to initialize it with a reference to a http or https server and an optional set of options. Note: The documentation for gameguard-client will not be covered here but you can head over to the gameguard-client documentation for client side usage. Currently only gameguard-client is supported but in the future there will be guides on creating your own client side solution to communicate with the GameGuard server.
GAMEGUARD ERROR INITIALIZING 153 INSTALL
To install GameGuard you need the server side package (this one) and then a client-side package. I've gone back and forth about implementing logging but I've found it to be so customizable it would be much easier for the end user to implement using signals but if there's enough requests then logging can be implemented to be a core part of GameGuard.
Note About Logging: For now, GameGuard has no logging capability. GameGuard can now be used on it's own but it has been simplified in order to be able to be extended further to suit your needs. All of the previous features still exist but the API has changed to be more simple and streamlined. Note: This is the post 1.0.0 version of GameGuard that has lots of breaking changes from the last version due to major simplification.