ThePredictdocs v0.0.1 RC

Administration

Troubleshooting & status

Find out why a mob is not doing what you expect, from the console, /thepredict status and /thepredict inspect.

First checks

  1. /thepredict status. Read State (the Jev service), Profiles (the catalog), Bound mobs (who ThePredict controls, by level) and Recent failures / Recent fallbacks.
  2. /thepredict inspect nearest next to the mob. Session says whether it is bound, Intent what it is doing, Why the last fallback and cast result, Goals whether its movement goals are installed.
  3. The console. Every profile problem names the file and the path: <file>: <profile>.<path>: <message>. For a live decision log, set decision.logDecisions to true and restart.
  4. Reload or restart? Profiles, mob and skill files: /mm reload. config.yml and the key: restart the server, there is no reload command. After /minecraft:reload (datapack tags), run /mm reload too.

Startup messages

ThePredict reports a fresh installation as information, never as an error. Each line ends with the next step.

Console lineWhat it means
Startup prerequisite failed: Java <n> is unsupported; ThePredict requires Java 25 or newerThe plugin disables itself. Run the server on Java 25.
Startup prerequisite failed: Minecraft <v> is unsupported; this Paper build requires 26.2 or newerUse Paper 26.2.
Startup prerequisite failed: MythicMobs <v> is unsupported; minimum version is 5.13.1Update MythicMobs Premium. MythicMobs must be installed and enabled means it is missing or failed.
Created setup files: …First start: the missing setup files were created. Existing files are never replaced.
Invalid configuration: <file>: <path>: <reason>. ThePredict stays inactive and /thepredict status still works. Next: fix plugins/MythicMobs/AIConfig/config.yml and restart the server, then run /thepredict status.config.yml has an unknown key, an old-schema key or a value out of range. MythicMobs keeps working; storage is not opened.
Jev not configured: set TYPESAFE_API_KEY or jev.apiKey. MythicMobs works normally. Next: set the key and restart the server, then run /thepredict status.No key. Bound mobs fight with their local planner, at no cost.
No profiles: copy examples/ or create a .yml file in plugins/MythicMobs/AIConfig/Profiles/. Next: read plugins/MythicMobs/AIConfig/Profiles/README.txt.No profile yet.
<n> profiles read, but no mob targeted by a profile has Predictor: true. Next: set Predictor: true on the MythicMobs mob and run /mm reload.Profiles load, but no mob has opted in.
Profile catalog SETUP_PENDING (revision N, 0 profiles read, 0 active, 0 errors, 0 warnings): configuration pending; copy AIConfig/Profiles/example.yml.example to a .yml fileThe catalog summary. LOADED is healthy; INVALID adds the first error.
Checking Jev without spending tokens; the result follows in the console.With a key, a free check runs (GET /v1/models). Then, for example, Jev check: READY (…). Decisions are enabled.
Migration proposal: review <report> and the .proposed files next to it, then copy them into plugins/MythicMobs/AIConfig/ by hand. No file was changed and no query was enabled.An old configuration was found. See Install & requirements.
Old files in plugins/ThePredict/config.yml and plugins/ThePredict/AI/ are ignored because plugins/MythicMobs/AIConfig/ already has configuration. Nothing was moved or deleted.Both the old and the new location have files; the new one wins. Delete the old files when you are done.
jdk.httpclient.HttpClient.log asks the JDK to log headers, which would write the Authorization header of every Jev request to its log; remove headers and all from itYour JVM flags would log the key. Remove headers and all from that property.
AIConfig/config.yml: <key>: has no effect in this buildYour config.yml changes a key this build accepts but does not read, so the change does nothing. ThePredict starts normally. Set the key back to the shipped value, or leave it for a later release. The keys are marked no effect yet in the config.yml reference.

An administrator (thepredict.admin) who joins while something needs attention gets one line: [ThePredict] <causes>. Run /thepredict status for details. The causes are plugins/MythicMobs/AIConfig/config.yml has errors, old configuration files are ignored, some profiles have errors, a migration is pending and Jev is <STATE> (also shown for UNCONFIGURED and CHECKING, which are only informative).

Service states

The State line of /thepredict status and the answer of /thepredict check.

ValueMeaningWhat to do
UNCONFIGUREDNo key is configured.Set the TYPESAFE_API_KEY environment variable (or jev.apiKey) and restart. Meanwhile mobs fight with their local planner, at no cost.
INVALID_CONFIGURATIONconfig.yml is invalid; the console names the file, the path and the reason.Fix the file and restart. ThePredict stays inactive; MythicMobs keeps working.
CHECKINGThe service is being checked (at startup, or after a pause).Wait for the result in the console or in /thepredict status.
READYThe service accepts requests.Nothing.
PAUSEDRequests are paused after a rate limit (429), an overload (529), network or service errors, two timeouts in a row, three invalid answers in a row, or a rejected request (60 s).Wait: ThePredict retries with a growing pause (1 to 60 s), then a single trial request. If it repeats, check roundtrip latency and the limits.
INVALID_CREDENTIALSThe key was rejected (401).Check the key in your TypeSafe account, set it and restart: the key is read only at startup.
INVALID_MODELThe configured model does not exist.Use the tested model ID jev-1.13.0 and restart.

With INVALID_CREDENTIALS (a 401 or 403) or INVALID_MODEL, ThePredict sends nothing until a restart or a /thepredict check; mobs fight locally meanwhile. The key itself is read only at startup.

Fallback reasons

When a mob drops to a lower control level, the reason shows in inspect (Why: last fallback …), in status (fallbacks and Recent fallbacks) and, with decision.logDecisions, as Mob <uuid> fell back: <REASON>.

ValueMeaningWhat to do
SERVICE_PAUSEDThe service is paused (429, 529, timeout, network) or still being checked.Wait out the pause; check latency and limits if it repeats.
SERVICE_BLOCKEDThe service cannot be used without a configuration change: UNCONFIGURED, INVALID_CONFIGURATION, INVALID_CREDENTIALS or INVALID_MODEL.Read State in /thepredict status, fix the key or the model and restart.
NO_BUDGETThe request, token or in-flight budget is spent (server, world or encounter).Review decision.maxRequestsPerMinute, decision.maxInputTokensPerMinute and the load. Mobs without budget fight locally, without errors.
LOW_CONFIDENCESeveral answers in a row stayed below the minimum confidence.Review the profile: contexts, tactic names and descriptions.
INVALID_RESPONSEThe answer had no applicable tactic.Make sure the profile offers eligible tactics; report it with the log if it repeats.
EXPIREDThe intent expired without a replacement.Normal now and then. If frequent, compare roundtrip latency with profileDefaults.maximumIntentDurationTicks.
NO_PROGRESSThe movement made no progress for two decisions (target on a pillar, behind a wall, in water).Check the terrain, the arena and the mob's species.
RETREAT_LIMITThe encounter already has as many simultaneous retreats as it allows (one per three members, at least one).Nothing; it is coordination between mobs.
SESSION_INVALIDThe mob was reloaded, died or changed world.Nothing; it is transient.
INTERNAL_ERRORAn exception inside ThePredict; the console says how many sessions fell back to the base AI.Report it with the log. The mob returns to its base AI.

Other counters

The Counters section of status groups running totals. Each group lists only non-zero values, or none. totals also counts options_merged (options not sent because they read like another option) and the contingencies asked, fired and effective.

failures

Why a request to Jev failed.

ValueMeaning
AUTHENTICATIONThe key was rejected (401).
MODEL_UNAVAILABLEThe model does not exist.
INVALID_REQUESTThe request was rejected, or was too large to prepare.
RATE_LIMITEDThe account's rate limit was hit (429).
OVERLOADEDThe service is overloaded (529).
SERVICE_ERRORThe service answered with an error status (a 5xx other than 529, or an unexpected status).
NETWORKThe connection failed.
TIMEOUTNo answer arrived within jev.timeoutMillis.
INVALID_RESPONSEThe answer could not be understood.

dispatch

What happened to an encounter that was due for a decision.

ValueMeaning
SENTA request was sent.
EMPTY_CAPTURENo member of the encounter could be read.
NO_QUESTIONSNo mob qualified for a question (an active session with installed goals, no debug intent, a perceived target and two distinct eligible tactics), and there is no group plan question.
SERVICE_UNAVAILABLEThe service is not ready, is paused, or is running its single trial request.
NO_BUDGETA request, token or in-flight limit refused the prepared request; the mobs play locally.
NOTHING_TO_ASKWhile preparing, no question kept two options that read differently: nothing is sent or reserved and the mobs play locally.
PREPARE_FAILEDThe request could not be encoded (for example, over the size guard). It counts as INVALID_REQUEST, nothing is sent, that encounter plays locally and the service is not paused, so other encounters keep asking.
CLIENT_ERRORThe client failed to accept the request (a bug); counted as INVALID_REQUEST.
CACHE_HITAn identical earlier answer was reused (only with decision.answerCache on).

outcomes

Result of trying to cast the skill of an intent.

ValueMeaning
CASTThe skill was cast.
DEFERRED_INVULNERABLEThe target is in its invulnerability frames; the cast is retried in a later tick.
SKIPPED_SHIELDThe target blocks with a shield and the skill cannot ignore it.
REJECTED_BY_MYTHICMOBSMythicMobs refused the skill (a failed chance, a cancelled event, no charges left).
NOT_ELIGIBLEThe skill is not ready yet (cooldown, reach, conditions); retried in a later tick.
EXPIREDThe intent expired before the skill could be cast.

discards

Why an answer that arrived was not applied.

ValueMeaning
STALE_SEQUENCEA newer request of the same encounter was already sent; the older answer is dropped.
SESSION_CHANGEDThe mob's session changed while the request was in flight (it was reloaded, respawned or moved to another encounter).
SESSION_INACTIVEThe mob's session is not active, or a debug intent holds it.
CATALOG_CHANGEDProfiles or MythicMobs were reloaded while the request was in flight.
MODEL_CHANGEDA model other than the configured one answered.
TOO_OLDThe answer arrived after it could still be applied (see decision.maxDecisionAgeMillis).
TARGET_CHANGEDThe mob changed target; the answer was about the old one.
PROBE_UNAVAILABLEThe mob could not be read when the answer arrived.
SITUATION_CHANGEDA reactive answer no longer matched the live situation.
GROUP_EPOCH_CHANGEDThe group plan was captured under another group membership; the leader's question is kept.

Profile problems

An error excludes that profile (the others keep loading); a warning keeps it. Errors and warnings are logged at load and after every /mm reload, and Profiles: in status counts them.

MessageWhat to do
guardian_ai.MythicID: unknown mob 'guardian'; IDs are case-sensitive, did you mean 'Guardian'?Copy the exact MythicMobs ID. The same goes for unknown skill '…'.
<Mob>.Predictor: is true but no valid AI profile targets this mobThe mob opted in but its profile is missing or has an error.
<Mob>.Predictor: must be true or falseSame rule for PredictorTraining, PredictorEntropy; PredictorDifficulty must name a preset.
<Mob>.PredictorTraining: requires Predictor: trueTraining only applies to a bound mob.
mob '<Mob>' has 2 profiles (a, b); all of them are excludedOne profile per mob.
… is not a known fieldA typo or a key from another section. Keys are case-sensitive.
… is a schema 1 field; review the migration proposal under migration/An old-format profile. See Install & requirements.
… uses a reserved tactic name ('none' or the prefix 'debug_') / (prefix 'tell_' or 'stance_')Rename the tactic.
Tactics.<id>.Choice: is required for Movement FLANKFLANK needs a skill to strike with.
Tactics.<id>.Movement: species PIGLIN uses a Brain; only Movement: NONE is allowedBrain-driven species keep their own movement. See Movement & goals.
MythicMobs rejected the condition '…'; context '…' is disabledOnly that context is off. Fix the condition line.
no plugin resolved the condition '…'; context '…' is disabledA condition from a plugin that is not installed.
… has the same Priority 50 as context '…'; the one declared first wins when both are activeGive the contexts different priorities.
Tactics.<a> and Tactics.<b> describe the same option to Jev; Jev only sees '<a>'Give one of them a different Description, movement or skill purpose.
Timing.FitChecks: is ignored: fit checks are only sent with QuestionDetail full, and this profile uses compactUse QuestionDetail: full or drop FitChecks.
skill '<S>' has no Intention; the choice is untyped and only casts with its own tacticAdd an Intention line to the skill. See Skills & intents.
PredictValues of skill '<S>' are no longer read; write an IntentionSame: PredictValues are history.
Choices.<id>.Purpose overrides the Intention of skill '<S>'The profile's Purpose wins. Remove it to use the skill's line.
skill '<S>' checks lineofsight but its purpose has no NEEDS_LINE_OF_SIGHT risk (and the reverse)Make the Intention line and the skill agree. Same for purpose deals damage but skill '<S>' has no damage mechanic and ignores shields but the purpose says BLOCKED_BY_SHIELD.
skill '<S>': it runs nested skills, projectiles or auras that ThePredict does not follow; it may deal damage and a knockback is assumedExpected for skill{s=…}, randomskill, projectile or aura. If it does not push, set Choices.<id>.Displacement to NONE.
skill '<S>' has no static Cooldown; with CastMode ANY_READY it fires whenever it canAdd a native Cooldown, or the skill will spam.
mob '<Mob>' also casts '<S>' from its Skills with a trigger; it may add damage while ThePredict controls the mobGate the trigger line with predictorcontrol false.
Movement KEEP_DISTANCE keeps the target beyond Band.Inner 5 but skill 'melee' reaches 2.5; this tactic never castsThe movement never lets the skill reach. Change the movement or the skill.
Threat.UnreachableDecayPerSecond: is ignored because mob '<Mob>' enables ThreatTable.DecayUnreachableMythicMobs already decays it; nothing to do.
Objective: may not be in English (contains the word 'objetivo', which is common in other languages); Jev reads EnglishWrite Objective and Description in English.
Participants.Entities.Allow: is ignored: participants.entities.profilesMayAllow is falseThe administrator only allows the global list.
<profile>.Decision.Pruning: has no effect in this build (also Decision.MaxOptions, Decision.CandidateScoring, Decision.Diversity, Stances.Describe and Group.PlanQuestion)The profile asks for something this build does not do yet. It loads normally; remove the key or set it back to its default.

Changing soon Tell warnings

Warnings about tells (for example telegraph has no visual (or audio) cue; ThePredict adds none: add a ~onSignal:PREDICTOR_TELL_<ANSWER> handler) belong to the tell system, which will be redefined soon. ThePredict never adds effects: the warning asks you to react to the signal in your own skill.

Effectiveness

Each time a mob adopts a new intent at level JEV, ALTERNATIVE or LOCAL (never on a renewal), ThePredict opens an outcome window. It closes when the intent ends or after 60 ticks, whichever comes first, and records:

  • damage dealt and taken, as fractions of the victim's max health;
  • casts, and confirmed hits (the target took damage within 20 ticks of a damaging cast);
  • whether the movement reached its goal (APPROACH got to melee, KEEP_DISTANCE ended at range, RETREAT ended farther than it started, FLANK cast while flanking; HOLD and NONE have no goal);
  • whether the mob or its target died.
WhereWhat to read
status, Effectiveness: outcomes: level=JEV windows=3 dealt=0.12 taken=0.03 reach=0.67 hit_rate=0.50 effect=0.21One line per level. dealt and taken are means per window, reach the share of windows that reached their goal, hit_rate confirmed hits per cast, effect the mean of dealt − taken + 0.25·reached + target died − mob died. Without data: outcomes: no closed window yet.
status: contingencies: asked=4 fired=2 effective=1Contingencies sent, fired in combat, and fired with a positive window.
inspect: Outcomes: JEV keep_distance_and_shoot dealt=0.12 taken=0.03 reached=yes casts=1 hits=1; …The mob's last 8 windows, newest last, with mob died or target died when it happened.
Console with decision.logDecisions: Outcome JEV keep_distance_and_shoot dealt=0.12 …One line per closed window.

The effect index is a comparison tool, not a verdict: use it to compare levels or two versions of the same profile.

Common symptoms

The mob ignores ThePredict. Check, in order: Predictor: true in the mob file; a profile whose MythicID matches the mob ID exactly (case-sensitive); no profile error in the console; inspect says Goals: installed for revision <n>. Species with a Brain (piglins, wardens, villagers…) only accept Movement: NONE, and slimes, magma cubes, ghasts, phantoms and bats keep their own AI (Goals: not installed (MythicMobs keeps its AI)).

It fights, but always at LOCAL. Normal without a key. With a key, read State in status and the Why line of inspect: SERVICE_BLOCKED, NO_BUDGET and LOW_CONFIDENCE are the usual causes.

A skill spams. With the default CastMode: any_ready, every skill with a valid Intention line fires as soon as it is ready. A skill without a native Cooldown is ready all the time. Give it a Cooldown (or Charges); ThePredict adds no floor of its own.

Double damage. The mob's own trigger lines (~onAttack, ~onTimer) keep running while ThePredict controls it. Gate them with predictorcontrol false so they only fire when ThePredict is not in control.

The boss hits less than its classic version. While ThePredict controls a mob, its base melee goal does not hit. Put the melee damage in a skill of a tactic, or add a Kind: VANILLA_MELEE choice (one vanilla hit every 20 ticks at most).

A predictor* condition is always false. The control conditions (predictorcontrol, predictormove, predictortactic, predictorrole, predictorplan, predictortoken, predictorzone, predictorpattern) are false at BASE and once the intent expires; predictorstance is the exception. predictorzone only has data with an effective zone mode of full, and predictorpattern only in the bias or full pattern modes. A wrong argument makes the condition always false and logs a warning at load.

A signal never fires. The handler must be a line ~onSignal:PREDICTOR_<NAME> (or a bare ~onSignal) in the Skills of the mob or of its Template. A handler written inside another skill does not count, because MythicMobs does not register it either. Write the signal name in upper case. PREDICTOR_PATTERN_* signals are only sent in the bias and full pattern modes, and PREDICTOR_PLAN_* and PREDICTOR_ROLE_* only while the group has a plan (see Groups).

A signal fires again and again. A local mob that makes no progress drops to level 4 and picks the same tactic again at the next decision, and each return counts as a new tactic: its PREDICTOR_<TACTIC> signal can fire around 30 times a minute. Do not put effects that must not repeat in such a handler, and fix the terrain or the arena (NO_PROGRESS).

The decision is dropped when the target changes. When MythicMobs picks a new target, the decision in progress is discarded and the mob runs its base AI until the next capture of its encounter (2 to 4 ticks, around 22 at most).

Two groups that meet stay separate. Mobs that started fighting in two different places keep two encounters and two requests, even after they join.

Decision log

With decision.logDecisions set to true (and a restart), the console prints every decision, fallback, cast result, threat change and closed outcome window, at most 20 lines every 10 seconds. No player names, only aliases:

Console
Mob <uuid> fell back: NO_PROGRESS
Threat +1.50 ALLY_ASSISTED for player_2 sent to the table of mob <uuid>
Threat -2.00 UNREACHABLE for player_1 sent to the table of mob <uuid>
Outcome JEV keep_distance_and_shoot dealt=0.12 taken=0.03 reached=yes casts=1 hits=1

Local output may show the full UUID of the mob; player names never appear.

When you report a bug, include the status and inspect output, these console lines, the profile and the mob and skill files, and your versions. Never include the key: ThePredict never prints it, so nothing you copy from its output contains it.

ThePredict 0.0.1 · release candidate. These pages describe this build, checked against its source code; it has not been verified on a live server yet.

ThePredict is an independent MythicMobs addon. Jev is TypeSafe's decision model; naming it does not imply endorsement. Fonts: Pixelify Sans, Inter and JetBrains Mono, under the SIL Open Font License.