Jump to content

YAML Config files?


IanB

Recommended Posts

Hey Folks,

 

I am having an issue with a game service I am working with. The configuration file is yaml, and I am trying to to set the $[service.GamePort] and $[service.Slots] .

 

However, when it prints to the config file it comes out as:

 

ServerConfig:
Srv_Port: 30000
   #Srv_Name: ChangeMe
   #Srv_Password: ChangeMe
Srv_MaxPlayers: 8

 

Rather than:

 

ServerConfig:
  Srv_Port: 30000
  #Srv_Name: ChangeMe
  #Srv_Password: ChangeMe
  Srv_MaxPlayers: 8

 

So basically the spaces that keep the yaml from erroring are not printing. Does anyone know the correct way to get it to set these values?

 

Thanks!

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