Jump to content

Manually setting service name / how does TCAdmin get a service name?


TrevorJD

Recommended Posts

Hi folks,

I've installed a game called Avorion. We have a mostly-working template but it has some quirks. TCAdmin does give me a web console and CPU/RAM but it's not picking up the hostname, nor the number of players online. I asked Battlemetrics for Avorion support and they politely told me to get knotted so the only way to determine the number of players online is to log in and see for myself. The service name is the bigger problem. I have two instances and they both have the default service name that comes from the template, "10 slot Avorion". I have to be careful to check the URL to ensure that I'm working with the correct instance.

So, how does TCAdmin auto-populate the service name? How can I manually set a service name?

Thanks

Link to comment
Share on other sites

It would update the name with the hostname that is queried from Steam. 

You can also use a script such as this to manually force a name change in the panel.

import clr;
import System;
clr.AddReference("TCAdmin.SDK");
from TCAdmin.SDK.Misc import Random;
from System import String;

ThisService.NameNoHtml = str(ThisService.Variables["updatedPanelName"])
ThisService.Save();
ThisService.Configure();

It is an IronPython script. You will want to have the Prompt for variable values checked and create a variable named updatedPanelName (or create another variable and update the script. You can set the script to the Custom icon event to have an icon on the main page for the game.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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