Jump to content

Call Hook again :(

Closed 1.1.3

Omega
Omega

Posted

Hello Krungh,

i made a fresh install of the latest version and i have again the call hook error with every single player hit. Also there is no "You are taking on ...." Message and my translation file dosnt work.

08:49 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'BradleyTiers v1.1.3' (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 arg0) [0x00008] in <fb001e01371b4adca20013e0ac763896>:0
  at Oxide.Plugins.BradleyTiers.OnEntityTakeDamage (BradleyAPC bradley, HitInfo info) [0x0027d] in <eebeb3c6a58a4f9ab5912f85e934d123>:0
  at Oxide.Plugins.BradleyTiers.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003bb] in <eebeb3c6a58a4f9ab5912f85e934d123>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cc99cb05b42e4ea494cdf294badea406>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <99d545163fdd4d57a562df7989f2ca0a>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <99d545163fdd4d57a562df7989f2ca0a>:0

Krungh Crow

Posted

is this with the use of a different language file

Omega

Posted

Hi, no copy of the original en file

{
  "Bradley": "Bradley",
  "Destroyed": "zerstörte erfolgreich einen",
  "Info": "\n<color=green>Verfügbare Befehle</color>\n<color=green>/bt info</color> : Shows info on version/author and commands",
  "InvalidInput": "<color=red>Gebe einen verfügbaren Befehl ein!</color>",
  "KillRewardMessage": "Du erhälst <color=#738d43>{0}</color>€ für das zerstören eines {1} Bradley",
  "Version": "Version : V",
  "NoPermission": "<color=green>Dir fehlt die Berechtigung!</color>",
  "AttackMessage": "Du kämpfst gegen einen {1} Bradley",
  "SpawnMessage": "Ein {0} wurde bei {1} gesichtet",
  "KillNotification": "<color=orange>{0}</color> Destroyed a {1} BradleyApc"
}

 

Krungh Crow

Posted

found the issue

  "AttackMessage": "Du kämpfst gegen einen {1} Bradley",

needs to be

  "AttackMessage": "Du kämpfst gegen einen {0} Bradley",

the {0} is the bradley type  the {1} in this case does not exist

Omega

Posted

Ok, seems to be my fault but i did not change this. weird, sorry for that. Works now. Perfect, thanks!

  • Love 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

Files Sold

Total number of files sold.

2m

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.