-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCraftopia_default.ps1
More file actions
53 lines (48 loc) · 2.44 KB
/
Craftopia_default.ps1
File metadata and controls
53 lines (48 loc) · 2.44 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
Function New-LaunchScriptCraftopiaPS {
#---------- Craftopia Server Install Function -------------------
# APP ID # 1670340
# https://steamcommunity.com/sharedfiles/filedetails/?id=2525156012
################## Change Default Variables #################
# Server IP
${global:IP} = "${ip}"
# Server Port
$global:port = "6587"
# Server Name
$global:hostname = "SERVERNAME"
##############################/\##############################
# isUseSteamLobby=1
# To convert your Singleplayer world into Multiplayer you have to open the following folder:
# C:\Users\%USERNAME%\AppData\LocalLow\PocketPair\Craftopia\save
###################### Do not change below #####################
# System Directory
$global:systemdir = "$serverdir"
# Server Config Directory
$global:servercfgdir = "$serverdir"
# Appdata Directory
# $global:saves = "PocketPair"
# Server Executable
$global:executable = "Craftopia"
# Server Executable Directory
$global:executabledir = "$serverdir"
# Gamedig Query
$global:querytype = "protocol-valve"
# Game Process
$global:process = "Craftopia"
# Log Directory
$global:logdirectory = "$serverdir"
# Server Log
$global:consolelog = "Serverlog-*.log"
# Game-Server-Config
$global:servercfg = "ServerSetting.ini"
# Server Launch Command
$global:launchParams = '@("${executable} -batchmode -showlogs")'
# Advanced must be set to "0"
Get-UserInput
# Download Game-Server-Config
# Get-Servercfg
Set-Location $executabledir
Start-Process cmd "/c start Craftopia.exe"
Start-sleep -Seconds 30
Get-StopServer
Set-Location $currentdir
}