Jump to content

using the same variable multiple times in 1 file


tinboye

Recommended Posts

So i am having an issue, not sure if its because the same variable has to be specified in the file multiple times or what.

 

I have this xml file where i have to specify the game port 3 different times.

 

So in my template file i have:

 

<serverSettings>

<socketAddresses>

<socket address="0.0.0.0" port="$[service.GamePort]" type="TCP"/>

<socket address="0.0.0.0" port="$[service.GamePort]" type="UDP"/>

</socketAddresses>

 

<adminTcpPort>$[service.GamePort]</adminTcpPort>

 

when i try to go to the configuration editor as the user: i get a window saying:

The variable Service.GamePort could not be read. The default value for this variable and the default template will be used. Previous configuration will be overwritten.

Link to comment
Share on other sites

I would create a separate variable for each one.

Looks like the software is trying to parse the same variable for all those fields and getting more than one value. So it throws that error.

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
  • Who's Online   0 Members, 0 Anonymous, 17 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