Skip to content
Stiven-GjekajPublic

About

A demake of GANGFORT for the jailbroken iPhone 4S on iOS 6. Native C and OpenGL ES 2.0, offline matches against bots. It reads the assets from your own copy of GANGFORT.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

175 Commits

Folders and files

Repository files navigation

FortOS

A demake of GANGFORT for the iPhone 4S on iOS 6

Native C and OpenGL ES 2.0, offline matches against bots, your own copy of the game

iOS 6 armv7 C OpenGL ES 2.0 Cydia MIT licence Release Ko-fi

Overview | GANGFORT.apk | Install | Build | Decisions | Roadmap


Note

Version 1.0.0 is out. Play single player against the bots of GANGFORT on the three maps: King of the Hill, the bomb, and capture the flag. FortOS has the nine classes, the menus, the 34 hats and 5 store weapons, the sounds, and the effects of the original, at 60 frames each second on the iPhone 4S with 12 players. TODO.md lists the roadmap. CHANGELOG.md lists the changes of each release.

Important

This is a fan project. It is not from the makers of GANGFORT. The repository and the .deb hold no file of GANGFORT. You need your own copy.


The blue soldier with a rocket launcher on a slope. The dead red scout lies below, beside the sawngun it dropped. The kill feed shows the rocket icon.

A kill

The spawn room of the blue team on a rock in bomb_canyon, with the two touch sticks

bomb_canyon

A blue builder beside its sentry, which shoots at a red heavy on gantown

A sentry

The scope of the sniper rifle: the map is blurred, except a cone in front of the rifle, with the aim line and the power

The scope of the sniper rifle

The blue spawn room in the pyramid of flag_egypt, between two spawn doors

flag_egypt

A red soldier beside the bomb gate on bomb_canyon. The bomb rolls to the right, and the round timer of 6:45 is at the top

The bomb

A red soldier carries the blue flag in the pyramid of flag_egypt. The HUD at the top shows 0/4 captures for each team and an arrow to each flag

Capture the flag

The round-over dialog: blue team wins, the top 3 scores of each team, and the classes that run on the bottom bar

The end of a round

Bots of both teams fight on the hill of gts_gantown, with the RED timer at 2:47

The bots on the hill

The class dialog: the nine characters in blue, the rusher selected, and its three lines of information

The class dialog

The team dialog: a poster that says select your team, and a blue door and a red door with the number of players

The team dialog

The kill cam: the frame stops on a fight on gts_gantown, with bodies, shots, and the respawn text

The kill cam

The main menu: single player, items, and credits, the yash with his grenade launcher, and the settings button

The main menu

The item screen of the marine: a list of hats, the santa hat on the marine, and its title and description

The items of a class

Overview

FortOS plays GANGFORT on an iPhone 4S with iOS 6.1.3. GANGFORT itself does not run on iOS 6. FortOS is a new engine in C, with the rules of GANGFORT 2.1.

GANGFORT has a single player mode against bots. FortOS ports it: the local game server, the bots, their paths on each map, the 9 classes, the weapons, and the 3 game modes. The rules come from the code of the Android APK of GANGFORT 2.1. FortOS has no network code.

The app reads the art, the maps, the fonts, the text, and the sounds from the APK of your own copy. It holds no file of GANGFORT.

You need a copy of GANGFORT

The art, the sounds, the maps, and the text of GANGFORT belong to their owners. FortOS reads them from the APK of GANGFORT 2.1 for Android.

  1. Get the APK of your copy of GANGFORT 2.1.
  2. Copy it to /var/mobile/Media/FortOS/GANGFORT.apk on the phone, with an AFC tool or with scp.

On its first start, the app decodes the textures and keeps them in /var/mobile/Media/FortOS/cache/.

Install

You need an iPhone, iPod touch, or iPad with iOS 6 and a jailbreak.

  1. Download the .deb file from the latest release.
  2. Copy it to the phone, for example with scp to /tmp/.
  3. On the phone, as root: dpkg -i /tmp/io.github.stivengjekaj.fortos_*.deb.

The FortOS icon comes on the home screen. To remove the app: dpkg -r io.github.stivengjekaj.fortos.

On iOS 7 or later, or with an APT that has TLS 1.2, you can also add the Cydia source https://stiven-gjekaj.github.io/cydia/. Cydia on iOS 6 cannot read it, because its APT stops at TLS 1.0 and GitHub accepts only TLS 1.2. See the repository.

Build

You need a Mac with Xcode and the iOS 9.3 SDK of Theos.

  1. Download iPhoneOS9.3.sdk.tar.xz from the releases of theos/sdks and unpack it into sdks/. The result is sdks/iPhoneOS9.3.sdk. Git does not track sdks/.
  2. Run ./fix-sdk.sh one time. It changes the SDK stubs for the new Apple linker and for iOS 6.
  3. Build:
Command Result
scripts/app.sh build/FortOS.app
scripts/deb.sh The Cydia package in build/
scripts/test.sh The tests, on the Mac
scripts/test.sh --phone The tests, on the phone
scripts/install.sh Builds the app, copies it to the phone, and opens it
scripts/install.sh --debug The same, with the debug commands of src/game/fo_debug.c
scripts/tap.sh Sends debug commands, as "tap X Y", to a debug build
scripts/shot.sh Saves a screenshot of the phone
scripts/release.sh Tests, packs, tags, and publishes a release
python3 tools/logo.py The logo and the icons of the app

The phone scripts use ssh iphone4s. Set up that host in ~/.ssh/config, for example with a USB tunnel of iproxy on port 2222. scripts/install.sh copies the APK in reference/ to the phone, or the APK in GANGFORT_APK.

build.sh builds one armv7 binary. It compiles with ARC and links without ARC, and all code is in ARM mode (-marm). The new Apple linker makes Thumb code that crashes on iOS 6 before main starts.

Support

If you find FortOS useful, you can support its development here.

ko-fi

Licence

The code is under the MIT licence. See LICENSE. GANGFORT and its art, sounds, maps, and text belong to their owners.

About

A demake of GANGFORT for the jailbroken iPhone 4S on iOS 6. Native C and OpenGL ES 2.0, offline matches against bots. It reads the assets from your own copy of GANGFORT.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages