FormatException at CommandBuyRaidError

Need some help.  Anytime anyone buys a raid I get the following errors in the console.  Any ideas?

Failed to call hook 'CommandBuyRaid' on plugin 'RaidableBases v1.6.6' (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) [0x000ff] in <fb001e01371b4adca20013e0ac763896>:0
at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <fb001e01371b4adca20013e0ac763896>:0
at System.String.Format (System.String format, System.Object[] args) [0x00020] in <fb001e01371b4adca20013e0ac763896>:0
at Oxide.Plugins.RaidableBases+SingletonBackbone.GetMessage (System.String key, System.String id, System.Object[] args) [0x000d0] in <644e3cc6d9604142b945eaf641dd17fb>:0
at Oxide.Plugins.RaidableBases+SingletonBackbone.Message (BasePlayer player, System.String key, System.Object[] args) [0x00011] in <644e3cc6d9604142b945eaf641dd17fb>:0
at Oxide.Plugins.RaidableBases.CommandBuyRaid (Oxide.Core.Libraries.Covalence.IPlayer p, System.String command, System.String[] args) [0x00103] in <644e3cc6d9604142b945eaf641dd17fb>:0
at Oxide.Plugins.RaidableBases.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01df8] in <644e3cc6d9604142b945eaf641dd17fb>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

something wrong with your language file

(16:06:07) | Failed to call hook 'CommandBuyRaid' on plugin 'RaidableBases v1.6.6' (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) [0x000ff] in <fb001e01371b4adca20013e0ac763896>:0
at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <fb001e01371b4adca20013e0ac763896>:0
at System.String.Format (System.String format, System.Object[] args) [0x00020] in <fb001e01371b4adca20013e0ac763896>:0
at Oxide.Plugins.RaidableBases+SingletonBackbone.GetMessage (System.String key, System.String id, System.Object[] args) [0x000d0] in <c828c8b31f364b27a8911f151a355b92>:0
at Oxide.Plugins.RaidableBases+SingletonBackbone.Message (BasePlayer player, System.String key, System.Object[] args) [0x00011] in <c828c8b31f364b27a8911f151a355b92>:0
at Oxide.Plugins.RaidableBases.CommandBuyRaid (Oxide.Core.Libraries.Covalence.IPlayer p, System.String command, System.String[] args) [0x00103] in <c828c8b31f364b27a8911f151a355b92>:0
at Oxide.Plugins.RaidableBases.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01df8] in <c828c8b31f364b27a8911f151a355b92>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

looks like an issue with your language file

Any input on what "issue"?  I haven't edited my lang file for this plugin.  I confirmed file validity as a .json.   What kind of error would cause this?  Players can no  longer purchase Raidable Bases since this error started.

{
  "No Permission": "You do not have permission to use this command.",
  "Building is blocked!": "<color=#FF0000>Building is blocked near raidable bases!</color>",
  "Difficulty Not Available": "Difficulty <color=#FF0000>{0}</color> is not available on any of your buildings.",
  "Difficulty Not Available Admin": "Difficulty <color=#FF0000>{0}</color> is not available on any of your buildings. This could indicate that your CopyPaste files are not on this server in the oxide/data/copypaste folder.",
  "Max Manual Events": "Maximum number of manual events <color=#FF0000>{0}</color> has been reached!",
  "Manual Event Failed": "Event failed to start! Unable to obtain a valid position. Please try again.",
  "Help": "/{0} <tp> - start a manual event, and teleport to the position if TP argument is specified and you are an admin.",
  "RaidOpenMessage": "<color=#C0C0C0>A {0} raidable base event has opened at <color=#FFFF00>{1}</color>! You are <color=#FFA500>{2}m</color> away. [{3}]</color>",
  "Next": "<color=#C0C0C0>No events are open. Next event in <color=#FFFF00>{0}</color></color>",
  "Wins": "<color=#C0C0C0>You have looted <color=#FFFF00>{0}</color> raid bases! View the ladder using <color=#FFA500>/{1} ladder</color> or <color=#FFA500>/{1} lifetime</color></color>",
  "RaidMessage": "Raidable Base {0}m [{1} players]",
  "Ladder": "<color=#FFFF00>[ Top 10 Raid Hunters (This Wipe) ]</color>:",
  "Ladder Total": "<color=#FFFF00>[ Top 10 Raid Hunters (Lifetime) ]</color>:",
  "Ladder Insufficient Players": "<color=#FFFF00>No players are on the ladder yet!</color>",
  "Next Automated Raid": "Next automated raid in {0} at {1}",
  "Not Enough Online": "Not enough players online ({0} minimum)",
  "Raid Base Distance": "<color=#C0C0C0>Raidable Base <color=#FFA500>{0}m</color>",
  "Destroyed Raid": "Destroyed a left over raid base at {0}",
  "Indestructible": "<color=#FF0000>Treasure chests are indestructible!</color>",
  "View Config": "Please view the config if you haven't already.",
  "Log Stolen": "{0} ({1}) Raids {2}",
  "Log Granted": "Granted {0} ({1}) permission {2} for group {3}",
  "Log Saved": "Raid Hunters have been logged to: {0}",
  "Prefix": "[ <color=#406B35>Raidable Bases</color> ] ",
  "RestartDetected": "Restart detected. Next event in {0} minutes.",
  "EconomicsDeposit": "You have received <color=#FFFF00>${0}</color> for stealing the treasure!",
  "EconomicsWithdraw": "You have paid <color=#FFFF00>${0}</color> for a raidable base!",
  "EconomicsWithdrawGift": "{0} has paid <color=#FFFF00>${1}</color> for your raidable base!",
  "EconomicsWithdrawFailed": "You do not have <color=#FFFF00>${0}</color> for a raidable base!",
  "ServerRewardPoints": "You have received <color=#FFFF00>{0} RP</color> for stealing the treasure!",
  "ServerRewardPointsTaken": "You have paid <color=#FFFF00>{0} RP</color> for a raidable base!",
  "ServerRewardPointsGift": "{0} has paid <color=#FFFF00>{1} RP</color> for your raidable base!",
  "ServerRewardPointsFailed": "You do not have <color=#FFFF00>{0} RP</color> for a raidable base!",
  "InvalidItem": "Invalid item shortname: {0}. Use /{1} additem <shortname> <amount> [skin]",
  "AddedItem": "Added item: {0} amount: {1}, skin: {2}",
  "CustomPositionSet": "Custom event spawn location set to: {0}",
  "CustomPositionRemoved": "Custom event spawn location removed.",
  "OpenedEvents": "Opened {0}/{1} events.",
  "OnPlayerEntered": "<color=#FF0000>You have entered a raidable PVP base!</color>",
  "OnPlayerEnteredPVE": "<color=#FF0000>You have entered a raidable PVE base!</color>",
  "OnFirstPlayerEntered": "<color=#FFFF00>{0}</color> is the first to enter the raidable base at <color=#FFFF00>{1}</color>",
  "OnChestOpened": "<color=#FFFF00>{0}</color> is the first to see the treasures at <color=#FFFF00>{1}</color>!</color>",
  "OnRaidFinished": "The raid at <color=#FFFF00>{0}</color> has been unlocked!",
  "CannotBeMounted": "You cannot loot the treasure while mounted!",
  "CannotTeleport": "You are not allowed to teleport from this event.",
  "MustBeAuthorized": "You must have building privilege to access this treasure!",
  "OwnerLocked": "This treasure belongs to someone else!",
  "CannotFindPosition": "Could not find a random position!",
  "PasteOnCooldown": "Paste is on cooldown!",
  "SpawnOnCooldown": "Try again, a manual spawn was already requested.",
  "Thief": "<color=#FFFF00>The base at <color=#FFFF00>{0}</color> has been raided by <color=#FFFF00>{1}</color>!</color>",
  "BuySyntax": "<color=#FFFF00>Syntax: {0} easy|medium|hard {1}</color>",
  "TargetNotFoundId": "<color=#FFFF00>Target {0} not found, or not online.</color>",
  "TargetNotFoundNoId": "<color=#FFFF00>No steamid provided.</color>",
  "BuyAnotherDifficulty": "Difficulty '<color=#FFFF00>{0}</color>' is not available, please try another difficulty.",
  "BuyDifficultyNotAvailableToday": "Difficulty '<color=#FFFF00>{0}</color>' is not available today, please try another difficulty.",
  "BuyPVPRaidsDisabled": "<color=#FFFF00>No PVE raids can be bought for this difficulty as buying raids that allow PVP is not allowed.</color>",
  "BuyBaseSpawnedAt": "<color=#FFFF00>Your base has been spawned at {0} in {1} !</color>",
  "BuyBaseAnnouncement": "<color=#FFFF00>{0} has paid for a base at {1} in {2}!</color>",
  "DestroyingBaseAt": "<color=#C0C0C0>Destroying raid base at <color=#FFFF00>{0}</color> in <color=#FFFF00>{1}</color> minutes!</color>",
  "PasteIsBlocked": "You cannot start a raid base event there!",
  "LookElsewhere": "Unable to find a position; look elsewhere.",
  "NoValidBuildingsConfigured": "No valid buildings have been configured. Raidable Bases > Building Names in config.",
  "DespawnBaseSuccess": "<color=#C0C0C0>Despawning the nearest raid base to you!</color>",
  "DespawnedAt": "{0} despawned a base manually at {1}",
  "DespawnedAll": "{0} despawned all bases manually",
  "ModeLevel": "level",
  "ModeEasy": "easy",
  "ModeMedium": "medium",
  "ModeHard": "hard",
  "ModeExpert": "expert",
  "ModeNightmare": "nightmare",
  "DespawnBaseNoneAvailable": "<color=#C0C0C0>You must be within 100m of a raid base to despawn it.</color>",
  "GridIsLoading": "The grid is loading; please wait until it has finished.",
  "GridIsLoadingFormatted": "Grid is loading. The process has taken {0} seconds so far with {1} locations added on the grid.",
  "TooPowerful": "<color=#FF0000>This place is guarded by a powerful spirit. You sheath your wand in fear!</color>",
  "TooPowerfulDrop": "<color=#FF0000>This place is guarded by a powerful spirit. You drop your wand in fear!</color>",
  "BuyCooldown": "<color=#FF0000>You must wait {0} seconds to use this command!</color>",
  "LoadCopyPaste": "CopyPaste is not loaded.",
  "DoomAndGloom": "<color=#FF0000>You have left a {0} zone and can be attacked for another {1} seconds!</color>",
  "MaintainCoroutineFailedToday": "<color=#FF0000>Failed to start maintain coroutine; no difficulties are available today.</color>",
  "ScheduleCoroutineFailedToday": "<color=#FF0000>Failed to start scheduled coroutine; no difficulties are available today.</color>",
  "NoConfiguredLoot": "Error: No loot found in the config!",
  "NoContainersFound": "Error: No containers found for {0} @ {1}!",
  "NoLootSpawned": "Error: No loot was spawned!",
  "LoadedManual": "Loaded {0} manual spawns.",
  "LoadedBuyable": "Loaded {0} buyable spawns.",
  "LoadedMaintained": "Loaded {0} maintained spawns.",
  "LoadedScheduled": "Loaded {0} scheduled spawns.",
  "InitializedGrid": "Grid initialization completed in {0} seconds and {1} milliseconds on a {2} size map. {3} locations are on the grid.",
  "EntityCountMax": "Command disabled due to entity count being greater than 300k",
  "NotifyPlayerMessageFormat": "<color=#ADD8E6>{rank}</color>. <color=#C0C0C0>{name}</color> (<color=#FFFF00>{value}</color>)",
  "ConfigUseFormat": "Use: rb.config <{0}> [base] [subset]",
  "ConfigAddBaseSyntax": "Use: rb.config add nivex1 nivex4 nivex5 nivex6",
  "FileDoesNotExist": " > This file does not exist\n",
  "ListingAll": "Listing all primary bases and their subsets:",
  "PrimaryBase": "Primary Base: ",
  "AdditionalBase": "Additional Base: ",
  "RaidPVEWarning": "Configuration is set to block PVP raids from being bought, and no PVE raids are configured. Therefore players cannot buy raids until you add a PVE raid.",
  "NoValidBuilingsWarning": "No valid buildings are configured with a valid file that exists. Did you configure valid files and reload the plugin?",
  "Adding": "Adding: {0}",
  "AddedPrimaryBase": "Added Primary Base: {0}",
  "AddedAdditionalBase": "Added Additional Base: {0}",
  "DifficultySetTo": "Difficulty set to: {0}",
  "EntryAlreadyExists": "That entry already exists.",
  "RemoveSyntax": "Use: rb.config remove nivex1",
  "RemovingAllBasesFor": "\nRemoving all bases for: {0}",
  "RemovedPrimaryBase": "Removed primary base: {0}",
  "RemovedAdditionalBase": "Removed additional base {0} from primary base {1}",
  "RemovedEntries": "Removed {0} entries",
  "LockedOut": "You are locked out from {0} raids for {1}",
  "PVPFlag": "[<color=#FF0000>PVP</color>] ",
  "PVEFlag": "[<color=#008000>PVE</color>] ",
  "PVP ZONE": "PVP ZONE",
  "PVE ZONE": "PVE ZONE",
  "OnPlayerExit": "<color=#FF0000>You have left a raidable PVP base!</color>",
  "OnPlayerExitPVE": "<color=#FF0000>You have left a raidable PVE base!</color>",
  "PasteIsBlockedStandAway": "You cannot start a raid base event there because you are too close to the spawn.",
  "ReloadConfig": "Reloading config...",
  "ReloadMaintainCo": "Stopped maintain coroutine.",
  "ReloadScheduleCo": "Stopped schedule coroutine.",
  "ReloadInit": "Initializing...",
  "YourCorpse": "Your Corpse",
  "NotAllowed": "<color=#FF0000>That action is not allowed in this zone.</color>",
  "BlockedZones": "Blocked spawn points in {0} zones.",
  "UIFormat": "{0} C:{1} [{2}m]",
  "UIFormatContainers": "{0} C:{1}",
  "UIFormatMinutes": "{0} [{1}m]",
  "UIFormatLockoutMinutes": "{0}m",
  "UIHelpTextAll": "<color=#C0C0C0>You can toggle the UI by using <color=#FFA500>/{0} ui [lockouts]</color></color>",
  "UIHelpText": "<color=#C0C0C0>You can toggle the UI by using <color=#FFA500>/{0} ui</color></color>",
  "HoggingFinishYourRaid": "<color=#FF0000>You must finish your last raid at {0} before joining another.</color>",
  "HoggingFinishYourRaidClan": "<color=#FF0000>Your clan mate `{0}` must finish their last raid at {1}.</color>",
  "HoggingFinishYourRaidTeam": "<color=#FF0000>Your team mate `{0}` must finish their last raid at {1}.</color>",
  "HoggingFinishYourRaidFriend": "<color=#FF0000>Your friend `{0}` must finish their last raid at {1}.</color>",
  "TimeFormat": "{0:D2}h {1:D2}m {2:D2}s",
  "BuyableAlreadyRequested": "You must wait 2 seconds to try buying again.",
  "BuyableServerRestarting": "You cannot buy a raid when a server restart is pending.",
  "BuyableServerSaving": "You cannot buy a raid while the server is saving.",
  "BuyableAlreadyOwner": "You cannot buy multiple raids.",
  "TargetTooFar": "Your target is not close enough to a raid.",
  "TooFar": "You are not close enough to a raid.",
  "RaidLockedTo": "Raid has been locked to: {0}",
  "RemovedLockFor": "Removed lockout for {0} ({1})",
  "RaidOwnerCleared": "Raid owner has been cleared.",
  "TooCloseToABuilding": "Too close to another building",
  "Profile Not Enabled": "This profile is not enabled: <color=#FF0000>{0}</color>.",
  "Difficulty Not Configured": "Difficulty is not configured for the profile <color=#FF0000>{0}</color>.",
  "BuyRaidsDisabled": "<color=#FFFF00>No raids can be bought at this time.</color>",
  "BuildingNotConfigured": "You cannot spawn a base that is not configured.",
  "NoBoxesFound": "Error: No usable boxes found for {0} @ {1}!",
  "Buy Raids": "Buy Raids"
}

you will have to enable the buyable UI until its fixed

It is not..  I deleted it and recreated it.. Same error.  I also see other users having same issue.  Please advise.

Same Issue

it's a bug, fixed in next update. you can enable buyable UI for now

like i said, you will have to enable the buyable UI until its fixed

Awesome thank you

Is the last line of the lang file perhaps the issue?  Is this setting the command for "buy raid"?  If so... the command is /buyraid not /buy raid

Buyable UI doesn't seem to be registering when a mode is chosen. Any advice?

no @JessieJane it must be fixed, and the command is in the config file, not the language file

@DroLo7 you have to set a price in the config under economics (Economics Buy Raid Costs (0 = disabled)) or server rewards (ServerRewards Buy Raid Costs (0 = disabled)), and also have economics or server rewards installed

This may not be exactly the problem that was asked here. But I received the "no usable boxes" log message as well, and looked everywhere. My search brought me here and to a path that was unwarranted. It sounds dumb but, when I built my "raid house" model and copied it, I didn't build the model with boxes. IE Large Wood Box, Small Wood Box etc. And received the message "No Usable Boxes". I rebuilt it with boxes, copied it. Then wallah! Worked immediately with canned config files. Just in case anyone else finds this and is new to the plugin. This may be the solution. No boxes? Add boxes.