From 1b5509190826827ff4e669aa42f3d6e1457e42a4 Mon Sep 17 00:00:00 2001
From: SlavaVlad
Date: Mon, 8 Jun 2026 17:37:33 +0300
Subject: [PATCH] init update
---
.gitea/workflows/deploy.yml | 36 ++
Dockerfile | 13 +
.../Crawler/Animations/CrawlerRun.xml | 2 -
.../Crawler/Animations/CrawlerSwimFast.xml | 2 -
.../Crawler/Animations/CrawlerSwimSlow.xml | 2 -
.../Crawler/Animations/CrawlerWalk.xml | 2 -
.../Characters/Crawler/Crawler.xml | 82 -----
.../Ragdolls/CrawlerDefaultRagdoll.xml | 127 -------
.../Human.xml | 312 ------------------
.../Mudraptor.xml | 68 ----
.../README.txt | 32 --
.../Spineling_morbusine_m.xml | 1 -
.../Testcrawlerhatchling.xml | 15 -
.../Testcyborgworm_m.xml | 3 -
.../filelist.xml | 9 -
.../Lighting stress (10000 lights).sub | Bin 382364 -> 0 bytes
.../filelist.xml | 4 -
.../Missions.xml | 6 -
.../filelist.xml | 3 -
.../Dugong_PipeTest.sub | Bin 216810 -> 0 bytes
.../[DebugOnlyTest]PipeTestSub/filelist.xml | 4 -
.../PowerTestSub.sub | Bin 161576 -> 0 bytes
.../[DebugOnlyTest]PowerTestSub/filelist.xml | 4 -
.../RegEx Timeout Test.sub | Bin 214126 -> 0 bytes
.../filelist.xml | 4 -
.../OxygenDispenserTest.xml | 23 --
.../RotationAndFlippingTests.sub | Bin 13119 -> 0 bytes
.../StatusEffectAndLightTest.xml | 36 --
.../filelist.xml | 6 -
.../[DebugOnlyTest]TestLuaMod/Lua/init.lua | 75 -----
.../[DebugOnlyTest]TestLuaMod/ModConfig.xml | 7 -
.../[DebugOnlyTest]TestLuaMod/Settings.xml | 40 ---
.../SettingsClient.xml | 8 -
.../SettingsServer.xml | 8 -
.../Texts/English.xml | 13 -
LocalMods/[DebugOnlyTest]TestLuaMod/dummy.xml | 4 -
.../[DebugOnlyTest]TestLuaMod/filelist.xml | 5 -
.../[DebugOnlyTest]TestPathFinding/Events.xml | 159 ---------
.../[DebugOnlyTest]TestPathFinding.sub | Bin 108613 -> 0 bytes
.../filelist.xml | 8 -
.../Animations/HumanRunDivingSuit.xml | 40 ---
.../Animations/HumanWalkDivingSuit.xml | 40 ---
.../Testhuman/Animations/TesthumanCrouch.xml | 2 -
.../Testhuman/Animations/TesthumanRun.xml | 2 -
.../Animations/TesthumanSwimFast.xml | 2 -
.../Animations/TesthumanSwimSlow.xml | 2 -
.../Testhuman/Animations/TesthumanWalk.xml | 2 -
.../Ragdolls/TesthumanDefaultRagdoll.xml | 130 --------
.../Characters/Testhuman/Testhuman.xml | 308 -----------------
LocalMods/[DebugOnlyTest]Testhuman/README.txt | 8 -
.../[DebugOnlyTest]Testhuman/filelist.xml | 4 -
.../[DebugOnlyTest]testGapSub/filelist.xml | 4 -
.../[DebugOnlyTest]testGapSub/testGapSub.sub | Bin 75959 -> 0 bytes
config_player.xml | 9 +
docker-compose.yml | 9 +
docs/CI_CD_GUIDE.md | 167 ++++++++++
docs/Info.md | 164 +++++++++
scripts/autogen_config.py | 39 +++
58 files changed, 437 insertions(+), 1618 deletions(-)
create mode 100644 .gitea/workflows/deploy.yml
create mode 100644 Dockerfile
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerRun.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerSwimFast.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerSwimSlow.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerWalk.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Crawler.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Ragdolls/CrawlerDefaultRagdoll.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/Human.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/Mudraptor.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/README.txt
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/Spineling_morbusine_m.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/Testcrawlerhatchling.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/Testcyborgworm_m.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Character override and variant tests/filelist.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Lighting stress (10000 lights)/Lighting stress (10000 lights).sub
delete mode 100644 LocalMods/[DebugOnlyTest]Lighting stress (10000 lights)/filelist.xml
delete mode 100644 LocalMods/[DebugOnlyTest]MissionVariantsTest/Missions.xml
delete mode 100644 LocalMods/[DebugOnlyTest]MissionVariantsTest/filelist.xml
delete mode 100644 LocalMods/[DebugOnlyTest]PipeTestSub/Dugong_PipeTest.sub
delete mode 100644 LocalMods/[DebugOnlyTest]PipeTestSub/filelist.xml
delete mode 100644 LocalMods/[DebugOnlyTest]PowerTestSub/PowerTestSub.sub
delete mode 100644 LocalMods/[DebugOnlyTest]PowerTestSub/filelist.xml
delete mode 100644 LocalMods/[DebugOnlyTest]RegEx Timeout Test/RegEx Timeout Test.sub
delete mode 100644 LocalMods/[DebugOnlyTest]RegEx Timeout Test/filelist.xml
delete mode 100644 LocalMods/[DebugOnlyTest]RotationAndFlippingTests/OxygenDispenserTest.xml
delete mode 100644 LocalMods/[DebugOnlyTest]RotationAndFlippingTests/RotationAndFlippingTests.sub
delete mode 100644 LocalMods/[DebugOnlyTest]RotationAndFlippingTests/StatusEffectAndLightTest.xml
delete mode 100644 LocalMods/[DebugOnlyTest]RotationAndFlippingTests/filelist.xml
delete mode 100644 LocalMods/[DebugOnlyTest]TestLuaMod/Lua/init.lua
delete mode 100644 LocalMods/[DebugOnlyTest]TestLuaMod/ModConfig.xml
delete mode 100644 LocalMods/[DebugOnlyTest]TestLuaMod/Settings.xml
delete mode 100644 LocalMods/[DebugOnlyTest]TestLuaMod/SettingsClient.xml
delete mode 100644 LocalMods/[DebugOnlyTest]TestLuaMod/SettingsServer.xml
delete mode 100644 LocalMods/[DebugOnlyTest]TestLuaMod/Texts/English.xml
delete mode 100644 LocalMods/[DebugOnlyTest]TestLuaMod/dummy.xml
delete mode 100644 LocalMods/[DebugOnlyTest]TestLuaMod/filelist.xml
delete mode 100644 LocalMods/[DebugOnlyTest]TestPathFinding/Events.xml
delete mode 100644 LocalMods/[DebugOnlyTest]TestPathFinding/[DebugOnlyTest]TestPathFinding.sub
delete mode 100644 LocalMods/[DebugOnlyTest]TestPathFinding/filelist.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Testhuman/Characters/Testhuman/Animations/HumanRunDivingSuit.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Testhuman/Characters/Testhuman/Animations/HumanWalkDivingSuit.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Testhuman/Characters/Testhuman/Animations/TesthumanCrouch.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Testhuman/Characters/Testhuman/Animations/TesthumanRun.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Testhuman/Characters/Testhuman/Animations/TesthumanSwimFast.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Testhuman/Characters/Testhuman/Animations/TesthumanSwimSlow.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Testhuman/Characters/Testhuman/Animations/TesthumanWalk.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Testhuman/Characters/Testhuman/Ragdolls/TesthumanDefaultRagdoll.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Testhuman/Characters/Testhuman/Testhuman.xml
delete mode 100644 LocalMods/[DebugOnlyTest]Testhuman/README.txt
delete mode 100644 LocalMods/[DebugOnlyTest]Testhuman/filelist.xml
delete mode 100644 LocalMods/[DebugOnlyTest]testGapSub/filelist.xml
delete mode 100644 LocalMods/[DebugOnlyTest]testGapSub/testGapSub.sub
create mode 100644 config_player.xml
create mode 100644 docker-compose.yml
create mode 100644 docs/CI_CD_GUIDE.md
create mode 100644 docs/Info.md
create mode 100755 scripts/autogen_config.py
diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml
new file mode 100644
index 0000000..bd9f7d2
--- /dev/null
+++ b/.gitea/workflows/deploy.yml
@@ -0,0 +1,36 @@
+name: Build & Deploy
+on:
+ push:
+ branches: [release]
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Build Docker image
+ run: docker build -t barotrauma-server:${{ github.sha }} .
+
+ - name: Tag and push to local registry
+ run: |
+ docker tag barotrauma-server:${{ github.sha }} \
+ ${{ secrets.REGISTRY_ADDR }}/barotrauma-server:latest
+ docker push ${{ secrets.REGISTRY_ADDR }}/barotrauma-server:latest
+
+ - name: Deploy via SSH
+ uses: appleboy/ssh-action@v1
+ with:
+ host: ${{ secrets.SERVER_HOST }}
+ username: ${{ secrets.SERVER_USER }}
+ key: ${{ secrets.SSH_KEY }}
+ script: |
+ docker pull ${{ secrets.REGISTRY_ADDR }}/barotrauma-server:latest
+ docker stop barotrauma 2>/dev/null || true
+ docker rm barotrauma 2>/dev/null || true
+ docker run -d --name barotrauma \
+ --restart unless-stopped \
+ -p 27015:27015/udp \
+ -p 27015:27015/tcp \
+ ${{ secrets.REGISTRY_ADDR }}/barotrauma-server:latest
+ docker system prune -f
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..93352e1
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,13 @@
+FROM ubuntu:24.04
+
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ lib32gcc-s1 lib32stdc++6 ca-certificates \
+ && rm -rf /var/lib/apt/lists/*
+
+WORKDIR /server
+COPY . .
+
+EXPOSE 27015/udp
+EXPOSE 27015/tcp
+
+CMD ["./DedicatedServer"]
diff --git a/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerRun.xml b/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerRun.xml
deleted file mode 100644
index 41448ae..0000000
--- a/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerRun.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerSwimFast.xml b/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerSwimFast.xml
deleted file mode 100644
index 5a5abac..0000000
--- a/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerSwimFast.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerSwimSlow.xml b/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerSwimSlow.xml
deleted file mode 100644
index 0e8efab..0000000
--- a/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerSwimSlow.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerWalk.xml b/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerWalk.xml
deleted file mode 100644
index 39297cf..0000000
--- a/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Animations/CrawlerWalk.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Crawler.xml b/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Crawler.xml
deleted file mode 100644
index bb24f05..0000000
--- a/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Crawler.xml
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Ragdolls/CrawlerDefaultRagdoll.xml b/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Ragdolls/CrawlerDefaultRagdoll.xml
deleted file mode 100644
index d3a6deb..0000000
--- a/LocalMods/[DebugOnlyTest]Character override and variant tests/Characters/Crawler/Ragdolls/CrawlerDefaultRagdoll.xml
+++ /dev/null
@@ -1,127 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/LocalMods/[DebugOnlyTest]Character override and variant tests/Human.xml b/LocalMods/[DebugOnlyTest]Character override and variant tests/Human.xml
deleted file mode 100644
index 6c7b98b..0000000
--- a/LocalMods/[DebugOnlyTest]Character override and variant tests/Human.xml
+++ /dev/null
@@ -1,312 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-