Плагин Loot Chests 2.0

Нет прав для скачивания
Только с количеством всё нормально? А то, чёт ящиков убавил до 15, а их штук 40 спавнится если не 50, это так почему? или норм?
[automerge]1536367286[/automerge]
01:17 [Error] Failed to initialize plugin 'LootChests v2.0.0' (NullReferenceException: Object reference not set to an instance of an object)
at HurtMonoBehavior.RPCS (System.String rpcName, RPCMode mode, Boolean isReliable, .BitStreamPooled stream, Nullable`1 exclude) [0x00000] in <filename unknown>:0
at ChatManagerServer.SendChatMessage (IChatMessage message) [0x00000] in <filename unknown>:0
at Oxide.Game.Hurtworld.Libraries.Server.Broadcast (System.String message, System.String prefix, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Game.Hurtworld.Libraries.Server.Broadcast (System.String message) [0x00000] in <filename unknown>:0
at Oxide.Plugins.LootChests.Loaded () [0x00000] in <filename unknown>:0
at Oxide.Plugins.LootChests.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
01:17 [Info] Unloaded plugin LootChests для Итемв2 v2.0.0 by Oxide-Russia.ru
 
Последнее редактирование:
Failed to call hook 'OnServerInitialized' on plugin 'LootChests v2.0.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'common.02e9b16ceae4d0249869051e44ad4a1a', line 4, position 4.)
at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue (Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.JsonConverter propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.JsonReader reader, System.Object target) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00000] in <filename unknown>:0
no spawn loots i add thsi forexample attached files. /lootchests addspawn 5 no spawn :( pls help me ....
[automerge]1537783797[/automerge]
13:06 [Info] [LootChests для Итемв2] ADDED: {610.1238, 316.5204, -1943.316, 5}
13:06 [Info] [LootChests для Итемв2] ADDED: {603.97, 317.1444, -1926.556, 5}
[automerge]1537797436[/automerge]
dear brother how to add new items loot boxes. only loot boxes in 1 owrong.but i dont add new items ..i lootchests data json handly add bur crush this plugin.pls help!
 

Вложения

  • LootChests.json
    3.5 KB · Просмотры: 14
Последнее редактирование:
maybe add new code forexample /additem 1694723fa561e7241a423bc9aa07f587 10
[automerge]1537806740[/automerge]
and automatic add list!!!
[automerge]1537806801[/automerge]
and default using no problem spawning loot boxes...but only all boxes have 1 owrong :D
[automerge]1538063530[/automerge]
dear bro when fix this plugin ???
 

Вложения

  • loot.PNG
    loot.PNG
    73.6 KB · Просмотры: 19
Последнее редактирование:
Chests despawn doesn't work.
Also there is error when some chests spawned and you trying to unload plugin.

Код:
[Error] Failed to call hook 'Unload' on plugin 'LootChests v2.0.0' (NullReferenceException: Object reference not set to an instance of an object)
  at HNetworkExtensions.HNetworkView (UnityEngine.Component component) [0x00000] in <filename unknown>:0
  at Oxide.Plugins.LootChests.Unload () [0x00000] in <filename unknown>:0
  at Oxide.Plugins.LootChests.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0

Код:
void Unload()
{
    Puts("Cleaning up spawned objects...");
    
    foreach (uLink.NetworkView nwv in ChestList)
    {
        Singleton<HNetworkManager>.Instance.NetDestroy(HNetworkExtensions.HNetworkView(nwv));
    }
    
    Puts("Done");
}

Anyone can help?
 
Активность
Пока никто не печатает сообщение