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: Difference between revisions

From the OpenFront Wiki Project
miraheze>Lavodan
Update with new values, gold and spawn chance formulas, and trivia
 
m 1 revision imported: Port from openfront.miraheze.org
(No difference)

Revision as of 14:09, 17 November 2025

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 units, with each individual railroad connection having a maximum distance of 120 units.

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 50,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