Status
SteamPeaks
ChartsSalesUpcomingPatchesEventsCalculator
New on SteamEvery app, DLC and depot the minute Steam creates itAppsEvery app on Steam, newest change firstPackagesSubs and bundles, and what each containsDepotsDepots, manifests and install sizesTagsSteam's user tags and the games under themDevelopers & publishersCompanies and their cataloguesTechnologiesEngines, SDKs and anti-cheat found in the filesChange historyEvery PICS changelist as it lands
SignalsNineteen readings of the whole catalogueCompareAny games side by sideRecordsAll-time peaks and the days they were setReportsWeekly and monthly write-upsAlerts & newsroomWatch a game, get told when it movesSteam statusIs Steam up, right nowWeb API explorerTry the endpoints in the browser
EventsSteam's own events and the sales calendarCalculatorWhat a Steam account is worth, and its pile of shame
/
Sign in
/
SteamPeaks
The ultimate resource for Steam data.
ExploreChartsSalesSales and festsUpcomingPatchesEventsRecordsTrendingSignals
DatabaseAppsPackagesDepotsTagsDevelopersTechnologiesChange history
ToolsCalculatorCompareSearchAlertsSteam statusAPI
SiteMethodologyFAQDiscordSupportSign in via Steam
Not affiliated with Valve or Steam. Game names and artwork belong to their owners. All times UTC.
PrivacyCookiesFair useStatus
The Miner Was ReplacedEventsImports And Global Variables
Game update

Imports And Global Variables

The Miner Was Replaced · published 21 Jan 2025, 16:27 UTC · build 17080037

All eventsPlayers around this dateRead on Steam

Breaking Changes:
You'll have to change these in your code.

Functions defined in other files (windows in the game) are no longer imported implicitly. You now have to unlock and use explicit import statements like in Python (See the import unlock).

Breaking Changes from older Patches that you might have missed:
-`Items.Bones` has been renamed to `Items.Bone` so all items are singular.
-`Entities.Carrots` has been renamed to `Entities.Carrot` so all entities are singular.
-`Grounds.Turf` has been renamed to `Grounds.Grassland` to make it easier to understand.
-`Items.Water_Tank` has been renamed to `Items.Water` because the tank refill feature has been removed.
-`Unlocks.Benchmark` has been replaced with `Unlocks.Timing`.
-`get_op_count()` has been renamed to `get_tick_count()`.
-`set_farm_size()` has been renamed to `set_world_size()` to be consistent with `get_world_size()`.
-`get_companion()` now returns a tuple of the form (entity, (x, y)) instead of a list.
-`trade()` has been removed from the game.

Global Variabels:
-Scopes and global variable have been changed to work like in Python. This means you can now use the `global` keyword to write to the global scope.
-There is now an error for using a local variable before it was assigned locally even if there is a global variable with the same name.
-The shadowing error messages have been removed.

Imports:
The old import system automatically imported all functions from all files. This had the big disadvantage that global variables from other files could not be imported and were therefore inaccessible.
The new import system is a slightly simplified version of how imports work in Python. You can import a module using the `import file` or `from file import *` syntax.

Other Changes:
-Added `str()` function.
-Added destructuring support in for loops.
-Various docs changes.
-Fixed passing functions into simulations.
-Fixed using `in` and `not in` with functions.
-Fixed set function allowing lists as keys.

More from The Miner Was Replaced

Other announcements

All events
Community25 Jun 2026The Miner Was Replaced – Work in Progress VideoHey folks, We are busy working on the new mining DLC . Since the mining is already looking quite nice, we thought we would share a short video showing a early work in progress of the new mining mechanic: If you would like to see a higher-quality version of this GIF that hasn't been sped up, you can find one here . We're currently working on a prototype of the mining gameplay and can't wait to s…The Miner Was ReplacedGame update21 Apr 2026Hotfix for the mac keybindsFixed the bug that reassigned cmd + f to just f and caused the search function to pop up everytime you press f.In-game event13 Apr 2026The Typer Was Replaced, Tap Tap Loot Release and ImprovementsHey everyone 👋 I’ve got something fun to share today. A few months ago, we had a fun idea: What if you could use The Farmer Was Replaced to automate another game? Here’s a little experiment we did on that: Together with the creators of the typing games Tap Tap Loot (which officially releases today 🎉) and Bongo Cat we built an integration to automate their games. Now, you can automate your typ…