A game that already has OpenFeint

The game keeps its own leaderboards and achievements. Only its server address changes, to http://refeint.lol:8080/.

  1. Get a decrypted IPA of the game. App Store copies are encrypted and the script refuses them.
  2. Download refeint_patch.py (sign in to download it). It needs Python 3.8 or later and nothing else. It reads the IPA and never runs anything from it.
  3. Run it:
    python3 refeint_patch.py Game.ipa
    It writes Game-refeint.ipa (the patched game) and Game-refeint.json (its leaderboards and achievements) next to the original.
  4. Import the game. On My Games, upload Game-refeint.json. An admin checks each import, because the game brings ids from the original service.
  5. Install the patched game on a jailbroken device with AppSync, for example with ideviceinstaller -i Game-refeint.ipa.
  6. Start it once. The server sees the game's key for the first time and OpenFeint fails to sign in. That is expected.
  7. Claim the key. The game's page lists the key under Waiting for first launch. Choose This is my game, then start the game again.

What the script changes

  • The server address in the game's executable. The address may be at most 26 characters, the length of the original; use the IP address if the host name is too long.
  • OpenFeint 2.12 only: its network check always answers "reachable". Otherwise the game stays "logged in, but OFFLINE" when the server is a numeric IP.
  • Files outside Payload/ are left out of the new IPA.

If it goes wrong

Message or symptomMeaning
"the code is encrypted"An App Store copy. Use a decrypted IPA.
"no OpenFeint server address"The game has no OpenFeint 2.x. If it has Game Center, see below.
"at most 26 fit"The server URL is too long. Pass --server with the IP.
No key to claimThe game did not reach the server. Check that the device can open http://refeint.lol:8080/ in Safari, then start the game again.
"already on the server"Someone added this game before you. Ask an admin.

A game that had Game Center

refeint_gc.py adds OpenFeint 2.8 to the game. The game's Game Center calls are answered by OpenFeint instead: its scores and achievements go to http://refeint.lol:8080/, and its Game Center screens open the OpenFeint dashboard. A long press with three fingers opens it anywhere.

  1. Get a decrypted IPA with 32-bit code (armv7 or armv6). OpenFeint 2.8 runs on iOS 4 to 10; a 64-bit-only game cannot load it.
  2. Register the game on My Games under The game has Game Center, with the game's exact bundle id. Learn Game Center ids is on for new games.
  3. Download refeint_gc.py and refeint_gc_kit.zip (sign in to download them), and the game's seed file from its page. Keep the seed file private: it holds the game's secret. The script needs Python 3.8 or later and nothing else; it never runs anything from the IPA.
  4. Run it, with the kit in the same folder:
    python3 refeint_gc.py Game.ipa my-game.json
    It writes Game-refeint.ipa.
  5. Install it on a jailbroken device with AppSync and start it. OpenFeint asks once whether to sign in.
  6. Play. The first score on each Game Center leaderboard, and the first unlock of each achievement, creates it on the game's page, titled after its Game Center id. Rename them there, and give achievements their points.

What the script changes

  • The executable keeps one 32-bit architecture, loads Refeint.dylib and is signed again (ad hoc, like ldid -S) with its own entitlements.
  • The kit's files go into the app: Refeint.dylib (OpenFeint 2.8 and the Game Center bridge) and OpenFeint's images and nibs. refeint.plist holds the key, secret and name, and openfeint_internal_settings.xml the server address.
  • Files outside Payload/ are left out of the new IPA.

If it goes wrong

Message or symptomMeaning
"does not use Game Center"The game does not link GameKit, so this tool cannot add OpenFeint to it.
"already has OpenFeint"Use refeint_patch.py instead (above).
"64-bit only"A newer build of the game. Find an older version with 32-bit code.
"the seed file is for ..."The bundle id on the portal differs from the game's. Fix it on the game's page.
Nothing appears on the game's pageThe game may keep Game Center off until you sign in from its menu, or report nothing until a level ends. Check that Learn Game Center ids is on.

The kit's NOTICE.txt lists the licenses of what it contains. Refeint is not affiliated with Aurora Feint, GREE or Apple.