ImageLibrary
Moved
Total Downloads: 18,292 - First Release: Oct 29, 2016 - Last Update: Jun 11, 2018
- 5/5, 36 likes
-
Hi @PryMary
What about the new version of IL with SkipNightUI ?
I can't do test for the moment on my server, i see players has errors with this plugin -
Code:
[08/04/2017 02:08:16] Failed to call hook 'OnServerInitialized' on plugin 'ImageLibrary v2.0.5' (NullReferenceException: Object reference not set to an instance of an object) [08/04/2017 02:16:35] Failed to call hook 'OnPlayerInit' on plugin 'ImageLibrary v2.0.5' (NullReferenceException: Object reference not set to an instance of an object) [08/04/2017 02:19:00] Failed to call hook 'GetImage' on plugin 'ImageLibrary v2.0.5' (NullReferenceException: Object reference not set to an instance of an object)
Code:(12:32:29) | Failed to call hook 'OnPlayerInit' on plugin 'ImageLibrary v2.0.5' (NullReferenceException: Object reference not set to an instance of an object)(12:32:29) | at Oxide.Plugins.ImageLibrary.HasImage (System.String imageName, UInt64 imageId) [0x00000] in <filename unknown>:0at Oxide.Plugins.ImageLibrary.GetPlayerAvatar (System.String userId) [0x00000] in <filename unknown>:0at Oxide.Plugins.ImageLibrary.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0at Oxide.Plugins.ImageLibrary.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
-
@Cataclysme Latest version is not giving me any issues with SkipNightUI or Kits or Server Rewards. I updated this morning and have not seen any issues but will keep a close eye
-
dont work for my
Failed to call hook 'OnPlayerInit' on plugin 'ImageLibrary v2.0.5' (NullReferenceException: Object reference not set to an instance of an object) -
thanks for the update yesterday @Absolut, but after I installed the version that were glitched and even if I went back to a previous version and now to the newest I still get a error when Im doing refreshallimages or WorkshopImages, Exception: ISteamUGC _ptr is null . I have removed both conf file and data file (when imagelibrary were unloaded) but it still comes up, anything Im not thinking about?
-
PryMary said no issues about ImageLibrary so... -
Oxide is up to date...
Will try again this afternoon ! -
If doesn't work, try to delete plugins (include cs file, data files, config file)
Upload again from overview and retry -
help
(14:14:09) | [MyP] Bûcheron - Melvüt Enes[1085916/76561198009918359] has entered the game
(14:14:09) | Kits was compiled successfully in 2010ms
(14:14:09) | Unloaded plugin Kits v3.2.9 by Reneb
(14:14:09) | Loaded plugin Kits v3.2.9 by Reneb
(14:14:09) | Failed to call hook 'AddImage' on plugin 'ImageLibrary v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
(14:14:09) | at Oxide.Plugins.ImageLibrary+ImageAssets.StoreByteArray (System.Byte[] bytes, System.String name) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ImageLibrary+ImageAssets.Next () [0x00000] in <filename unknown>:0
at Oxide.Plugins.ImageLibrary+ImageAssets.BeginIndividual (System.String name, System.String url, System.Byte[] bytes) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ImageLibrary.AddImage (System.String url, System.String imageName, UInt64 imageId) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ImageLibrary.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (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
(14:14:09) | Failed to call hook 'OnServerInitialized' on plugin 'Kits v3.2.9' (NullReferen -
Server Reinstalled then Works for my
-
Thank you very much for this plugin and the update, Absolut! Remember you have lots of fans that are grateful for all the work you do for us admins and the player community. I am sure many others agree!
-
Deleted all related to ImageLibrary, Kit & SkipNightUI...
Reinstall the plugin, and all is good !
Solved -
Thank you Absolut. From someone who owns most of your ChaosCode plugins, and a bunch from here, your work doesn't go unnoticed. Thank You for the fix <3
-
-
Thanks absolut love your work my server wouldn't be the same without you,don't listen to the haters it wouldn't mater what you did or didn't do you will still get moaners
-
I'm not sure what I'm doing wrong but since the update ImageLibrary sits at "Waiting for Image Library to finish processing images". 16 hours and counting now. It's preventing LustyMap from working. Anyone able to offer some advice?
-
Could you try that out? -
Hello! I seem to be unable to load new images to ImageLibrary - surely there's something I'm doing wrong?
Here's what I do to get the images loaded:
Code:[PluginReference] Plugin ImageLibrary; void OnServerInitialized() { try { ImageLibrary.Call("isLoaded", null); } catch (Exception) { Puts("Exception!"); return; } AddImage("http://i.imgur.com/ykTHU0b.png", "FrostPicImage"); AddImage("http://i.imgur.com/ZO9dFyw.png", "RadPicImage"); AddImage("http://i.imgur.com/hJeUbce.png", "FlamePicImage"); }public string GetImage(string shortname, ulong skin = 0) => (string)ImageLibrary.Call("GetImage", shortname, skin); public bool AddImage(string url, string shortname, ulong skin = 0) => (bool)ImageLibrary?.Call("AddImage", url, shortname, skin);
Code:elements.Add(new CuiElement { Name = "frostPic", Components = { new CuiImageComponent {Png = GetImage("FrostPicImage"), FadeIn = fadeInTime}, new CuiRectTransformComponent {AnchorMin = "0 0", AnchorMax = iconMaxAnchor, OffsetMin = frostIconOffset, OffsetMax = frostIconOffset} }, FadeOut = fadeOutTime });
EDIT: I should mention that using "refreshallimages" command did not work, neither did the full reinstallation of the plugin with deletion of configs and data files. Feels like I'm cursed! -
One recommendation I could give you is to add a Puts(); to see what ID is being returned on GetImage.. then find that image in the storage folder and see what it looks like!