GNet Masterserver for PHP


Tweet blitz3d blitzmax networking code-archives miscellaneous
(Posted 7 months ago) RonTek

GNet MasterServer for PHP with some modifications.

Download: https://www.dropbox.com/s/urrlt8h6hi0h9wn/gnet.php?dl=0

SQL Table Import (replace mydatabase with the name of your database)

SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';

CREATE DATABASE `mydatabase` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `mydatabase`;

DROP TABLE IF EXISTS `gnet_servers`;
CREATE TABLE `gnet_servers` (
  `game` varchar(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `server` varchar(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `ip` varchar(40) NOT NULL,
  `t_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  UNIQUE KEY `ip` (`ip`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Install Guide

  1. In your hosting CPanel, Create a MySQL Database with your username and password and database name.
  2. Enter all these details on the top part of the code above (gnet.php)
  3. Upload this code in your PHP hosting provider using FTP or their built-in File Manager. I would recommend the root folder or public_html so you can access this easily.
  4. Install the above sql import statements through PHPMyAdmin, under SQL Query feature.
  5. Go to the root address of your hosting account + gnet.php (something like mysite.myhosting.com/gnet.php or mydomain.com/gnet.php if you have added your own domain).
  6. The full address of the top part will be the url address that you will enter on the BlitzMax or Blitz3D gnet host section.
(Posted 7 months ago) ManoBrz commented:

você pode me explicar um pouco mais por favor? certa vez eu perguntei para um vendedor de host como eu deveria hospedar meu jogo no servidor dele e ele sugeriu que eu fizesse uma aplicação em php então isso que vc postou parece ser muito útil, principalmente por usar o GNet

(Posted 7 months ago) RonTek commented:

That is great and no problem, I will make a quick tutorial and add it to the post above.

(Posted 7 months ago) ManoBrz commented:

Desculpe, mas eu não entendi muito bem para que serve isso. é para eu criar meu próprio servidor GNet?

(Posted 7 months ago) RonTek commented:

é para eu criar meu próprio servidor GNet?

Yes, this is for having your own GNet server. The site is also hosting a GNet server if you don't need to have your own, just enter http://gnet.blitzcoder.org in the host field.

(Posted 7 months ago) ManoBrz commented:

Ok, achei bem legal.

Reply To Topic (minimum 10 characters)

Please log in to reply