FFFF GitHub - roge-rm/Interchange: a transport game for Android · GitHub
[go: up one dir, main page]

Skip to content

About

a transport game for Android

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Interchange

Interchange is a transport game for Android 8.1 or newer based on OpenTTD.

Move goods and people by rail, road, water and air. Build your company, upgrade vehicles, lay out railway networks and deal with the weather. Play against computer rivals and other players, or run a company together.

There's a campaign of seven chapters from 1836 on, goals to play for in your own games, and a scenario editor to make your own.

It's at 0.15, playable but still being worked on. Build things, run trains into each other, tell me what works and what doesn't.

Join me in #interchange on my discord to talk about the game or report bugs, or open an issue here.

Enjoy! Dan


Screenshots

Three passenger trains in at Maplewood station in July, the town behind Buses in the snow in Port Albert in March, a train passing through the spruce below An ore train and a passenger train on the curved junction outside Maplewood in October
Airliners on the runway at Saint-Rémi-Sud airport, with Dorval, its buses and the railway beside it, in 1962 A steam train with wooden coaches below Port Albert in 1861, horse wagons on Church Street and a flour mill by the line A diesel passenger train leaving a snowed-in station on the Canadian Shield
Car ferries, lakers and hovercraft on the harbour at Port Albert in 1969, the docks and the town on the shore

What's in it

Six regions: mixed, prairies, Canadian Shield, Rockies, Maritimes and the north. The weather comes from a real town in that region. Towns are named in English or French depending on where they are, and they grow. Snow piles up and drifts, trains get stuck in it, lakes freeze over, the ground heaves in the spring and track washes out. Later on it's warmer than in 1900. The map is drawn on the GPU, so it stays sharp while you pan, zoom and turn it, and the snow comes and goes with the season. Station buildings change through five eras.

Trains have grades and grip, bridges and tunnels, wires, and snow plows for the drifts. They run on smooth curves and slow down for tight bends. Drag along a line to signal it, path signals and presignals, each kind shown by a coloured band on the mast, and turn on the overlay to see what track a train has claimed. Leave the signals out and trains run into each other, as in OpenTTD. You can turn crashes off. Engines and cars from the 1830s on, up to 300 km/h trains. Mix wagons, add locomotives and rearrange a train in its depot, with a cargo choice for each car.

Roads from dirt tracks to highways, one-way roads, trams, buses and trucks. Horse-drawn wagons and coaches early on, winter tires, sand, salt and plows later. Level crossings flash and drop their gates when a train's coming. Don't let traffic queue across them. Canals and locks, ferries, hovercraft, lakers and icebreakers, strips, seaplane bases and airports, and bush planes on floats and skis with the seasons. Aircraft taxi between the runway, stands and hangars, and land into the wind.

Logging camps, farms, mines, mills, oil sands and ports. Loans, subsidies, company value and a league table. Copy, refit and replace vehicles, put them in groups, and let autorenew replace them as they get old. Up to 7 computer companies run buses, trucks and railways. They open routes, give them up, and go under when they can't pay their way. Buy one outright, or pick up one that's in trouble. Name your company and give it an insignia, one of 24 or one you draw, in your company's colour. At the town hall you can advertise, fund new buildings, put up a statue, do road works or buy exclusive rights.

Goals to grow towns, carry cargo and build the company up. The campaign runs from 1836 to 2072, and there's a scenario editor for your own. The chronicle keeps the news, and you can read back through it. Slow the days down, up to 16 times, so vehicles get more done in a year. Vehicles, buildings and industries come from packs, and you can make your own. The spec is in packs/SPEC.md, with a template in packs/template.


Playing together

Everyone plays the same game, so building, vehicles and money are the same on every phone. Start your own company, share one, or watch. Everyone needs the same version of Interchange.

In a game, open the menu, then Multiplayer, then Open to players. You can set a password. The game keeps running in the background, and the notification has a button to stop.

From the title screen, Multiplayer lists the games on your network. Pick one, then start a company, join one or watch. You can also join by address. Packs you don't have are sent when you join. Set a company password in the Players window to keep others out. Chat is the button in the top bar.

Running a server

A dedicated server keeps the game going when everyone leaves. From the repository root, run it with Docker:

cp .env.example .env        # set ADMIN_PASSWORD
docker compose up --build

Players on your network find it by themselves. The admin page is at http://<this machine>:8088. From there you can pause, change the speed, chat, kick, save or start a new game. Settings are in dedicated/README.md.


Installing

Download the signed APK from GitHub releases, or add my F-Droid repo to your F-Droid client and install Interchange from there. Your phone needs OpenGL ES 3.0.

Building it

You need a JDK (21 or newer) and the Android SDK.

./gradlew :app:assembleDebug        # the app
./gradlew :app:assembleFast         # the app, as quick as a release, debug-signed
./gradlew :sim:jvmTest              # the game's tests
./gradlew :dedicated:installDist    # the server, without docker

How it's laid out

sim the game itself: the world, towns, vehicles, weather and rivals, with no screen
server runs a game on its own thread, for hosting and joining
net messages and connections between players
shared the screen, in Compose Multiplatform
app the Android app
dedicated, web-admin, docker the dedicated server and its admin page
packs, packtool the base pack, the pack spec and template, and the tool that checks packs
tools Blender scripts that render the art, and the tool that packs it into sheets

Licence

GPL 3.0. See LICENSE.

About

a transport game for Android

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0