Jump to content

Magnumk

Creator
  • Posts

    107
  • Joined

  • Last visited

Everything posted by Magnumk

  1. Magnumk

    Favorites

    I unloaded the plugin, "installed" the new version 1.3.1 Still same problem. Do I need to remove/change something else?
  2. Magnumk

    Favorites

    When there is a description on an item the favorite option is not visible
  3. Magnumk

    OnPlayerConnected

    That fixed the problem, sorry for the trouble!
  4. Magnumk

    OnPlayerConnected

    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
  5. Magnumk

    OnPlayerConnected

    (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
  6. Magnumk

    Explosive Chest

    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
  7. Thanks! Sorry for that basic fault… don’t know why I didn’t try that 🫡
  8. Magnumk

    Tiers Mode

    Does it support Economics plugin? So that you can set a price for players to pay for upgrading tiers rather than time? And Is it possible to specify which material the user can upgrade their base with? Example, Tier 1: - able to use/upgrade stone on construction Tier 2: - Metall Tier 3: - HQM
  9. 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
  10. Magnumk

    Failed compiling

    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
  11. Magnumk

    Failed compiling

    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)
  12. Magnumk

    Failed: OnServerInitialized

    (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
  13. Magnumk

    buyraid UI gone

    Hi I can’t find thread that you are referring to? I got this issue when I migrated to Carbon, is there a solution?
  14. Magnumk

    Icon broken after patch

    Same here, picture and icons do now show
  15. Magnumk

    Can't upgrade to 2.0.10

    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 🙂
1.7m

Downloads

Total number of downloads.

8.1k

Customers

Total customers served.

122.1k

Files Sold

Total number of files sold.

2.5m

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.