Yo!
In your \oxide\plugins\EnhancedHammer.cs change line 132.
Replace:
void OnStructureUpgrade(BuildingBlock block, BasePlayer player, BuildingGrade.Enum grade)
with
void OnStructureUpgrade(BaseCombatEntity block, BasePlayer player, BuildingGrade.Enum grade)
that fixed it for me.
Cheers!
[DOUBLEPOST=1463314649,1463216403][/DOUBLEPOST]Still getting this error a lot:
[Oxide] 15:19 [Error] Failed to call hook 'OnStructureRepair' on plugin 'EnhancedHammer v0.4.9' (InvalidCastException: Cannot cast from source type to destination type.)
Not sure how to fix it anyone can help?
EnhancedHammer
Moved
Total Downloads: 17,839 - First Release: Nov 9, 2015 - Last Update: Sep 21, 2017
- 5/5, 38 likes
-
Visagalis updated Enhanced Hammer with a new update entry:
0.5.0
-
(16:25:23) | [Oxide] 16:24 [Error] Failed to call hook 'OnStructureRepair' on plugin 'EnhancedHammer v0.4.8' (InvalidCastException: Cannot cast from source type to destination type.)
(16:25:24) | [Oxide] 16:24 [Error] Failed to call hook 'OnStructureRepair' on plugin 'EnhancedHammer v0.4.8' (InvalidCastException: Cannot cast from source type to destination type.)
(16:25:25) | [Oxide] 16:24 [Error] Failed to call hook 'OnStructureRepair' on plugin 'EnhancedHammer v0.4.8' (InvalidCastException: Cannot cast from source type to destination type.)
(16:25:25) | [Oxide] 16:24 [Error] Failed to call hook 'OnStructureRepair' on plugin 'EnhancedHammer v0.4.8' (InvalidCastException: Cannot cast from source type to destination type.)
(16:25:26) | [Oxide] 16:24 [Error] Failed to call hook 'OnStructureRepair' on plugin 'EnhancedHammer v0.4.8' (InvalidCastException: Cannot cast from source type to destination type.)
(16:25:26) | [Oxide] 16:24 [Error] Failed to call hook 'OnStructureRepair' on plugin 'EnhancedHammer v0.4.8' (InvalidCastException: Cannot cast from source type to destination type.)
(16:25:27) | [Oxide] 16:24 [Error] Failed to call hook 'OnStructureRepair' on plugin 'EnhancedHammer v0.4.8' (InvalidCastException: Cannot cast from source type to destination type.)
This happens when players are repairing stone walls (I haven't updated to version 0.5.0 just yet, but did perform the change that was listed two posts above, I can't say his name or else my post is flagged as inappropriate/spam, lol) -
Edit : Sorry I don“t use last version
[Oxide] 11:45 [Debug] at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0Last edited by a moderator: May 27, 2016 -
Hi !
Can you repair you plugin please?
The GUI of the current increasing don't work
Thanks guy, sorry for my bad English -
too sad, was goof plugin...
-
no show icon and chat messages. please fix.
-
Yes, need fix...
-
Pls fix gui
-
It works, but some notifications have been translated into Russian
-
i can't test now so i told if he working or not for me, thx guy
-
-
Multinational work
-
The plugin we kick for : (Reason: Kicked: RPC Error: playerattack) update please
-
Wulf Community Admin
-
Still kicking players also with newest Oxide-update
-
Wulf Community Admin
-
can add permission for a vip users?
-
Please add LANGs/localization,
its very needed! -
Fujikura updated Enhanced Hammer with a new update entry:
1.0.0