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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 127 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