{"id":16984677,"url":"https://github.com/jinzhongjia/satisfactory","last_synced_at":"2025-03-22T01:19:31.504Z","repository":{"id":48968553,"uuid":"432300233","full_name":"jinzhongjia/satisfactory","owner":"jinzhongjia","description":"幸福工厂（satisfactory）专用服务器一键搭建脚本","archived":false,"fork":false,"pushed_at":"2024-09-13T06:16:23.000Z","size":39,"stargazers_count":106,"open_issues_count":5,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-26T19:24:34.345Z","etag":null,"topics":["satisfactory"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jinzhongjia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-26T21:01:33.000Z","updated_at":"2025-01-07T16:22:05.000Z","dependencies_parsed_at":"2024-09-13T15:37:31.102Z","dependency_job_id":"cac07797-b175-45ac-907d-522f87a8e7c6","html_url":"https://github.com/jinzhongjia/satisfactory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinzhongjia%2Fsatisfactory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinzhongjia%2Fsatisfactory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinzhongjia%2Fsatisfactory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinzhongjia%2Fsatisfactory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinzhongjia","download_url":"https://codeload.github.com/jinzhongjia/satisfactory/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890506,"owners_count":20527111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["satisfactory"],"created_at":"2024-10-14T02:33:27.392Z","updated_at":"2025-03-22T01:19:31.475Z","avatar_url":"https://github.com/jinzhongjia.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 前言\n\n本脚本是游戏《幸福工厂》的一键安装脚本，安装方式为在宿主机安装server,如果你在寻找容器化安装方法，可以参考这里 [DockerGame](https://github.com/jinzhongjia/DockerGame/blob/main/Satisfactory/README_CN.md)\n\n## 幸福工厂自动部署脚本\n\n在以下linux发行版经过测试，可正常运行：\n\n* centos7.9\n* centos8\n* debian9\n* debian10\n* ubuntu18.04\n* Ubuntu 20.04\n\n**提示**：\n\n* 服务器提供商默认的系统镜像可能并不纯净，在遇到部署完成后发现服务运行正常，但无法连接游戏的情况，可以考虑dd系统镜像重新安装\n* 如果在安装过程中失败，请直接重新运行脚本，原因通常为下载游戏资源失败导致\n\n**用户反馈的问题**：\n\n* 华为云部署后连接服务器一直超时，端口已经放开，和客服反馈后仍未解决！\n\n实现功能：\n\n* 检测系统（OS）版本 ×\n* 检测服务器配置 √\n* 进行虚拟分区  √\n* 服务器安装  √\n* 创建服务进行启动  √\n* 内置swap创建（自定义大小）√\n\n## 使用方法\n\n### 安装须知\n\n|        |                                           系统要求                                              |\n|--------|------------------------------------------------------------------------------------------------|\n|处理器  |x86/64架构的AMD或者Intel处理器，不支持ARM架构，游戏服务更吃单核性能，实际运行效果为一核为主，其他为辅   |\n|内存    |至少12G,官方推荐4人及以上使用8G内存，物理内存不够可以使用swap达到要求                                 |\n|存储空间|25GB用于游戏服务本身（不算Steamcmd的占用空间）                                                     |\n|系统要求|主要的Linux发行版                                                                                |\n|联网    |正常的互联网，可以使用端口转发                                                                    |\n\n1. 首先确保你的服务器以下端口均已开放\n\n|默认端口（UDP）|简述|作用|\n|--------------|----|---|\n|15777|查询端口   |第一次连接到游戏服务是使用的端口，可以自由进行端口转发|\n|15000|标识端口   |无法端口转发，如果启动了多个游戏服务，它会自动递增|\n|7777 |游戏端口   |此端口可在服务启动时使用 -Port 参数自由转发，例如 \"-Port=10000\" 将游戏端口更改为 10000。当该端口被占用时，会递增寻找可用端口|\n\n2. 推荐使用`Debian`全系、`Ubuntu`全系，`Centos stream`，由于`centos`已经停止维护，故不推荐使用\n\n### 安装过程\n\n注意：推荐swap当前开启位11G，如果低于12G的话，游戏服务器会内存溢出导致无限重启\n\n#### 安装命令\n\n`centos7` / `Centos stream`:\n\n```bash\n#国外服务器使用\nbash \u003c(wget -qO- https://github.com/jinzhongjia/satisfactory/raw/script/satisfactory_c7.sh)\n#国内服务器使用\nbash \u003c(wget -qO- https://cdn.jsdelivr.net/gh/jinzhongjia/satisfactory@script/satisfactory_c7.sh)\n```\n\n`centos8`:\n\n```bash\n#国外服务器使用\nbash \u003c(wget -qO- https://github.com/jinzhongjia/satisfactory/raw/script/satisfactory_c8.sh)\n#国内服务器使用\nbash \u003c(wget -qO- https://cdn.jsdelivr.net/gh/jinzhongjia/satisfactory@script/satisfactory_c8.sh)\n```\n\n`ubuntu` / `debian`:\n\n```bash\n#国外服务器使用\nbash \u003c(wget -qO- https://github.com/jinzhongjia/satisfactory/raw/script/satisfactory_d.sh)\n#国内服务器使用\nbash \u003c(wget -qO- https://cdn.jsdelivr.net/gh/jinzhongjia/satisfactory@script/satisfactory_d.sh)\n```\n\n#### 操作命令\n\n```bash\n# 如果是在普通用户下执行，请使用sudo\nsystemctl start satisfactory\n#开启游戏服务\nsystemctl restart satisfactory\n#重启游戏服务，用于进行游戏更新\nsystemctl stop satisfactory\n#终止游戏服务\nsystemctl status satisfactory\n#查看游戏服务状态\n```\n\n### 配置说明\n\n脚本会在系统中创建一个steam账户用于安装steamcmd和satisfactory完成后的服务器运行（root账户无法运行该服务）！\n\n`steamcmd`和`satisfactory`存放位置：`/home/steam/`\n\n#### 存档位置\n\n路径：`/home/steam/.config/Epic/FactoryGame/Saved/SaveGames/server`\n\n#### 更改游戏人数\n\n配置路径：`/home/steam/FactoryGame/Saved/Config/LinuxServer/Game.ini`\n\n内容应为：下面的8为最大游戏人数\n\n```ini\n[/Script/Engine.GameSession]\nMaxPlayers=8\n```\n\n#### 游戏更新\n\n本脚本已经内置了游戏服务在每晚4点重新启动，并进行检测更新！\n\n如果想要手动更新游戏版本，只需要对游戏服务进行重启即可!\n\n```bash\n# 如果是在普通用户下执行，请使用sudo\nsystemctl restart satisfactory\n#重启游戏服务，用于进行游戏更新\n```\n\n#### 脚本完整删除方法\n\n1. 删除/home/steam文件夹\n\n```bash\nrm -rf /home/steam\n```\n\n2. 删除steam用户\n\n```bash\nuserdel –r steam\n```\n\n#### 相关资料\n\n官网：[www.satisfactorygame.com/](https://www.satisfactorygame.com)\n\n交互式地图：[satisfactory-calculator.com/en/interactive-map/](https://satisfactory-calculator.com/en/interactive-map/)\n\nMOD平台：[ficsit.app](https://ficsit.app)\n\n官方问题反馈论坛：[questions.satisfactorygame.com](https://questions.satisfactorygame.com/)\n\n官方维基：[Satisfactory_Wiki](https://satisfactory.wiki.gg/wiki/Satisfactory_Wiki)\n\n专属服务器维基：[Dedicated_servers](https://satisfactory.wiki.gg/wiki/Dedicated_servers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinzhongjia%2Fsatisfactory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinzhongjia%2Fsatisfactory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinzhongjia%2Fsatisfactory/lists"}