Skip to content

About

PvZ2 AltVerZ natively on iPhone, iPad and Mac. No jailbreak, no JIT, no emulator. Early builds.

Resources

Contributing

Stars

9 stars

Watchers

0 watching

Forks

Repository files navigation

AltVerZ-Darwin

PvZ2: AltVerZ 1.8.3f natively on iPhone, iPad, Mac and Windows.
No jailbreak, no JIT, no emulator.

The mod's Android code is converted ahead of time into ordinary, signed Apple code (on Windows it runs directly, or is translated for the PC once), so the game runs the way any other app does: full screen, at your display's refresh rate, with sound, saves and the mod's own content built in.

Latest release Downloads Game version iPhone and iPad Mac Windows Stars

Download · Features · Install guide · Build it yourself · How it works


Early build, expect bugs.

Features

  • A real app
    • Full screen, with sound, saves and the mod's own content built in.
    • Leaving the app pauses the game; coming back shows its pause menu.
    • On iPhone and iPad, a swipe from the top or bottom edge needs a second swipe to open Notification Center, Control Center or Home, so a stray swipe doesn't pause the game.
  • Unlocked frame rate
    • The game runs at your display's refresh rate: 120 Hz on ProMotion displays.
    • Turn on Target 60 FPS in the game's own settings for that; with it off, the game runs at 60.
  • Touch, mouse and trackpad work as on Android.
  • Keyboard (Mac, and iPad with a keyboard)
    • 1-4 and Q, W, E, R take the seed packets, S the shovel.
    • Space collects every sun, coin, gem, plant food and sprout drop on the lawn.
    • Tab toggles fast-forward and F picks up plant food.
    • Esc pauses and resumes. The keys rest while the game is paused.
    • On the Mac, Settings (Cmd-,) lets you pick any keys; Keyboard → Show keys in levels (on by default) writes each key at its control's corner in the game's font.
    • On iPad, keys appear after a hardware key press and disappear when the keyboard disconnects.
  • Mac window
    • Shows the selected plant, shovel or plant food at the pointer during a level; turn it off in Keyboard settings.
    • Keeps the game's shape at any size, or, in Settings, adapts to any shape from 4:3 to 21:9.
    • Drawn at the sharpness of the display it is on; Settings can draw it sharper on a display that isn't Retina.
    • Cmd-M and Cmd-H pause the game.
  • Windows
    • One setup for Intel/AMD and ARM PCs. It installs for your account only, with no administrator prompt. The portable zips keep everything, saves included, in the folder you unpack them to.
    • A window you can resize, or full screen (F11 or Alt+Enter); Settings with Ctrl-, or a right-click on the game's taskbar button.
    • The plant you picked follows the pointer, with the same keys and key labels as on the Mac.
  • Updates
    • The Mac app updates itself: it checks once a day and asks before it installs (PvZ2 AltVerZ > Check for Updates…). So does the installed Windows game (Settings > About, or Check for Updates… on its taskbar button); the portable zips don't.
    • iPhone and iPad get updates through AltStore and SideStore with this repository's source.
    • Your saves stay, and a full app needs no second 1.1 GB download.

Install

Every release has these downloads:

File What it is
PvZ2-AltVerZ-<game>-Darwin-<version>-iOS.ipa iPhone and iPad, slim (about 50 MB)
PvZ2-AltVerZ-<game>-Darwin-<version>-iOS-Full.ipa iPhone and iPad, with the game's data inside (about 1.1 GB)
PvZ2-AltVerZ-<game>-Darwin-<version>-Mac.dmg Mac, slim (about 55 MB)
PvZ2-AltVerZ-<game>-Darwin-<version>-Mac-Full.dmg Mac, with the game's data inside
PvZ2-AltVerZ-<game>-Darwin-<version>-Windows-Setup.exe Windows PCs, Intel/AMD and ARM
PvZ2-AltVerZ-<game>-Darwin-<version>-Windows-x64.zip Windows, Intel/AMD, portable (no installer, no updates)
PvZ2-AltVerZ-<game>-Darwin-<version>-Windows-ARM64.zip Windows, ARM (Snapdragon), portable

A slim app downloads the game's data (about 1.1 GB) the first time it opens and checks it, so keep it open on Wi-Fi until the game starts.

iPhone / iPad (iOS 15.5 or later) - install the IPA with SideStore, AltStore, Sideloadly or LiveContainer.

AltStore / SideStore source - add https://raw.githubusercontent.com/oenderg/AltverZ-Darwin/main/altstore/source.json (Sources → +) and install the game from it; new releases then show up as updates.

Mac (Apple silicon, macOS 14 or later) - open the DMG and drag the app onto Applications. The app is not notarized, so the first time macOS refuses to open it: click Done, then in System Settings → Privacy & Security click Open Anyway. After that the app updates itself.

Windows (Windows 10 or 11, 64-bit) - run the setup. It is not signed, so Windows shows "Windows protected your PC" the first time: click More info, then Run anyway. If Windows 11's Smart App Control is on, it blocks every unsigned program with a "Bad Image" error; turn it off in Windows Security → App & browser control → Smart App Control settings. The first start downloads the game's data (1.1 GB). On Intel and AMD PCs it then prepares the game for that PC, once, with a progress window; later starts take seconds. After that the game updates itself.

Your saves live with the app (on the Mac, in ~/Library/Application Support/PvZ2 AltVerZ; on Windows, in %APPDATA%\PvZ2 AltVerZ). AltVerZ has no Import/Export menu, so to bring a save over from Android, copy pp.dat, pp.dat.bak, local_profiles and global_save_data from Android/data/com.ea.game.pvz2_auz/files/No_Backup/ on the phone into sdcard/Android/data/com.ea.game.pvz2_auz/files/No_Backup/ inside that folder (on iPhone and iPad, inside PvZ2 AltVerZ → data in the Files app), with the app closed.

Build it yourself

You need the PvZ2 AltVerZ 1.8.3f APK from the mod's official download. You don't need the OBB: the build downloads it from the mod's own link by itself and checks it. To use your own copy instead, pass it with --obb (or the workflow's OBB link).

Option A - let GitHub build it (no Mac needed)

  1. Fork this repository.
  2. In your fork, open the Actions tab and enable workflows.
  3. Pick Build → Run workflow, paste a link to the APK (a direct link, Google Drive or MEGA), and start it.
  4. When it finishes (up to an hour), the apps are in your fork's Releases.

Option B - build it on your Mac

Needs Xcode (with its iOS platform) and about 8 GB of free space.

git clone https://github.com/oenderg/AltverZ-Darwin
cd AltverZ-Darwin
./build.sh --profile altverz --apk "AltVerZ_1.8.3f.apk" --slim

The results land in out/. Add --ios or --mac to build just one of them; leave out --slim for apps with the game's data inside (about 1.1 GB more).

Known issues

  • Early build: tested on the Mac, and only lightly on iPhone and iPad so far.
  • Windows: tested in virtual machines on an Apple silicon Mac (Windows 11 on ARM, and the x64 build under its emulation), not yet on a physical PC. The setup is not code-signed, so SmartScreen warns the first time and Smart App Control blocks it (see Install).

How it works

The game's native libraries (libPVZ2, AltVerZ's libSnowie and their helpers) are translated from Android's ELF format into Mach-O dylibs at build time, with the mod's 69 code hooks written straight into the converted code. A small host - built on Husk - provides what Android would have: the JNI calls the game makes, its file system, OpenGL ES through ANGLE over Metal, audio, touch and keyboard input, and the app's lifecycle.

On Windows the same host code runs without the Apple conversion step. ARM PCs run the game's ARM64 code directly, loaded from the APK at start-up. Intel and AMD PCs translate it to x86-64 on the first start with the ScarletNX recompiler and keep the result, and the game draws through ANGLE over Direct3D 11.

Folder What is in it
converter/ ELF → Mach-O conversion and the hook bake
runtime/ the host: Android and JNI environment, graphics, audio, input, iOS, Mac and Windows apps
data/ the mod's recorded hook table, the game version it matches, and the mod profiles
prebuilt/ ANGLE for iOS and the iOS Simulator (rebuild with REBUILD_ANGLE=1 ./build.sh …)
scripts/ downloads, the disk image, the AltStore source, the Mac test runner
docs/ how it works, testing, the game's internals, releasing

More in docs/ARCHITECTURE.md.

Contributing

Fixes and improvements are welcome. CONTRIBUTING.md has the build loop and what a good pull request shows; docs/TESTING.md how to test on a Mac without touching your own game; docs/GAME-NOTES.md what the game does that is not obvious. Coding agents start at AGENTS.md. Found a bug? Open an issue with the app's log.

Thanks

The AltVerZ team for the mod, Husk for the translation layer this is built on, and ANGLE (WebKit and Chromium) for OpenGL ES on Metal.

About

PvZ2 AltVerZ natively on iPhone, iPad and Mac. No jailbreak, no JIT, no emulator. Early builds.

Resources

Contributing

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages