Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value of "ClanSize" in ServerGameSettings.json not preserving value. #29

Open
tempusthales opened this issue May 20, 2022 · 8 comments
Open

Comments

@tempusthales
Copy link

If I change the value of "ClanSize" in ServerGameSettings.json from 4 to something else (5, 6 or whatever), the value that shows in the server browser is still "4".

I have tried to change the variable "GameSettingsPreset" variable in ServerHostSettings.json to blank, but it still doesnt help with the problem, even so other people have suggested to set it like this "GameSettingsPreset": "StandardPvP", you have to modify StandardPvP.json in the GameSettingPresets folder.

If "GameSettingsPreset": "StandardPvE_Hard", you have to modify StandardPvE_Hard.json, etc...

This is cumbersome and shouldnt need to work this way. Please fix.

@IceOfWraith
Copy link

+1 for this issue as well. It'd be nice to get clarification on how this should function since it doesn't seem to update on dedicated servers.

@Ponjimon
Copy link

Hm, for me it worked fine when the preset value was blank. How did you set it, to a blank string? Are the game settings in the same folder as the host settings? It helps a lot to check the server logs for errors or to see which config file it has loaded on startup

@Timond
Copy link

Timond commented May 21, 2022

I can even see in the server logs that it loaded ClanSize: 6, but in-game it still limits the ClanSize to 4, even though the StandardPVP template doesn't show any override for ClanSize?

{
  "GameModeType": "PvP",
  "CastleDamageMode": "TimeRestricted",
  "CastleHeartDamageMode": "CanBeDestroyedOnlyWhenDecaying",
  "DeathContainerPermission": "Anyone",
  "RelicSpawnType": "Unique",
  "BloodBoundEquipment": true,
  "PlayerDamageMode": "Always",
  "PvPProtectionMode": "Short",

  "CastleStatModifiers_Global": {
    "CastleLimit": 1
  }
}

@tempusthales
Copy link
Author

Hm, for me it worked fine when the preset value was blank. How did you set it, to a blank string? Are the game settings in the same folder as the host settings? It helps a lot to check the server logs for errors or to see which config file it has loaded on startup

yes I looked at the server logs and no errors were detected. The issue happens when you set your dedicated server as something other than StandardPVP. So for example if you set it as StandardPVP_Hard, then it ingnores ClanSize and defaults to 4.

@tempusthales
Copy link
Author

I can even see in the server logs that it loaded ClanSize: 6, but in-game it still limits the ClanSize to 4, even though the StandardPVP template doesn't show any override for ClanSize?

That is correct. I have tried modifying the StandardPVP_Hard.json to include ClanSize: 5 but it still defaults to 4:

{
  "GameModeType": "PvP",
  "CastleDamageMode": "TimeRestricted",
  "CastleHeartDamageMode": "CanBeDestroyedByPlayers",
  "DeathContainerPermission": "Anyone",
  "RelicSpawnType": "Unique",
  "BloodBoundEquipment": true,
  "PlayerDamageMode": "Always",
  "PvPProtectionMode": "Short",
  "ClanSize": 5,

  "CastleStatModifiers_Global": {
    "CastleLimit": 2
  },

  "DropTableModifier_General": 1.25,
  "DropTableModifier_Missions": 1.25,
  "MaterialYieldModifier_Global": 1.0,
  "BloodEssenceYieldModifier": 1.0,

  "UnitStatModifiers_Global": {
    "MaxHealthModifier": 1.25,
    "PowerModifier": 1.25
  },
  "UnitStatModifiers_VBlood": {
    "MaxHealthModifier": 1.25,
    "PowerModifier": 2
  }
}

Its getting frustrating because I am trying to set a special server configuration and the clan size is not setable.

@fishd72
Copy link

fishd72 commented May 23, 2022

In the folder installDir\VRisingServer_Data\StreamingAssets\Settings I have two files; ServerHostSettings.json and ServerGameSettings.json

In ServerHostSettings.json I have the line: "GameSettingsPreset" : ""
In ServerGameSettings.json I have the line: "ClanSize": 10,

This works for me, and shows my max clan size is 10.

EDIT: Also confirmed, if I use the -persistentDataPath cmd line setting, I can create a Settings subfolder within that path, and those settings are observed on server startup. I've also set the ClanSize to 6 in the Default file... and set it to 10 in my persistantDataPath\Settings file, and it's accepted 10 as the setting.

@tempusthales
Copy link
Author

Have you tried doing this while your server is set to StandardPvP_Hard?

I think I tried your method once but it didn't work, I'll try it again though...

@fishd72
Copy link

fishd72 commented May 24, 2022

The GameSettingsPreset line in your config must be blank, or it will override any other settings you have in there. If you want the same settings as StandardPvP_Hard then you probably need to copy that config into a new ServerGameSettings.json within your persistentDataPath and edit the ClanSize within that new file.

I've been advised by others that editing the files within the VRisingServer_Data folder is not recommended, as they'll be overwritten during a game update or if your Steamcmd commandline features a validate command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants