Jump to content

Default Config Files - Not copying


KingJ

Recommended Posts

Hi,

 

We're currently on a trial of TCAdmin, everything is functioning as expected apart from one thing. The defined default config files do not seem to be created when the server is. This is somewhat of a problem as some games take their IP/Port info from their config file, so if it's not copied the server will refuse to start or worse start with default, conflicting values.

 

Perhaps i've overlooked something, but I can't see a way to make the defined default config files for the game to be created when the server is. Hopefully someone can offer some insight into this.

 

Other than this issue, our trial is going very well and I think we will defiantly be switching from our existing control panel.

Link to comment
Share on other sites

Make sure you have defined default files and paths in the game configurations.

 

System Settings>Game Configs, click on a game in the list and then on the "Default Files" icon at the bottom of the page. make sure there are entries there.

Link to comment
Share on other sites

At the bottom of the Game's configuration page (System Settings>Game Configs>Selected Game) I have clicked Default Config Files and added my customised server.cfg there. It is this file that I want to have created with the server but isn't. The server.cfg does not exist in the game's base install files (I removed it), only in TCAdmin's default config files for that game.

Link to comment
Share on other sites

Make sure that the path is correct. This is not an absolute path rather an extension of the Gamesfile Path field in the game config.

 

Example: If your Gamesfile Path is set to / then you would want to set the default config file path to /<foldername>/yourconfig.cfg.

 

Or if it resides in the GameFiles Path directory you would put /yourconfig.cfg

 

Also make sure that you have created a template file in the default config files as well. If you leave it blank then it will simply create a blank file.

 

The best thign to do is look at one of the other games and how they are setup to give you an idea on how to create and configure the default files.

Link to comment
Share on other sites

The server.cfg is supposed to go into the root directory for the server (the Gamesfile path), i.e /server.cfg . It has been correctly populated with values

 

I did as you suggested an created a blank server.cfg in the source files, and a blank server.cfg was made on the installed files rather than the customised one.

 

Looking around at how BF2 Unranked has been done, everything seems correct for the default files in regards to how I have done it for the game I added.

 

The game I added installs fine from the base files, it's just that the server.cfg isn't populated with the custom data, or any data, on server install.

 

Thanks for your help so far ECF.

Link to comment
Share on other sites

No, it's not BF2 I am working with. I looked at BF2 to get an example of how the default configuration file with TCAdmin variables should be setup.

 

The game I am doing this for puts it's variables into server.cfg into the root directory of the game, not in a subfolder.

Link to comment
Share on other sites

San Andreas Multiplayer, my config file is:

 

<?xml version="1.0" encoding="Windows-1252" standalone="yes"?>
<GAME>
 <GAMEID>TC3776882685140</GAMEID>
 <NAME>San Andreas Multiplayer</NAME>
 <SHORTNAME>SA-MP</SHORTNAME>
 <DEFAULTPORT>7750</DEFAULTPORT>
 <DEFAULTQUERYPORT>7750</DEFAULTQUERYPORT>
 <DEFAULTRCONPORT>7750</DEFAULTRCONPORT>
 <FILESFOLDER>SA-MP</FILESFOLDER>
 <RELATIVEEXECUTABLE>samp-server.exe</RELATIVEEXECUTABLE>
 <RELATIVEWORKINGDIRECTORY>/</RELATIVEWORKINGDIRECTORY>
 <RELATIVEUSERFILES>/</RELATIVEUSERFILES>
 <INSTALLEDPATCH />
 <FILEMAN_ACCESS>True</FILEMAN_ACCESS>
 <FTP_ACCESS>True</FTP_ACCESS>
 <IS_VOICE_SERVER>False</IS_VOICE_SERVER>
 <DEFAULTCMDLINE />
 <DEFAULTCUSTOMCMDLINE />
 <PRIVATECMDLINE />
 <PRIVATECUSTOMCMDLINE />
 <PBFOLDER>pb</PBFOLDER>
 <PBURL />
 <PBENABLEADMINS>False</PBENABLEADMINS>
 <PBENABLEUSERS>False</PBENABLEUSERS>
 <PBENABLEADMINS>False</PBENABLEADMINS>
 <PBDELETEADMINS>False</PBDELETEADMINS>
 <PBDELETEUSERS>False</PBDELETEUSERS>
 <PBLOGS>pb/svlogs</PBLOGS>
 <PBSS>pb/svss</PBSS>
 <STEAMGAMETYPE />
 <STEAMENABLEADMINS>False</STEAMENABLEADMINS>
 <STEAMENABLEUSERS>False</STEAMENABLEUSERS>
 <BRANDEDTEXT />
 <BRANDEDTEXTATEND>False</BRANDEDTEXTATEND>
 <BRANDEDTEXTSPACE>False</BRANDEDTEXTSPACE>
 <BRANDEDREGEX />
 <ALLOWUSERINSTALL>False</ALLOWUSERINSTALL>
 <PORTINCREMENT>1</PORTINCREMENT>
 <GAMEPORTEXPRESSION />
 <QUERYPORTEXPRESSION />
 <RCONPORTEXPRESSION />
 <STOPDELAY>3</STOPDELAY>
 <CUSTOMPORT1>0</CUSTOMPORT1>
 <CUSTOMPORT2>0</CUSTOMPORT2>
 <CUSTOMPORT3>0</CUSTOMPORT3>
 <CUSTOMPORT4>0</CUSTOMPORT4>
 <CUSTOMPORT5>0</CUSTOMPORT5>
 <CUSTOMPORT1EXPRESSION />
 <CUSTOMPORT2EXPRESSION />
 <CUSTOMPORT3EXPRESSION />
 <CUSTOMPORT4EXPRESSION />
 <CUSTOMPORT5EXPRESSION />
 <OS>1</OS>
 <ONLYDEFAULTPORT>False</ONLYDEFAULTPORT>
 <INTERACTDESKTOP>False</INTERACTDESKTOP>
 <CMDBUILDERUSERACCESS>False</CMDBUILDERUSERACCESS>
 <INSTALLSCRIPT />
 <UNINSTALLSCRIPT />
 <NEWEMAILSUBJECT />
 <NEWEMAILBODY />
 <REINSTALLEMAILBODY />
 <REINSTALLEMAILSUBJECT />
 <SHOWINCREATELIST>True</SHOWINCREATELIST>
 <SHOWCONFIGSICON>True</SHOWCONFIGSICON>
 <FORCE_FTP_PATH />
 <START_CPU_0>False</START_CPU_0>
 <LOG_EXTENSIONS>log,txt</LOG_EXTENSIONS>
 <ENABLE_LOG_VIEWER>True</ENABLE_LOG_VIEWER>
 <DISABLE_REINSTALL>False</DISABLE_REINSTALL>
 <COMPATIBILITY>-1</COMPATIBILITY>
 <GAME-MONITOR.COM>18</GAME-MONITOR.COM>
 <DEFAULTCONFIGFILES>
   <CONFIGFILE>
     <GAMEID>TC3776882685140</GAMEID>
     <CONTENTS />
     <DESCRIPTION>Server Configuration File</DESCRIPTION>
     <DISPLAYNAME>server.cfg</DISPLAYNAME>
     <RELATIVEPATH>/server.cfg</RELATIVEPATH>
     <EDITOR_CONTENTS>echo San Andreas Multiplayer Server Config
rcon_password %rcon_password%
maxplayers %slots%
port %serverport%
hostname %hostname%
gamemode0 %gamemodes%
filterscripts %fs%
announce 1
query 1
weburl %weburl%</EDITOR_CONTENTS>
     <ALLOWEDITWHENFMDISABLED>False</ALLOWEDITWHENFMDISABLED>
     <CONFIGFILEITEMS>
       <CONFIGFILEITEM>
         <GAMEID>TC3776882685140</GAMEID>
         <RELATIVEPATH>/server.cfg</RELATIVEPATH>
         <ITEMID>TC6805631284202</ITEMID>
         <MODID />
         <ISNUMERIC>False</ISNUMERIC>
         <ITEMTYPE>TextBox</ITEMTYPE>
         <ORDER>1</ORDER>
         <REPLACES>%rcon_password%</REPLACES>
         <REQUIRED>True</REQUIRED>
         <TEXT>RCON Password</TEXT>
         <VALUES>changeme</VALUES>
         <PARENT_VARIABLE />
         <PARENT_VALUE />
       </CONFIGFILEITEM>
       <CONFIGFILEITEM>
         <GAMEID>TC3776882685140</GAMEID>
         <RELATIVEPATH>/server.cfg</RELATIVEPATH>
         <ITEMID>TC8868724328075</ITEMID>
         <MODID />
         <ISNUMERIC>False</ISNUMERIC>
         <ITEMTYPE>TextBox</ITEMTYPE>
         <ORDER>2</ORDER>
         <REPLACES>%weburl%</REPLACES>
         <REQUIRED>False</REQUIRED>
         <TEXT>Web URL</TEXT>
         <VALUES>game.kingj.net</VALUES>
         <PARENT_VARIABLE />
         <PARENT_VALUE />
       </CONFIGFILEITEM>
       <CONFIGFILEITEM>
         <GAMEID>TC3776882685140</GAMEID>
         <RELATIVEPATH>/server.cfg</RELATIVEPATH>
         <ITEMID>TC8744728227221</ITEMID>
         <MODID />
         <ISNUMERIC>False</ISNUMERIC>
         <ITEMTYPE>TextBox</ITEMTYPE>
         <ORDER>3</ORDER>
         <REPLACES>%gamemodes%</REPLACES>
         <REQUIRED>True</REQUIRED>
         <TEXT>Game Modes</TEXT>
         <VALUES>lvdm</VALUES>
         <PARENT_VARIABLE />
         <PARENT_VALUE />
       </CONFIGFILEITEM>
       <CONFIGFILEITEM>
         <GAMEID>TC3776882685140</GAMEID>
         <RELATIVEPATH>/server.cfg</RELATIVEPATH>
         <ITEMID>TC1811468572530</ITEMID>
         <MODID />
         <ISNUMERIC>False</ISNUMERIC>
         <ITEMTYPE>TextBox</ITEMTYPE>
         <ORDER>4</ORDER>
         <REPLACES>%fs%</REPLACES>
         <REQUIRED>True</REQUIRED>
         <TEXT>Filter Scripts</TEXT>
         <VALUES>adminspec vactions</VALUES>
         <PARENT_VARIABLE />
         <PARENT_VALUE />
       </CONFIGFILEITEM>
       <CONFIGFILEITEM>
         <GAMEID>TC3776882685140</GAMEID>
         <RELATIVEPATH>/server.cfg</RELATIVEPATH>
         <ITEMID>TC5051108133677</ITEMID>
         <MODID />
         <ISNUMERIC>False</ISNUMERIC>
         <ITEMTYPE>TextBox</ITEMTYPE>
         <ORDER>5</ORDER>
         <REPLACES>%hostname%</REPLACES>
         <REQUIRED>True</REQUIRED>
         <TEXT>Hostname</TEXT>
         <VALUES>UnNamed SA-MP Server [game.kingj.net]</VALUES>
         <PARENT_VARIABLE />
         <PARENT_VALUE />
       </CONFIGFILEITEM>
     </CONFIGFILEITEMS>
   </CONFIGFILE>
 </DEFAULTCONFIGFILES>
 <RCONCOMMANDS />
</GAME>

Link to comment
Share on other sites

I have found the problem, on the configuration screen for the server (Supported Games) I had placed the content I wanted as the default server.cfg that is created with the server in Config Editor > Template File rather than Template File.

 

At least this is working now, otherwise it would have been a major problem to work around.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 4 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use