Getting a Game onto Refeint
Which kind of game is it?
It already has OpenFeint
Most iOS games from 2010 to 2012 with leaderboards in an OpenFeint dashboard. One script,
about five minutes. No Mac or Xcode needed.
It had Game Center
No OpenFeint, but Game Center leaderboards or achievements. One script adds OpenFeint and
sends Game Center to this server. No Mac or Xcode needed.
Not sure? Run the script anyway. It tells you if the game has no OpenFeint and changes nothing.
A game that already has OpenFeint
The game keeps its own leaderboards and achievements. Only its server address changes, to
http://refeint.lol:8080/.
- Get a decrypted IPA of the game. App Store copies are encrypted and the script refuses them.
- 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. - Run it:
python3 refeint_patch.py Game.ipa
It writesGame-refeint.ipa(the patched game) andGame-refeint.json(its leaderboards and achievements) next to the original. - Import the game. On My Games, upload
Game-refeint.json. An admin checks each import, because the game brings ids from the original service. - Install the patched game on a jailbroken device with AppSync, for example with
ideviceinstaller -i Game-refeint.ipa. - Start it once. The server sees the game's key for the first time and OpenFeint fails to sign in. That is expected.
- 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 symptom | Meaning |
|---|---|
| "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 claim | The 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.
- 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.
- 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.
- Download
refeint_gc.pyandrefeint_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. - Run it, with the kit in the same folder:
python3 refeint_gc.py Game.ipa my-game.json
It writesGame-refeint.ipa. - Install it on a jailbroken device with AppSync and start it. OpenFeint asks once whether to sign in.
- 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.dyliband is signed again (ad hoc, likeldid -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.plistholds the key, secret and name, andopenfeint_internal_settings.xmlthe server address. - Files outside
Payload/are left out of the new IPA.
If it goes wrong
| Message or symptom | Meaning |
|---|---|
| "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 page | The 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.