Jump to content

Issues with plugin

Closed 1.0.2

Hello, I have some issues... When using the command /lo or /loadout while having example Homing Launcher or Ammo for it in inventory will give errors in console making plugin not work, when using custom items aka a item with a skin example the port a fort grenade then plugin will also bug out and give this in console 

Failed to run command '/lo' on plugin 'LoadoutController'. (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.LoadoutController.HandlePossibleItem (Item possibleItem, Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String itemSlot, System.Collections.Generic.Dictionary`2[System.Int32,System.Int32]& savedItems, System.Collections.Generic.Dictionary`2[System.Int32,System.Int32]& unsaveableItems, Oxide.Plugins.LoadoutController+LoadoutOption loadoutGroup) [0x0007f] in <79f315a2af45485cac995bae7dc7c7b0>:0 at Oxide.Plugins.LoadoutController.UICreateMockInventory (BasePlayer player, Oxide.Plugins.LoadoutController+LoadoutOption loadoutGroup) [0x0041e] in <79f315a2af45485cac995bae7dc7c7b0>:0 at Oxide.Plugins.LoadoutController.UIOpenLoadoutMenu (BasePlayer player, System.String command, System.String[] args) [0x00155] in <79f315a2af45485cac995bae7dc7c7b0>:0 at Oxide.Game.Rust.Libraries.Command+ChatCommand.HandleCommand (BasePlayer sender, System.String name, System.String[] args) [0x0001b] in <f9ee8c63e98c441ab5f52595af8f7566>:0 at Oxide.Game.Rust.Libraries.Command.HandleChatCommand (BasePlayer sender, System.String name, System.String[] args) [0x00015] in <f9ee8c63e98c441ab5f52595af8f7566>:0 at Oxide.Game.Rust.RustCore.IOnPlayerCommand (BasePlayer basePlayer, System.String message) [0x000db] in <f9ee8c63e98c441ab5f52595af8f7566>:0

 

The Same Error Occour if your trying to use the command /lo while having 2-4 grenades in inventory

[F1Spawn] giving ["="] Duff 0 x F1 Grenade Failed to run command '/lo' on plugin 'LoadoutController'. (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.LoadoutController.HandlePossibleItem (Item possibleItem, Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String itemSlot, System.Collections.Generic.Dictionary`2[System.Int32,System.Int32]& savedItems, System.Collections.Generic.Dictionary`2[System.Int32,System.Int32]& unsaveableItems, Oxide.Plugins.LoadoutController+LoadoutOption loadoutGroup) [0x0007f] in <79f315a2af45485cac995bae7dc7c7b0>:0 at Oxide.Plugins.LoadoutController.UICreateMockInventory (BasePlayer player, Oxide.Plugins.LoadoutController+LoadoutOption loadoutGroup) [0x0041e] in <79f315a2af45485cac995bae7dc7c7b0>:0 at Oxide.Plugins.LoadoutController.UIOpenLoadoutMenu (BasePlayer player, System.String command, System.String[] args) [0x00155] in <79f315a2af45485cac995bae7dc7c7b0>:0 at Oxide.Game.Rust.Libraries.Command+ChatCommand.HandleCommand (BasePlayer sender, System.String name, System.String[] args) [0x0001b] in <f9ee8c63e98c441ab5f52595af8f7566>:0 at Oxide.Game.Rust.Libraries.Command.HandleChatCommand (BasePlayer sender, System.String name, System.String[] args) [0x00015] in <f9ee8c63e98c441ab5f52595af8f7566>:0 at Oxide.Game.Rust.RustCore.IOnPlayerCommand (BasePlayer basePlayer, System.String message) [0x000db] in <f9ee8c63e98c441ab5f52595af8f7566>:0 Failed to run command '/lo' on plugin 'LoadoutController'. (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.LoadoutController.HandlePossibleItem (Item possibleItem, Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String itemSlot, System.Collections.Generic.Dictionary`2[System.Int32,System.Int32]& savedItems, System.Collections.Generic.Dictionary`2[System.Int32,System.Int32]& unsaveableItems, Oxide.Plugins.LoadoutController+LoadoutOption loadoutGroup) [0x0007f] in <79f315a2af45485cac995bae7dc7c7b0>:0 at Oxide.Plugins.LoadoutController.UICreateMockInventory (BasePlayer player, Oxide.Plugins.LoadoutController+LoadoutOption loadoutGroup) [0x0041e] in <79f315a2af45485cac995bae7dc7c7b0>:0 at Oxide.Plugins.LoadoutController.UIOpenLoadoutMenu (BasePlayer player, System.String command, System.String[] args) [0x00155] in <79f315a2af45485cac995bae7dc7c7b0>:0 at Oxide.Game.Rust.Libraries.Command+ChatCommand.HandleCommand (BasePlayer sender, System.String name, System.String[] args) [0x0001b] in <f9ee8c63e98c441ab5f52595af8f7566>:0 at Oxide.Game.Rust.Libraries.Command.HandleChatCommand (BasePlayer sender, System.String name, System.String[] args) [0x00015] in <f9ee8c63e98c441ab5f52595af8f7566>:0 at Oxide.Game.Rust.RustCore.IOnPlayerCommand (BasePlayer basePlayer, System.String message) [0x000db] in <f9ee8c63e98c441ab5f52595af8f7566>:0

 

Also Weapons Do Not save with attachments and ammunition

i also cannot set a blacklist for items or modify. a few things dont match up with what plugin should provide.

Im also not able to set different spawn loadouts for different permissions and im not able to set new permissions so i can assign different loadouts for spawning for different permissions. could be me that dont know how plugin works but this i cant get to work neither

kindly waiting for reply

Edited by TheSocialExperiment

Share this comment


Link to comment

I have not looked into adding support for custom items. 

“Blacklisted” items are the items that you do not put in the item list. Or, items with the skin ids that you put in the skinID list. 

To add more user groups, you can go into the data file and copy the first user group and paste it under the first user group. 

However, if your editing items in a loadout, I recommend doing that through the UI so the data files do not get messed up and cause you issues. 

Reminder, when you’re editing the data files, make sure you unload the plug-in first so it does not override your save with what it has in memory. 

Share this comment


Link to comment

The Homing Missile launcher isnt a custom item i cannot have it in inventory or anything. 

I also edited the Data file and not the loadouts from GUI. dosnt seem to have any effect

i also dont have a blacklisted items list anywhere. idk if site bugged and i downloaded first relase? because ammo and attachments dosnt save neither

Limits i put have no effect neither, i tried adding new usergroups not working neither

Edited by TheSocialExperiment

Share this comment


Link to comment

And nothing really works for me tbh. Setting new limits for default loadouts dosnt load, adding items to the datafile also dosnt work, putting new group dosnt work. 
 

Am i doing this all wrong? cause ur saying it does work but i cannot get this to work

 

Share this comment


Link to comment

If you respond on Discord then i can show pictures and such. when im in the GUI it shows red for ammo meaning im over the limit and cannot save. but the limit for ammo example is 10k and i only have 1000 on me... so there is issues for me occouring.....

i can try delete everything i did and reinstall plugin and see if it works tho it will set me back

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.7k

Files Sold

Total number of files sold.

1.6m

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.