Closed gOOvER closed 2 years ago
i tryed ithis also with escaping the slashes, but Backslashes will removed after saving the Configuration Script
{
"Config/Game.ini": {
"parser": "ini",
"find": {
"UWorks.ConnectionPort": "{{server.build.default.port}}",
"UWorks.QueryPort": "{{server.build.env.QPORT}}",
"\/Script\/Citadel.SocialManager.Password": "{{server.build.env.ADMIN_PASSWD}}",
"\/Script\/Citadel.RemoteConsole.WebServerPort": "{{server.build.env.WEB_SRV_PORT}}",
"\/Script\/Citadel.RemoteConsole.WebServerUsername": "{{server.build.env.WEB_SRV_USER}}",
"\/Script\/Citadel.RemoteConsole.WebServerPass": "{{server.build.env.WEB_SRV_PW}}"
}
}
}
Before this change putting
"find": { "/Script/Engine.GameSession.MaxPlayers": "<DATA>" }
would make the section name/Script/Engine
and the keyGameSession.MaxPlayers
. After this change, the same behavior occurs, but if you wrap the key in[]
it will set the section name properly, for example"find": { "[/Script/Engine.GameSession].MaxPlayers": "<DATA>" }
would make the sesion name/Script/Engine.GameSession
and the keyMaxPlayers
.
TL;DR: in your egg file replacer wrap the section name in []
and the parser will ignore the dots when splitting, if you don't use []
the behavior functions as before. (Once that change is released, if you do this on an older version it will either insert []
into the section name twice, or break entirely)
DO NOT REPORT ISSUES CONFIGURING: SSL, PHP, APACHE, NGINX, YOUR MACHINE, SSH, SFTP, ETC. ON THIS GITHUB TRACKER.
For assistance installating this software, as well as debugging issues with dependencies, please use our discord server: https://discord.gg/pterodactyl
You MUST complete all of the below information when reporting a bug, failure to do so will result in closure of your issue. PLEASE stop spamming our tracker with "bugs" that are not related to this project.
STOP: READ FIRST, AND THEN DELETE THE ABOVE LINES
Background (please complete the following information):
Describe the bug
I have a egg, which the Ini file looks like this:
My Config Parsing Script:
After starting the Server and Parsing runs, i get this as Result:
It looks like, the Ini parser only search for aaa.bbb insteed aaa.bbb.ccc
To Reproduce Steps to reproduce the behavior:
Use my Dev Egg https://gist.github.com/gOOvER/a90e84869217faa56731639467e9b460
Install and Run the Server