Skip to content

How to apply and revert an .exe patch

Brutus5000 edited this page Jul 15, 2019 · 3 revisions

The ForgedAlliance.exe is patched on each deployment. The base file lies within /opt/faf/data/content/faf/updaterNew/updates_faf_files/ForgedAlliance.exe. To push a new exe with the next release make copy of the current ForgedAlliance.exe and give it a meaningful name (e.g. ForgedAlliance_before_3708.exe). Then override the existing ForgedAlliance.exe with the new version.

A deployment is triggered by a new push on the fa-repo in branch deploy/faf. The creates a webhook message to the API.

To revert the exe change (while keeping the lua update) you can do the following:

  • Revert the base ForgedAlliance.exe to the previous state
  • Edit the table game_featuredMods: Set the column allow_override to 1 for gamemod faf.
  • Go to the fa-repo under Settings->Webhooks and look for the push message with the a payload containing "ref": "refs/heads/deploy/faf". Click on Redeliver and confirm.
  • Revert the change in game_featuredMods (allow_override to 0 for gamemod faf)
Clone this wiki locally