-
Posts
110 -
Joined
-
Last visited
Content Type
Profiles
Downloads
Forums
Store
Support
DOWNLOADS EXTRA
Services
Everything posted by Magnumk
-
I get the following error when Toastify is isntalled and when I pusch some of the buttons in TCLevels GUI. No error when: Toastify is uninstalled Notify installed or uninstalled Running Carbon Player gets disconnected with this error: disconnecting: RPC Error in AddUI: Object reference not set to an instance of an object. at JSON.Object.GetString (System.String key, System.String strDEFAULT) [0x00000] in <00000000000000000000000000000000>:0 at CommunityEntity.CreateComponents (UnityEngine.GameObject go, JSON.Object obj, System.Boolean allowUpdate) [0x00000] in <00000000000000000000000000000000>:0 at CommunityEntity.AddUI (BaseEntity+RPCMessage msg) [0x00000] in <00000000000000000000000000000000>:0 at CommunityEntity.OnRpcMessage (BasePlayer player, System.UInt32 rpc, Network.Message msg) [0x00000] in <00000000000000000000000000000000>:0 at BaseEntity.CL_RPCMessage (System.UInt32 nameID, System.UInt64 sourceConnection, Network.Message message) [0x00000] in <00000000000000000000000000000000>:0 at Client.OnRPCMessage (Network.Message packet) [0x00000] in <00000000000000000000000000000000>:0 at Client.OnNetworkMessage (Network.Message packet) [0x00000] in <00000000000000000000000000000000>:0 at Facepunch.Network.Raknet.Client.ProcessRead (Network.NetRead read) [0x00000] in <00000000000000000000000000000000>:0 at Network.BaseNetwork.Cycle () [0x00000] in <00000000000000000000000000000000>:0 at Client.Update () [0x00000] in <00000000000000000000000000000000>:0
-
That fixed the problem, sorry for the trouble!
-
It appears when players connect to the server I can't use the /wear command I tried to reload it but I get another error: (16:14:17) | UnderwearSelection was compiled successfully in 1465ms (16:14:17) | Unloaded plugin Underwear Selection v1.0.2 by Marat (16:14:18) | Shutting down compiler because no more jobs (16:14:18) | ExType: JsonSerializationException (16:14:18) | Failed to call hook 'OnServerInitialized' on plugin 'UnderwearSelection v1.0.2' (ArgumentException: Could not cast or convert from System.Int64 to Oxide.Plugins.UnderwearSelection+Data.) at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable (System.Object value, System.Type initialType, System.Type targetType) [0x00062] in <271c58b7a8684db5a2c92be17a81f252>:0 at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast (System.Object initialValue, System.Globalization.CultureInfo culture, System.Type targetType) [0x00031] in <271c58b7a8684db5a2c92be17a81f252>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x0008d] in <271c58b7a8684db5a2c92be17a81f252>:0 (16:14:18) | Loaded plugin Underwear Selection v1.0.2 by Marat
-
(09:52:34) | Failed to run a 1.00 timer in 'UnderwearSelection v1.0.2' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.UnderwearSelection.OnPlayerConnected (BasePlayer player) [0x00078] in <532aafe1a522480c8590768ef29d989c>:0 at Oxide.Plugins.UnderwearSelection+<>c__DisplayClass6_0.<OnPlayerConnected>b__0 () [0x00000] in <532aafe1a522480c8590768ef29d989c>:0 at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <b76ec77c47d1449e92b2baab8603843d>:0
-
I needed to change the command section to be able to sell this item from shop. #region Commands [ConsoleCommand("give.echest")] void GiveExplosiveChest(ConsoleSystem.Arg arg) { if (arg.Args == null || arg.Args.Length < 1) { Puts("Usage: give.echest <SteamID>"); return; } ulong steamId; if (!ulong.TryParse(arg.Args[0], out steamId)) { Puts("Invalid SteamID provided."); return; } BasePlayer targetPlayer = BasePlayer.FindByID(steamId); if (targetPlayer == null) { Puts($"No player found with SteamID {steamId}."); return; } BasePlayer commandExecutor = arg.Player(); // Check if the command is executed from the server console if (commandExecutor == null) { targetPlayer.inventory.GiveItem(ItemManager.Create(ItemManager.FindItemDefinition("box.wooden"), 1, config.SkinId)); return; } // If executed by an in-game player, check for permissions if (commandExecutor.IsAdmin || commandExecutor.IPlayer.HasPermission("explosivechest.give")) targetPlayer.inventory.GiveItem(ItemManager.Create(ItemManager.FindItemDefinition("box.wooden"), 1, config.SkinId)); else Puts("You don't have permission to execute this command."); } [ConsoleCommand("give.echest.large")] void GiveExplosiveChestLarge(ConsoleSystem.Arg arg) { if (arg.Args == null || arg.Args.Length < 1) { Puts("Usage: give.echest.large <SteamID>"); return; } ulong steamId; if (!ulong.TryParse(arg.Args[0], out steamId)) { Puts("Invalid SteamID provided."); return; } BasePlayer targetPlayer = BasePlayer.FindByID(steamId); if (targetPlayer == null) { Puts($"No player found with SteamID {steamId}."); return; } BasePlayer commandExecutor = arg.Player(); // Check if the command is executed from the server console if (commandExecutor == null) { targetPlayer.inventory.GiveItem(ItemManager.Create(ItemManager.FindItemDefinition("box.wooden.large"), 1, config.SkinId)); return; } // If executed by an in-game player, check for permissions if (commandExecutor.IsAdmin || commandExecutor.IPlayer.HasPermission("explosivechest.give")) targetPlayer.inventory.GiveItem(ItemManager.Create(ItemManager.FindItemDefinition("box.wooden.large"), 1, config.SkinId)); else Puts("You don't have permission to execute this command."); } #endregion
- 2 comments
-
Thanks! Sorry for that basic fault… don’t know why I didn’t try that
-
I get errors when installing the new version. [ATMSystem] Looking for possible ATM's... Failed to call hook 'OnServerInitialized' on plugin 'ATMSystem v2.0.11' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.ATMSystem.OnServerInitialized () [0x00040] in <d8cd49a21cdf4815a0f2bcb7e1fba87b>:0 at Oxide.Plugins.ATMSystem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0006a] in <d8cd49a21cdf4815a0f2bcb7e1fba87b>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <e3740cd7ab6f40909737d74eeeaf1a8a>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <032ab7611607468ebf42c14e3cf9df20>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <032ab7611607468ebf42c14e3cf9df20>:0 Calling 'OnServerInitialized' on 'ATMSystem v2.0.11' took 1054ms
-
I thoughts so, I will go back to previous version and post the error at Carbon community and see if they can get it to work with changes in Carbon
-
I get errors when trying to load, previous version worked fine. If this is Carbon related I will seek answers there. (22:14:59) | [CRBN] Loading plugin 'XSkinMenu'... (22:14:59) | Failed compiling '/home/rustserver/serverfiles/carbon/plugins/XSkinMenu.cs': (22:14:59) | 1. Missing close delimiter '}' for interpolated expression started with '{'. [CS8076] (XSkinMenu 127 line 2483) (22:15:00) | 2. A conditional expression cannot be used directly in a string interpolation because the ':' ends the interpolation. Parenthesize the conditional expression. [CS8361] (XSkinMenu 129 line 2483) (22:15:00) | 3. Syntax error, ',' expected [CS1003] (XSkinMenu 177 line 2483) (22:15:00) | 4. A format specifier may not contain trailing whitespace. [CS8088] (XSkinMenu 162 line 2483) (22:15:00) | 5. The name 'vip_to_default' does not exist in the current context [CS0103] (XSkinMenu 177 line 2483) (22:15:00) | 6. Invalid initializer member declarator [CS0747] (XSkinMenu 177 line 2483)
-
(07:56:02) | Loaded plugin Hud v2.1.18 by AhigaO#4485 [292ms] (07:56:02) | Failed to call internal hook 'OnServerInitialized' on plugin 'Hud v2.1.18' Note that I'm running Carbon so it may be the problem? //Regards
-
Hi I can’t find thread that you are referring to? I got this issue when I migrated to Carbon, is there a solution?
-
Same here, picture and icons do now show
-
I've download the file 2.0.10 but I can't get it to upgrade from 2.0.9 --> 2.0.10. I'm replacing the Hud.cs in plugin directory as always but console keeps just saying: (20:33:40) | Hud was compiled successfully in 2844ms (20:33:40) | Unloaded plugin Hud v2.0.9 by AhigaO#4485 (20:33:41) | Calling 'OnServerInitialized' on 'Hud v2.0.9' took 251ms [GARBAGE COLLECT] (20:33:41) | Loaded plugin Hud v2.0.9 by AhigaO#4485 I've tried to delete config file and upgrade as well, but same result... What am I missing