How to setup Gamerepo Config in Bright Game Panel(Bgpanel) Topic is solved

About game hosting and game control panel.
sudheer1994
Posts: 4
Joined: Tue Jan 15, 2019 3:30 pm
Location: Hyderabad
Mood:
Has thanked: 7 times
Age: 26

How to setup Gamerepo Config in Bright Game Panel(Bgpanel)

Post by sudheer1994 » Wed Apr 15, 2020 12:40 am

When trying to install Counter Strike i get Game Not Supported. Please guide me with the setup of game in bgpanel.

cuehosting
Posts: 8
Joined: Tue Jan 15, 2019 1:23 pm
Has thanked: 2 times
Been thanked: 7 times

Re: How to setup Gamerepo Config in Bright Game Panel(Bgpanel)

Post by cuehosting » Wed Apr 15, 2020 12:43 am

How to add it :
1.Edit libs/gameinstaller/games.ini and un-comment ;cstrike by removing the ";" -> save
2.Go to : libs/gameinstaller/games/
3.Make a folder: named "cstrike"
4.Make a new file inside it with a name "manifest.xml" , open it and edit it for your server preference
Example:

Code: Select all

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

<!-- Game Manifest -->
<game>
	<name>cstrike</name>

	<actions>
		<!-- Make Game Repository -->
		<repository>
			<!-- Download required files -->
			<get>local://path/to/repo/cstrike</get>
		</repository>

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

		<!-- Update Game Server From Game Repository -->
		<updategame>
			<!-- Update Game Server Files -->
			<rsync_u></rsync_u>
			<chmodx>hlds_run</chmodx>
		</updategame>
	</actions>
</game>
Check what xml commands are available in libs/gameinstaller/actions.list.txt.

5.Then go to includes and edit "func.gameinstaller.inc.php"
6.Add this line:
"Counter-Strike" => "hlds_run", to $binaries so it looks like that:

Code: Select all

[== PHP ==]
	$binaries = array(
		"Counter-Strike"            => "hlds_run",
         /** .. Other games .. **/
        );
7.Save it.
8.Then go to boxgamefile.php?id={id} // {id} the box id
9.Find cstrike and click the refresh cache or download cache button.

If you did everything right you must be ready to go.

Post Reply Previous topicNext topic