Jump to content

Error while compiling

Work in Progress 1.0.0

Sapnu
Sapnu

Posted

Error while compiling AnvilUpgrade: 'ServerPrefabs.LogError(string, Exception)' is inaccessible due to its protection level | Line: 79, Pos: 17

0xF

Posted

Hello, thank you for letting us know; this has been fixed in update 1.0.1.

0xF

Posted

Changed Status from Pending to Fixed

Changed Fixed In to 1.0.1

Sapnu

Posted

i get another error now . Error while compiling AnvilUpgrade: 'CuiInputFieldComponent' does not contain a definition for 'PlaceholderId' and no accessible extension method 'PlaceholderId' accepting a first argument of type 'CuiInputFieldComponent' could be found (are you missing a using directive or an assembly reference?) | Line: 2554, Pos: 71

0xF

Posted

I updated it under the same version; please give it a try.

Sapnu

Posted

Error while compiling AnvilUpgrade: 'CuiInputFieldComponent' does not contain a definition for 'PlaceholderId' | Line: 3248, Pos: 29.. i comented it out then i get this error also Failed to call hook 'OnServerInitialized' on plugin 'AnvilUpgrade v1.0.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomItemDefinitions+PluginContext.PatchMutateMethod (System.Type argumentType, System.Type patchClass) [0x00000] in <db1b5d1ffb8a421ebdc2848b6bdad6ff>:0
  at Oxide.Plugins.AnvilUpgrade.Entry () [0x0001d] in <db1b5d1ffb8a421ebdc2848b6bdad6ff>:0
  at Oxide.Plugins.AnvilUpgrade.OnServerInitialized (System.Boolean initial) [0x00003] in <db1b5d1ffb8a421ebdc2848b6bdad6ff>:0
  at Oxide.Plugins.AnvilUpgrade.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0028b] in <db1b5d1ffb8a421ebdc2848b6bdad6ff>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <15f61ddda771464d8246ebdce8ff4811>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <15f61ddda771464d8246ebdce8ff4811>:0

0xF

Posted

I apologize for the initial bad experience; it should compile for you now. My mistake was that I didn't test the compilation on Oxide. I apologize again.
Please download CustomItemDefinitions and AnvilUpgrade again. 

Sapnu

Posted

Sorry for the late reply i will check the plugin when i get home 

  • Like 1
Sapnu

Posted

ok so it compiles fine now . but if i give myself an anvil and the hammer then try hitting it with the hammer nothing happens at all . this is with the default config that it generated . i have placed a normal ak inside and have hqm on me . its not taking hqm from me nor is the counter increasing . I dont get any errors in console either 

 

0xF

Posted

4 hours ago, Sapnu said:

ok so it compiles fine now . but if i give myself an anvil and the hammer then try hitting it with the hammer nothing happens at all . this is with the default config that it generated . i have placed a normal ak inside and have hqm on me . its not taking hqm from me nor is the counter increasing . I dont get any errors in console either 

 

That is likely because you are using a regular hammer, whereas you need to use a metal one. This is stated in the description and is very important, as it is a different item. Its short name is: hammer.metal

0xF

Posted

It is also an important detail that resources are collected only upon the final blow.

Sapnu

Posted

i am using a metal hammer . i also set the percentage to 100 and nothing happens

 

0xF

Posted

Can you shoot a video?

0xF

Posted

Changed Status from Fixed to Work in Progress

0xF

Posted

It'll take me a little while to fix this. I think this anti-cheat check was introduced with the latest Rust update. In the meantime, if you want to try out the plugin as soon as possible, you can use the command:
 

antihack.melee_protection 4

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.7m
Total downloads
Customers
11.5k
Customers served
Files Sold
164.9k
Total sales
Payments
3.6m
Processed total
×
×
  • 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.