UEWASM aims to statically recompile Unreal Engine 3, 4, and 5 games into WebAssembly
UEWASM recompiles x86 and x64 Unreal Engine 3, 4, and 5 games to WebAssembly via WebGPU and Emscripten, though it remains a work in progress.
UEWASM is a work-in-progress static recompilation tool by T4ctica1YT and zay that turns Windows x86 and x64 games built on Unreal Engine 3, 4, and 5 into WebAssembly builds for the web. It targets PC and web browsers, covering 32-bit Direct3D 9 and 64-bit Direct3D 11 Unreal Engine 3 titles alongside Unreal Engine 4 and 5 games.
The README notes that AI generated most of the project with human oversight and corrections. It does not ship games or built recompilations, so you supply your own copy of a game and keep generated files local.
How UEWASM works
- Loader and linker: The
uewrecomptool parses the game executable and required DLLs into one guest address space, resolves imports, recompiles Microsoft CRT DLLs and game DLLs, unwraps SteamStub executables, and handles 32-bit C++/SEH exception frames and stdcall sizes. - Discovery and lifter:
uewliftcollects functions from.pdata, entry points, exports, code pointers, call targets, and switch tables. It translates x86 and x64 functions into C, mapping SSE up to SSE4.2 to WebAssembly SIMD, using lazy flags and inline caches for indirect calls, and supporting x87 FPU and stdcall/cdecl on 32-bit builds. - Build and runtime:
uewbuildanduewpackcompile C and the runtime with Emscripten, split game assets for static hosts, and output a web page, whileuewserveserves the build and online relay. The runtime handles guest memory, on-demand file loading, Win32/USER32 windowing and input, cooperative green threads via JSPI or multi-core--threads real, D3D9-to-WGSL translation, and DXBC-to-WGSL translation on WebGPU.
Current status and caveats
UEWASM is a WIP project, and the source README mentions a game compatibility table (listing titles like Dishonored and Rocket League) that is cut off in the snippet. To run it, you need your own copy of a supported game, the Python CLI or Tkinter app, and Rust (cargo) to build the rustlift/ tools unless you use a release UEWASM.exe package that includes them. Early AI-assisted recompilers are experimental tools and will not run full game libraries out of the box.