Skip to content

Instantly share code, notes, and snippets.

@TheNullicorn
Created August 24, 2025 16:44
Show Gist options
  • Select an option

  • Save TheNullicorn/b8f58d7198115497c70019d2b11ec083 to your computer and use it in GitHub Desktop.

Select an option

Save TheNullicorn/b8f58d7198115497c70019d2b11ec083 to your computer and use it in GitHub Desktop.
Enabling virtual printers in OpenFL PreForm 2.3.3 (Debug Mode)

It turns out OpenFL PreForm 2.3.3 does actually support virtual printers for the Form 1, Form 1+ and Form 2, which allows dumping a print’s .flp files to a local directory.

It is unfortunately disabled in the public build, but it is relatively simple to enable by editing PreForm.exe in a hex editor.

Notes:

  • This is specifically for the OpenFL 2.3.3 release of PreForm for Windows, found on the OpenFL GitHub page
  • Make a backup of PreForm.exe! exe files are extremely sensitive to edits, and if done incorrectly PreForm will crash when opened. If that happens, delete the edited PreForm.exe and replace it with your backup copy with the same name! Alternatively, reinstalling PreForm should overwrite the broken copy
Screenshot of the PreForm Printers menu showing three virtual printers available Screenshot of the PreForm menu bar with an additional Debug tab expanded
  1. Close PreForm if it is open
  2. Navigate to the installation directory for OpenFL PreForm 2.3.3
  3. Make a backup copy of PreForm.exe if you haven’t already!
  4. Open the original PreForm.exe in a hex editor of your choosing
  5. Navigate to 0x342C00. Edit the second byte[*] from 01 to 00 so that the first 8 bytes change like so:
    • B8 01 00 00 00 C3 8D 76 (before)
    • B8 00 00 00 00 C3 8D 76 (after)
    • If you do not see those bytes, you are probably editing the wrong version of PreForm or navigated to the wrong address. If so, stop and do not edit the file
    • [*] For context, the second byte holds the value returned by the function Common::BuildType::isPublic, which for PreForm 2.3.3 must be 0/false in order for virtual printers and other debug features to be enabled
  6. Save and close the file in your hex editor

If done correctly, PreForm should now include a “Debug” tab in the menu bar as well as three virtual printers.

If it did not work or you wish to revert this change, restore the backup copy you made of PreForm.exe, or alternatively reinstall the software from the link found on the OpenFL GitHub page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment