Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Create an account below if you want to be able to make edits.

Factory

From the OpenFront Wiki Project
Revision as of 20:31, 28 April 2026 by Galod (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
File:Factory port trains.png
Factories and ports connected by Railroads with a Train on the tracks

Factories are a Building that allows players to earn Gold by connecting with other non-military buildings.

Mechanics

Factories spawn trains and railroads automatically when two or more connectable buildings have been placed within range on land. The connectable buildings are: Factory, Port, and City, though only Port and City train stations pay out gold. The railroads can currently only travel directly in cardinal directions.

The distance within which a factory and another building can connect in is between 15 and 100 tiles, with each individual railroad connection having a maximum distance of 120 tiles.

Once a train reaches a station that pays out gold, both the station owner and the train owner receive the gold reward (unless a single player owns both, then they will get the reward just once). The amount of gold a train gives upon visiting a station depends on the relationship between train owner and the owner of the territory in which the train station's building is built at:

Gold reward based on relationship
Owner Gold Reward
Allies 35,000
Neutral / Teammates 25,000
Self 10,000
Enemies / Embargoed 0

The probability of a train spawning during every tick is dictated by how many factories the player owns, given by the formula

 spawnChance=1(numFactories+10)*20


This means that the more factories a player owns, the less likely it is each individual one will will spawn a train. The overall chance of a train spawning in your network, however, increases. The expected amount of trains is given by the formula

 expectedOverallSpawnChance=numFactories(numFactories+10)*20


Trivia

The game's code keeps track of how many wagons each train is carrying, with a function for loading cargo, and managing where the locomotive is, but as of writing, there is no known gameplay usage of this data.

See also