Skip to main content

Floating Numbers Crash Fix (client crash after a map change)

Note: This is a client-only binary patch for Ether Saga Odyssey v655 elementclient.exe. It was made on a 7,192,576-byte build that already carried other patches. Check the original bytes below before you patch. If they don't match exactly, don't patch.

Overview

The client crashes a few minutes after a map change (Return Home, leaving Pit of Champions, any teleport) when a lot of numbers were still queued above your head. The cause is a use-after-free. Two small in-place edits to elementclient.exe fix it: one empties the queue before the old map is released, the other caps the queue at 10 waiting numbers. Edit with any hex editor. The server needs no change.

File locations

Client Server
elementclient.exe none to change

What needs to be changed

File / location Notes
elementclient.exe offset 0x0422f6 (address 0x4422f6), 5 bytes The map-change call: call ReleaseWorld becomes call clear
elementclient.exe offset 0x0b8567 (address 0x4b8567), 121 bytes The queue's Tick routine, rewritten in place with the new clear routine after it
elementclient.exe offset 0x0b85b3, 1 byte The cap (0a = 10 numbers = 3 seconds)

File offset = address − 0x400000 in this build: .text has the same raw and virtual offset (0x1000).

Why it crashes

Step What happens
1 Each number above a head (damage, heal, EXP, Spirit) is a CECBubbleDecal. The current map's decal manager (CECDecalMan, at CECWorld+0x30) creates and owns it.
2 It also waits in the player's queue, CECBubbleDecalList (CECPlayer+0x64c). Tick 0x4b8570 releases the oldest one every 300 ms. Waiting numbers never expire, so floods pile up.
3 On a map change, CECGameRun::JumpToInstance 0x4422a0 calls ReleaseWorld 0x43b780 (the call at 0x4422f6). CECDecalMan::Release 0x5f73d0 deletes every number of the old map, including the waiting ones.
4 Your player object survives the map change (CECGameRun+0x28). Its queue still holds the addresses of the deleted numbers.
5 On the new map, every 300 ms Tick reads byte +0x25 and writes byte +0x24 of freed memory that now belongs to other objects. 1,000 queued numbers = 1,000 stray writes over 5 minutes, and then the crash.

Note: Logging out is safe: EndGame 0x43afe0 deletes the player (and its queue) before the world. Speeding up the queue only makes the crash rarer, because Pit of Champions sends you out right after the last wave, when the queue is at its fullest.

Client side

  1. Back up elementclient.exe.
  2. Open it in a hex editor and check both Original blocks below at their offsets.
  3. Write the Changed bytes over them: 5 bytes at 0x0422f6, then 121 bytes at 0x0b8567.
  4. Save, then give the new elementclient.exe to every player.

Warning: Patch only an exe whose original bytes match exactly. A different build may have this code elsewhere, and writing these bytes into the wrong code will crash the client. Keep both edits together. The cap alone still leaves up to 10 stray writes per map change. The clear alone fixes the crash, but the numbers still fall behind without limit.

Original (offset 0x0422f6, 5 bytes: call 0x43b780 ReleaseWorld)

e8 85 94 ff ff

Changed (call 0x4b85bf clear)

e8 c4 62 07 00

Original (offset 0x0b8567, 121 bytes: 9 padding + Tick + 12 padding)

000b8567  90 90 90 90 90 90 90 90 90 8b 44 24 04 53 56 8b
000b8577  71 14 03 f0 33 db 89 71 14 8b 51 2c 3b d3 8b c6
000b8587  74 44 3b 41 04 72 3f 89 59 14 8b 41 2c 3b c3 74
000b8597  35 8b 41 20 8b 10 8b 70 08 3b d3 89 51 20 74 05
000b85a7  89 5a 04 eb 03 89 59 24 8b 51 28 89 10 8b 51 2c
000b85b7  4a 89 41 28 89 51 2c 8a 46 25 3a c3 88 5e 24 75
000b85c7  05 39 59 2c 75 cb 5e b0 01 5b c2 04 00 90 90 90
000b85d7  90 90 90 90 90 90 90 90 90

Changed (new Tick with the cap, then clear at 0x4b85bf)

000b8567  83 60 20 00 eb 12 90 90 90 8b 44 24 04 01 41 14
000b8577  8b 41 04 39 41 14 72 3d 83 79 2c 00 74 37 83 61
000b8587  14 00 8b 51 20 8b 02 89 41 20 85 c0 74 05 83 60
000b8597  04 00 a9 83 61 24 00 8b 41 28 89 02 89 51 28 ff
000b85a7  49 2c 8b 42 08 c6 40 24 00 83 79 2c 0a 73 b1 80
000b85b7  78 25 00 74 c3 c2 04 00 8b 41 28 85 c0 74 15 8b
000b85c7  80 4c 06 00 00 85 c0 74 0b 31 d2 89 50 20 89 50
000b85d7  24 89 50 2c e9 a0 31 f8 ff

What the new code does

Part Address What it does
skip 0x4b8567 Sets a skipped number's lifetime to 0, so the decal manager deletes it next frame without drawing it
Tick 0x4b8570 Same 300 ms release as before. A released number with 10 or more newer ones still waiting is skipped, so only the newest 10 are shown. With 10 or fewer waiting it behaves exactly like the original.
clear 0x4b85bf Map change: sets the player's queue head, tail and count (+0x20, +0x24, +0x2c) to 0, then jumps to ReleaseWorld as before

Tip: To change the cap, edit the byte at offset 0x0b85b3 (default 0a = 10). A higher cap shows more of a flood, but the numbers fall further behind.

Note: Tick used to return 1. The new code no longer sets a return value: none of its three callers (0x48e722, 0x499652, 0x50b866) reads it. To undo the patch, write the original bytes back.

Unconfirmed: the garden window's queue

The garden window has its own number queue (+0x260), and it isn't cleared on a map change. The cap limits it to about 10 stray writes. It has not been fixed or tested, because the garden window is rarely used.

Final check

  • Both original byte blocks matched before patching
  • In a flood (an AoE kill of many monsters), at most about 10 numbers wait above your head, and the oldest are skipped
  • Clear Pit of Champions with one AoE per wave, get sent out, and walk around for 10 minutes: no crash
  • Return Home after a long session of possessing: no crash on the new map

Note: How it was tested: in an x86 emulator on the client's own code (1, 6 and 12 hours of backlog at a map change, 0 stray writes afterwards), and in game (22 map changes during floods, client still running after 15 minutes).