Bright Game Panel Project

Notice: Undefined index: tasklist_type in /var/www/vhosts/bgpanel.net/support.bgpanel.net/includes/class.tpl.php(128) : eval()'d code on line 85 Notice: Undefined index: tasklist_type in /var/www/vhosts/bgpanel.net/support.bgpanel.net/includes/class.tpl.php(128) : eval()'d code on line 90
  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Backend / Core
  • Assigned To No-one
  • Operating System Debian Linux
  • Severity Medium
  • Priority Normal
  • Reported Version 0.4.1
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 0
  • Private No
Attached to Project: Bright Game Panel Project
Opened by Nicolas Pirlot (Paca) - 2013-09-01

FS#30 - Server start "bug"

I am working on the trunc version but it's valide for older version too.

When we start a screen for a games server we must check if this screen is running before showing message server already start.

In my case, if the path to hlds_run was wrong the pannel say it's succefully running because we don't check if screen is realy launched.

Best regards,

Paca

This task does not depend on any other tasks.

Nicolas Pirlot (Paca)
Sunday, 01 September 2013, 14:58 GMT
I forgot to say i used the "Create A New Game Server" option for this server. I think the "validate game server" function is not called by the way.

I have a repository for the games cstrike because i have activate it in games.ini and i create the MANIFEST files.

<?xml version="1.0" encoding="utf-8"?>

<!--
Counter-Strike MANIFEST
By Paca
Last Update: 30/08/2013
@see https://developer.valvesoftware.com/wiki/SteamCMD:fr
-->

<!-- Game Manifest -->
<game>
<name>Counter-Strike</name>

<actions>
<!-- Make Game Repository -->
<repository>
<!-- Download required files -->
<get>http://media.steampowered.com/client/steamcmd_linux.tar.gz</get>
<!-- Additionnal Actions -->
<untargz>steamcmd_linux.tar.gz</untargz>
<chmodx>steamcmd.sh</chmodx>
<delete>steamcmd_linux.tar.gz</delete>
<!-- Exec steamcmd for update itself +quit to quit after update and not stay in prompt mod -->
<exec>./steamcmd.sh +quit</exec>
<!-- Must be exec multiple times because first time all file are not download... or crash... How to detect that shit ?! -->
<exec>./steamcmd.sh +login anonymous +force_install_dir cstrike +app_update 90 validate +quit</exec>
<exec>./steamcmd.sh +login anonymous +force_install_dir cstrike +app_update 90 validate +quit</exec>
<exec>./steamcmd.sh +login anonymous +force_install_dir cstrike +app_update 90 validate +quit</exec>
<exec>./steamcmd.sh +login anonymous +force_install_dir cstrike +app_update 90 validate +quit</exec>
<exec>./steamcmd.sh +login anonymous +force_install_dir cstrike +app_update 90 validate +quit</exec>
</repository>

<!-- Install Game Server From Game Repository -->
<installgame>
<!-- Copy Game Server Files -->
<rsync_c></rsync_c>
</installgame>

<!-- Update Game Server From Game Repository -->
<updategame>
<!-- Update Game Server Files -->
<rsync_u>cstrike/cstrike/server.cfg</rsync_u>
</updategame>
</actions>
</game>


Has you can see I have implemented an exec method which is an ugly way to execute ssh command. Needed by SteamCMD tool to be executed for downloading the game files.


her the ugly code xD:

case 'exec':
$queryParts = "echo \"Status: Exec bash cmd...\" >> ".$this->repoPath.'.cacheinfo ; ';
foreach ($values as $value) {
$queryParts .= ''.$this->repoPath.$value['value'].' ; '; // exec bash cmd
}
$queryParts .= "echo \"Status: Exec bash cmd Done\" >> ".$this->repoPath.'.cacheinfo ; ';
return $queryParts;



Loading...