Skip to content

Commit 426557f

Browse files
committed
Palworld: add custom public port setting
1 parent 681267b commit 426557f

4 files changed

Lines changed: 62 additions & 28 deletions

File tree

palworld-modded.kvp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Meta.ExtraContainerPackages=[]
2222
Meta.ConfigReleaseState=NotSpecified
2323
Meta.NoCommercialUsage=False
2424
Meta.AppConfigId=aa4a646a-f7bd-49ce-9042-ddb0573f0087
25-
Meta.ConfigVersion=21
25+
Meta.ConfigVersion=22
2626
Meta.ReleaseNotes=
2727
Meta.BreakingReleaseNotes=
2828
Meta.ImportableExtensions=[]
@@ -36,7 +36,7 @@ App.ExecutableLinux=/usr/bin/wine
3636
App.WorkingDir=2394010
3737
App.LinuxCommandLineArgs="./Pal/Binaries/Win64/PalServer-Win64-Shipping-Cmd.exe"
3838
App.WindowsCommandLineArgs=
39-
App.CommandLineArgs={{$PlatformArgs}} Pal {{CommunityServer}}-Port={{$GamePort}} -QueryPort={{$QueryPort}} -RCONPort={{$RCONPort}} -MultiHome={{$ApplicationIPBinding}} -publicport={{$GamePort}} -publicip={{PublicIP}} -players={{$MaxUsers}} {{MultiThread}}{{$FormattedArgs}} {{CustomArgs}}
39+
App.CommandLineArgs={{$PlatformArgs}} Pal {{CommunityServer}}-Port={{$GamePort}} -QueryPort={{$QueryPort}} -RCONPort={{$RCONPort}} -MultiHome={{$ApplicationIPBinding}} -publicport={{PublicPort}} -publicip={{PublicIP}} -players={{$MaxUsers}} {{MultiThread}}{{$FormattedArgs}} {{CustomArgs}}
4040
App.UseLinuxIOREDIR=False
4141
App.AppSettings={}
4242
App.EnvironmentVariables={"LD_LIBRARY_PATH":"{{$FullBaseDir}}linux64:%LD_LIBRARY_PATH%","SteamAppId":"1623730","WINEPREFIX":"{{$FullRootDir}}.wine","WINEARCH":"win64","WINEDEBUG":"-all","WINEDLLOVERRIDES":"d3d9,dwmapi.dll=n,b","XDG_RUNTIME_DIR":"/tmp"}

palworld-moddedconfig.json

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
[
2-
{
3-
"DisplayName": "Public Port",
4-
"Category": "Palworld:stadia_controller",
5-
"Subcategory": "Server:dns:1",
6-
"Description": "",
7-
"Keywords": "",
8-
"FieldName": "$GamePort",
9-
"InputType": "number",
10-
"Hidden": true,
11-
"ParamFieldName": "PublicPort",
12-
"EnumValues": {}
13-
},
142
{
153
"DisplayName": "RCON Port",
164
"Category": "Palworld:stadia_controller",
@@ -191,6 +179,35 @@
191179
"DefaultValue": "",
192180
"EnumValues": {}
193181
},
182+
{
183+
"DisplayName": "Public Port Selection Mode",
184+
"Category": "Palworld:stadia_controller",
185+
"Subcategory": "Server:dns:1",
186+
"Description": "Sets whether the public port advertised for the server should be the same as the Game Port, or whether it should be the custom port set under Server Public Port",
187+
"Keywords": "public,port,publicport",
188+
"FieldName": "PublicPort",
189+
"InputType": "enum",
190+
"ParamFieldName": "PublicPort",
191+
"DefaultValue": "{{$GamePort}}",
192+
"EnumValues": {
193+
"{{$GamePort}}": "Use Game Port (default)",
194+
"{{CustomPublicPort}}": "Use custom port"
195+
}
196+
},
197+
{
198+
"DisplayName": "Server Public Port",
199+
"Category": "Palworld:stadia_controller",
200+
"Subcategory": "Server:dns:1",
201+
"Description": "Sets the public port advertised for the server, if \"Use custom port\" is selected as the Public Port Selection Mode",
202+
"Keywords": "custom,public,port,publicport",
203+
"FieldName": "CustomPublicPort",
204+
"InputType": "number",
205+
"MinValue": "1024",
206+
"MaxValue": "65535",
207+
"ParamFieldName": "CustomPublicPort",
208+
"DefaultValue": "",
209+
"EnumValues": {}
210+
},
194211
{
195212
"DisplayName": "Server Password",
196213
"Category": "Palworld:stadia_controller",

palworld.kvp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Meta.Prerequisites=[]
2121
Meta.ExtraContainerPackages=[]
2222
Meta.ConfigReleaseState=NotSpecified
2323
Meta.NoCommercialUsage=False
24-
Meta.ConfigVersion=17
24+
Meta.ConfigVersion=18
2525
Meta.ReleaseNotes=
2626
Meta.BreakingReleaseNotes=
2727
Meta.ImportableExtensions=[]
@@ -36,7 +36,7 @@ App.ExecutableLinux=2394010/Pal/Binaries/Linux/PalServer-Linux-Shipping
3636
App.WorkingDir=2394010
3737
App.LinuxCommandLineArgs=
3838
App.WindowsCommandLineArgs=
39-
App.CommandLineArgs={{$PlatformArgs}} Pal {{CommunityServer}}-Port={{$GamePort}} -QueryPort={{$QueryPort}} -RCONPort={{$RCONPort}} -MultiHome={{$ApplicationIPBinding}} -publicport={{$GamePort}} -publicip={{PublicIP}} -players={{$MaxUsers}} {{MultiThread}}{{$FormattedArgs}} {{CustomArgs}}
39+
App.CommandLineArgs={{$PlatformArgs}} Pal {{CommunityServer}}-Port={{$GamePort}} -QueryPort={{$QueryPort}} -RCONPort={{$RCONPort}} -MultiHome={{$ApplicationIPBinding}} -publicport={{PublicPort}} -publicip={{PublicIP}} -players={{$MaxUsers}} {{MultiThread}}{{$FormattedArgs}} {{CustomArgs}}
4040
App.UseLinuxIOREDIR=False
4141
App.AppSettings={}
4242
App.EnvironmentVariables={"LD_LIBRARY_PATH":"{{$FullBaseDir}}linux64:%LD_LIBRARY_PATH%","SteamAppId":"1623730"}

palworldconfig.json

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
[
2-
{
3-
"DisplayName": "Public Port",
4-
"Category": "Palworld:stadia_controller",
5-
"Subcategory": "Server:dns:1",
6-
"Description": "",
7-
"Keywords": "",
8-
"FieldName": "$GamePort",
9-
"InputType": "number",
10-
"Hidden": true,
11-
"ParamFieldName": "PublicPort",
12-
"EnumValues": {}
13-
},
142
{
153
"DisplayName": "RCON Port",
164
"Category": "Palworld:stadia_controller",
@@ -191,6 +179,35 @@
191179
"DefaultValue": "",
192180
"EnumValues": {}
193181
},
182+
{
183+
"DisplayName": "Public Port Selection Mode",
184+
"Category": "Palworld:stadia_controller",
185+
"Subcategory": "Server:dns:1",
186+
"Description": "Sets whether the public port advertised for the server should be the same as the Game Port, or whether it should be the custom port set under Server Public Port",
187+
"Keywords": "public,port,publicport",
188+
"FieldName": "PublicPort",
189+
"InputType": "enum",
190+
"ParamFieldName": "PublicPort",
191+
"DefaultValue": "{{$GamePort}}",
192+
"EnumValues": {
193+
"{{$GamePort}}": "Use Game Port (default)",
194+
"{{CustomPublicPort}}": "Use custom port"
195+
}
196+
},
197+
{
198+
"DisplayName": "Server Public Port",
199+
"Category": "Palworld:stadia_controller",
200+
"Subcategory": "Server:dns:1",
201+
"Description": "Sets the public port advertised for the server, if \"Use custom port\" is selected as the Public Port Selection Mode",
202+
"Keywords": "custom,public,port,publicport",
203+
"FieldName": "CustomPublicPort",
204+
"InputType": "number",
205+
"MinValue": "1024",
206+
"MaxValue": "65535",
207+
"ParamFieldName": "CustomPublicPort",
208+
"DefaultValue": "",
209+
"EnumValues": {}
210+
},
194211
{
195212
"DisplayName": "Server Password",
196213
"Category": "Palworld:stadia_controller",

0 commit comments

Comments
 (0)