Add ability for user to add custom Java and server arguments
Revert "Add IP binding parameter"
This reverts commit 9211cd66ef
.
Add ability for user to add custom args
Add ability for user to add custom arguments
Update to all both java and server arguments
This commit is contained in:
parent
cbda0896ff
commit
aec21f7093
@ -17,9 +17,9 @@ App.BaseDirectory=./project-zomboid/380870/
|
|||||||
App.ExecutableWin=380870\jre64\bin\java.exe
|
App.ExecutableWin=380870\jre64\bin\java.exe
|
||||||
App.ExecutableLinux=380870/ProjectZomboid64
|
App.ExecutableLinux=380870/ProjectZomboid64
|
||||||
App.WorkingDir=380870
|
App.WorkingDir=380870
|
||||||
App.LinuxCommandLineArgs=-Dzomboid.steam={{SteamInt}} -Duser.home=./ -Xmx{{MaxMemory}}m --
|
App.LinuxCommandLineArgs=-Dzomboid.steam={{SteamInt}} -Duser.home=./ -Xmx{{MaxMemory}}m {{CustomJavaArgs}} --
|
||||||
App.WindowsCommandLineArgs=-Djava.awt.headless=true -Dzomboid.znetlog=1 -Dzomboid.steam={{SteamInt}} -Duser.home=./ -Xmx{{MaxMemory}}m -XX:+UseZGC -XX:-CreateCoredumpOnCrash -XX:-OmitStackTraceInFastThrow -Djava.library.path=natives/;natives/win64/;. -cp java/*;java/ zombie.network.GameServer -statistic 0 --
|
App.WindowsCommandLineArgs=-Djava.awt.headless=true -Dzomboid.znetlog=1 -Dzomboid.steam={{SteamInt}} -Duser.home=./ -Xmx{{MaxMemory}}m -XX:+UseZGC -XX:-CreateCoredumpOnCrash -XX:-OmitStackTraceInFastThrow -Djava.library.path=natives/;natives/win64/;. {{CustomJavaArgs}} -cp java/*;java/ zombie.network.GameServer -statistic 0 --
|
||||||
App.CommandLineArgs={{$PlatformArgs}} -port {{$ApplicationPort1}} -steamport1 {{$ApplicationPort2}} -steamport2 {{$ApplicationPort3}} {{$FormattedArgs}}
|
App.CommandLineArgs={{$PlatformArgs}} -port {{$ApplicationPort1}} -steamport1 {{$ApplicationPort2}} -steamport2 {{$ApplicationPort3}} {{CustomServerArgs}} {{$FormattedArgs}}
|
||||||
App.AppSettings={}
|
App.AppSettings={}
|
||||||
App.EnvironmentVariables={"PATH":"./jre64/bin:%PATH%","LD_LIBRARY_PATH":"./linux64:./natives:./:./jre64/lib/amd64:%LD_LIBRARY_PATH%","LD_PRELOAD":"./jre64/lib/libjsig.so","PZ_CLASSPATH":"java/*;java/","SteamAppId":"108600"}
|
App.EnvironmentVariables={"PATH":"./jre64/bin:%PATH%","LD_LIBRARY_PATH":"./linux64:./natives:./:./jre64/lib/amd64:%LD_LIBRARY_PATH%","LD_PRELOAD":"./jre64/lib/libjsig.so","PZ_CLASSPATH":"java/*;java/","SteamAppId":"108600"}
|
||||||
App.CommandLineParameterFormat=-{0} {1}
|
App.CommandLineParameterFormat=-{0} {1}
|
||||||
|
@ -54,5 +54,29 @@
|
|||||||
"ParamFieldName": "MaxMemory",
|
"ParamFieldName": "MaxMemory",
|
||||||
"IncludeInCommandLine": false,
|
"IncludeInCommandLine": false,
|
||||||
"DefaultValue": "4096"
|
"DefaultValue": "4096"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DisplayName": "Additional Java Startup Parameters",
|
||||||
|
"Category": "Server Settings",
|
||||||
|
"Description": "Additional Java arguments (not server arguments) as startup parameters that are not otherwise set by AMP. Use with care. Example: -Ddebug",
|
||||||
|
"Keywords": "custom,java,arguments,parameters",
|
||||||
|
"FieldName": "CustomJavaArgs",
|
||||||
|
"InputType": "text",
|
||||||
|
"IsFlagArgument": false,
|
||||||
|
"ParamFieldName": "CustomJavaArgs",
|
||||||
|
"IncludeInCommandLine": false,
|
||||||
|
"DefaultValue": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DisplayName": "Additional Server Startup Parameters",
|
||||||
|
"Category": "Server Settings",
|
||||||
|
"Description": "Additional server arguments (not Java arguments) as startup parameters that are not otherwise set by AMP. Use with care. Example: -ip 192.168.1.10",
|
||||||
|
"Keywords": "custom,server,arguments,parameters",
|
||||||
|
"FieldName": "CustomServerArgs",
|
||||||
|
"InputType": "text",
|
||||||
|
"IsFlagArgument": false,
|
||||||
|
"ParamFieldName": "CustomServerArgs",
|
||||||
|
"IncludeInCommandLine": false,
|
||||||
|
"DefaultValue": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user