Jump to content

2.3.2 update throwing error

Pending 2.3.2

monsterqueen
monsterqueen

Posted

Failed to run a 5.00 timer in 'PlayerRanks v2.3.2' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000f9] in <f98723dd4586469db5213ec59da723ca>:0
at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <f98723dd4586469db5213ec59da723ca>:0
at System.String.Format (System.String format, System.Object[] args) [0x00020] in <f98723dd4586469db5213ec59da723ca>:0
at Oxide.Plugins.RustPlugin.PrintToChat (BasePlayer player, System.String format, System.Object[] args) [0x0000e] in <940e26fe3ad6442aa5151f377363a6ec>:0
at Oxide.Plugins.RustPlugin.SendReply (BasePlayer player, System.String format, System.Object[] args) [0x00000] in <940e26fe3ad6442aa5151f377363a6ec>:0
at Oxide.Plugins.PlayerRanks+<>c__DisplayClass33_1.<DoTitle>b__1 () [0x00111] in <5d9f9bce12a642aeab8662b3c9a82805>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <8cb2d664f1574f2b96d53f1c1869d96a>:0

  • Like 1
  • Administrator
Steenamaroo

Posted

Have you customised your PlayerRanks lang file?
if so please post it here, or DM it to me.

monsterqueen

Posted

I believe we changed the lang file ; it was posting the text backwards in chat i.e. "Hoarder has taken the rank PlayerName"

{
  "title": "PlayerRanks: ",
  "wipe": "PlayerRanks local database wiped.",
  "rewardissued": "Rewards issued for {0}.",
  "rewardsissued": "Rewards issued for all enabled categories.",
  "save": "PlayerRanks local database was saved.",
  "del": "PlayerRanks for this player were wiped.",
  "bestHits": "Top ",
  "dbremoved": "Details for this ID have been removed.",
  "noentry": "There is no entry in the database for this ID.",
  "syntax": "ID must be 17 digits.",
  "category": "Stats for this category have been removed.",
  "nocategory": "This is not a recognised category.",
  "noResults": "There are no statistics for this category.",
  "disabled": "This category has been disabled.",
  "topOnePlayers": "Top 1 Players",
  "topThirtyPlayers": "Top 30 Players",
  "topOneClans": "Top 1 Clans",
  "topThirtyClans": "Top 30 Clans",
  "byplayer": "By Player",
  "byclan": "By Clan",
  "close": "Close",
  "mystats": "My Stats",
  "admin": "Admin",
  "players": "Players",
  "clans": "Clans",
  "solo": "Solo",
  "clan": "Clan",
  "tooktitle": "{0} has taken the title {1}.",
  "losttitle": "{0} has taken the title {1} from {2}.",
  "chattoggle": "Chat reports have been set to {0}.",
  "optouttoggle": "Public stats optout has been set to {0}.",
  "noFriends": "FriendsAPI is not installed and will not be used.",
  "noClans": "Clans is not installed and will not be used.",
  "noRustio": "Rust:IO is not installed and will not be used.",
  "noPTT": "PlayTime Tracker is not installed and will not be used.",
  "noEconomics": "Economics is not installed and will not be used.",
  "noServerRewards": "ServerRewards is not installed and will not be used.",
  "safe": "SQL saving is complete.",
  "notSafe": "Please do not reload, or unload, PlayerRanks until save-completion message.",
  "tableFail": "Player Ranks did not succesfully create a table.",
  "saveFail": "Player Ranks did not succesfully save data to SQL.",
  "RequiresPermOn": "RequiresPermission - On",
  "RequiresPermOff": "RequiresPermission - Off",
  "clansOnButton": "Clan Stats - On",
  "clansOffButton": "Clan Stats - Off",
  "gatherStatsOnButton": "Gather Stats - On",
  "gatherStatsOffButton": "Gather Stats - Off",
  "disableAdminStatsButton": "Admin Stats Allowed",
  "AllowAdminStatsButton": "Admin Stats Disabled",
  "savePlayerDataButton": "Save Player Data",
  "wipePlayerDataButton": "Wipe Player Data",
  "confirmbutton": "Confirm",
  "saveLeaderBoardButton": "Save Leaderboard",
  "wipeLeaderBoardButton": "Wipe Leaderboards",
  "deathWipeOn": "Wipe On Death - On",
  "deathWipeOff": "Wipe On Death - Off",
  "TitlesOn": "Player titles - On",
  "TitlesOff": "Player titles  - Off",
  "on": "On",
  "off": "Off",
  "PVPKills": "PVP Kills ",
  "PVPDistance": "PVP Distance ",
  "PVEKills": "PVE Kills ",
  "PVEDistance": "PVE Distance ",
  "NPCKills": "NPC Kills ",
  "NPCDistance": "NPC Distance ",
  "SleepersKilled": "Sleepers Killed ",
  "HeadShots": "Head Shots ",
  "Deaths": "Deaths ",
  "Suicides": "Suicides ",
  "KDR": "KDR ",
  "SDR": "SDR ",
  "SkullsCrushed": "Skulls Crushed ",
  "TimesWounded": "Times Wounded ",
  "TimesHealed": "Times Healed ",
  "HeliHits": "Heli Hits ",
  "HeliKills": "Heli Kills ",
  "APCHits": "APC Hits ",
  "APCKills": "APC Kills ",
  "BarrelsDestroyed": "Barrels Destroyed ",
  "ExplosivesThrown": "Explosives Thrown ",
  "ArrowsFired": "Arrows Fired ",
  "BulletsFired": "Bullets Fired ",
  "RocketsLaunched": "Rockets Launched ",
  "MLRSFired": "MLRS Fired ",
  "WeaponTrapsDestroyed": "Weapon Traps Destroyed ",
  "DropsLooted": "Airdrops Looted ",
  "FishCaught": "Fish Caught ",
  "ServerRewards": "Server Rewards ",
  "Economics": "Economics ",
  "TimePlayed": "Time Played ",
  "StructuresBuilt": "Structures Built ",
  "StructuresDemolished": "Structures Demolished ",
  "ItemsDeployed": "Items Deployed ",
  "ItemsCrafted": "Items Crafted ",
  "EntitiesRepaired": "Entities Repaired ",
  "ResourcesGathered": "Resources Gathered ",
  "PlantsGathered": "Plants Gathered ",
  "StructuresUpgraded": "Structures Upgraded "
}

  • Administrator
Steenamaroo

Posted

Yes, that's right.

Replace the two lines there with 

            {"tooktitle", "{0} has taken the title {1}." },
            {"losttitle", "You have lost the title {1} to {0}." },

 

 

There shouldn't be a {2} in either of them. 👍

monsterqueen

Posted

I have done this and no more errors. Thank you <3

7 minutes ago, Steenamaroo said:

Yes, that's right.

Replace the two lines there with 

            {"tooktitle", "{0} has taken the title {1}." },
            {"losttitle", "You have lost the title {1} to {0}." },

 

 

There shouldn't be a {2} in either of them. 👍

 

  • Like 1
1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.4k

Files Sold

Total number of files sold.

2.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.