Jump to content

CNewItemManager 2.1.1

   (1 review)

2 Screenshots

  • 47.7k
  • 894
  • 14.03 kB
This area is for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments



CADÃO

Posted

Hi, please erro command:

radio.give
 

Failed to call hook 'CmdGive' on plugin 'CNewItemManager v2.0.1' (IndexOutOfRangeException: Index was outside the bounds of the array.)
  at Oxide.Plugins.CNewItemManager.CmdGive (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x00028] in <eb69ac97b9d0465b99a73cf50113a533>:0 
  at Oxide.Plugins.CNewItemManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00214] in <eb69ac97b9d0465b99a73cf50113a533>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0 

 

SgtKamato

Posted (edited)

13 hours ago, CADÃO said:

Hi, please erro command:

radio.give
 


Failed to call hook 'CmdGive' on plugin 'CNewItemManager v2.0.1' (IndexOutOfRangeException: Index was outside the bounds of the array.)
  at Oxide.Plugins.CNewItemManager.CmdGive (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x00028] in <eb69ac97b9d0465b99a73cf50113a533>:0 
  at Oxide.Plugins.CNewItemManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00214] in <eb69ac97b9d0465b99a73cf50113a533>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0 

 

radio.give "player" 1

 

i had the same error with only radio.give

Edited by SgtKamato
  • Like 1
Atope89

Posted

Hi, the last version is broken and erase config.

Parameter name: source)
  at System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0000d] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
  at Oxide.Plugins.CNewItemManager.ExistByShortName (System.String args) [0x00017] in <053d37dad4c74f58a868b66bfe4eace3>:0
  at Oxide.Plugins.CNewItemManager.ChangeItemName (Item item, BasePlayer player) [0x00012] in <053d37dad4c74f58a868b66bfe4eace3>:0
  at Oxide.Plugins.CNewItemManager.OnItemAddedToContainer (ItemContainer container, Item item) [0x0001e] in <053d37dad4c74f58a868b66bfe4eace3>:0
  at Oxide.Plugins.CNewItemManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bb] in <053d37dad4c74f58a868b66bfe4eace3>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
Failed to call hook 'OnItemAddedToContainer' on plugin 'CNewItemManager v2.1.1' (ArgumentNullException: Value cannot be null.

TF Crazy

Posted

Reset config file

Atope89

Posted

The new config file is empty.

{
  "ITEM": null,
  "VERSION": {
    "Major": 2,
    "Minor": 1,
    "Patch": 1
  }
}

TF Crazy

Posted

Delete config and reload plugin 😉

Atope89

Posted

thanks, it works. Very good mod.

  • Like 1
patriot

Posted

How can you add the custom items to the workshop?

patriot

Posted (edited)

Thank you. Is there a small tutorial somewhere for newbs like me? 😄

Edited by patriot
TF Crazy

Posted

 

8 hours ago, patriot said:

Thank you. Is there a small tutorial somewhere for newbs like me? 😄

Launch steam, add image, description, and name. Upload it ^^

patriot

Posted

Yeah I did that but the image never changed on steam, I used 512 x  512 png where have I gone wrong? Thank you for taking the time to reply.

TF Crazy

Posted

7 minutes ago, patriot said:

Yeah I did that but the image never changed on steam, I used 512 x  512 png where have I gone wrong? Thank you for taking the time to reply.

If workshop id is 0 click "N" button.

 

JBob

Posted

Worked for me with the id being 0 for the first upload, havnt tried to do a second reupload

patriot

Posted

I was using the ID # of an item I had already uploaded. Is that the failure?

JBob

Posted

Just now, patriot said:

I was using the ID # of an item I had already uploaded. Is that the failure?

Leave it at 0 for a new upload, i dont think you can upload over an already published thing

JBob

Posted

unless its the one you uploaded with this program

patriot

Posted

1 minute ago, JBob said:

unless its the one you uploaded with this program

Thank you for the tip, seemed to work! Thanks both of you.

  • Like 1
JBob

Posted

Now I got an Email saying...
 

Thank you for submitting the Steam Workshop Contribution ""!

In order for "" to be used in game, you will need to visit 
https://steamcommunity.com/sharedfiles/filedetails/?id=##########&requirelogin=true
and either add other Steam users as contributors or click on the "Finalize" button.

I see no Finalize Button

patriot

Posted (edited)

Think I have it going now. No need to finalize.

Edited by patriot
Fusion 3.64

Posted

Found an exploit.
 

    {
      "» Display name": "Card Table",
      "» Command for give": "cardtable.give",
      "» Quantity": 1,
      "» Data": {
        "• Item shortname": "cardtable",
        "• Skin": 0,
        "• Amount": 1,
        "• Condition": 0.0,
        "• Max condition": 0.0,
        "• Ammo": 0,
        "• Ammotype shortname": null,
        "• Content (mods)": null
      }
    },

If you use this, every time you remove/pickup a door closer you get a card table. Apparently you get it every time you remove any other items according to another player. He wouldn't clarify if he was using the RemoverTool or just the hammer. But he wouldn't stop talking about it. When I asked for clarification they never responded. So at the very least the door closer is an issue.

Atope89

Posted

same problem with bleach

Sensei Senseo

Posted

Beware: Because of this code

            private bool CanPickupEntity(BasePlayer player, BaseEntity entity)
            {
                if(CheckPickup(player, entity.GetComponent<BaseEntity>()))
                    return false;

                    return true;
            }

players can pickup entities which normally can not be picked up.

If the map contains (large) wooden boxes, chairs, tables, tesla coils, (some) workbenches, beach tables, parasols, (some) ladders, test generators, ... (and which, escpecially custom, map does not?) players can pick them up. 

So players can destroy the look and feel of monuments.

We had problems since some wipes, we thought it was due to the map and so we set insvisible colliders and stuff. But in the end its this method!

Fusion 3.64

Posted

Calling hook CanPickupEntity resulted in a conflict between the following plugins: PersonalMarketplace - True (Boolean), CNewItemManager (False (Boolean))

Just now noticing this. But it's only showing on my test server and not the main.

Fusion 3.64

Posted (edited)

@TF Crazy

(20:07:07) | Calling hook CanPickupEntity resulted in a conflict between the following plugins: CNewItemManager - False (Boolean), PersonalMarketplace (True (Boolean))
(20:07:07) | NullReferenceException: Object reference not set to an instance of an object
(20:07:07) | [Tipster] Ask_Geebus left the server (Reason: Kicked: RPC Error in RPC_PickupStart)


Players are getting kicked and they get a free poker table when picking up items.
If I unload personal market place they don't get kicked but still get the table.
It doesn't happen to me for some reason.

Edited by thepiercedweirdo

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 2

User Feedback

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.4k

Files Sold

Total number of files sold.

2.4m

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.