Jump to content

Game Config Help for Query Protocol when using Config File Parser - Hostname Rule


GazCBG

Recommended Posts

Hi,

I am wanting to show the server name/hostname on the Game server list, so that it is easier to find.

I am trying to setup the Query Protocol for Assetto Corsa Competizione, so I went with Config File Parsers

Now my question:

It says Hostname Rule, and says I can use HostName

But it doesn't appear to be working, in my config I have

"serverName": "$[HostName]",

Do I need to put: serverName or HostName or  $[HostName] in the Hostname Rule field?

I am sure I had this working sometime ago but had a hard drive crash and lost the config file, and I never updated the one on the forum.

 

Edited by GazCBG
Link to comment
Share on other sites

2 hours ago, GazCBG said:

in my config I have

Is that in the configuration file template or in your service's configuration file? The variable should be set in the configuration file template, and then the variable should be changed using the configuration editor.

Link to comment
Share on other sites

  • 2 years later...

Found the solution, as it wasn't further mentioned I like to explain, what I did for others having the same issue.

1st thing to do is set your main config file as capable to read variables from file.
2nd set Get service name from host name  true 
3rd set Query Protocol to config file parser
4th set Host Name Rule to 'HostName'  WITHOUT APOSTROPHES
 

Edited by dbach
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