squad战术小队steam服务器搭建教程。
squad戰術小隊steam服務器搭建教程
squad戰術小隊steam服務器搭建教程[原文]。
本篇文章采用的是windows server 2016環境搭建
準備環境
準備一臺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=:<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 #>:
/
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
我服務器做過認證,在服務器瀏覽器里面能找到,如果沒有申請認證那么在自定義瀏覽器里面找。
總結
以上是生活随笔為你收集整理的squad战术小队steam服务器搭建教程。的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在 2022 年找工作,毕业生们的 “
- 下一篇: 使用dscaler在windows下播放