Skip to content

Illusion Temple: the barriers stay closed, temple 6 has no monsters, the skills aren't shown, and more #1617

Done

Description

@pllanosclaria

Describe the bug
Illusion Temple can't really be played. I found the first problems playing it with two characters, with the open source
client; to test the fixes I then set MinimumPlayerCount to 1 and went on with one, which showed the rest. All of them
are on the server; the PR linked below fixes them, one commit each.

  1. The arena barriers never open. The client opens them when it gets the state BattleStarted: MuMain's
    CursedTemple::ReceiveCursedTempleState clears every TW_WATER tile of the map (x 141–144 y 51–53 and x 195–198
    y 117–120 in EncTerrain47.att, used by all six temples). The server's TerrainData of the maps 45–50 has the same
    tiles as Water (16), which GameMapTerrain doesn't treat as walkable, and nothing clears them. Every step into the
    arena is set back (Debug log: WalkToAsync: Player requested to walk to "143, 51", but the first path step is blocked).
  2. Temple 6 has no monsters, and temple 5 has two of its three. The roaming Illusion Sorcerer Spirits give the skill
    points, so in temple 6, the one of every master class, the special skills can't be used. The client defines three
    spirits per temple, 386–403 (lightning, ice and poison): temple 5 = 398–400, temple 6 = 401–403. The server has
    386–399 and spawns 398/399 in temple 5 and nothing in temple 6. I found no source for "temple 6 has none" (the comment
    of 664cbe1). A S6 MonsterSetBase (github.com/MASISOMETAL/MonsterSetBase-S6, files 049 and 050) has 32 spawns in
    both, on exactly our 32 positions and in the same order, cycling through the three; the stats of 386–399 in the S6
    databases I found (mu.lv, geomu.ge) are exactly ours, and they have 400–403 too. Kills of 400–403 also have to count
    for the skill points (ArenaMonsterRangeEnd is 399).
  3. Entering can throw the player out and close the temple for everybody. The entrance gate of all six temples
    (98–108 × 128–137) has 5 blocked tiles (value 5: 103/128, 99–100/133–134). ExitGate.GetRandomPoint doesn't check
    the terrain, so about 1 entry in 22 lands on one; ClientReadyAfterMapChangeAsync then warps the player to the
    safezone. Leaving the map runs IllusionTempleContext.OnObjectRemovedFromMapAsync, which finishes the event when
    fewer than MinimumPlayerCount players are left, also while the entrance is still open: the game is disposed and
    Mirage says it's closed. The player has paid the fee and used the ticket. With the default minimum of 2 the first
    player who leaves the waiting room does the same. No other mini game entrance has blocked tiles (I checked all).
  4. The special skills work, but the player doesn't see them, and his client stops sending skill requests. The
    client names its own player by ViewExtensions.ConstantPlayerId. IllusionTempleContext.UseSkillAsync looks the
    target up with CurrentMap.GetObject(id), which doesn't know that id, and sends the raw map ids back. Order of
    Protection on oneself: the effect is applied and the points are spent, but the result has the target 0; MuMain's
    ResolveSkill finds nobody, shows nothing and never clears its "waiting for the answer" flag, so the next request is
    only sent after a portal recreates the hero. The relic carrier announcement, the skill end and the cyclic state
    (relic carrier) send the raw id of the receiving player too.
  5. "The admission and scroll levels do not match" for the wrong reasons. ToIllusionTempleEnterResult sends 3 for
    every failure but full, outlaw and not open, and the client shows that text for 3. The server already tells the
    real reason in words ("You need 8,000,000 zen…", the ticket, …), so the player gets a second, wrong line. 3 should
    only be sent for a character level which doesn't fit the temple.
  6. A character of level 400 without the master class can't enter any temple. Temple 5 ends at 399 and temple 6
    requires the master class. The client sends such a character to temple 5 (CCursedTempleEnter::CheckEnterLevel:
    381–400 without the third class), and zTeamS6.3's CheckEnterLevel does the same.
  7. After talking to Mirage, no other NPC talks to the player until he logs in again. Talking to her sets the state
    NpcDialogOpened. The client's entrance window never sends the close request (Enter, Close and Esc only hide it;
    Blood Castle, Devil Square, Doppelganger, … send it), and neither did the original client (NewUICursedTempleEnter.cpp
    of the first MuMain commit). Every further talk request is ignored.

To Reproduce
Season 6 data, two characters (or one, with MinimumPlayerCount of the temples set to 1), a GM among them: /startit,
enter temple 6 through Mirage, /skipwait.

  1. After "The battle has begun", walk south from the base: set back at 143/51.
  2. Teleport into the arena: no monsters.
  3. Enter a few times: sometimes the character lands in Devias and the temple is closed.
  4. Kill something to get points, use Order of Protection on yourself (Shift + right click): points go down, no shield, no
    further request.
  5. Enter without the zen for the fee: two messages, the second about the scroll level.
  6. With a level 400 character without the master class: no temple accepts him.
  7. Talk to Mirage, close the window, talk to any other NPC: nothing happens.

Expected behavior
As in the original: the barriers open with the battle, every temple has its spirits and they give skill points, the
entering player stays in the temple, the skills are shown, the refusal is told once and right, level 400 without the
master class goes to temple 5, and closing Mirage's window doesn't block the other NPCs.

Additional context
Two questions where I'm not sure what's intended, so they're not in the PR:

  • Experience rewards for master classes. MiniGameRewardService adds the experience rewards with
    Player.AddExperienceAsync, which only adds normal experience and stops at the maximum level; only the kill experience
    (AddAfterKillAsync) switches to master experience. So a master class at level 400 below the maximum master level gets
    nothing from the rewards of Illusion Temple 6 (30,000,000 experience, its only reward), Blood Castle or Devil Square,
    while the kills give him master experience. Is that intended? I don't know what S6 gave there.
  • Two charges for one entry. Making the Scroll of Blood costs 3–13 M at the Chaos Goblin (as in zTeamS6.3,
    g_iIT_ChoasMixMoney), and IllusionTempleInitializer also sets an entrance fee of 3–8 M per temple. zTeamS6.3's
    EnterIllusionTemple checks no zen. Should the entrance fee go?

Environment: OpenMU master (a4768ac), all-in-one docker; client MuMain main (Linux) with the Season 6 E3 data.
Third-party sources (zTeamS6.3, MonsterSetBase-S6, the private server databases) were only read for the behavior.

Activity

  1. pllanosclaria commented on Nov 24, 2026

    @pllanosclaria
    ContributorAuthor

    @sven-n thanks for the merge! Two questions from the issue are still open, and I left them out of the PR because I'm not sure
    what's intended. I'd fix whichever you want in a follow-up:

    1. Experience rewards for master classes. MiniGameRewardService adds the experience rewards with
      Player.AddExperienceAsync, which only adds normal experience and stops at the maximum level; only the kill
      experience (AddAfterKillAsync) switches to master experience. So a master class at level 400 below the maximum
      master level gets nothing from the experience rewards of Illusion Temple 6 (its only reward), Blood Castle or Devil
      Square, while his kills there give him master experience. Should the rewards give master experience in that case?
    2. Two charges for one Illusion Temple entry. The Scroll of Blood costs 3–13 M at the Chaos Goblin (as in
      zTeamS6.3), and IllusionTempleInitializer also sets an entrance fee of 3–8 M per temple, which zTeamS6.3's
      EnterIllusionTemple doesn't charge. Should the entrance fee go (initializer + an update which sets it to 0 where
      it's still the default)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions