Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yml files change their content #923

Closed
DAThosting opened this issue Aug 25, 2016 · 10 comments
Closed

yml files change their content #923

DAThosting opened this issue Aug 25, 2016 · 10 comments

Comments

@DAThosting
Copy link
Contributor

DAThosting commented Aug 25, 2016

Almost the same as #908

Problem on config.yml files at bungeecord servers for minecraft.
Before restart there are no problems, but after clicking restart the values of the content from yml files changed and servers can't startup correctly.

Adding after restart ' ' , " " or 0: 1: 2: 3:

Before restart:
http://pastebin.com/p4KW2GA6

After restart:
http://pastebin.com/0gafn0J1

@ulrichblock
Copy link
Member

Completely different problem...

@DAThosting
Copy link
Contributor Author

Okay, thought its almost the same, sorry for that.

Do you need more informations?

@DAThosting
Copy link
Contributor Author

Where I can fix that?
Can't find the right files...

I need this again, losing many customers...

@Lacrimosa99
Copy link
Member

Have you saved in Unix/Linux Format or in Windows?
Check if your Config in Linux Format...

@DAThosting
Copy link
Contributor Author

No I didn't change anything.
Just started Bungeecord form its jar without any other files.
After first start the yml is correct but if you click restart without changing something my problem occurs.

@ulrichblock
Copy link
Member

Its a Bug in the third party lib "Spyc -- A Simple PHP YAML Class"

@DAThosting
Copy link
Contributor Author

And how I can fix that? Spyc was last edited five months ago.

@ulrichblock
Copy link
Member

ulrichblock commented Sep 26, 2016

Well either you fix it, or we can change to a different lib. Problem is, that there are not many, Symfony has one but will dump like

query_enabled: true
disabled_commands:
    - disabledcommandhere
player_limit: -1
permissions:
    default: [bungeecord.command.server, bungeecord.command.list]
    admin: [bungeecord.command.alert, bungeecord.command.end, bungeecord.command.ip, bungeecord.command.reload]
timeout: 30000
query_port: 27045
online_mode: true
host: 87.xxx.xxx.xxx
servers:
    lobby: { motd: '&1Just another BungeeCord - Forced Host', address: 'localhost:25565', restricted: false }
listeners:
    - { query_port: 25577, motd: '&1Another Bungee server', tab_list: GLOBAL_PING, query_enabled: false, forced_hosts: { pvp.md-5.net: pvp }, ping_passthrough: false, default_server: lobby, bind_local_address: true, fallback_server: lobby, host: '0.0.0.0:25577', max_players: 1, tab_size: 60, force_default_server: false }
stats: 49a0b716-ef9a-48ab-98da-eace8e34c51d
ip_forward: false
groups:
    md_5: [admin]
connection_throttle: 4000
bind_local_address: true

I don't know how good MC servers are. But my guess is, that this valid format will not be accepted. If a CFG like my example works I could change...

So please check and confirm if this output format works for you.

@DAThosting
Copy link
Contributor Author

Tested and it seem to be working fine.

Thank you if you change it :) 👍

@ulrichblock
Copy link
Member

Note: In case the to be replaced value is a nested one, the file configuration should be nested as well:

[test.yml] yml
host: %ip%
query_port: %port2%
listeners:
- query_port: 1000
max-players: %slots%
enable-rcon : true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants