【零成本】七日杀 服务器搭建 异地联机 无需公网IP、服务器

news2024/9/19 15:50:13

主要内容

  • 什么是七日杀

  • 搭建前需要准备什么

  • 详细步骤

  • 1.Steam中下载七日杀服务器工具

  • 2.修改七日杀服务配置文件

  • 3.启动七日杀服务器应用

  • 4.运行 MoleSDN 进行异地联机

  • 5.小伙伴打开游戏加入 鼠鼠的服务器

什么是七日杀

《七日杀》是一款沙盒生存恐怖游戏,突出了其开放世界、建筑与生存要素的混合体验。

游戏特色:沙盒生存:玩家需要在一个开放世界中生存,收集资源、建造基地、抵御丧尸和其他玩家的攻击。丧尸与敌对生物:游戏中充斥着多种类型的丧尸和其他怪物,它们的攻击随着时间推移变得更加强大和频繁。建造与破坏:玩家可以通过收集资源和合成物品来建造和加固建筑,同时世界中的几乎所有物体都可以被破坏或移动。合作与PvP:支持多人合作模式,玩家可以一起建设基地和对抗敌人,也可以选择攻击其他玩家的基地。

《七日杀》最早于2013年作为Alpha版本发布,由The Fun Pimps开发团队制作。游戏经历了多次重大更新,包括增加新的游戏机制、改进图形和物理引擎以及优化游戏性能。开发团队积极与玩家社区互动,接受玩家反馈并根据反馈进行游戏改进和更新。最近《七日杀》1.0正式版本,目前仍在持续更新。

搭建前需要准备什么

不需要准备什么:一台能上网的Windows系统电脑、一个MoleSDN账户即可

详细步骤

1.Steam中下载七日杀服务器工具

Steam游戏库中搜索294420 (或7 Days to Die Dedicated Server),下载并安装

2.修改七日杀服务配置文件

使用记事本打开 serverconfig.xml配置文件

配置文件格式讲解

主要的几个配置设置,可以自行按需调整:

<?xml version="1.0"?> <ServerSettings> <!-- GENERAL SERVER SETTINGS --> <!-- Server representation --> <property name="ServerName" value="FeiJian的服务器"/> <!-- 服务器名称,请自行设置(默认是:My Game Host) --> <property name="ServerDescription" value="禁止外挂作弊,谢谢配合"/><!-- 相当于服务器的简介 --> <property name="ServerWebsiteURL" value=""/><!-- 服务器的网站URL(默认无) --> <property name="ServerPassword" value=""/><!-- 进入服务器的密码(默认无) --> <property name="ServerLoginConfirmationText" value=""/><!-- 如果设置用户将在加入服务器的过程中看到该消息(玩家进入游戏时会看到的文字,默认没有) --> <!-- Networking --> <property name="ServerPort" value="26900"/><!-- 服务器监听的端口. --> <property name="ServerVisibility" value="2"/><!-- 服务器的可见性:2=公共,1=仅向朋友显示,0=未列出. --> <property name="ServerDisabledNetworkProtocols" value="SteamNetworking"/> <!-- 【未知,请勿乱开】Networking protocols that should not be used. Separated by comma. Possible values: LiteNetLib, SteamNetworking. Dedicated servers should disable SteamNetworking if there is no NAT router in between your users and the server or when port-forwarding is set up correctly --> <property name="ServerMaxWorldTransferSpeedKiBs" value="512"/><!-- 【上传带宽(KB/S)默认即可,读取地图或上传保存时的速度 】 Maximum (!) speed in kiB/s the world is transferred at to a client on first connect if it does not have the world yet. Maximum is about 1300 kiB/s, even if you set a higher value. --> <!-- Slots --> <property name="ServerMaxPlayerCount" value="4"/> <!-- 最多多少人同时在线(越多越卡) --> <property name="ServerReservedSlots" value="0"/> <!-- 【最多人上限时,允许几个特权的人还可加入游戏】Out of the MaxPlayerCount this many slots can only be used by players with a specific permission level --> <property name="ServerReservedSlotsPermission" value="100"/> <!-- Required permission level to use reserved slots above --> <property name="ServerAdminSlots" value="0"/> <!-- 【最多人上限时,允许几位管理员还可加入游戏】This many admins can still join even if the server has reached MaxPlayerCount --> <property name="ServerAdminSlotsPermission" value="0"/> <!-- Required permission level to use the admin slots above --> <!-- Admin interfaces --> <property name="ControlPanelEnabled" value="false"/> <!-- 启用/禁用Web控制面板 --> <property name="ControlPanelPort" value="8080"/> <!-- 控制面板网页的端口 --> <property name="ControlPanelPassword" value="CHANGEME"/> <!-- 进入控制面板的密码 --> <property name="TelnetEnabled" value="true"/> <!-- 启用/禁用telnet --> <property name="TelnetPort" value="8081"/> <!-- 远程登录服务器的端口 --> <property name="TelnetPassword" value=""/> <!-- 进入telnet界面的密码 --> <property name="TelnetFailedLoginLimit" value="10"/> <!-- 在来自单个远程客户端的许多错误密码之后将被阻止连接到Telnet --> <property name="TelnetFailedLoginsBlocktime" value="10"/> <!-- 阻止将持续多长时间(以秒为单位 --> <property name="TerminalWindowEnabled" value="true"/> <!-- 显示用于日志输出/命令输入的终端窗口 --> <!-- Folder and file locations --> <property name="AdminFileName" value="serveradmin.xml"/> <!-- 服务器管理文件名 --> <property name="UserDataFolder" value="D:\7 Day BaoCun\"/> <!--value="这里复制你保存的路径(默认保存到C盘)极大影响游戏性能!" />--> <property name="SaveGameFolder" value="D:\7 Day BaoCun\"/> <!--value="这里复制你保存的路径(默认保存到C盘)极大影响游戏性能!" />--> <!-- Other technical settings --> <property name="EACEnabled" value="true"/> <!-- 启用或禁用EAC反作弊 true=启用 false=禁用(一旦禁用玩家就可以修改文件作弊了)Enables/Disables EasyAntiCheat --> <property name="HideCommandExecutionLog" value="0"/> <!-- Hide logging of command execution. 0 = show everything, 1 = hide only from Telnet/ControlPanel, 2 = also hide from remote game clients, 3 = hide everything --> <property name="MaxUncoveredMapChunksPerPlayer" value="131072"/> <!-- Override how many chunks can be uncovered on the ingame map by each player. Resulting max map file size limit per player is (x * 512 Bytes), uncovered area is (x * 256 m²). Default 131072 means max 32 km² can be uncovered at any time --> <property name="PersistentPlayerProfiles" value="false"/> <!-- If disabled a player can join with any selected profile. If true they will join with the last profile they joined with --> <!-- 游戏设置 --> <!-- 游戏世界/地图设置 --> <property name="GameWorld" value="Navezgane"/> <!-- "RWG" (see WorldGenSeed and WorldGenSize options below) or any already existing world name in the Worlds folder (currently shipping with e.g. "Navezgane", "PREGEN01", ...) --> <property name="WorldGenSeed" value="asdf"/> <!-- If RWG this is the seed for the generation of the new world. If a world with the resulting name already exists it will simply load it --> <property name="WorldGenSize" value="4096"/> <!-- If RWG this controls the width and height of the created world. It is also used in combination with WorldGenSeed to create the internal RWG seed thus also creating a unique map name even if using the same WorldGenSeed. Has to be between 2048 and 16384, though large map sizes will take long to generate / download / load --> <property name="GameName" value="My Game"/> <!-- Whatever you want the game name to be. This affects the save game name as well as the seed used when placing decoration (trees etc) in the world. It does not control the generic layout of the world if creating an RWG world --> <property name="GameMode" value="GameModeSurvival"/> <!-- GameModeSurvival --> <!-- 难度设置 --> <property name="GameDifficulty" value="2"/> <!-- 0-5,0 =最简单,5 =最困难 --> <property name="BlockDamagePlayer" value="300"/> <!-- -玩家对方块的伤害(整数百分比) --> <property name="BlockDamageAI" value="50"/> <!-- AI对积木造成的伤害(整数百分比) --> <property name="BlockDamageAIBM" value="75"/> <!-- 血月期间AI对块造成的损害(整数百分比) --> <property name="XPMultiplier" value="100"/> <!-- XP增益乘数(整数百分比) --> <property name="PlayerSafeZoneLevel" value="5"/> <!-- 如果玩家小于或等于该级别,则在生成时会创建一个安全区域 --> <property name="PlayerSafeZoneHours" value="5"/> <!-- 此安全区存在的世界时间 --> <!-- --> <property name="BuildCreate" value="false"/> <!-- 作弊模式打开/关闭 --> <property name="DayNightLength" value="40"/> <!-- 这里设置真实世界多少分钟=游戏中的24小时(默认为真实世界60分钟=游戏中24小时) --> <property name="DayLightLength" value="18"/> <!-- 在游戏时间内,白天时间为:游戏日中每天18小时的日照 --> <property name="DropOnDeath" value="2"/> <!-- 玩家死亡时掉落 0 =无,1 =一切,2 =仅工具带,3 =仅背包,4 =全部删除 --> <property name="DropOnQuit" value="0"/> <!-- 玩家退出游戏时掉落 0 =无,1 =一切,2 =仅工具带,3 =仅背包 --> <property name="BedrollDeadZoneSize" value="15"/> <!-- Size (box "radius", so a box with 2 times the given value for each side's length) of bedroll deadzone, no zombies will spawn inside this area, and any cleared sleeper volumes that touch a bedroll deadzone will not spawn after they've been cleared. --> <property name="BedrollExpiryTime" value="45"/> <!-- Number of days a bedroll stays active after owner was last online --> <!-- 性能设置 --> <property name="MaxSpawnedZombies" value="64"/> <!-- 整个地图能同时出现多少个僵尸(越多越卡)建议按玩家比例来调整,参考:1个玩家对4-8个左右差不多了 --> <property name="MaxSpawnedAnimals" value="50"/> <!-- 整个地图能同时出现多少个野生动物(越多越卡),这个使用的性能比僵尸少,可以略多于僵尸 --> <property name="ServerMaxAllowedViewDistance" value="12"/> <!-- 玩家最多可以看多远(6-12).数值越高越卡 --> <!-- 僵尸设置 --> <property name="EnemySpawnMode" value="true"/> <!-- 启用/禁用敌人生成 true=启用 false=禁用 --> <property name="EnemyDifficulty" value="0"/> <!-- 僵尸的难度 0 =正常,1 =疯狂 --> <property name="ZombieMove" value="1"/> <!-- 僵尸白天速度 0-4(0=步行,1=慢跑,2=奔跑,3=冲刺,4=噩梦) --> <property name="ZombieMoveNight" value="2"/> <!-- 僵尸夜间速度0-4(0=步行,1=慢跑,2=奔跑,3=冲刺,4=噩梦) --> <property name="ZombieFeralMove" value="3"/> <!-- 凶残丧尸速度0-4(0=步行,1=慢跑,2=奔跑,3=冲刺,4=噩梦) --> <property name="ZombieBMMove" value="4"/> <!-- 丧尸雪月速度0-4(0=步行,1=慢跑,2=奔跑,3=冲刺,4=噩梦) --> <property name="BloodMoonFrequency" value="10"/> <!-- 血月隔几天出现一次《七日杀》的名字由来啊!(以天为单位),设置为“ 0”表示没有血月 --> <property name="BloodMoonRange" value="0"/> <!-- How many days can the actual blood moon day randomly deviate from the above setting. Setting this to 0 makes blood moons happen exactly each Nth day as specified in BloodMoonFrequency --> <property name="BloodMoonWarning" value="8"/> <!-- The Hour number that the red day number begins on a blood moon day. Setting this to -1 makes the red never show. --> <property name="BloodMoonEnemyCount" value="8"/> <!-- This is the number of zombies that can be alive (spawned at the same time) at any time PER PLAYER during a blood moon horde, however, MaxSpawnedZombies overrides this number in multiplayer games. Also note that your game stage sets the max number of zombies PER PARTY. Low game stage values can result in lower number of zombies than the BloodMoonEnemyCount setting. Changing this setting has a huge impact on performance. --> <!-- 战利品 --> <property name="LootAbundance" value="200"/> <!-- 战利品掉落率:整数百分比 --> <property name="LootRespawnDays" value="30"/> <!-- 地块或者区域或者房间、物品多久刷新一次:整数天 --> <property name="AirDropFrequency" value="240"/> <!-- 空投在游戏时间发生的频率(应该为小时单位)How often airdrop occur in game-hours, 0 == never --> <property name="AirDropMarker" value="true"/> <!-- 是否在标记空投位置(地图或指南针显示)true=是,false=不标记 --> <!--多人游戏设置 --> <property name="PartySharedKillRange" value="500"/> <!-- 你需要在队友多少范围内拿到队友的共享经验值(比如说击杀僵尸、建基地、挖矿、交任务等) --> <property name="PlayerKillingMode" value="0"/> <!-- 玩家杀戮设置(0 =无法杀死玩家,1 =仅杀死盟友,2 =仅杀死陌生人,3 =杀死所有人)玩家对战还是纯粹合作模式看你的选择了 --> <!-- 多人游戏-土地认证设置 --> <property name="LandClaimCount" value="1"/> <!-- 玩家拥有多少个土地Maximum allowed land claims per player. --> <property name="LandClaimSize" value="41"/> <!-- 所有权范围Size in blocks that is protected by a keystone --> <property name="LandClaimDeadZone" value="30"/> <!-- 死区距离Keystones must be this many blocks apart (unless you are friends with the other player) --> <property name="LandClaimExpiryTime" value="7"/> <!-- 所有权期限The number of days a player can be offline before their claims expire and are no longer protected --> <property name="LandClaimDecayMode" value="0"/> <!-- Controls how offline players land claims decay. 0=Slow (Linear) , 1=Fast (Exponential), 2=None (Full protection until claim is expired). --> <property name="LandClaimOnlineDurabilityModifier" value="4"/> <!-- How much protected claim area block hardness is increased when a player is online. 0 means infinite (no damage will ever be taken). Default is 4x --> <property name="LandClaimOfflineDurabilityModifier" value="4"/> <!-- How much protected claim area block hardness is increased when a player is offline. 0 means infinite (no damage will ever be taken). Default is 4x --> <property name="LandClaimOfflineDelay" value="0"/> <!-- The number of minutes after a player logs out that the land claim area hardness transitions from online to offline. Default is 0 --> <!-- There are several game settings that you cannot change when starting a new game. You can use console commands to change at least some of them ingame. setgamepref BedrollDeadZoneSize 30 --> </ServerSettings>

3.启动七日杀服务器应用

4.运行 MoleSDN 进行异地联机

下文以创建mc服务域为例,七日杀 服务域 步骤完全相同。服务域名称可自行设置。

1.创建MoleSDN服务域,SDN控制器-服务域创建 (molesdn.com)

创建供 mc 联机服务的服务域

2.登录客户端MoleSDN Window客户端下载,随后在服务域管理界面绑定该设备

在鼠鼠 MC服务 电脑上 下载运行MoleSDN,完成登录。

回到服务域管理页,将客户端 以中心模式 绑定 至服务域

鼠鼠的其他小伙伴,如何连接该服务,进行游戏联机呢?

以小伙伴之一的“皮蛋举例”

皮蛋只需在自己电脑上运行MoleSDN客户端登录自己的账户(本文示例为:molepal,用户可自行注册)。前往SDN控制器-授权管理-我的申请 (molesdn.com),发起申请即可。

填写服务域ID(前面创建的服务域ID: minecraft001),选择自己要加入的客户端提交申请

此时皮蛋就可以通知一下鼠鼠,让其同意您的加入申请

服务域所有者的申请审批面板

通过后,皮蛋就可以从客户端上连接至该服务域了

连接完成后,我们可以看到服务域IP、鼠鼠的公告。它能帮助我们后续的联机操作

完成后,皮蛋就可以打开七日杀 去 加入游戏 啦

5.小伙伴打开游戏加入 鼠鼠的服务器

至此就可以一起愉快的玩啥啦。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2136105.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Linux shell编程学习笔记80:gzip命令——让文件瘦身

0 引言 在 Linux shell编程学习笔记76&#xff1a;tar命令——快照 & 备份&#xff08;上&#xff09;-CSDN博客 Linux shell编程学习笔记77&#xff1a;tar命令——快照 & 备份&#xff08;下&#xff09;_linux 系统快照-CSDN博客 Linux shell编程学习笔记78&am…

ai绘画文生图怎么制作?2024教你快速进行ai绘画

ai绘画文生图怎么制作&#xff1f;2024教你快速进行ai绘画 AI绘画技术的迅速发展&#xff0c;使得用户只需输入文本描述&#xff0c;就能生成符合要求的图像&#xff0c;这种“文生图”&#xff08;Text-to-Image&#xff09;功能使得绘画和创作变得简单、高效。以下是5款帮助…

Git提交有乱码

服务器提交记录如图 可知application.properties中文注释拉黄线 &#xff0c;提示Unsupported characters for the charset ISO-8859-1 打开settings - Editor - File Encodings 因为我们项目的其他文件都是UTF-8&#xff0c;所以&#xff0c;我们将默认值都改成UTF-8 然后…

【原创】java+springboot+mysql鲜花商城(花店)系统设计与实现

个人主页&#xff1a;程序猿小小杨 个人简介&#xff1a;从事开发多年&#xff0c;Java、Php、Python、前端开发均有涉猎 博客内容&#xff1a;Java项目实战、项目演示、技术分享 文末有作者名片&#xff0c;希望和大家一起共同进步&#xff0c;你只管努力&#xff0c;剩下的交…

用于遥感深度学习的7种高光谱遥感图像和标签

数据介绍 此数据集来自于GIC(GRUPO INTELIGENCIA COMPUTACIONAL )官网 直达链接&#xff0c;采用MATLAB存储为矩阵形式&#xff0c;数据集后缀为.mat形式。每一个数据分为原始图像数据和标签数据&#xff0c;标签对应码请参考官网。注&#xff1a;此数据为公开数据&#xff0c…

20240915 每日AI必读资讯

国家网信办发布《人工智能生成合成内容标识办法&#xff08;征求意见稿&#xff09;》 - 要求所有的AI生成内容都要打标&#xff0c;包括文字、图像、视频、音频… - 文本内容要插入标识符提醒&#xff0c;音频内容要在里面插入提示音 - 对创作者不太友好&#xff0c;对平台…

PHP民宿管理APP---附源码74921

摘 要 随着旅游业的蓬勃发展和人们对个性化旅行体验的追求&#xff0c;民宿行业正迅速崛起并受到广大游客的青睐。民宿不仅为游客提供了更加亲近自然、体验当地文化的机会&#xff0c;同时也为房东带来了可观的经济收益。然而&#xff0c;随着民宿市场的不断扩大&#xff0c;民…

AI预测福彩3D采取888=3策略+和值012路或胆码测试9月14日新模型预测第87弹

经过80多期的测试&#xff0c;当然有很多彩友也一直在观察我每天发的预测结果&#xff0c;得到了一个非常有价值的信息&#xff0c;那就是9码定位的命中率非常高&#xff0c;80多期一共只错了8次&#xff0c;这给喜欢打私房菜的朋友提供了极高价值的预测结果~当然了&#xff0c…

自动驾驶:LQR、ILQR和DDP原理、公式推导以及代码演示(四、LQG和iLQG篇)

&#xff08;四&#xff09;LQG和iLQG原理、公式推导以及代码演示 在实际工程应用中&#xff0c;噪声是系统无法避免的因素&#xff0c;主要包括过程噪声和观测噪声。在自动控制、机器人、自主驾驶等领域&#xff0c;噪声的影响尤其显著。为了提高控制系统的鲁棒性和性能&…

MIPI CSI 接口定义与协议层介绍

文章目录 Definitions and AcronymsCSI-2 BriefD-PHYC-PHYM-PHYCSI-2 Layer DefinitionsMulti-Lane Distribution and MergingMulti-Lane InteroperabilityProtocol LayerLow Level ProtocolPacket FormatLong Packet FormatWhat does D-PHY Long Packet look like?What does …

类的初始化列表

文章目录 一、初始化列表1、初始化列表的使用2、必须使用初始化列表来初始化的成员 二、类型转换1、内置类型转换自定义类型2、自定义类型转换自定义类型 三、静态成员变量(static)1、static修饰成员变量2、静态成员函数 四、友元五、类里面再定义类六、匿名对象1、匿名对象的使…

大厂硬件梦:字节、腾讯“向首”,华为、小米“向手”

涉足可穿戴设备的大厂们&#xff0c;都抱着再造用户入口的野望&#xff0c;大模型治不好的痼疾&#xff0c;仍需继续前行寻找解药。 转载&#xff1a;科技新知 原创 作者丨茯神 编辑丨蕨影 苹果发布会再次令网友失望&#xff01;相比iPhone新机配色丑上热搜&#xff0c;反而苹…

Type-C与PD技术融合:重塑移动硬盘盒的未来

Type-C接口与PD充电技术&#xff1a;移动硬盘盒的革新之路 在数字化浪潮的汹涌澎湃中&#xff0c;我们的生活与工作环境被各式各样的电子设备所包围。从智能手机到平板电脑&#xff0c;从笔记本电脑到高清显示器&#xff0c;每一个设备都在以惊人的速度迭代更新&#xff0c;推…

集运系统:让海外集运包裹管理更简单!

随着全球化贸易的快速发展&#xff0c;海外包裹代收、仓储管理、退换货、国际快递等服务需求日益增长。集运系统作为一种专为海外客户提供一站式服务的软件系统&#xff0c;通过整合物流信息、管理订单、跟踪货物等功能&#xff0c;有效满足这些需求。本文将介绍集运系统的功能…

Python数据类型详解:这12个类型你都知道吗?

在Python中&#xff0c;数据类型是编程的基石&#xff0c;它们定义了可以操作的数据的种类。Python是一种动态类型语言&#xff0c;意味着你不需要显式地声明变量的类型&#xff1b;Python解释器会自动推断出变量所存储数据的类型。Python提供了多种内置数据类型&#xff0c;这…

立足本土,面向全球 | 全视通闪耀亮相Medical Fair Asia新加坡医疗展

Medical Fair Asia是亚洲地区最大的医疗设备、医疗器械和医疗技术展览会之一&#xff0c;自1997年创办以来&#xff0c;每两年在新加坡举办一次。该展会不仅是新加坡医疗行业交流的龙头平台&#xff0c;也是亚洲乃至全球医疗企业和专业人士共聚一堂、展示最新产品和技术的重要舞…

人情债VS利息债:如何更好的借贷?

在人生的旅途中&#xff0c;谁不曾遭遇资金紧张的瞬间&#xff1f;面对这样的挑战&#xff0c;是向亲朋好友伸出援手&#xff0c;还是探索贷款之路&#xff0c;成为了一个值得深思的问题。今天&#xff0c;我们就以小刘的经历为镜&#xff0c;共同探讨这一话题。 故事的主角小刘…

Modbus协议03:Modbus功能码和协议分类

视频链接&#xff1a;【3】Modbus协议功能码说明_哔哩哔哩_bilibili【3】Modbus协议功能码说明是【直播回放】小白也可以听懂的Modbus协议讲解的第3集视频&#xff0c;该合集共计4集&#xff0c;视频收藏或关注UP主&#xff0c;及时了解更多相关视频内容。https://www.bilibili…

详解:冒泡排序

1.是什么 冒泡排序&#xff08;Bubble Sort&#xff09;是一种简单的排序算法。它重复地遍历要排序的数列&#xff0c;一次比较两个元素&#xff0c;如果它们的顺序错误就把它们交换过来。遍历数列的工作是重复地进行直到没有再需要交换&#xff0c;也就是说该数列已经排序完成…

C语言-数据结构 无向图克鲁斯卡尔算法(Kruskal)邻接矩阵存储

相比普里姆算法来说&#xff0c;克鲁斯卡尔的想法是从边出发&#xff0c;不管是理解上还是实现上都更简单&#xff0c;实现思路&#xff1a;我们先把找到所有边存到一个边集数组里面&#xff0c;并进行升序排序&#xff0c;然后依次从里面取出每一条边&#xff0c;如果不存在回…