Jump to content

hc4stillo

Member
  • Posts

    86
  • Joined

  • Last visited

Everything posted by hc4stillo

  1. 09/04 15:49:25 | Failed to call hook 'OnServerInitialized' on plugin 'TalkingNpc v1.4.6' (ArgumentNullException: Value cannot be null. Parameter name: source) at System.Globalization.CompareInfo.IndexOf (System.String source, System.String value, System.Globalization.CompareOptions options) [0x00003] in <f98723dd4586469db5213ec59da723ca>:0 at UnityEngine.StringEx.Contains (System.String haystack, System.String needle, System.Globalization.CompareOptions options) [0x0000a] in <a4cad030731741a9afce2404ea192428>:0 at Oxide.Plugins.TalkingNpc+<>c__DisplayClass68_0.<OnServerInitialized>b__0 (MonumentInfo m) [0x00025] in <4a64c536fc81422aa85f2d8f4927101f>:0 at System.Linq.Enumerable+WhereListIterator`1[TSource].MoveNext () [0x00037] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at Oxide.Plugins.TalkingNpc.OnServerInitialized () [0x00172] in <4a64c536fc81422aa85f2d8f4927101f>:0 at Oxide.Plugins.TalkingNpc.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x013a6] in <4a64c536fc81422aa85f2d8f4927101f>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <112d89ea5d3348c8b949af0ab1a866d2>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0 After performing different tests, the error is due to the name of the monument that is not recognized as it was in this example: "Monument": "assets/bundled/prefabs/autospawn/monument/small/sphere_tank.prefab", By deleting the monument name the plugin works fine again, but I have a big problem, I don't have time to manually reassign the NPC position in more than 20 monuments. Consulting with ChatGPT the recommendations were these: 1- using System.Globalization; 2- private static bool ContainsCI(string haystack, string needle) { if (string.IsNullOrEmpty(haystack) || string.IsNullOrEmpty(needle)) return false; return CultureInfo.InvariantCulture.CompareInfo.IndexOf( haystack, needle, CompareOptions.IgnoreCase) >= 0; } 3- A private static string GetMonumentName(MonumentInfo monument) { if (monument == null || monument.gameObject == null) return string.Empty; var monumentName = monument.gameObject.name; // Solo verifica el marcador si realmente hay nombre if (!string.IsNullOrEmpty(monumentName) && monumentName.Contains("monument_marker.prefab")) monumentName = monument.gameObject.transform?.parent?.gameObject?.transform?.root?.name; // Siempre regresa string no nulo return monumentName ?? string.Empty; } 3- B GetMonumentName(m).Contains(talkerSpawn.Value.Monument, CompareOptions.IgnoreCase) 3- C foreach (var monument in TerrainMeta.Path.Monuments.Where(m => { if (m == null) return false; var name = GetMonumentName(m); // puede ser "" var target = talkerSpawn.Value?.Monument; // puede ser null o "" return ContainsCI(name, target); })) { if (SpawnTalkingNpc(talkerSpawn.Value, talkerSpawn.Key, monument) != null) SaveTalkerSpawns(); } Here everything worked again, automatically recognizing monuments and NPC positions no matter which map you generate.
  2. hc4stillo

    Cases

    Forget it, the problem was caused by serverrewards at the start of the forced, after an update everything worked fine again.
  3. hc4stillo

    Quest System

    Yes, for that you must assign permission to each mission.
  4. hc4stillo

    Quest System

    Yes, in the delivery category, select the item you want. Quest Type: Delivery Select Item: hazmat.plushy
  5. hc4stillo

    Quest System

    Reward Type: Custom items Reward Shorname: box.wooden.large Amount: 1 Reward SkinID: 3549767355
  6. hc4stillo

    Cases

    Claiming the reward deletes the entire inventory of the players, it just started happening after the update.
  7. 08/07 16:23:04 | Error while compiling ExtractionRareMinerals: No overload for method 'FindItemsByItemID' takes 1 arguments | Line: 768, Pos: 49
  8. 08/07 14:41:17 | Error while compiling XLevels: There is no argument given that corresponds to the required parameter 'id' of 'PlayerInventory.FindItemsByItemID(List<Item>, int)' | Line: 997, Pos: 41
  9. hc4stillo

    Shipwreck

    [Shipwreck] The event has been successfully launched! Couldn't find prefab "assets/bundled/prefabs/modding/admin/admin_cliff_medium_arc_arid_small.prefab" NullReferenceException: Object reference not set to an instance of an object
  10. hc4stillo

    EggBox

    Please add in future updates, grant permissions for VIP players
  11. hc4stillo

    Shop UI

    Yes, you can add all new items manually in the items section and then make them visible in the categories section.
  12. hc4stillo

    Shop UI

    Puedes añadirlos de forma manual /oxide/data/Shop/Items.json "egg": { "DisplayName": "default", "Skin": 0, "Image": "egg.png", "DefaultAmount": 1, "BlockAmountChange": false, "BuyPrice": 150, "SellPrice": 0, "Currency": "rp" },
  13. hc4stillo

    Shop UI

    Puedes añadirlos de forma manual /oxide/data/Shop/Items.json "egg": { "DisplayName": "default", "Skin": 0, "Image": "https://www.corrosionhour.com/wp-content/uploads/2025/03/rust-egg-300x300.png", "DefaultAmount": 1, "BlockAmountChange": false, "BuyPrice": 150, "SellPrice": 0, "Currency": "rp" },
  14. hc4stillo

    Shop UI

    Lo tienes mal configurado sigue estos pasos: /oxide/data/Shop/Commands.json "regular": { "DisplayName": "REGULAR", "Image": "https://i.ibb.co/j486RD2/250x250.png", "Message": "COMPRASTE EL HELICOPTER NIVEL REGULAR", "Command": "heli.call Regular {steamid}", "BuyPrice": 1500, "Currency": "scrap", "ShowDisplayName": true }, Luego en categoría /oxide/data/Shop/Categories.json "Eventos": { "Image": "https://rustplugins.net/products/shop/box.png", "Permission": null, "Sale": 0.0, "Items": [ "cmd/regular" ] }, Listo debe funcionar sin problemas. Saludos
  15. hc4stillo

    Quest System

    After testing on a new server without additional plugins, with a new installation it worked without problem, but I still can't identify what the problem was, some old record?
  16. hc4stillo

    AutoFarm

    Problema al intentar levantar del suelo (planter.trinagle.deployed) se cambia en el inventario a (planter.large.deployed). =================================================================================================== Problem when trying to pick up from the ground (planter.trinagle.deployed) is changed in the inventory to (planter.large.deployed).
  17. hc4stillo

    Quest System

    After the rust update it is not counting mushrooms (mushroom-cluster-5, mushroom-cluster-6)
  18. hc4stillo

    Bank Heist

    This works fantastic, thanks so much for your help.
  19. hc4stillo

    Quest System

    Today I woke up wanting to make a new design, after a couple of hours, this was the result, thinking about placing more NPCs for sales etc and thus taking advantage of all the space in this structure. I love plugins.
  20. hc4stillo

    Skill Tree

    @imthenewguyExcellent adaptation of the video plugin, I know it quite well, the question that arises is, in future updates add a URL section in config, either to replace or add new videos. This way I can migrate the mini tutorials that I had already created for skill.
  21. hc4stillo

    Welcome Panel

    Example: "Tab #1 Settings": { "Enabled": true, "Button Title": " HOME", "Button Icon Img": "you can change icons in data/cuiData.json", "Base Text Size": 12, "Base Text Color": "1 1 1 1", "Text Style": "robotocondensed-bold.ttf", "Text Outline Color": "0 0 0 1", "Text Outline Thickness": "0.5", "Text Align": 0, "Text Lines": [], "Background Image URL": "https://i.imgur.com/codectextetc.png", "Background Image Anchoring": [ "0 0", "1 1" ] }, Version: 3.0.7
  22. hc4stillo

    Bank Heist

    Bank Heist 1.5.20
1.9m

Downloads

Total number of downloads.

9.2k

Customers

Total customers served.

133.9k

Files Sold

Total number of files sold.

2.8m

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.