Добавлено обновление модов ARK

This commit is contained in:
Евгений Храмов 2023-05-23 22:52:31 +03:00
parent b9c31d22af
commit 61f59cac0c
3 changed files with 154 additions and 130 deletions

1
.gitignore vendored

@ -76,3 +76,4 @@ CMakeLists.txt.user*
*.pyproject *.pyproject
*.pyproject.user *.pyproject.user
*.ui *.ui
settings.json

192
hlna.py

@ -508,39 +508,39 @@ WantedBy=default.target
@click.argument('id_mods_ark', nargs=-1) @click.argument('id_mods_ark', nargs=-1)
def mod(g, m, i, id_mods_ark): def mod(g, m, i, id_mods_ark):
if g == "ark": if g == "ark":
id_game_workshop = "346110"
if not os.path.isdir(dir_mods_ark): if not os.path.isdir(dir_mods_ark):
create_dir(dir_mods_ark) create_dir(dir_mods_ark)
id_mods_ark = id_mods_ark[0].split(',') id_mods_ark = id_mods_ark[0].split(',')
for id_mod in id_mods_ark: for id_mod in id_mods_ark:
dir_ark_mods = f"{dir_mods_ark}/{id_mod}" dir_mod_ark = f"{dir_mods_ark}/{id_mod}"
if not os.path.isfile(f"{dir_ark_mods}.mod"): if not os.path.isfile(f"{dir_mod_ark}.mod"):
print_line(f"{dir_mod_ark}.mod")
if i: if i:
moddownload(id_mod, id_game_workshop, dir_ark_mods) moddownload(id_mod,dir_mod_ark)
else: else:
os.system(f"rm -rf {dir_ark_mods}") os.system(f"rm -rf {dir_mod_ark}")
print_line(f"{dir_ark_mods} удалён") print_line(f"{dir_mod_ark} удалён")
os.system(f"rm {dir_mods_ark}/{id_mod}.mod") os.system(f"rm {dir_mods_ark}/{id_mod}.mod")
print_line(f"{dir_mods_ark}/{id_mod}.mod удалён") print_line(f"{dir_mods_ark}/{id_mod}.mod удалён")
os.system(f"mv {dir_workshop_ark}/appworkshop_{id_game_workshop}.acf {dir_ark_mods}/appworkshop_{id_game_workshop}.acf")
else: else:
modupdate(g, m, id_mod, dir_ark_mods) modupdate(g, m, id_mod, dir_mod_ark)
else:
print_line("Не поддерживаемая игра")
def modupdate(g, m, id_mod, dir_ark_mods): def modupdate(g, m, id_mod, dir_mod_ark):
if g == "ark": if g == "ark":
if not os.path.isfile(os.path.join(dir_ark_mods, f"appworkshop_{id_mod}.acf")): # if not os.path.isfile(os.path.join(dir_ark_mods, f"appworkshop_{id_mod}.acf")):
return # return
with open(os.path.join(dir_ark_mods, f"appworkshop_{id_mod}.acf"), "r") as f: with open(os.path.join(dir_mod_ark, f"appworkshop_346110.acf"), "r") as f:
content = f.readlines() content = f.readlines()
content = "".join(content) content = "".join(content)
locale_date = "" locale_date = ""
for line in content.splitlines():
for line in content.split("\n"):
if '\t"WorkshopItemsInstalled"' in line: if '\t"WorkshopItemsInstalled"' in line:
for line in content.split("\n"): for line in content.splitlines():
if f'\t\t"{id_mod}"' in line: if f'\t\t"timeupdated"' in line:
locale_date = line.split('"')[5] locale_date = line.split('"')[3]
if '}' in line: if '}' in line:
break break
break break
@ -553,82 +553,92 @@ def modupdate(g, m, id_mod, dir_ark_mods):
json_zapros = zapros.json() json_zapros = zapros.json()
steam_date = json_zapros['response']['publishedfiledetails'][0]['time_updated'] steam_date = json_zapros['response']['publishedfiledetails'][0]['time_updated']
if steam_date and locale_date == steam_date: if int(steam_date) != int(locale_date):
return moddownload(g, m, id_mod, dir_mod_ark)
else:
print_line(f"Мод {id_mod} обновлен")
if steam_date and locale_date != steam_date:
print_line("хз")
def modupdateall(): def modupdateall(g, m):
print_line("Вход в обновление всех")
for file in os.listdir(dir_mods_ark): for file in os.listdir(dir_mods_ark):
if os.path.isfile(os.path.join(dir_mods_ark, file)): if os.path.isfile(os.path.join(dir_mods_ark, file)):
if file.endswith('.mod'): if file.endswith('.mod'):
print(file) id_mod = file.split(".")[0]
if id_mod == "111111111":
continue
dir_mod_ark = f"{dir_mods_ark}/{id_mod}"
modupdate(g, m, id_mod, dir_mod_ark)
def moddownload(id_mod, id_game_workshop, dir_ark_mods): def moddownload(g, m, id_mod, dir_mod_ark):
"""Распаковывает файлы мода и создаёт .mod файл для него""" """Распаковывает файлы мода и создаёт .mod файл для него"""
dir_steam_workshop = f"{dir_workshop_ark}/content/{id_game_workshop}/{id_mod}/WindowsNoEditor" if g == "ark":
dir_extract = dir_ark_mods id_game_workshop = "346110"
if id_mod == "111111111": dir_steam_workshop = f"{dir_workshop_ark}/content/{id_game_workshop}/{id_mod}/WindowsNoEditor"
return dir_extract = dir_mod_ark
os.system(f"steamcmd +login anonymous +workshop_download_item {id_game_workshop} {id_mod} +quit") if id_mod == "111111111":
try: return
for curdir, subdirs, files in os.walk(os.path.join(dir_steam_workshop)): if os.path.isfile(f"{dir_workshop_ark}/appworkshop_{id_game_workshop}.acf"):
for file in files: os.system(f"rm {dir_workshop_ark}/appworkshop_{id_game_workshop}.acf")
name, ext = os.path.splitext(file) os.system(f"steamcmd +login anonymous +workshop_download_item {id_game_workshop} {id_mod} +quit")
if ext == ".z": try:
src = os.path.join(curdir, file) for curdir, subdirs, files in os.walk(os.path.join(dir_steam_workshop)):
dst = os.path.join(curdir, name) for file in files:
uncompressed = os.path.join(curdir, file + ".uncompressed_size") name, ext = os.path.splitext(file)
unpack(src, dst) if ext == ".z":
print("[+] Extracted " + file) src = os.path.join(curdir, file)
os.remove(src) dst = os.path.join(curdir, name)
if os.path.isfile(uncompressed): uncompressed = os.path.join(curdir, file + ".uncompressed_size")
os.remove(uncompressed) unpack(src, dst)
except Exception as e: print("[+] Extracted " + file)
print(e) os.remove(src)
print("[x] Unpacking .z files failed, aborting mod install") if os.path.isfile(uncompressed):
return False os.remove(uncompressed)
except Exception as e:
print(e)
print("[x] Unpacking .z files failed, aborting mod install")
return False
os.system(f"rm -rf {dir_ark_mods}") os.system(f"rm -rf {dir_mod_ark}")
os.system(f"mv -f {dir_steam_workshop} {dir_ark_mods}") os.system(f"mv -f {dir_steam_workshop} {dir_mod_ark}")
modname = subprocess.check_output( modname = subprocess.check_output(
['curl', '-s', f'https://steamcommunity.com/sharedfiles/filedetails/?id={id_mod}']).decode('utf-8') ['curl', '-s', f'https://steamcommunity.com/sharedfiles/filedetails/?id={id_mod}']).decode('utf-8')
modname = re.search(r'<div class="workshopItemTitle">(.+)</div>', modname) modname = re.search(r'<div class="workshopItemTitle">(.+)</div>', modname)
modname = modname and modname.group(1) modname = modname and modname.group(1)
if os.path.isfile(f"{dir_ark_mods}.mod"): if os.path.isfile(f"{dir_mod_ark}.mod"):
os.remove(f"{dir_ark_mods}.mod") os.remove(f"{dir_mod_ark}.mod")
with open(f"{dir_extract}/mod.info", "rb") as modinfo: with open(f"{dir_extract}/mod.info", "rb") as modinfo:
data = modinfo.read() data = modinfo.read()
mapnamelen = struct.unpack_from("<L", data, 0)[0] mapnamelen = struct.unpack_from("<L", data, 0)[0]
mapname = data[4:mapnamelen + 3] mapname = data[4:mapnamelen + 3]
nummaps = struct.unpack_from("<L", data, mapnamelen + 4)[0] nummaps = struct.unpack_from("<L", data, mapnamelen + 4)[0]
pos = mapnamelen + 8 pos = mapnamelen + 8
modname = (modname.encode() or mapname.decode()) + b'\x00' modname = (modname.encode() or mapname.decode()) + b'\x00'
modnamelen = len(modname) modnamelen = len(modname)
modpath = b"../../../" + dir_shooter.encode() + b"/Content/Mods/" + id_mod.encode() + b'\x00' modpath = b"../../../" + dir_shooter.encode() + b"/Content/Mods/" + id_mod.encode() + b'\x00'
modpathlen = len(modpath) modpathlen = len(modpath)
with open(f"{dir_ark_mods}.mod", "wb") as mod: with open(f"{dir_mod_ark}.mod", "wb") as mod:
mod.write(struct.pack(f'<LLL{modnamelen}sL{modpathlen}sL', int(id_mod), 0, modnamelen, modname, mod.write(struct.pack(f'<LLL{modnamelen}sL{modpathlen}sL', int(id_mod), 0, modnamelen, modname,
modpathlen, modpath, nummaps)) modpathlen, modpath, nummaps))
for mapnum in range(nummaps): for mapnum in range(nummaps):
mapfilelen = struct.unpack_from("<L", data, pos)[0] mapfilelen = struct.unpack_from("<L", data, pos)[0]
mapfile = data[mapnamelen + 12:mapnamelen + 12 + mapfilelen] mapfile = data[mapnamelen + 12:mapnamelen + 12 + mapfilelen]
mod.write(struct.pack("<L%ds" % mapfilelen, mapfilelen, mapfile)) mod.write(struct.pack("<L%ds" % mapfilelen, mapfilelen, mapfile))
pos = pos + 4 + mapfilelen pos = pos + 4 + mapfilelen
mod.write(b"\x33\xFF\x22\xFF\x02\x00\x00\x00\x01") mod.write(b"\x33\xFF\x22\xFF\x02\x00\x00\x00\x01")
if os.path.isfile(os.path.join(dir_extract, "modmeta.info")): if os.path.isfile(os.path.join(dir_extract, "modmeta.info")):
with open(os.path.join(dir_extract, "modmeta.info"), "rb") as f: with open(os.path.join(dir_extract, "modmeta.info"), "rb") as f:
with open(f"{dir_extract}.mod", "ab") as f_out: with open(f"{dir_extract}.mod", "ab") as f_out:
f_out.write(f.read()) f_out.write(f.read())
else: else:
with open(f"{dir_mods_ark}.mod", "wb") as f_out: with open(f"{dir_mods_ark}.mod", "wb") as f_out:
f_out.write(b'\x01\x00\x00\x00\x08\x00\x00\x00ModType\x00\x02\x00\x00\x001\x00') f_out.write(b'\x01\x00\x00\x00\x08\x00\x00\x00ModType\x00\x02\x00\x00\x001\x00')
x = os.system(f"mv {dir_workshop_ark}/appworkshop_{id_game_workshop}.acf {dir_mod_ark}/appworkshop_{id_game_workshop}.acf")
@hlna.command(help='Выключение/включение серверов (без удаления) <hlna switch -m all -d') @hlna.command(help='Выключение/включение серверов (без удаления) <hlna switch -m all -d')
@ -734,6 +744,7 @@ def start(g, m):
"""Запускает сервер выбранной игры""" """Запускает сервер выбранной игры"""
# добавить проверку на ввод аргумента ark/7day если else: давать подсказку # добавить проверку на ввод аргумента ark/7day если else: давать подсказку
# если нет конфигов, то выводим что серверов нет # если нет конфигов, то выводим что серверов нет
modupdateall(g, m)
start_stop("start", g, m) start_stop("start", g, m)
@ -748,6 +759,7 @@ def stop(g, m):
@click.option('-g', required=True, help="Название игры для запуска. (ark, 7days") @click.option('-g', required=True, help="Название игры для запуска. (ark, 7days")
@click.option('-m', default='all', help="Название карты для запуска или all для запуска все карт") @click.option('-m', default='all', help="Название карты для запуска или all для запуска все карт")
def restart(g, m): def restart(g, m):
modupdateall(g, m)
start_stop("restart", g, m) start_stop("restart", g, m)
@ -785,9 +797,8 @@ def start_stop(action, g, m, list_config=list_config):
names_serverstart = choose_map(names_serverstart) names_serverstart = choose_map(names_serverstart)
for i in names_serverstart: for i in names_serverstart:
data = read_yaml(i, game="ARK") data = read_yaml(i, game="ARK")
if stop or restart: if action == "stop" or action == "restart":
y = os.system( rcon_local(i, "SaveWorld")
f"~/git/hln-a/hlna.py rcon SaveWorld -m {i}") if action == "restart" or action == "stop" else ""
x = os.system(f"systemctl --user {action} ark_{data['SessionName'].lower()}.service") x = os.system(f"systemctl --user {action} ark_{data['SessionName'].lower()}.service")
if x == 0: if x == 0:
@ -839,6 +850,10 @@ def choose_map(arr):
@click.argument('c', nargs=1) @click.argument('c', nargs=1)
@click.option('-m', required=True, help="Название карты для применения rcon команды") @click.option('-m', required=True, help="Название карты для применения rcon команды")
def rcon(m, c): def rcon(m, c):
rcon_local(m, c)
def rcon_local(m, c):
try: try:
dict_mapname = {} dict_mapname = {}
dict_adminpwd = {} dict_adminpwd = {}
@ -864,7 +879,7 @@ def rcon(m, c):
else: else:
pass pass
except: except:
print(f"Ошибка отправки команды в {m}", flag=False) print_line(f"Ошибка отправки команды {c} в {m}", flag=False)
def zero(x=""): def zero(x=""):
@ -900,10 +915,17 @@ create_dir(dir_unit)
create_dir(dir_logs) create_dir(dir_logs)
class HlnaApp(QtWidgets.QMainWindow, hlnaui.Ui_MainWindow): class HlnaApp(QtWidgets.QMainWindow, hlnaui.Ui_mainWindow):
def __init__(self): def __init__(self):
super().__init__() super().__init__()
self.setupUi(self) self.setupUi(self)
self.lineEdit_ARK.returnPressed.connect(self.printable)
def printable(self):
namesession = self.lineEdit_ARK.text()
print_line(namesession)
def hlnag(): def hlnag():
if len(sys.argv) > 1: if len(sys.argv) > 1:

@ -9,11 +9,11 @@
from PyQt6 import QtCore, QtGui, QtWidgets from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object): class Ui_mainWindow(object):
def setupUi(self, MainWindow): def setupUi(self, mainWindow):
MainWindow.setObjectName("MainWindow") mainWindow.setObjectName("mainWindow")
MainWindow.resize(1552, 1000) mainWindow.resize(1552, 1000)
self.centralwidget = QtWidgets.QWidget(parent=MainWindow) self.centralwidget = QtWidgets.QWidget(parent=mainWindow)
self.centralwidget.setObjectName("centralwidget") self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget) self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName("horizontalLayout") self.horizontalLayout.setObjectName("horizontalLayout")
@ -35,9 +35,6 @@ class Ui_MainWindow(object):
self.groupBox = QtWidgets.QGroupBox(parent=self.tab_5) self.groupBox = QtWidgets.QGroupBox(parent=self.tab_5)
self.groupBox.setTitle("") self.groupBox.setTitle("")
self.groupBox.setObjectName("groupBox") self.groupBox.setObjectName("groupBox")
self.textEdit = QtWidgets.QTextEdit(parent=self.groupBox)
self.textEdit.setGeometry(QtCore.QRect(10, 30, 441, 31))
self.textEdit.setObjectName("textEdit")
self.label = QtWidgets.QLabel(parent=self.groupBox) self.label = QtWidgets.QLabel(parent=self.groupBox)
self.label.setGeometry(QtCore.QRect(10, 10, 81, 18)) self.label.setGeometry(QtCore.QRect(10, 10, 81, 18))
self.label.setScaledContents(True) self.label.setScaledContents(True)
@ -87,6 +84,10 @@ class Ui_MainWindow(object):
self.checkBox = QtWidgets.QCheckBox(parent=self.groupBox) self.checkBox = QtWidgets.QCheckBox(parent=self.groupBox)
self.checkBox.setGeometry(QtCore.QRect(140, 200, 301, 31)) self.checkBox.setGeometry(QtCore.QRect(140, 200, 301, 31))
self.checkBox.setObjectName("checkBox") self.checkBox.setObjectName("checkBox")
self.lineEdit_ARK = QtWidgets.QLineEdit(parent=self.groupBox)
self.lineEdit_ARK.setGeometry(QtCore.QRect(10, 30, 441, 32))
self.lineEdit_ARK.setText("")
self.lineEdit_ARK.setObjectName("lineEdit_ARK")
self.gridLayout_3.addWidget(self.groupBox, 0, 0, 1, 1) self.gridLayout_3.addWidget(self.groupBox, 0, 0, 1, 1)
self.groupBox_2 = QtWidgets.QGroupBox(parent=self.tab_5) self.groupBox_2 = QtWidgets.QGroupBox(parent=self.tab_5)
self.groupBox_2.setObjectName("groupBox_2") self.groupBox_2.setObjectName("groupBox_2")
@ -104,9 +105,6 @@ class Ui_MainWindow(object):
self.groupBox_3 = QtWidgets.QGroupBox(parent=self.tab_2) self.groupBox_3 = QtWidgets.QGroupBox(parent=self.tab_2)
self.groupBox_3.setTitle("") self.groupBox_3.setTitle("")
self.groupBox_3.setObjectName("groupBox_3") self.groupBox_3.setObjectName("groupBox_3")
self.textEdit_8 = QtWidgets.QTextEdit(parent=self.groupBox_3)
self.textEdit_8.setGeometry(QtCore.QRect(10, 30, 441, 31))
self.textEdit_8.setObjectName("textEdit_8")
self.label_8 = QtWidgets.QLabel(parent=self.groupBox_3) self.label_8 = QtWidgets.QLabel(parent=self.groupBox_3)
self.label_8.setGeometry(QtCore.QRect(10, 10, 81, 18)) self.label_8.setGeometry(QtCore.QRect(10, 10, 81, 18))
self.label_8.setScaledContents(True) self.label_8.setScaledContents(True)
@ -139,65 +137,68 @@ class Ui_MainWindow(object):
self.label_14.setGeometry(QtCore.QRect(10, 180, 131, 18)) self.label_14.setGeometry(QtCore.QRect(10, 180, 131, 18))
self.label_14.setScaledContents(True) self.label_14.setScaledContents(True)
self.label_14.setObjectName("label_14") self.label_14.setObjectName("label_14")
self.lineEdit = QtWidgets.QLineEdit(parent=self.groupBox_3)
self.lineEdit.setGeometry(QtCore.QRect(10, 30, 441, 32))
self.lineEdit.setObjectName("lineEdit")
self.gridLayout.addWidget(self.groupBox_3, 0, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_3, 0, 0, 1, 1)
self.groupBox_4 = QtWidgets.QGroupBox(parent=self.tab_2) self.groupBox_4 = QtWidgets.QGroupBox(parent=self.tab_2)
self.groupBox_4.setObjectName("groupBox_4") self.groupBox_4.setObjectName("groupBox_4")
self.gridLayout.addWidget(self.groupBox_4, 0, 1, 1, 1) self.gridLayout.addWidget(self.groupBox_4, 0, 1, 1, 1)
self.tabWidget.addTab(self.tab_2, "") self.tabWidget.addTab(self.tab_2, "")
self.horizontalLayout.addWidget(self.tabWidget) self.horizontalLayout.addWidget(self.tabWidget)
MainWindow.setCentralWidget(self.centralwidget) mainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(parent=MainWindow) self.menubar = QtWidgets.QMenuBar(parent=mainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1552, 30)) self.menubar.setGeometry(QtCore.QRect(0, 0, 1552, 30))
self.menubar.setObjectName("menubar") self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar) mainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(parent=MainWindow) self.statusbar = QtWidgets.QStatusBar(parent=mainWindow)
self.statusbar.setObjectName("statusbar") self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar) mainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow) self.retranslateUi(mainWindow)
self.tabWidget.setCurrentIndex(1) self.tabWidget.setCurrentIndex(0)
self.tabWidget_2.setCurrentIndex(0) self.tabWidget_2.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow) QtCore.QMetaObject.connectSlotsByName(mainWindow)
def retranslateUi(self, MainWindow): def retranslateUi(self, mainWindow):
_translate = QtCore.QCoreApplication.translate _translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) mainWindow.setWindowTitle(_translate("mainWindow", "HLN-A"))
self.label.setText(_translate("MainWindow", "Имя сессии")) self.label.setText(_translate("mainWindow", "Имя сессии"))
self.textEdit_2.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" self.textEdit_2.setHtml(_translate("mainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n" "p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Noto Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "</style></head><body style=\" font-family:\'Noto Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">7777</p></body></html>")) "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">7777</p></body></html>"))
self.label_2.setText(_translate("MainWindow", "Порт")) self.label_2.setText(_translate("mainWindow", "Порт"))
self.label_3.setText(_translate("MainWindow", "Querry порт")) self.label_3.setText(_translate("mainWindow", "Querry порт"))
self.textEdit_3.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" self.textEdit_3.setHtml(_translate("mainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n" "p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Noto Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "</style></head><body style=\" font-family:\'Noto Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">27015</p></body></html>")) "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">27015</p></body></html>"))
self.textEdit_4.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" self.textEdit_4.setHtml(_translate("mainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n" "p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Noto Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "</style></head><body style=\" font-family:\'Noto Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">27042</p></body></html>")) "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">27042</p></body></html>"))
self.label_4.setText(_translate("MainWindow", "Rcon порт")) self.label_4.setText(_translate("mainWindow", "Rcon порт"))
self.label_5.setText(_translate("MainWindow", "Пароль сессии")) self.label_5.setText(_translate("mainWindow", "Пароль сессии"))
self.label_6.setText(_translate("MainWindow", "Пароль администратора")) self.label_6.setText(_translate("mainWindow", "Пароль администратора"))
self.label_7.setText(_translate("MainWindow", "Количество игроков")) self.label_7.setText(_translate("mainWindow", "Количество игроков"))
self.checkBox.setText(_translate("MainWindow", "Передавать в глобальный список серверов")) self.checkBox.setText(_translate("mainWindow", "Передавать в глобальный список серверов"))
self.groupBox_2.setTitle(_translate("MainWindow", "ini")) self.groupBox_2.setTitle(_translate("mainWindow", "ini"))
self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_5), _translate("MainWindow", "Tab 1")) self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_5), _translate("mainWindow", "Tab 1"))
self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_6), _translate("MainWindow", "Tab 2")) self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_6), _translate("mainWindow", "Tab 2"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "ARK")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("mainWindow", "ARK"))
self.label_8.setText(_translate("MainWindow", "Имя сессии")) self.label_8.setText(_translate("mainWindow", "Имя сессии"))
self.textEdit_9.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" self.textEdit_9.setHtml(_translate("mainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n" "p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Noto Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "</style></head><body style=\" font-family:\'Noto Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>")) "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
self.label_9.setText(_translate("MainWindow", "Порт")) self.label_9.setText(_translate("mainWindow", "Порт"))
self.label_12.setText(_translate("MainWindow", "Пароль сессии")) self.label_12.setText(_translate("mainWindow", "Пароль сессии"))
self.label_13.setText(_translate("MainWindow", "Пароль администратора")) self.label_13.setText(_translate("mainWindow", "Пароль администратора"))
self.label_14.setText(_translate("MainWindow", "Количество игроков")) self.label_14.setText(_translate("mainWindow", "Количество игроков"))
self.groupBox_4.setTitle(_translate("MainWindow", "xml")) self.groupBox_4.setTitle(_translate("mainWindow", "xml"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "7 Days to Die")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("mainWindow", "7 Days to Die"))