M005 — Rescue System and Prevention of Character Softlocks
[APPROVED FOR TESTING; dependent on M007] PA replenish every 12 hours, twice per day. Other PA parameters, penalties, rescue frequency, and fees have not yet been approved. [BINDING DIRECTION FROM M002] Realism must not permanently exclude characters from gameplay.
1. Fundamental Safety Requirement
No character state reachable under the game’s rules may lead to a permanent “softlock.” This includes lack of food, water, fodder, money, PA, a functional horse, a passable route, other players, and even a connection failure.
Every active character must have at least one legal exit: natural regeneration enabling action, self-sufficient gathering, proceeding on foot after dismounting, or NPC rescue. The exit must not require a resource the player cannot obtain.
This does not imply immunity from consequences: shortages may cause delays, reduced stamina, giving up some baggage, or economic loss. They must not cause automatic death or require a premium payment.
2. Typical Failures and the World’s Response
| Situation | Consequence | What remains possible |
|---|---|---|
PA=0 |
No PA-consuming actions until the next tick | Free stop/camp, replenishment every 12 h, emergency request |
food=0 |
Fatigue penalty, no automatic death | Walking with a penalty, foraging after PA replenish, NPC assistance |
water=0 |
Fatigue penalty, no indefinite blockage | Access to water, NPC assistance; no negative resource values |
Horse feed=0 |
Reduced horse performance, potentially no riding | Dismount, look for fodder, call for assistance |
Horse water=0 |
Similar; no automatic death | Walking and rescue |
gold=0 |
No paid services, fodder purchases, or relay travel | Walking, PA replenishment, NPC rescue without upfront fee |
| Excessively heavy baggage | Cannot move while carrying the load | Leave or secure the cargo; seek assistance |
| Blocked bridge/pass | Passage unavailable | Legal detour or rescue to a safe location |
| Region suddenly closed | Character must not remain trapped in an invalid state | Server evacuation to an accessible cell |
| No other players online | Player S.O.S. might not work | NPC rescue remains independent and available |
Important: do not implement 0 PA = automatic free movement. Instead, provide free stopping and access to rescue mechanics; ordinary movement still costs PA. If PA regeneration is temporarily unavailable for technical reasons, administrators must have a tool for emergency state correction.
3. Four Levels of Rescue
3.1. Level I — Regeneration and Camp
- Without PA, a character may end their activity at no cost and await the next replenishment.
- Rest must not require a positive amount of food, water, or coins.
- PA replenish every 12 hours, twice a day, as specified in M007, including while offline, up to six increments (three days). With a proposed test increment of
+100 PA, the maximum balance is600 PA. - Hunger and thirst must not cancel PA replenishment. Potential penalties should increase selected action costs, not cause permanent immobility.
- Being offline alone must not create an unlimited negative resource debt. Not logging in for more than three days does not block the character: PA stops at the cap, but the character can use the accumulated balance or emergency rescue.
3.2. Level II — Self-Help and Obtaining Supplies
Local actions: Collect water, Search for food, Graze horse, Rest. Available actions depend on the hex and weather; not every terrain has water or fodder. The earlier M002 considered 5 PA for basic foraging — a test proposal, not an approved cost.
The player should not be condemned to “roll until successful” after repeated failed attempts with zero resources. After a certain number of failures, or once the absence of the needed resource is established, the UI must indicate a higher-level rescue option.
3.3. Level III — Dismounting and Baggage
Switching to travel on foot must not require payment or PA when used to unblock the character. Equipment must nevertheless be accounted for fairly:
- a personal kit within the character’s carrying capacity may be taken;
- excess cargo can be left on the hex as a marked deposit/abandoned cargo with a limited retention period;
- the horse can be left behind, secured at a nearby stable (if available), or assigned a retrieval order; availability and costs of the latter are a proposal;
- the player must see a confirmation before losing items irreversibly.
Rescuing a horse is separate from rescuing a character: a character must never have to die because a horse cannot move. Losing a horse or deposit may be a consequence of a decision, but cannot be a condition for continuing to use the account.
3.4. Level IV — NPC Rescue as a Final Guarantee
The player selects Call for help / Emergency rescue. If a logistical problem or invalid-state condition is met, the server:
- stops further travel orders and verifies their settlement;
- identifies the nearest appropriate safe location in an open region, without crossing hidden boundaries;
- explains what will happen to the horse, cargo, and unfinished orders;
- applies a disclosed cost in time and/or lost convenience, without requiring upfront cash;
- in a single transaction, moves the character to safety, records the consequences, and grants a minimal, non-transferable recovery kit only if needed;
- allows ordinary gameplay to resume at the next permitted settlement point.
Proposed rescue time: completion at the next 12-hour tick. If that time has already passed due to a system failure, rescue requires automated or administrative intervention. Exception: a direct server error (invalid position) should be fixed immediately and without penalty.
Optional, limited rescue debt: if deferred fees are introduced, they must have a hard cap, no compound interest, a way to expire naturally, and must not survive the M001 character reset. Until the economy is balanced, I recommend a first version without debt, using time cost and restrictions on moving assets instead.
4. Detecting When a Character Is Stuck
An important distinction:
- Ordinary exhaustion: the player has 0 PA but will receive replenishment — display a countdown to the next tick; do not treat it as a technical crisis.
- Logistical deadlock: for example, horse without fodder, no usable exit, or no supplies — offer local rescue paths.
- Map/technical deadlock: invalid position, removed region, or hex bug — immediate correction free of charge.
- Combat danger: this must not become an excuse for penalty-free teleportation. Active combat needs its own finite resolution (e.g., settle combat or flee), after which rescue becomes available again. PvP details are a separate decision.
The detector checks accessibility graphs, movement options, and regeneration sources. It does not interpret the absence of online players as the absence of a rescue path.
5. Abuse Prevention
Rescue is not a substitute for economical transport or a free relay service.
- It does not carry heavy loads or others’ goods for free.
- Other items require explicit leave/deposit/loss rules.
- It does not let players choose arbitrary cities: the server selects the nearest permitted safe place, respecting world restrictions.
- The minimum recovery kit is non-tradable, non-transferable, and cannot be stockpiled; it is granted only when needed and repeated requests cannot duplicate it.
- Repeated calls within a short period may increase the time cost, but must never disable the last available rescue path.
- Every case receives an
idempotency_keyand consequence log; no negative balance or benefit from repeated calls. - Narrative upheavals, cataclysms, and region closures must not trap individual heroes following a global map change.
6. Events and Interface
When movement fails, the UI should explain what failed and what the player can do (rather than merely saying “You cannot move”):
| Message | Suggested action |
|---|---|
| “You need 10 more PA. The next replenishment is in 3 hours.” | Set up camp |
| “Your horse is exhausted. You can continue on foot.” | Dismount |
| “Your fodder is gone. Grazing is possible in this valley.” | Find fodder |
| “There is no open passage out of this hex.” | Call for rescue |
| “Invalid state after a map change — moved at no cost.” | Automatic correction |
Do not reveal coordinates or names of undiscovered regions in rescue messages.
7. Data and Algorithm
RescueRequest(request_id, character_id, cycle_id, reason, source_hex,
destination_hex, inventory_policy_snapshot, status, created_at)
RescueSettlement(request_id, processed_at, PA_consequence, cargo_disposition,
mount_disposition, debt_if_any)
EmergencyKitGrant(character_id, cycle_id, request_id, issued_at)
RecoveryDeposit(deposit_id, owner_character_id, source_hex, item_refs, expires_at)
StuckDetection(character_id, observed_at, reason, available_exits)
request_rescue(character, idempotency_key):
assert character.active_in_current_cycle()
if request_already_settled(idempotency_key): return previous_result
classify_stuck_state(character)
if not rescue_eligible: return clear_alternative_actions()
destination = nearest_valid_safe_location(character.location)
assert destination.region == AVAILABLE
consequences = quote_rescue(character, destination)
get_explicit_player_confirmation(consequences)
reserve_pending_travel_and_prevent_double_spend()
settle_rescue_atomically_once(idempotency_key):
resolve_mount_and_cargo_without_duplication()
transfer_character_to(destination)
apply_time_penalty_if_applicable()
provide_nontradable_minimum_kit_if_needed()
write_audit_record()
Transaction safety: requests from the same account and concurrent community/NPC assistance must not modify the same items at the same time. A rescue pending at reset time must be settled or closed before the character is wiped.
8. Acceptance Test Scenarios
| ID | Case | Expected result |
|---|---|---|
| M005-T01 | PA=0, no food or water |
Stop and PA replenish every 12 h remain possible |
| M005-T02 | gold=0, no fodder, exhausted horse |
Free dismount, travel on foot, or NPC help |
| M005-T03 | No other player online | Guaranteed NPC path |
| M005-T04 | Exceptionally heavy luggage | Player sees exact consequences; no duplication |
| M005-T05 | Rescue invoked twice | One transfer, one kit |
| M005-T06 | Target region is closed | Choose another accessible safe location |
| M005-T07 | Character technically outside the map | Immediate penalty-free correction |
| M005-T08 | Emergency action at the M001 reset boundary | No transfer of supplies or debt to the new character |
| M005-T09 | Maximum combination of adverse conditions | Penalties cannot cause a softlock |
| M005-T10 | Repeated NPC assistance | No economic gain; rescue still possible |
| M005-T11 | Horse unavailable but character has PA | Movement on foot works |
| M005-T12 | Active race or relay journey | Safe settlement/cancellation first, no duplication |
9. Global Safety Testing Rule
In automated tests, generate extreme combinations of the states PA, gold, food, water, horse_stamina, feed, water, load, edge_access, region_status. For every state reachable under the game rules, the test must demonstrate an available exit path that requires neither a new character nor other players.
10. Open Decisions
- Hunger and thirst penalties and limits on combining them, consistent with M007.
- Rescue duration and outcomes; recommended one 12-hour tick and no debt during initial testing.
- Possibility of recovering a horse and abandoned cargo; retention period.
- Exact definition of the “nearest” safe settlement, especially on isolated islands.
- Minimum rescue kit and anti-trading rules.
- Rescue during PvP, which must not be decided incidentally as part of the logistical emergency system.
M005 completion criterion: no legal economic or travel situation may permanently immobilize a character, while rescue must not provide a profitable teleportation or goods-transport mechanism.
