Author Topic: [module] GamePanel Module  (Read 5650 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
[module] GamePanel Module
« on: October 06, 2017, 05:10:08 PM »
*old topic: game-panel-plugin

So finaly I got time and my medical problems are over, hopefully, so I wrote whole module from scratch.

I made Admin and Client side modules with translating feature so you will be able to translate text as you wish.
Module is free for Personal and Commercial usage under terms and conditions.

More Info: GamePanel Module - Centos-WebPanel

Admin:






Client:



« Last Edit: October 06, 2017, 05:13:22 PM by Gogo »

Offline
***
Re: [module] GamePanel Module
« Reply #1 on: October 18, 2017, 09:03:25 PM »
Beta available for download!
Visit CWP GamePanel Module for more informations.
I suggest everyone to make backup first of root_cwp database!

This version is tested on next machine:
Code: [Select]
Application Version:
Apache version: Apache/2.4.27
PHP version: 5.6.31
MySQL version: 5.5.56-MariaDB

System Info:
Distro Name: CentOS Linux release 7.4.1708
Kernel Version: 3.10.0-514.2.2.el7.x86_64
Platform: x86_64
« Last Edit: October 18, 2017, 09:07:04 PM by Gogo »

Offline
*
Re: [module] GamePanel Module
« Reply #2 on: October 27, 2017, 02:44:04 AM »
at the time of installing this error

There was a problem with GamePanel module installation
Please check log file: /var/log/gamepanel-installation.log

Offline
***
Re: [module] GamePanel Module
« Reply #3 on: October 27, 2017, 03:48:55 AM »
By the way GamePanel Module is for CWP7. Trying to install it on CWP6 will return an error and will not install (personal test).
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
***
Re: [module] GamePanel Module
« Reply #4 on: October 27, 2017, 10:59:04 AM »
Thank you for feedback. I'm gonna create test machine and check whats the issue.

Did you get any error displayed or something?
Also there are two logs /var/log/gamepanel.log   and  /var/log/gamepanel-installation.log   did you get any error there maybe?

Offline
***
Re: [module] GamePanel Module
« Reply #5 on: October 27, 2017, 11:48:51 AM »
Personally I got only
Code: [Select]
There was a problem with GamePanel module installation
Please check log file: /var/log/gamepanel-installation.log
And both log files was empty.
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
***
Re: [module] GamePanel Module
« Reply #6 on: October 27, 2017, 12:36:43 PM »
I didn't notice first post from patricknasci at all, sorry mate.

Also I found the problem. MySQL syntax that checks for gp's tables in db was broken on CWP6 due MariaDB differences.
It should work now. Just run the installation shell cmd again and it will overwrite all existing files.

EDIT: Forgot to mention, for all new installations (if there is no installed servers yet) please make Uninstall and Install process from the CWP so GPM buttons can be created in 3rdparty.php.
Also CWP6 users have to do the same.

Or you can do it manually following instructions new gpm buttons - manual change
« Last Edit: October 27, 2017, 01:30:50 PM by Gogo »

Offline
***
Re: [module] GamePanel Module
« Reply #7 on: October 27, 2017, 05:26:20 PM »
Code: [Select]
Fatal error: Uncaught GameQ\Exception\Server: Unable to locate Protocols class for 'cod5'! in /usr/local/cwpsrv/htdocs/resources/gamepanel/classes/GameQ/Server.php:146 Stack trace: #0
/usr/local/cwpsrv/htdocs/resources/gamepanel/classes/GameQ/GameQ.php(189): GameQ\Server->__construct(Array) #1
/usr/local/cwpsrv/htdocs/resources/gamepanel/classes/gamepanel.gm.php(1) : eval()'d code(695): GameQ\GameQ->addServer(Array) #2
/usr/local/cwpsrv/htdocs/resources/gamepanel/classes/gamepanel.gm.php(1) : eval()'d code(419): GPM\factory->getServerQuery(Array) #3
/usr/local/cwpsrv/htdocs/resources/gamepanel/classes/gamepanel.gm.php(1) : eval()'d code(128): GPM\factory->server_edit(1001) #4
/usr/local/cwpsrv/htdocs/resources/admin/modules/Game_Panel.php(1) : eval()'d code(15): GPM\factory->_render_content() #5
/usr/local/cwpsrv/htdocs/resources/admin/modules/Game_Panel.php(1): eval() #6 /usr/local/cwpsrv/htdocs/admin/admin/index.php(0): unknown() #7 {main} thrown in
/usr/local/cwpsrv/htdocs/resources/gamepanel/classes/GameQ/Server.php on line 146
Got surprise. By the way when I try to add new server I can choose only from COD4, COD5 and MC-Vanilla. I`m testing on a very slow machine (AMD Athlon 3800+ @ 2.00GHz (Dual Core) with 2GB DDR2 RAM (Desktop PC)), but my question is: is it based on server power to show which game servers can be installed or is a bug?
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
***
Re: [module] GamePanel Module
« Reply #8 on: October 27, 2017, 05:42:47 PM »
Nope. These 3 games were left from my test machine as "Active" so you can select only these 3.

You have to edit game you wish to install and set status to active.
In that case you will be able to chose game from "Add Server" form.

But, that will display button "Add Server" on games list ONLY in case that you have created folder for specific game.

As you can see here: https://i.imgur.com/QhWPxnC.png

Games 10 and 8 are Active and has Game Directory existing, you'll be able to select game from the server creating form and also there is "Add Server" button on the games list.

Game 27 do not have existing folder but is set as Active, in that case button add server won't apper, but you will still be able to select that game from the server creating form.

I have to add that button "Add Server" on all games on the games list for all active games no matter on directory existance. Module doesn't care about game folder, it will create users directory for server and after that you can manually copy files you want.

EDIT: For now I didn't add system check for games, but that is on to-do list because some games neeed really powerfull servers to run fine. Like minecraft (moded, forge), ark survival evolved (especially with mods, that overkill for any machine), etc. And also once I create cron script same thing will be used to prevent overloads, etc. I have few things on to-do list.

EDIT2:  Forgot, query for these old cod games have to be "quake3" not short game code. I will add soem changes now to fix few things I found now that I didn't fix.
« Last Edit: October 27, 2017, 05:48:39 PM by Gogo »

Offline
***
Re: [module] GamePanel Module
« Reply #9 on: October 27, 2017, 06:49:11 PM »
Updated.
1. Run installation cmd again to overwrite files.
2. YOURHOST/admin/index.php?module=Game_Panel&task=gpdbupdate
     to update values in db that are changed

NotFixed, to-do:
Have to bypass GameQ's exception handler to prevent script exit on error/exception, or return back to GameQ v2 instead of v3 because v2 has more games.

Offline
*
Re: [module] GamePanel Module
« Reply #10 on: October 28, 2017, 01:22:24 AM »
error install samp server :
Notice: fwrite(): send of 11 bytes failed with errno=111 Connection refused in /usr/local/cwpsrv/htdocs/resources/gamepanel/classes/GameQ/Query/Native.php on line 65

Offline
*
Re: [module] GamePanel Module
« Reply #11 on: October 28, 2017, 01:25:16 AM »

I put it to create a minecraft server but it does not start and it does not generate the files in the webftp

Offline
***
Re: [module] GamePanel Module
« Reply #12 on: October 28, 2017, 01:58:39 AM »
Run the install cmd again please, I was working on GameQ for the last few hours trying to bypass these non-sense exceptions from GameQ.

For the game files, you have to manually create game files for every game in the game directory that is set for game.
It's same as for normal standalone gamepanels.

Module will create srv_XXXX folder inside users root directory, but in case you don't have files in /home/gamefiles/GAME_NAME  module can't do anything more except create srv_XXXX folder.

Module will not have game files downloading feature at this momment, and for now it is not even on to-do list.

Offline
*
Re: [module] GamePanel Module
« Reply #13 on: October 28, 2017, 02:19:11 AM »
include a console to see if the server is running and the server information would be very useful

Offline
***
Re: [module] GamePanel Module
« Reply #14 on: October 28, 2017, 02:25:52 AM »
Atm I'm working on printing shell output to make debuging easier.