Jump to content

Recommended Posts

Posted

 

LaunchBox Integration Guide (PC, Android & iOS)

I recently came across an interesting Angry Birds engine reimplementation and spent some time getting it properly integrated into LaunchBox. I figured I'd share my setup with the community and hopefully save someone else a few hours of experimentation.

What is Angry Birds PC Engine?

Project repository:
https://github.com/BurnerAccount-dec/linnut1.6.2-decomp

Releases:
https://github.com/BurnerAccount-dec/linnut1.6.2-decomp/releases

Angry Birds PC Engine is an engine reimplementation based on the original Angry Birds 1.6.2 PC release. It has since expanded to support numerous versions of Angry Birds across Windows, Android and iOS.

Rather than requiring separate emulators for each source platform, the engine can run supported games using their original assets, APKs or IPAs.

It also offers features such as level editing, custom content, save states, rewind and graphical enhancements.

Compatibility varies considerably between individual games and revisions, so refer to the project's README for the current compatibility list. You will need to supply your own original game files.

What this guide accomplishes

  • One centralized engine installation.

  • One universal launcher for Windows, Android and iOS releases.

  • Individual game entries in LaunchBox.

  • Automatic bypassing of the mobile package confirmation dialog.

  • ESC-to-exit functionality.

  • Persistent fullscreen configuration.

  • Relocated extraction cache to avoid cluttering the Windows system drive.

  • Prevention of cache conflicts between different versions and source platforms.

  • Preservation of original game packages without modifying their contents.

1. Directory structure

I opted to treat Angry Birds PC Engine as its own dedicated platform in LaunchBox, similar to how someone might organize Doom or other engines that support multiple independently launchable items.

My platform is named Angry Birds Engine.

My directory structure is as follows:

E:\Angry Birds Engine\
├── Sets\
│   ├── Angry Birds 1.0 (iPhone)\
│   │   └── Angry Birds 1.0 (iPhone).ipa
│   ├── Angry Birds 1.3.5 (Android)\
│   │   └── Angry Birds 1.3.5 (Android).apk
│   ├── Angry Birds 2.0.0 (PC)\
│   │   ├── AngryBirds.exe
│   │   └── data\
│   └── ...
└── Tools\
    └── Angry Birds PC Engine\
        ├── AngryBirdsEngine.exe
        ├── Launcher.ahk
        └── Cache\

Obviously, you can adjust the drive letter and directory names to suit your own collection.

I personally extract the engine release into the Tools directory but I add it to launchbox as an emulator so store it where it makes sense to do so, the goal is retaining any additional files supplied with the release.

2. Preparing your games

Windows releases

Windows releases require the original installed or extracted game assets and I had to run the installers in compatibility mode or they hung before initializing installation but otherwise were more or less straight forward.

The engine expects a directory structure containing the following:

AngryBirds.exe
data\
└── scripts\
    └── gamelogic.lua

One more complication with the original Windows installers is that they may refuse to install older versions if a newer version is already registered with Windows so if you have a few install them oldest to newest or rather than repeatedly installing and uninstalling different revisions, I recommend attempting to extract the installers directly using tools such as 7-Zip or Universal Extractor 2. (I Used Universal Extractor 2)

https://github.com/Bioruebe/UniExtract2

Not every installer will extract successfully using the same method, results may vary.

Android and iOS releases

The engine accepts supported APK and IPA packages directly.

Important: Give each package a unique filename that includes its version and source platform.

For example:

Angry Birds 1.0 (iPhone).ipa
Angry Birds 1.0 (Android).apk

I discovered that the engine names its mobile extraction directories based on the package filename, excluding the extension.

Consequently, an APK and IPA with otherwise identical filenames could end up sharing an extraction directory.

Including the original platform in the filename prevents this issue. I simply named each package identically to its parent folder.

This solution has been tested and verified.

3. Universal AutoHotkey launcher

Rather than creating individual BAT files or duplicating the engine for every game, I created a single AutoHotkey v2 wrapper.

AutoHotkey is available here:

https://www.autohotkey.com/

Save the following script as Launcher.ahk alongside AngryBirdsEngine.exe.

#Requires AutoHotkey v2.0
#SingleInstance Force

engine := A_ScriptDir "\AngryBirdsEngine.exe"

if !A_Args.Length {
    MsgBox("No game specified.")
    ExitApp()
}

source := A_Args[1]
SplitPath(source, , &gameDir, &ext)

if DirExist(source)
    gameDir := source

if (ext ~= "i)^(apk|ipa)$") {
    args := '"' source '" --yes'
} else {
    args := '--scripts "' gameDir '\data\scripts"'
          . ' --data "' gameDir '\data"'
}

userData := gameDir "\UserData"

if !DirExist(userData)
    DirCreate(userData)

args .= ' --userdata "' userData '"'

Run('"' engine '" ' args, gameDir, , &gamePID)

ProcessWaitClose(gamePID)
ExitApp()

#HotIf WinActive("ahk_pid " gamePID)
$Esc::WinClose("A")
#HotIf

The wrapper automatically determines whether the supplied game is a Windows release, APK or IPA.

For Windows games, it passes the appropriate .exe to the engine.

For mobile games, it passes the original package along with the --yes argument, which bypasses a confirmation dialog and launches the game without replacing the original package.

The wrapper also requests a local UserData directory for each game and implements process-specific ESC-to-exit functionality.

The wrapper remains active until the engine exits and then terminates itself.

I have successfully tested this general launch method with all three source platforms.

4. Testing outside LaunchBox

Before configuring LaunchBox, you can test the wrapper directly from CMD.

Windows

"E:\Angry Birds Engine\Tools\Angry Birds PC Engine\Launcher.ahk" "E:\Angry Birds Engine\Sets\Angry Birds 2.0.0 (PC)\AngryBirds.exe"

Android

"E:\Angry Birds Engine\Tools\Angry Birds PC Engine\Launcher.ahk" "E:\Angry Birds Engine\Sets\Angry Birds 1.3.5 (Android)\Angry Birds 1.3.5 (Android).apk"

iOS

"E:\Angry Birds Engine\Tools\Angry Birds PC Engine\Launcher.ahk" "E:\Angry Birds Engine\Sets\Angry Birds 1.0 (iPhone)\Angry Birds 1.0 (iPhone).ipa"

Adjust the filenames and paths to match your own collection.

5. Relocating the extraction cache

By default, the engine extracts mobile game assets into:

%LOCALAPPDATA%\AngryBirdsEngine\apk

I prefer keeping everything associated with a platform within its own directory rather than accumulating game assets on my Windows system drive.

This can be accomplished using a directory junction.

First, launch at least one mobile game to generate the cache, then completely close the engine.

Move the entire following directory:

%LOCALAPPDATA%\AngryBirdsEngine

To:

E:\Angry Birds Engine\Tools\Angry Birds PC Engine\   (or whatever path you use)

Rename the moved directory to Cache.

Make sure the original AngryBirdsEngine directory no longer exists in LocalAppData before proceeding.

Open CMD and run:

mklink /J "%LOCALAPPDATA%\AngryBirdsEngine" "E:\Angry Birds Engine\Tools\Angry Birds PC Engine\Cache"

If successful, Windows will report that the junction has been created.

The engine will continue accessing its expected LocalAppData location, but the actual files will reside within your Angry Birds Engine directory.

This has been tested and verified.

Keep in mind that the junction must be recreated if you migrate the collection to another Windows installation or change its physical location.

6. Fullscreen configuration

The engine supports Alt+Enter to toggle fullscreen. However, I do not recommend automating this through AutoHotkey.

I originally attempted this and encountered two problems:

  • The command would occasionally reach the engine's console window before the game window initialized, causing the console to enter fullscreen instead.

  • Games that were already configured for fullscreen would toggle back into windowed mode. Repeated launches would alternate between fullscreen and windowed mode. 😅

The much more elegant solution is to configure fullscreen through each game's config.lua.

For mobile games, launch each game at least once to generate its extraction directory and configuration file.

With the junction configured, these directories can be found under:

E:\Angry Birds Engine\Tools\Angry Birds PC Engine\Cache\apk\   (Or whatever path you use)

Locate the appropriate game's config.lua and change its fullscreen setting to true.

For Windows releases, locate the corresponding configuration file within the game's assets.

Once configured, the engine handles fullscreen natively without requiring additional automation or startup delays.

7. LaunchBox emulator configuration

Navigate to:

Tools → Manage → Emulators → Add

Use the following settings:

Setting Value
Emulator Name Angry Birds PC Engine
Application Path E:\Angry Birds Engine\Tools\Angry Birds PC Engine\Launcher.ahk
Default Command-Line Parameters Blank
Don't Use Quotes Unchecked
Use Filename Only Unchecked
Remove File Extension Unchecked
Extract ROM Archives Before Running Unchecked

The wrapper requires the complete, quoted path to the original game file, including its extension.

Under Associated Platforms:

Setting Value
Associated Platform Angry Birds Engine
Default Parameters Blank
Default Emulator Checked

No additional running or exit AutoHotkey scripts are necessary. The wrapper handles ESC-to-exit independently.

8. Importing games

Import the games using the ROM import wizard.

For Windows games, import the original game executable.

For Android games, import the APK.

For iOS games, import the IPA.

Do not indiscriminately import every file within the Windows game directories, as they contain numerous individual assets.

My recommended import settings are:

  • Platform: Angry Birds Engine

  • Scrape As: Windows

  • Emulator: Angry Birds PC Engine

  • Use files in their current location

  • Force importing duplicate games: Enabled

  • Combine matching games into a single game: Disabled

I prefer retaining individual revisions until I've determined their compatibility and whether they contain materially different playable content. They can always be combined as Additional Versions afterward.

9. Compatibility observations

The developer maintains a compatibility table in the repository README.

However, I also experimented with several unlisted releases to determine whether the engine could potentially run games beyond those explicitly documented.

The engine does attempt to load unlisted packages, but that does not necessarily mean they are compatible.

Here are a few observations from my testing:

Game Result
Angry Birds 1.0 (iPhone) Launches successfully
Angry Birds 1.3.5 (Android) Launches successfully
Angry Birds 2.0.0 (PC) Main menu and editor work; gameplay hangs at episode selection in my testing
Angry Birds Transformers 1.5.15 Fails due to missing gamelogic.lua
Angry Birds Coca-Cola Fails due to unrecognized asset directory structure
Angry Birds Cheetos 2 Fails due to unrecognized asset directory structure

Interestingly, Angry Birds 2.0.0 for PC is listed as playable in the project's compatibility table. My particular copy encounters a Lua scripting error when pressing Play, although the editor works.

The promotional releases may require additional asset-loading support, while other games may require more substantial engine development. I haven't investigated those possibilities further.

These observations are specific to my testing and should not be considered definitive compatibility assessments.

10. Adding future releases

Once the infrastructure is established, adding another supported game is relatively straightforward:

  1. Create an individual game directory.

  2. Add the original game assets or package.

  3. Include the source platform and version in mobile package filenames.

  4. Launch the game once to generate its configuration.

  5. Enable fullscreen in config.lua.

  6. Import the game into LaunchBox.

  7. Validate gameplay.

No additional wrappers or engine installations should be necessary.

Final thoughts

I'm particularly excited about this project because it provides another avenue for preserving older mobile games, especially titles that are completely delisted or no longer readily playable on modern devices.

Having Windows, Android and iOS releases accessible through a single engine and a unified LaunchBox platform is pretty neat.

The centralized engine, universal wrapper, fullscreen configuration, ESC-to-exit, cache relocation and LaunchBox integration have all been successfully tested on my setup. Individual gameplay compatibility and complete save-data portability still require further validation.

Hopefully this helps anyone else interested in integrating yet another platform into their collection.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...