Jump to content

IIIaKa

Creator
  • Posts

    1,789
  • Joined

  • Last visited

Everything posted by IIIaKa

  1. I've resolved the issue, so it won't occur in the next update. However, if you'd like to fix this problem immediately, feel free to message me privately, and I'll send you the corrected file.
  2. Yes, the problem arises because the HumanNPC plugin has the exact same name as the in-game class HumanNPC that my plugin references. So, when starting/restarting, the compiler mistakenly thinks my plugin refers not to the in-game class but to the plugin, leading to an error. That's why detailed information is crucial.
  3. I have a slight suspicion that you have the HumanNPC plugin by Razor installed, and the compiler thinks my plugin is referencing his HumanNPC class instead of the HumanNPC class from the game itself.
  4. Which modification are you using? uMod or Carbon? Also, I need to know the list of installed plugins. Because this error indicates that HumanNPC does not contain skinID, although this is not the case. HumanNPC is a class from Rust itself, which, through multiple inheritances, inherits from BaseEntity and has the skinID property. You should check the integrity of this file: *SERVER*\RustDedicated_Data\Managed\Assembly-CSharp.dll
  5. @original4d And I strongly urge you to create a support ticket with more detailed information about the issue, rather than posting in the discussion section, as troubleshooting in that section will only lead to confusion.
  6. @original4d To solve any problem, it is essential to understand what is causing it. Without providing the necessary information, such as installed plugins, error logs(especially), configurations, etc., this is not possible.
  7. IIIaKa

    Zombie Horde

    Unfortunately, I haven't received any responses from the developers of these plugins. This conflict (warning) arises from different views among plugin developers on what non-null value should be returned to prevent 'vanilla' behavior in this situation. In my opinion, the correct value to prevent 'vanilla' behavior is the boolean value false, not true. I will stand by my position, but in any case, this warning will be resolved in the next update.
  8. IIIaKa

    Zombie Horde

    Changed Status from Work in Progress to Closed Changed Fixed In to Next Version
  9. Unfortunately, I haven't received any responses from the developers of these plugins. This conflict (warning) arises from different views among plugin developers on what non-null value should be returned to prevent 'vanilla' behavior in this situation. In my opinion, the correct value to prevent 'vanilla' behavior is the boolean value false, not true. I will stand by my position, but in any case, this warning will be resolved in the next update.
  10. Changed Status from Work in Progress to Closed Changed Fixed In to Next Version
  11. IIIaKa

    Carbon issue??

    If the issue persists, feel free to report it in this thread.
  12. IIIaKa

    Carbon issue??

    Changed Status from Work in Progress to Closed Changed Fixed In to 0.1.4
  13. If the issue persists, feel free to report it in this thread.
  14. Changed Status from Work in Progress to Not a Bug
  15. IIIaKa

    Balance Bar

    Hello, you're talking about BalanceStatus, but this is BalanceBar. I named it that because BalanceStatus was already taken.
  16. IIIaKa

    Hook conflicts

    *del
  17. IIIaKa

    Hook conflicts

    Calling hook OnNpcTarget resulted in a conflict between the following plugins: RealPVE - False (Boolean), ArcticBaseEvent (True (Boolean)) Calling hook OnNpcTarget resulted in a conflict between the following plugins: NpcSpawn - True (Boolean), RealPVE (False (Boolean)) Hello, in your plugin, you return true to prevent targeting your NPC. Could you change true to false? It is more logical. NpcSpawn: private object OnNpcTarget(NPCPlayer attacker, CustomScientistNpc victim) { if (attacker == null || !IsCustomScientist(victim)) return null; if (_config.CanTargetNpc) return null; else return true; } private object OnNpcTarget(BaseAnimalNPC attacker, CustomScientistNpc victim) { if (attacker == null || !IsCustomScientist(victim)) return null; if (_config.CanTargetAnimal) return null; else return true; } Like this(I think the check for attacker == null is unnecessary): private object OnNpcTarget(NPCPlayer attacker, CustomScientistNpc victim) { if (attacker == null || !IsCustomScientist(victim) || _config.CanTargetNpc) return null; return false; } private object OnNpcTarget(BaseAnimalNPC attacker, CustomScientistNpc victim) { if (attacker == null || !IsCustomScientist(victim) || _config.CanTargetAnimal) return null; return false; } Alternatively, this avoids the unnecessary IsCustomScientist check. But I'm not entirely sure, it needs to be checked: private object OnNpcTarget(NPCPlayer attacker, CustomScientistNpc victim) => _config.CanTargetNpc ? null : false; private object OnNpcTarget(BaseAnimalNPC attacker, CustomScientistNpc victim) => _config.CanTargetAnimal ? null : false; private object OnNpcTarget(NPCPlayer attacker, ScientistNPC victim) => null; private object OnNpcTarget(BaseAnimalNPC attacker, ScientistNPC victim) => null; HumanNPC: public BaseEntity GetBestTarget() { BaseEntity result = null; float num = -1f; foreach (BaseEntity player in Brain.Senses.Players) { if (!(player == null) && !(player.Health() <= 0f) && Interface.CallHook("OnNpcTarget", this, player) == null) { float value = Vector3.Distance(player.transform.position, base.transform.position); float num2 = 1f - Mathf.InverseLerp(1f, Brain.SenseRange, value); float value2 = Vector3.Dot((player.transform.position - eyes.position).normalized, eyes.BodyForward()); num2 += Mathf.InverseLerp(Brain.VisionCone, 1f, value2) / 2f; num2 += (Brain.Senses.Memory.IsLOS(player) ? 2f : 0f); if (num2 > num) { result = player; num = num2; } } } return result; }
  18. Hello, you probably have "Bar - Display Layer(https://umod.org/guides/rust/basic-concepts-of-gui#layers)" set to "Overlay". Change "Overlay" to "Hud"(AdvancedStatus config). I appreciate that you explained the issue in detail.
  19. Changed Status from Pending to Work in Progress
  20. IIIaKa

    Zombie Horde

    https://codefling.com/files/support/13570-hook-conflict-onnpctarget-with-zombiehorde/ It appears that when zombies enter a monument, they attempt to target a player who cannot loot the monument. I've written(05.16.2024, still no answered) to the plugin author, to see how we can resolve this.
  21. IIIaKa

    Zombie Horde

    @original4d
1.8m

Downloads

Total number of downloads.

8.3k

Customers

Total customers served.

125k

Files Sold

Total number of files sold.

2.6m

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.