squad战术小队steam服务器搭建教程。

本篇文章采用的是windows server 2016环境搭建

以下文章现在可能不适用,请参考:https://squad.fandom.com/wiki/Server_Installation

准备环境

准备一台windows server服务器

下载所需的软件及脚本 也可参考wiki上面的文档安装:

Visual C++ Redistributable for Visual Studio 2013 vc_redist.x64.exe

Visual C++ Redistributable for Visual Studio 2015 vc_redist.x64.exe

DirectX End-User Runtimes (June 2010)

上面几个软件装完后可以安装steamcmd

安装steamcmd

https://developer.valvesoftware.com/wiki/SteamCMD#Downloading_SteamCMD

下面截图是我准备好的,后面也会有打包下载。

安装SteamCMD

双击steamcmd.exe安装

安装完成后会显示Loading Steam API…ok(安装完成后关掉cmd命令窗口)

steamcmd安装完后在steam文件夹内会出现以下文件:

安装squad服务端

安装启动squad会用到下面三个文件

update_squad.txt 更新调用文档

// -> Start of "update_squad.txt"
@ShutdownOnFailedCommand 1 // -> set to 0 if updating multiple servers at once
@NoPromptForPassword 1 // -> disables promt for password on execution
login anonymous // -> logs in with steams public anonymous account

// -> Your Server instance
force_install_dir D:\Servers\SquadServer // -> will create a folder named "squad_server" in SteamCMDs parent directory
app_update 403240 validate // -> will update the squad server and validate the files recived

// -> End of the Script
quit

update server.bat 游戏下载/更新脚本

SET STEAMCMD=D:\steam\steamcmd.exe
SET SQUADSERVER=D:\servers\squadserver\SquadGameServer.exe
SET UPDATESCRIPT=D:\steam\update_squad.txt
start %STEAMCMD% +runscript %UPDATESCRIPT%
exit

start server.bat 启动服务端脚本

SET STEAMCMD=D:\steam\steamcmd.exe
SET SQUADSERVER=D:\servers\squadserver\SquadGameServer.exe
SET UPDATESCRIPT=D:\steam\update_squad.txt


start %SQUADSERVER% Port=7787 QueryPort=27165 FIXEDMAXPLAYERS=80 RANDOM=ALWAYS -log
exit

1-安装squadserver

双击update server.bat下载squad服务端,下载完成后命令窗口会自动关闭(大概下载20分钟左右吧,看网速)

2-基本配置

服务器名称/服务器人数/服务器权限等

D:\servers\squadserver\SquadGame\ServerConfig

Admins.cfg 设置权限之类的

/
 Valid access levels are as follows													 
		startvote - not used														 
		changemap																	 
		pause - Pause server gameplay												 
		cheat - Use server cheat commands											 
		private	- Password protect server											 
		balance	- Group Ignores server team balance										 
		chat - Admin chat and Server broadcast										 
		kick																		 
		ban																		  	 
		config - Change server config												 
		cameraman - Admin spectate mode												 
		immune - Cannot be kicked / banned										 
		manageserver - Shutdown server												 
		featuretest - Any features added for testing by dev team					 
		reserve - Reserve slot														 
		demos - Record Demos on the server side via admin commands										 
		clientdemos - Record Demos on the client side via commands or the replay UI.
		debug - show admin stats command and other debugging info		
		teamchange - No timer limits on team change			 
		forceteamchange - Can issue the ForceTeamChange command
		canseeadminchat - This group can see the admin chat and teamkill/admin-join notifications
/

/
//		The Format for adding groups is:
//	Group=<Group Name>:<Permission 1>,<Permission 2>,<Permission 3>
//
//		For example:
//	Group=MyGroup: pause, demos, changemap
//
//		The groups below are the defaults, add to or change them as needed:
/

Group=Admin:kick,ban,changemap,balance
Group=Moderator:kick,ban,balance

/
//		The format for adding admins is:
//	Admin=<Steam ID #>:<Group Name>
/

Server.cfg 设置服务器名字,人数之类的

ServerName="♥[CN] SCYUN>萌新欢乐对战平台[插件平衡]#1"

// Control visibility in the server browser
ShouldAdvertise=true

// Set the server to LAN mode
IsLANMatch=false

// Max player count on the server
MaxPlayers=90

// Number of reserved slots for admins / members 
NumReservedSlots=0

// Size of the server queuing, for regular user 
PublicQueueLimit=25

// Map rotation mode: it can be 
// LevelList(use order in level rotation config file)
// LayerList (use order in layer rotation config file) 
// or 
// LevelList_Randomized
// LayerList_Randomized
// which are randomized version of previous options
MapRotationMode=LayerList

// Should the Map/Layer rotations list be randomized at start?
RandomizeAtStart=true

// Should Faction be voted for on generic layers? Randomized if false. 
UseVoteFactions=false

// Should next Map be voted for at end of round?
UseVoteLevel=false

// Should next Layer be voted for at end of round?
UseVoteLayer=false

// Completly Allow or Disallow Team change to all players. Only user with Level_Balance access level can bypass this flag
AllowTeamChanges=true

// If set to false, players can change teams regardless of team balance. Otherwise, the NumPlayersDiffForTeamChanges Value is used
PreventTeamChangeIfUnbalanced=true

// Maximum Allowed difference in player count between teams. This takes into account the team the player leaves and the team the player joins
NumPlayersDiffForTeamChanges=3

RejoinSquadDelayAfterKick=180
RecordDemos=false

// Whether public clients are allowed to record.
// If you do not want public clients to record, but you do want to allow certain ones to, you can give the admin access level "ClientDemos".
// There is a difference between "ClientDemos" and "Demos". "Demos" allows access to server commands for recording server-sided demos, while "ClientDemos" only allows clientside demos (no admin commands)
AllowPublicClientsToRecord=false

ServerMessageInterval=300

// Forces the server to do non-seamless travel (disconnect when changing maps) every X seconds
// ForceNonSeamlessTravelIntervalSeconds=43200

// The following are required for Licensed servers, but can be changed for non-licensed servers
TKAutoKickEnabled=true
AutoTKBanNumberTKs=7
AutoTKBanTime=300
VehicleKitRequirementDisabled=false
AllowCommunityAdminAccess=true

// Only Offworld Industries developers are admins
AllowDevProfiling=true

AllowQA=true

// The below commands are optional for all servers
VehicleClaimingDisabled=false

ServerMessages.cfg 服务器公屏公告滚屏显示

License.cfg  这个是认证服务器永的许可证<,申请的话去这里

3-启动服务端

上面都整完了,可以启动squad服务了。

双击 start server.bat 文件启动服务,确定>安装一个UE4

如果安装时出现无法安装.NET Framework 请根据我下面的步骤来安装这个。

[s][p]

安装.NET Framework 3.5/2.0/3.0

左边开始->控制面板->启用或关闭windows功能

[/p]

安装完成后重启一下服务器吧

再次双击启动脚本 start server.bat

我服务器做过认证,在服务器浏览器里面能找到,如果没有申请认证那么在自定义浏览器里面找。

  • 4
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

亦读

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值