-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJustCause2_default.ps1
More file actions
49 lines (44 loc) · 1.86 KB
/
JustCause2_default.ps1
File metadata and controls
49 lines (44 loc) · 1.86 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
Function New-LaunchScriptjc2serverPS {
# Just Cause 2: Multiplayer - Dedicated Server
# APP ID # 261140
################## Change Default Variables #################
# Server IP
${global:IP} = "${ip}"
# Server Name
$global:hostname = "SERVERNAME"
# Server Port
$global:port = "7777"
##############################/\##############################
# 7777 TCP/UDP
###################### Do not change below #####################
# System Directory
$global:systemdir = "$serverdir"
# Server Config Directory
$global:servercfgdir = "$serverdir"
# Server Executable
$global:executable = "JcmpServer"
# Server Executable Directory
$global:executabledir = "$serverdir"
# Gamedig Query
$global:querytype = "jc2mp"
# Default Port for gamedig - change if needed
$global:port = "7777"
# Game Process
$global:process = "JcmpServer"
# Log Directory
$global:logdirectory = "$serverdir"
# Server Log
$global:consolelog = "server.log"
# Game-Server-Config Directory
$global:gamedirname = "JustCause2"
# Game-Server-Config
$global:servercfg = "config.lua"
# Server Launch Command
$global:launchParams = '@("${executable}")'
# Advanced must be set to "0"
Get-UserInput
# Download Game-Server-Config
Get-Servercfg
# Edit Server Game-Server-Config
Select-EditSourceCFG
}