How to build your own V Rising self-built server, and solutions to common V Rising server problems

The official V rising server is often unable to connect and cannot play with friends; how to build your own V rising server? You can also modify the drop rate, speed up the progress of the game, and build your own private server.

foreword

The game V rising is very popular recently, and I can’t wait to play it with my friends; however, the official server of V rising is too unstable: high delay, high packet loss rate, and even directly unable to connect.

Fortunately, V rising provides a way to build your own server:

Currently, V rising's server is self-built and only supports Windows Server. Although Wine or Docker can be used for Linux, there is no native support, and the effect is not good. Therefore, it is still recommended to use Windows Server for construction.

If you don't have a Windows Server device and need one to buy/rent, Chiwang Technology is strongly recommended

server initialization

Take the Chiwang server as an example. After we purchase the server, we switch to the server background and reset our Administrator user password:

After that, you can connect to the server remotely. You can use the mstsc remote connection service that comes with your computer

After unlocking and entering the password, you can enter the Windows Server. In terms of usage, it is similar to the client Windows.

SteamCMD 

The contents of this chapter, all operations are performed in Windows Server, not local Windows, hereby reminded


On Windows Server, after the browser downloads Steam cmd , pay attention ⚠️: Be sure to unzip to an empty folder, be sure to unzip to an empty folder, do not use SteamCMD directly in the ZIP without unzipping! ! !

Finally, we double-click SteamCMD to start initialization:

It is displayed as Steam>, this time is the interactive mode of SteamCMD, indicating that the initialization is completed, and it is waiting for us to interact with commands:

Sync VRising server

The contents of this chapter, all operations are performed in Windows Server, not local Windows, hereby reminded

Now, we need to use SteamCMD to synchronize the VRising server to our local, very simple, enter in the interactive mode of SteamCMD:

login anonymous

 VRising's server can be downloaded directly without us logging in

If a connection timeout occurs:

Just re-enter login anonymousto log in once, and finally successfully log in anonymously. Results:

 Finally, let's sync the VRising server again at this time:

app_update 1829350 validate

The appid of the VRising server is1829350

At this point, our VRising server synchronization is completed, and the relative path to open SteamCMD steamapps\common\VRisingDedicatedServeris our VRising.

At this time, the "black window" of our SteamCMD can be closed

VRising server initialization

For the contents of this chapter, all operations are performed in Windows Server, not local Windows, hereby reminded.

And, currently in steamapps\common\VRisingDedicatedServerthe directory, the following relative paths need attention

2022.11.12 Because the official optimized the loading of configuration files, the original video method is still available, but in order to be closer to the official, the following content is a little different from the video:

Now, we start the initialization of the VRising server. Enter the configuration file template address VRisingServer_Data\StreamingAssets\Settings, there are several files:

 

- adminlist.txt # 管理员列表
- banlist.txt   # 禁用用户
- ServerGameSettings.json # 服务器设置
- ServerHostSettings.json # 服务器游戏设置

 Directly modify these files, we are more in line with the official recommended settings. myVrisingConfigCreate a folder called in the VRising directory and copy these files into it:

Let me explain here:

ServerHostSettings

The setting properties of ServerHostSettings are as follows:

{
  "Name": "VRisingByMintimate", //服务器名字
  "Description": "自建Vrising服务器", //服务器描述
  "Port": 9876, //服务器登录端口
  "QueryPort": 9877,        //服务器查询端口
  "MaxConnectedUsers": 10, //服务器最大人数
  "MaxConnectedAdmins": 4, //服务器最大管理员连接人数
  "ServerFps": 30,        //服务器FPS
  "SaveName": "myWorld", //服务器存档名字
  "Password": "", //服务器密码
  "Secure": true, //服务器保护
  "ListOnMasterServer": true, //设置服务器能否被搜到,不想搜到就填写false
  "AutoSaveCount": 50, //服务器自动保存数量
  "AutoSaveInterval": 600, //服务器每个多少秒保存一次
  "GameSettingsPreset": "", //服务器游戏设置预设(默认PvP) 例子:StandardPvP or StandardPvE
  "AdminOnlyDebugEvents": true, //只允许服务器管理员可调试事件
  "DisableDebugEvents": false //禁止调试事件
}

Tips: If you play with a few friends, it is recommended to set it ListOnMasterServerto false and setPassword

ServerGameSettings

The setting properties of ServerGameSettings are as follows:

{
  "GameModeType": "PvP", //游戏模式类型可选PvE
  "CastleDamageMode": "Always", //城堡伤害模式
  "SiegeWeaponHealth": "Normal", //攻城武器生命值
  "PlayerDamageMode": "Always", //玩家伤害模式
  "CastleHeartDamageMode": "CanBeDestroyedByPlayers", //城堡生命伤害模式
  "PvPProtectionMode": "Medium", //PvP保护模式
  "DeathContainerPermission": "Anyone", //死亡容器权限
  "RelicSpawnType": "Unique", //遗迹生成类型
  "CanLootEnemyContainers": true, //可以掠夺敌人的箱子
  "BloodBoundEquipment": true, //血缘装备
  "TeleportBoundItems": true, //传送绑定道具
  "AllowGlobalChat": true, //允许全局聊天
  "AllWaypointsUnlocked": false, //所有航路点已解锁
  "FreeCastleClaim": false, //自由城堡领地
  "FreeCastleDestroy": false, //自由城堡摧毁
  "InactivityKillEnabled": true, //已启用非活动清理
  "InactivityKillTimeMin": 3600, //非活动事件或AI清理最小时间
  "InactivityKillTimeMax": 604800, //非活动事件或AI清理最大时间
  "InactivityKillSafeTimeAddition": 172800, //非活动增加清理保护时间
  "InactivityKillTimerMaxItemLevel": 84, //非活动道具最大时间清理等级
  "DisableDisconnectedDeadEnabled": true, //启用无效连接断开
  "DisableDisconnectedDeadTimer": 60, //无效连接断开最大时间
  "InventoryStacksModifier": 1.0, //一堆库存道具百分比
  "DropTableModifier_General": 1.0, //常规数据删除百分比 
  "DropTableModifier_Missions": 1.0, //任务数据删除百分比
  "MaterialYieldModifier_Global": 1.0, //全局材料产量百分比
  "BloodEssenceYieldModifier": 1.0, //精血生产百分比
  "JournalVBloodSourceUnitMaxDistance": 25.0, //记录V血源装置最大距离
  "PvPVampireRespawnModifier": 1.0, //PVP吸血鬼复活概率
  "CastleMinimumDistanceInFloors": 2, //城堡楼层之间最小距离
  "ClanSize": 4, //宗族领主领地规模
  "BloodDrainModifier": 1.0, //精血消耗百分比
  "DurabilityDrainModifier": 1.0, //耐力消耗百分比
  "GarlicAreaStrengthModifier": 1.0, //大蒜面积强度百分比
  "HolyAreaStrengthModifier": 1.0, //神圣区域强度百分比
  "SilverStrengthModifier": 1.0, //银强度百分比
  "SunDamageModifier": 1.0,  //太阳伤害强度百分比
  "CastleDecayRateModifier": 1.0, //城堡衰退速度百分比
  "CastleBloodEssenceDrainModifier": 1.0, //城堡精血消耗百分比
  "CastleSiegeTimer": 420.0, //城堡攻城时间
  "CastleUnderAttackTimer": 60.0, //城堡受到攻击的时间
  "AnnounceSiegeWeaponSpawn": true, //通知攻城武器生成
  "ShowSiegeWeaponMapIcon": true, //显示攻城武器地图图标
  "BuildCostModifier": 1.0, //建筑成本百分比
  "RecipeCostModifier": 1.0, //配方成本百分比
  "CraftRateModifier": 1.0, //技能速度百分比
  "ResearchCostModifier": 1.0, //研究成本百分比
  "RefinementCostModifier": 1.0, //精炼成本百分比
  "RefinementRateModifier": 1.0, //精炼速度百分比
  "ResearchTimeModifier": 1.0, //研究时间百分比
  "DismantleResourceModifier": 0.75, //拆除成本百分比
  "ServantConvertRateModifier": 1.0, //仆人转化速度百分比
  "RepairCostModifier": 1.0, //维护成本百分比
  "Death_DurabilityFactorLoss": 0.25, //消亡耐久性损失系数
  "Death_DurabilityLossFactorAsResources": 1.0, //消亡耐久性资源损失系数
  "StarterEquipmentId": 0, //初始装备ID
  "StarterResourcesId": 0, //初始资源ID
  "VBloodUnitSettings": [], //V血液单位设置
  "UnlockedAchievements": [], //未锁定的成就
  "UnlockedResearchs": [], //未解锁的研究
  "GameTimeModifiers": { //游戏时间百分比
    "DayDurationInSeconds": 1080.0, //日持续时间(秒)
    "DayStartHour": 9, //白天开始时间
    "DayStartMinute": 0, //日开始分钟数
    "DayEndHour": 17, //白天结束时间
    "DayEndMinute": 0, 白天结束分数
    "BloodMoonFrequency_Min": 10, //血月频率最小值
    "BloodMoonFrequency_Max": 18, //血月频率最大值
    "BloodMoonBuff": 0.2 //血月buff
  },
  "VampireStatModifiers": { //吸血鬼属性百分比
    "MaxHealthModifier": 1.0, //最大生命百分比
    "MaxEnergyModifier": 1.0, //最大能量百分比
    "PhysicalPowerModifier": 1.0, //肉身力量百分比
    "SpellPowerModifier": 1.0, //法术力量百分比
    "ResourcePowerModifier": 1.0, //资源威力百分比
    "SiegePowerModifier": 1.0, //攻城威力百分比
    "DamageReceivedModifier": 1.0, //受到伤害百分比
    "ReviveCancelDelay": 5.0 //复活延迟
  },
  "UnitStatModifiers_Global": { //全局单位数据统计
    "MaxHealthModifier": 1.0, //最大生命百分比
    "PowerModifier": 1.0 //威力百分比
  },
  "UnitStatModifiers_VBlood": { //全局V血液数据统计
    "MaxHealthModifier": 1.0, //最大生命百分比
    "PowerModifier": 1.0 //威力百分比
  },
  "EquipmentStatModifiers_Global": { //全局装备数据统计
    "MaxEnergyModifier": 1.0, //最大能量百分比
    "MaxHealthModifier": 1.0, //最大生命百分比
    "ResourceYieldModifier": 1.0, //资源产量百分比
    "PhysicalPowerModifier": 1.0, //肉体力量百分比
    "SpellPowerModifier": 1.0, //法术威力百分比
    "SiegePowerModifier": 1.0, //攻城威力百分比
    "MovementSpeedModifier": 1.0 //移动速度百分比
  },
  "CastleStatModifiers_Global": { //城堡全局数据统计
    "TickPeriod": 5.0, //周期定时器
    "DamageResistance": 0.0, //伤害抗性
    "SafetyBoxLimit": 1, //安全箱子限制
    "TombLimit": 12, //墓碑限制
    "VerminNestLimit": 4, //害虫巢穴限制
    "PylonPenalties": { //塔门惩罚
      "Range1": { //范围
        "Percentage": 0.0, //比例
        "Lower": 0, //低
        "Higher": 2 //高
      },
      "Range2": {
        "Percentage": 0.0,
        "Lower": 3,
        "Higher": 3
      },
      "Range3": {
        "Percentage": 0.0,
        "Lower": 4,
        "Higher": 4
      },
      "Range4": {
        "Percentage": 0.0,
        "Lower": 5,
        "Higher": 5
      },
      "Range5": {
        "Percentage": 0.0,
        "Lower": 6,
        "Higher": 254
      }
    },
    "FloorPenalties": { //建筑内惩罚
      "Range1": { //范围
        "Percentage": 0.0, //比例
        "Lower": 0, //低
        "Higher": 20 //高
      },
      "Range2": {
        "Percentage": 0.0,
        "Lower": 21,
        "Higher": 50
      },
      "Range3": {
        "Percentage": 0.0,
        "Lower": 51,
        "Higher": 80
      },
      "Range4": {
        "Percentage": 0.0,
        "Lower": 81,
        "Higher": 160
      },
      "Range5": {
        "Percentage": 0.0,
        "Lower": 161,
        "Higher": 254
      }
    },
    "HeartLimits": { // 生命限制
      "Level1": { //等级
        "Level": 1, //等级1
        "FloorLimit": 30, //建筑限制
        "ServantLimit": 3 //仆人限制
      },
      "Level2": {
        "Level": 2,
        "FloorLimit": 80,
        "ServantLimit": 5
      },
      "Level3": {
        "Level": 3,
        "FloorLimit": 150,
        "ServantLimit": 7
      },
      "Level4": {
        "Level": 4,
        "FloorLimit": 250,
        "ServantLimit": 9
      }
    },
    "CastleLimit": 2 //城堡限制
  },
  "PlayerInteractionSettings": { //玩家互动设置
    "TimeZone": "Local", //本地时区
    "VSPlayerWeekdayTime": { //玩家每周工作时间
      "StartHour": 17, //开始时间
      "StartMinute": 0, //开始分钟
      "EndHour": 23, //结束时间
      "EndMinute": 0 //结束分钟
    },
    "VSPlayerWeekendTime": {//玩家周结束时间
      "StartHour": 17, //开始时间
      "StartMinute": 0, //开始分钟
      "EndHour": 23, //结束时间
      "EndMinute": 0 //结束分钟
    },
    "VSCastleWeekdayTime": { //城堡每周工作时间
      "StartHour": 17, //开始时间
      "StartMinute": 0, //开始分钟
      "EndHour": 23, //结束时间
      "EndMinute": 0 //结束分钟
    },
    "VSCastleWeekendTime": { //城堡每周工作时间
      "StartHour": 17, //开始时间
      "StartMinute": 0, //开始分钟
      "EndHour": 23, //结束时间
      "EndMinute": 0 //结束分钟
    }
  }
}

Do not directly copy and replace your original configuration, just modify a certain item as needed; otherwise, JSON parsing errors may occur, resulting in JSON configuration file parsing errors.

Write a startup script

After that, we go back to the VRising server home page and make a copy start_server_example.batas start_server.bat:

and open it with notepad:

@echo off
REM Copy this script to your own file and modify to your content. This file can be overwritten when updating.
set SteamAppId=1604030
echo "Starting V Rising Dedicated Server - PRESS CTRL-C to exit"

@echo on
VRisingServer.exe -persistentDataPath .\save-data -serverName "My V Rising Server" -saveName "world1" -logFile ".\logs\VRisingServer.log"

Modify it:

  • serverNameand for the sum saveNameyou just modified ServerHostSettings.jsoninsideNameSaveName
  • .\save-dataFor the directory folder you just created and copied the configuration file into

For example mine:

@echo off
REM Copy this script to your own file and modify to your content. This file can be overwritten when updating.
set SteamAppId=1604030
echo "Starting V Rising Dedicated Server - PRESS CTRL-C to exit"

@echo on
VRisingServer.exe -persistentDataPath .\myVrisingConfig -serverName "VRisingByMintimate" -saveName "myWorld" -logFile ".\logs\VRisingServer.log"

After saving, you can double-click this to start running:

Check the log file: logs\VRisingServer.log, found a problem:

This is mainly due to the inability to connect to Amazon's remote storage, and thus the download cannot be performed, and the following appears:"Failed to connect to vrising-client.s3.eu-central-1.amazonaws.com port 443 after 130628 ms: Timed out"

For the solution, refer to modifying the host.

Just re-run. Check it out again logs\VRisingServer.log. There is no problem. The server is set up. However, it is still not possible to connect, we need to release the port.

If there are ERROR: Shader GUI/Text Shader shader is not supported on this GPUtwo ProjectM.ClientSettings - Error while trying to load settings from file. File not Found!errors, just ignore them.

server firewall

Now, we need to allow the server firewall. In line with the principle of allowing that port to be used, release it according to Postthe sum of ServerHostSettings above.QueryPort

for example:

  • mine Portis 9876
  • mine QueryPortis 9877

So, release UDP and TCP in the background of the server:

 

 

After that, you can connect to the server.

local connection

In this chapter, all operations are performed in the local Windows, not the server Windows Server, hereby reminded.

Open the local VRising, select to play:


After that, select 显示所有服务器和设置:

After that, select 直接连接:

Fill in the server IP. If the sum in the above ServerHostSettings is 9876 and 9877, then there is no need to add the port number here. The default is 9876. If there is a change, for example: use 25565, then it is .PostQueryPortIP:25565

After that, you can load:

 Loading completed:

Q&A

Can't connect to Amazon

The server did not start successfully. Checking the log found that the connection to Amazon was not successful, and an error occurred:

Failed to connect to vrising-client.s3.eu-central-1.amazonaws.com port 443 after 130628 ms: Timed out

The solution is very simple, we can modify it hostso that it can resolve vrising-client.s3.eu-central-1.amazonaws.comthis domain name to IP. on the server,

And Go To Homepageafter clicking, it will vrising-client.s3.eu-central-1.amazonaws.combe put on and analyzed to get the IP:

For example, what I got here is: 140.210.20.101

After that, open the address in the file browser: C:\Windows\System32\drivers\etc\hosts, and open it with Notepad:

Add at the end of the article:

140.210.20.101vrising-client.s3.eu-central-1.Amazonaws.com

 Don't copy mine directly, the IP that each server can connect to is different, it is strongly recommended to analyze the IP by yourself according to the above method.

After that, save and exit. After that, close VRising again and run the bat execution file again. If it still doesn't work, you have to install it locally and upload it to the server.

How to server migration

Server migration is actually very simple. After the VRising server is built, it looks like this in our server:

 

Just back up the folder pointed to start_server.batin the file directly .persistentDataPath

The default is save-datathe folder, if you follow this article, it is the backup myVrisingConfigfolder. The following is the content of the old version, you can refer to it.

You can back up folders in the current directory:

  • save-data\Saves\v1: archive save address
  • VRisingServer_Data\StreamingAssets\Settings: server configuration file

save-data\Saves\v1The specific address may be different according to your actual configuration above.

Alternatively, you can also choose to package the entire SteamCMD and move it to a new server:

How to update the VRising server

Updating the VRising server is actually very simple. However, before updating Vrising, it is recommended to back up the server archive first to avoid update failure and archive corruption.

In general, it is to repeat the process of synchronizing the VRising server. For example, I return to the SteamCMD directory to re-execute:

login anonymous
app_update 1829350 validate

You can update successfully:


After that, re-run the VRising server~~

Modify configuration does not take effect

Modify the server configuration, such as: allow transmission and other configurations. But the client checks the server but it does not take effect, you can check:

  • After modifying the configuration, the VRising server on the server needs to be restarted;
  • After the server VRising is restarted, the client still sees the old configuration, which is usually a cache problem; try restarting the client VRising.
  • The configuration may be wrong.

END

At this point, the construction process of V Rising is over. If you have any questions, please leave a message~~

Guess you like

Origin blog.csdn.net/chiwang_andy/article/details/130155447