Jump to content

hc4stillo

Member
  • Posts

    90
  • Joined

  • Last visited

Everything posted by hc4stillo

  1. Can you share this link with me to edit the text in the images to Spanish?
  2. I have several suggestions you might want to consider in the future: 1- Chat with the current level tag: [bp.25] hc4stillo 2- Top 10 table with the command: /score 3- Point indicator for clearing certain objectives: +10, +20, etc.
  3. Perfect, I'll give it a try and I'll let you know if I have any questions later.
  4. It allows you to configure commands from the console for each established level, for example: "Command": "oxide.grant user %STEAMID% cases.use",
  5. 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.
  6. hc4stillo

    Cases

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

    Quest System

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

    Quest System

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

    Quest System

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

    Cases

    Claiming the reward deletes the entire inventory of the players, it just started happening after the update.
  11. 08/07 16:23:04 | Error while compiling ExtractionRareMinerals: No overload for method 'FindItemsByItemID' takes 1 arguments | Line: 768, Pos: 49
  12. 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
  13. 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
  14. hc4stillo

    EggBox

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

    Shop UI

    Yes, you can add all new items manually in the items section and then make them visible in the categories section.
  16. 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" },
  17. 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" },
  18. 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
  19. 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?
  20. 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).
  21. hc4stillo

    Quest System

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

    Bank Heist

    This works fantastic, thanks so much for your help.
2.1m

Downloads

Total number of downloads.

9.8k

Customers

Total customers served.

143.2k

Files Sold

Total number of files sold.

3m

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.