Repository navigation
Description
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.
- The arena barriers never open. The client opens them when it gets the state
BattleStarted: MuMain's
CursedTemple::ReceiveCursedTempleStateclears everyTW_WATERtile of the map (x 141–144 y 51–53 and x 195–198
y 117–120 inEncTerrain47.att, used by all six temples). The server'sTerrainDataof the maps 45–50 has the same
tiles asWater(16), whichGameMapTerraindoesn'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). - 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 S6MonsterSetBase(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 (ArenaMonsterRangeEndis 399). - 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.GetRandomPointdoesn't check
the terrain, so about 1 entry in 22 lands on one;ClientReadyAfterMapChangeAsyncthen warps the player to the
safezone. Leaving the map runsIllusionTempleContext.OnObjectRemovedFromMapAsync, which finishes the event when
fewer thanMinimumPlayerCountplayers 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). - The special skills work, but the player doesn't see them, and his client stops sending skill requests. The
client names its own player byViewExtensions.ConstantPlayerId.IllusionTempleContext.UseSkillAsynclooks the
target up withCurrentMap.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
ResolveSkillfinds 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. - "The admission and scroll levels do not match" for the wrong reasons.
ToIllusionTempleEnterResultsends 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. - 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'sCheckEnterLeveldoes the same. - 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.
- After "The battle has begun", walk south from the base: set back at 143/51.
- Teleport into the arena: no monsters.
- Enter a few times: sometimes the character lands in Devias and the temple is closed.
- Kill something to get points, use Order of Protection on yourself (Shift + right click): points go down, no shield, no
further request. - Enter without the zen for the fee: two messages, the second about the scroll level.
- With a level 400 character without the master class: no temple accepts him.
- 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.
MiniGameRewardServiceadds 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), andIllusionTempleInitializeralso sets an entrance fee of 3–8 M per temple. zTeamS6.3's
EnterIllusionTemplechecks 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
pllanosclaria commentedon Nov 24, 2026
@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:
MiniGameRewardServiceadds the experience rewards withPlayer.AddExperienceAsync, which only adds normal experience and stops at the maximum level; only the killexperience (
AddAfterKillAsync) switches to master experience. So a master class at level 400 below the maximummaster 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?
zTeamS6.3), and
IllusionTempleInitializeralso sets an entrance fee of 3–8 M per temple, which zTeamS6.3'sEnterIllusionTempledoesn't charge. Should the entrance fee go (initializer + an update which sets it to 0 whereit's still the default)?