Skip to content

Feature/warning fixes#83

Closed
kadeshar wants to merge 222 commits intokadeshar:masterfrom
hermensbas:feature/warning_fixes
Closed

Feature/warning fixes#83
kadeshar wants to merge 222 commits intokadeshar:masterfrom
hermensbas:feature/warning_fixes

Conversation

@kadeshar
Copy link
Owner

@kadeshar kadeshar commented Feb 1, 2026

Pull Request

Describe what this change does and why it is needed...


Design Philosophy

We prioritize stability, performance, and predictability over behavioral realism.
Complex player-mimicking logic is intentionally limited due to its negative impact on scalability, maintainability, and
long-term robustness.

Excessive processing overhead can lead to server hiccups, increased CPU usage, and degraded performance for all
participants. Because every action and
decision tree is executed per bot and per trigger, even small increases in logic complexity can scale poorly and
negatively affect both players and
world (random) bots. Bots are not expected to behave perfectly, and perfect simulation of human decision-making is not a
project goal. Increased behavioral
realism often introduces disproportionate cost, reduced predictability, and significantly higher maintenance overhead.

Every additional branch of logic increases long-term responsibility. All decision paths must be tested, validated, and
maintained continuously as the system evolves.
If advanced or AI-intensive behavior is introduced, the default configuration must remain the lightweight decision
model
. More complex behavior should only be
available as an explicit opt-in option, clearly documented as having a measurable performance cost.

Principles:

  • Stability before intelligence
    A stable system is always preferred over a smarter one.

  • Performance is a shared resource
    Any increase in bot cost affects all players and all bots.

  • Simple logic scales better than smart logic
    Predictable behavior under load is more valuable than perfect decisions.

  • Complexity must justify itself
    If a feature cannot clearly explain its cost, it should not exist.

  • Defaults must be cheap
    Expensive behavior must always be optional and clearly communicated.

  • Bots should look reasonable, not perfect
    The goal is believable behavior, not human simulation.

Before submitting, confirm that this change aligns with those principles.


Feature Evaluation

Please answer the following:

  • Describe the minimum logic required to achieve the intended behavior?
  • Describe the cheapest implementation that produces an acceptable result?
  • Describe the runtime cost when this logic executes across many bots?

How to Test the Changes

  • Step-by-step instructions to test the change
  • Any required setup (e.g. multiple players, bots, specific configuration)
  • Expected behavior and how to verify it

Complexity & Impact

  • Does this change add new decision branches?

    • No
    • Yes (explain below)
  • Does this change increase per-bot or per-tick processing?

    • No
    • Yes (describe and justify impact)
  • Could this logic scale poorly under load?

    • No
    • Yes (explain why)

Defaults & Configuration

  • Does this change modify default bot behavior?
    • No
    • Yes (explain why)

If this introduces more advanced or AI-heavy logic:

  • Lightweight mode remains the default
  • More complex behavior is optional and thereby configurable

AI Assistance

  • Was AI assistance (e.g. ChatGPT or similar tools) used while working on this change?
    • No
    • Yes (explain below)

If yes, please specify:

  • AI tool or model used (e.g. ChatGPT, GPT-4, Claude, etc.)
  • Purpose of usage (e.g. brainstorming, refactoring, documentation, code generation)
  • Which parts of the change were influenced or generated
  • Whether the result was manually reviewed and adapted

AI assistance is allowed, but all submitted code must be fully understood, reviewed, and owned by the contributor.
Any AI-influenced changes must be verified against existing CORE and PB logic. We expect contributors to be honest
about what they do and do not understand.


Final Checklist

  • Stability is not compromised
  • Performance impact is understood, tested, and acceptable
  • Added logic complexity is justified and explained
  • Documentation updated if needed

Notes for Reviewers

Anything that significantly improves realism at the cost of stability or performance should be carefully discussed
before merging.

Nicolas Lebacq added 30 commits January 30, 2026 22:16
* fix: Made bots drink responsibly by implementing a real check algorithm on drinking.

* fix: Remove a unused variable.

* fix: Improved the drinking detection logic following PR comments.

* feat: Added inspector pattern to replace distinct functions.

* feat: Improved drinking behaviour drastically.

* chore: Removed debug action.

* chore: Removed remnants of debug code.

* fix: Improved DrinkAction::isPossible logic.
* fix: Changed PlayerbotsMgr to be a true Meyer's singleton passed by reference.

* fix: Migrated PlayerbotAIConfig to a clean singleton pattern instead of a pointer.

* fix: Migrated RandomItemMgr to a clean singleton pattern.

* fix: Migrated SharedValueContext to a clean singleton pattern.

* fix: Migrated PlayerbotCommandServer to a clean singleton instead of using a pointer.

* fix: Migrated PerfMonitor to a clean singleton instead of using a pointer.

* fix: Migrated FlightMasterCache to a clean singleton instead of using a pointer.

* fix: Migrated PlayerbotDungeonRepository to a clean singleton instead of using a pointer.

* fix: Migrated PlayerbotRepository to a clean singleton without using a pointer.

* fix: Migrated PlayerbotSpellRepository to a clean singleton instead of using a pointer.

* fix: Migrated GuildTaskMgr to a clean singleton instead of using a pointer.

* fix: Migrated PlayerbotGuildMgr to a clean singleton instead of using a pointer.

* fix: Migrated PlayerbotTextMgr to a clean singletong instead of using a pointer.

* fix: Migrated TravelMgr to a clean singleton instead of using a pointer.

* fix: Migrated TravelNodeMap to a clean singleton instead of a pointer and removed unused, misleading public constructor on the same class.

* fix: Migrated PlayerbotWorldThreadProcessor to a clean singleton instead of using a pointer.

* fix: Migrated ServerFacade to a clean singleton instead of a pointer.

* chore: Removed unnecessary const from move constructor/operator.
Copilot AI review requested due to automatic review settings February 1, 2026 20:25
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request addresses compiler warnings across the codebase by:

  • Removing unused parameter names to suppress warnings
  • Fixing signed/unsigned comparison warnings with appropriate type conversions
  • Removing redundant std::move() calls on return statements
  • Eliminating unused variable declarations
  • Cleaning up include statements
  • Minor code style improvements

Changes:

  • Unused function parameters renamed or removed to suppress compiler warnings
  • Type conversions from int to appropriate unsigned types (uint32_t, uint64_t, size_t) to fix comparison warnings
  • Removed unnecessary std::move() on return statements (relies on RVO/NRVO)

Reviewed changes

Copilot reviewed 240 out of 240 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Multiple Action files Removed unused Event event parameters across Execute() methods
Multiple files Fixed signed/unsigned comparison warnings with type conversions
TravelNode.cpp, Talentspec.cpp, RandomPlayerbotFactory.cpp Removed redundant std::move() on return statements
Multiple files Removed unused variable declarations
Multiple files Cleaned up include statements and removed unused headers
Various Value/Trigger files Fixed integer comparison warnings with proper type conversions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 240 out of 240 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kadeshar kadeshar closed this Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants