引入方式:https://www.gamersky.com/handbook/201702/865127.shtml
简易自建服务器教程
1. 下载STEAMCMD https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip;
2. 解压steamcmd.zip;
3. 创建一个ConanExiles文件夹来存储游戏数据. (例如 C:\Users\Zombie\Desktop\CSVR\Exiles)
4.创建bat文件关联steamcmd(在steamcmd所在的文件夹中创建),之后可以通过点击该BAT文件来启动服务器;
5.关于如何创建BAT文件,首先新建一个txt文件,在里面输入如下的内容(不同的安装位置下面的文件位置要修改成你的steamcmd安装的位置):
@ECHO OFF
color 03
ECHO Updating SteamCMD and Server Files
steamcmd +login anonymous +force_install_dir “C:\Users\Zombie\Desktop\CSVR\Exiles” +app_update 443030 +quit
@ECHO OFF
cd C:\Users\Zombie\Desktop\CSVR\Exiles
ECHO Starting Conan Exiles Server
ConanSandboxServer.exe -log -QueryPort=27017
exit
保存之后,将txt文件的后缀名改成bat,然后确定;
6.双击bat打开服务器,过程中可能会有一些红色或者黄色文字的警告,不用管它。服务器完全启动之后,按下ctrl+C关闭服务器,这个时候你就能够在你安装服务器的文件夹中找到配置文件了;
7.修改配置文件,配置文件在C:\Users\Zombie\Desktop\CSVR\Exiles\ConanSandbox\Saved\Config\WindowsServer里面,就是服务器安装的文件夹中,首选是Engine.ini配置文件,这里面你能够设置服务器名称以及服务器密码:
[Core.System]
Paths=…/…/…/Engine/Content
Paths=%GAMEDIR%Content
Paths=…/…/…/Engine/Plugins/2D/Paper2D/Content
[OnlineSubsystem]
bUseBuildIdOverride=True
BuildIdOverride=192251545
[OnlineSubsystemSteam]
ServerName=PickUrName(服务器名)
ServerPassword=PickUrPassword(密码)
8.Game.ini里面你可以设置最大玩家数(ID不用管他):
[ConanSandbox]
UserID=Zombie
[/script/engine.gamesession]
MaxPlayers=10(人数)
[/script/onlinesubsystemutils.ipnetdriver]
NetServerMaxTickRate=30
9.ServerSettings.ini最主要的配置文件,为了自己能够连接上自己的服务器你的QueryPort必须要和常规的游戏端口号不同。这里面可以让你设置管理员权限,禁止PVP等,Server Region也需要设置,比如1或者NA。接下来的是PVE的服务器设置范例,如果是PVP微调一下就好了:
[ServerSettings]
QueryPort=27017
PVPEnabled=False
AdminPassword=il0ldirl
NPCMindReadingMode=0
MaxNudity=1
ServerCommunity=2
ConfigVersion=7
BlueprintConfigVersion=15
PlayerKnockbackMultiplier=1.000000
NPCKnockbackMultiplier=1.000000
StructureDamageMultiplier=1.000000
StructureDamageTakenMultiplier=1.000000
StructureHealthMultiplier=1.000000
NPCRespawnMultiplier=1.000000
NPCHealthMultiplier=1.000000
CraftingCostMultiplier=1.000000
PlayerDamageMultiplier=1.000000
PlayerDamageTakenMultiplier=1.000000
MinionDamageMultiplier=1.000000
MinionDamageTakenMultiplier=1.000000
NPCDamageMultiplier=1.000000
NPCDamageTakenMultiplier=1.000000
PlayerEncumbranceMultiplier=1.000000
PlayerEncumbrancePenaltyMultiplier=1.000000
PlayerMovementSpeedScale=1.000000
PlayerStaminaCostSprintMultiplier=1.000000
PlayerSprintSpeedScale=1.000000
PlayerStaminaCostMultiplier=1.000000
PlayerHealthRegenSpeedScale=1.000000
PlayerStaminaRegenSpeedScale=1.000000
PlayerXPRateMultiplier=1.000000
PlayerXPKillMultiplier=1.000000
PlayerXPHarvestMultiplier=1.000000
PlayerXPCraftMultiplier=1.000000
PlayerXPTimeMultiplier=1.000000
DogsOfTheDesertSpawnWithDogs=False
CrossDesertOnce=True
WeaponEffectBoundsShorteningFraction=0.200000
EnforceRotationRateWhenRoaming_2=True
EnforceRotationRateInCombat_2=True
ClipVelocityOnNavmeshBoundary=True
UnarmedNPCStepBackDistance=400.000000
PathFollowingAvoidanceMode=1
RotateToTargetSendsAngularVelocity=False
TargetPredictionMaxSeconds=1.000000
TargetPredictionAllowSecondsForAttack=0.400000
MaxAggroRange=9000.000000
serverRegion=1
PVPBlitzServer=False(True就是PVP)
LandClaimRadiusMultiplier=1.000000
ItemConvertionMultiplier=1.000000
PathFollowingSendsAngularVelocity=False
UnconsciousTimeSeconds=600.000000
ConciousnessDamageMultiplier=1.000000
ValidatePhysNavWalkWithRaycast=True
LocalNavMeshVisualizationFrequency=-1.000000
UseLocalQuadraticAngularVelocityPrediction=False
LQAVPUseTime=0.150000
LQAVPFadeTime=0.100000
LQAVPMethod=2
NetworkSimulatedSmoothRotationTimeWithLQAVP=0.100000
AvatarsDisabled=False
AvatarLifetime=60.000000
AvatarSummonTime=20.000000
IsBattlEyeEnabled=False
RegionAllowAfrica=False
RegionAllowAsia=False
RegionAllowCentralEurope=False
RegionAllowEasternEurope=False
RegionAllowWesternEurope=False
RegionAllowNorthAmerica=True
RegionAllowOceania=False
RegionAllowSouthAmerica=False
RegionBlockList=
bCanBeDamaged=True
LogoutCharactersRemainInTheWorld=False
DropEquipmentOnDeath=False
EverybodyCanLootCorpse=False
clanMaxSize=10
CanDamagePlayerOwnedStructures=False
10.端口号设置:
PORT
IP ADDRESS
NOTES
UDP 27015
192.168.1.你的IP
游戏端口不是固定的话可能会在重启后改变
UDP 7777
192.168.1.你的IP
服务器端口不是固定的话可能会在重启后改变
UDP 27017
192.168.1.你的IP
自连服务器端口不是固定的话可能会在重启后改变
所有设置完成之后,现在你就可以连接上你的服务器了,首先点击bat文件运行,当更新完成之后,最后会显示这样一段话(不显示也没有关系):
[2017.02.04-00.18.30:946][ 0]LogExternalProfiler: No external profilers were discovered. External profiling features will not be available.
[2017.02.04-00.18.30:980][ 0]LogNet: UNetDriver::TickDispatch: Very long time between ticks. DeltaTime: 0.03, Realtime: 5.60. SteamNetDriver_0
自此服务器就建立成功了,是不是很简便,想要建立服务器的玩家还不回去操作一番。