This commit is contained in:
Sitislllll@gmail.com 2023-02-04 16:16:54 +03:00
parent ca046f7f22
commit 73d00c92b8

76
dodo.py Normal file

@ -0,0 +1,76 @@
import os
map_server = "TheIsland"
dir_server = "/home/xpamych/ARK_Servers/"
SessionName = "Dodo server"
Port = 7780
QueryPort = 27016
ServerPassword = ""
MaxPlayers = 70
ModsId = []
listen = True
Cluster = False
if not os.path.exists(dir_server):
os.mkdir(dir_server)
os.chdir(dir_server)
def install():
while True:
count = input("Укажите количество карт:\n")
if count.isdigit:
break
print("Введите цифры")
for i in range(count):
print("""Выберите карту из списка указав номер
1. The Island
2. The Center
3. Scorched Earth
4. Ragnarok
5. Aberration
6. Extinction
7. Valguero
8. Genesis: Part 1
9. Crystal Isles
10. Genesis: Part 2
11. Lost Island
12. Fjordur""")
while True:
count_map = input("")
if count.isdigit:
break
if count_map == 1:
map_server = "TheIsland"
elif count_map == 2:
map_server = "TheCenter"
elif count_map == 3:
map_server = "ScorchedEarth_P"
elif count_map == 4:
map_server = "Ragnarok"
elif count_map == 5:
map_server = "Aberration_P"
elif count_map == 6:
map_server = "Extinction"
elif count_map == 7:
map_server = "Valguero_P"
elif count_map == 8:
map_server = "Genesis"
elif count_map == 9:
map_server = "CrystalIsles"
elif count_map == 10:
map_server = "Gen2"
elif count_map == 11:
map_server = "LostIsland"
elif count_map == 12:
map_server = "Fjordur"
print("Введите цифры")
os.mkdir(dir_server + map_server)
os.system(f"steamcmd +login anonymous +force_install_dir {dir_server + map_server} +app_update 376030 +quit
")
def start():
if Cluster == False:
os.system(f"ShooterGameServer {map_server}?SessionName={SessionName}?Port={Port}?QueryPort={QueryPort}?MaxPlayers={MaxPlayers}?GameModIds={ModsId}?listen={listen}")
#os.system("ShooterGameServer")
start()