AMP icon indicating copy to clipboard operation
AMP copied to clipboard

Config.getamp.sh Wrong EnpointURIFormat

Open IceOfWraith opened this issue 3 years ago • 0 comments

Bug Report

System Information

  • Operating System: Windows 11 Pro
  • Browser: Firefox 97.0

I confirm:

  • [x] that I have searched for an existing bug report for this issue.
  • [x] that I am using the latest available version of AMP.
  • [x] that my operating system is up-to-date.

Symptoms

  • What are you trying to do? Generate a config on config.getamp.sh

  • What are you expecting to happen? It should generate the following line: Meta.EndpointURIFormat=steam://connect/{ip}:{GenericModule.App.ApplicationPort2}

  • What is actually happening? It is generating the following line with a / instead of a : preceding the port number: Meta.EndpointURIFormat=steam://connect/{ip}/{GenericModule.App.ApplicationPort2}

Reproduction

Create a config using any settings like so: {"Meta_DisplayName":"Stationeers","Meta_Description":"Stationeers Dedicated Server","Meta_Author":"CubeCoders","Meta_URL":"https://store.steampowered.com/app/544550/Stationeers/","_SupportsWindows":true,"_SupportsLinux":true,"App_AdminMethod":"STDIO","App_HasReadableConsole":true,"App_HasWritableConsole":true,"App_DisplayName":"Stationeers","App_CommandLineArgs":"-batchmode -nographics -autostart -bindip={{$ApplicationIPBinding}} -gameport={{$ApplicationPort1}} -updateportqueryport={{$ApplicationPort2}} +rconpassword \"{{$RemoteAdminPassword}}\" +maxplayer={{$MaxUsers}} {{$FormattedArgs}} -logFile","App_CommandLineParameterFormat":"-{0}=\"{1}\"","App_CommandLineParameterDelimiter":" ","App_RapidStartup":"false","App_ApplicationReadyMode":"Immediate","App_ExitMethod":"String","App_ExitString":"stop","Console_ThrowawayMessageRegex":"^(WARNING|ERROR): Shader.+$","Console_AppReadyRegex":"^Server is ready.$","Console_UserJoinRegex":"^User (?<username>.+?) \\((?<userid>-?d+)\\) connected from \\[::ffff:(?<endpoint>.+?)\\]$","Console_UserLeaveRegex":"^User (?<username>.+?) \\((?<userid>-?d+)\\) disconnected\\. Reason: (.+?)$","Console_UserChatRegex":"^(?<username>.+?): (?<message>.+)$","_PortMappings":[{"Port":"27500","PortType":"0"},{"Port":"27015","PortType":"1"}],"_UpdateSourceType":"4","_UpdateSourceURL":"","_UpdateSourceGitRepo":"","_UpdateSourceUnzip":false,"_DisplayImageSource":"","_SteamServerAppID":"600760","_SteamClientAppID":"544550","_WinExecutableName":"rocketstation_DedicatedServer.exe","_LinuxExecutableName":"rocketstation_DedicatedServer.x86_64","_AppSettings":[{"DisplayName":"Server Password","Category":"Server","Description":"Password that clients must supply to join","Keywords":"","FieldName":"password","InputType":"password","IsFlagArgument":false,"ParamFieldName":"password","IncludeInCommandLine":true,"DefaultValue":"","_CheckedValue":"true","_UncheckedValue":"false","EnumValues":{}},{"DisplayName":"World Name","Category":"Server","Description":"Name of the world directory to load","Keywords":"","FieldName":"worldname","InputType":"text","IsFlagArgument":false,"ParamFieldName":"worldname","IncludeInCommandLine":true,"DefaultValue":"world","_CheckedValue":"true","_UncheckedValue":"false","EnumValues":{}},{"DisplayName":"Auto Save Interval","Category":"Server","Description":"How frequently the server will save the world","Keywords":"","FieldName":"autosaveinterval","InputType":"number","IsFlagArgument":false,"ParamFieldName":"autosaveinterval","IncludeInCommandLine":true,"DefaultValue":"60","_CheckedValue":"true","_UncheckedValue":"false","EnumValues":{}}],"Meta_OS":3,"Meta_ConfigManifest":"stationeersconfig.json","Meta_ConfigRoot":"stationeers.kvp","Meta_DisplayImageSource":"steam:544550","App_RootDir":"./stationeers/","App_BaseDirectory":"./stationeers/600760/","App_WorkingDir":"600760","App_ExecutableWin":"600760\\rocketstation_DedicatedServer.exe","App_ExecutableLinux":"600760/rocketstation_DedicatedServer.x86_64","Meta_EndpointURIFormat":"steam://connect/{ip}/{GenericModule.App.ApplicationPort2}"}

IceOfWraith avatar Feb 17 '22 02:02 IceOfWraith