-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProjectZomboid_default.ps1
More file actions
53 lines (48 loc) · 2.13 KB
/
ProjectZomboid_default.ps1
File metadata and controls
53 lines (48 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Function New-LaunchScriptpzserverPS {
# * * Add to Read-AppID in fn_Actions.ps1 * *
# Project Zomboid Dedicated Server
# APP ID # 380870
# WIKI
################## Change Default Variables #################
# Server IP
${global:IP} = "${ip}"
# Server Name
$global:hostname = "SERVERNAME"
# Rcon Password
${global:adminpassword} = "$RANDOMPASSWORD"
# Server Port
$global:port = "16261"
##############################/\##############################
# Port/s 16261+1 per player
###################### Do not change below #####################
# System Directory
$global:systemdir = "$serverdir"
# Server Config Directory
$global:servercfgdir = "$env:userprofile\Zomboid\Server"
# Server Executable
$global:executable = "ProjectZomboid64"
# Server Executable Directory
$global:executabledir = "$serverdir"
# Gamedig Query
$global:querytype = "protocol-valve"
# Game Process
$global:process = "ProjectZomboid64"
# Log Directory
$global:logdirectory = "$env:userprofile\Zomboid"
# Server Log
$global:consolelog = "server-console.txt"
# Game-Server-Config Directory
$global:gamedirname = "ProjectZomboid"
# Game-Server-Config
$global:servercfg = "server.ini"
# Server Launch Command
$global:launchParams = '@("${executable} -ip ${ip} -adminpassword `"${adminpassword}`" -servername `"${hostname}`"")'
# Advanced must be set to "0"
Get-UserInput
# Download Game-Server-Config
Get-Servercfg
# Edit Server Game-Server-Config
Select-EditSourceCFG
# Rename Source $executable.exe
Select-RenameSource
}