SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Factorio

Zooming Reinvented

KBy kuxynator

This mod allows to heavily customise the zooming behaviour, in particular it allows to: - change how far you can zoom out (and still see the world) - change how aggressive the zooming is (equivalent to changing mouse wheel sensitivity) - change at what position and zoom level the map opens - zoom in or out instantly with a single key stroke

Zooming Reinvented

Description

Factorio-Zooming-Reinvented

Successor for 2.0

For Factorio 2.0, please use the successor Kuxynator's Zooming Reinvented Running, which not only includes the same features, but expands them with even more functionality.

Rewrite Version 1.x

  • The main reason was the zoom in the map view.

Now it does not jump back to the player position any more. Unfortunately this had to be paid with a compromise, the zoom behaviour is now like in the original game. The zoom sensitivity cannot be changed and is fixed at 1.25. The zoom limit are the limits from the game.

  • In world view the Zoom sensitivity can be set and the minimum and maximum zoom factor can be configured.

I will test the new behavior a while and then implement some new (resp. changed) features.

  • restore last used zoomfactor in worl or map view optional
  • shortcuts to zoom out to speciefic zoomlevels
  • larger zoom steps in map view (but only on players position, thrue restrictions of the modding API)
  • wider zoom limits (with the compromis, this works only at players position)

Remote interface for mod developer (v1.2.0)

Interface: "Kux-Zooming"

  • getZoomFactor(playerIndex)

Gets the current zoom factor of the specified player index

  • onZoomFactorChanged_add(interfaceName, functionName)
  • interfaceName: the name of your interface
  • functionName: the name of your function

Adds an callback which is called when any players zoom factor has changed

  • onZoomFactorChanged_remove(interfaceName, functionName)

Removes the callback

Example:

local kuxZoomingCallback = {
	onZoomFactorChanged = function(event)
		game.players[event.playerIndex].print(event.zoomFactor..", "..event.renderMode)
	end,	
}
remote.register("MyMod_kuxZoomingCallback", kuxZoomingCallback)
remote.call("Kux-Zooming","onZoomFactorChanged_add", "MyMod_kuxZoomingCallback", "onZoomFactorChanged")

Republished Version 1.0.0

republished for Factorio 1.0

All credits to jarcionek and his mod Zooming Reinvented

Following the original mod description

Short description

This mod allows to heavily customise the zooming behaviour, in particular it allows to:

  • change how far you can zoom out (and still see the world)
  • change how aggressive the zooming is (equivalent to changing mouse wheel sensitivity)
  • change at what position and zoom level the map opens
  • zoom in or out instantly with a single key stroke (or mouse wheel move)

See homepage/mod portal/readme for a full explanation of how this mod works. Please report any bugs and usability issues you find to help make this mod better - your feedback is much appreciated.

How is this mod different from other mods that allow to zoom out farther than the base game?

This mod replaces the base game's zooming behaviour to make the user experience as natural as possible (given the severe restrictions of the modding API). There is no extra GUI buttons, there is no extra keyboard shortcuts, and it doesn't require the map to be closed - there is just the mouse wheel that you are already used to. Also, this mod does much better job at preventing the sudden zoom level changes when using different controls. Finally, this mod adds a lot of customisable settings so you can tailor them to your needs.

Controls

Controls

This mod changes the behaviour of the following game controls:

  • Zoom in - disabled (using control assigned to it will be ignored)
  • Zoom out - disabled (using control assigned to it will be ignored)
  • Alternative zoom in - overridden, with the exception of the map view (see known issues below)
  • Alternative zoom out - overridden
  • Toggle world map - overridden

Furthermore, it adds the following controls:

  • Quick zoom in - opens a map in the 'zoom to world' view, fully zoomed out, at the last known map position. This can be used to:
  1. Zoom back in to the world after you accidentally zoomed out too much and got switched to the map view.
  2. Reopen a map at the last known map position after you closed it.
  3. Zoom out fully if you are already in 'zoom to world' view. Additionally, if you select an object in the world by hovering over it, the map will get centered on this object.
  • Quick zoom out - opens a map in the map view at the configured zoom level at the centre of the map

Finally, it adds a Binoculars item to allow to quickly zoom in to world from the map. See known issues below for an explanation why this item exists at all.

Binoculars

Customisation

Mod settings
  • Zoom sensitivity - defines how big is the change when zooming in or out. Doesn't apply to zooming in on the map (unless in 'zoom to world' view). The current zoom level will be multiplied or divided by this value when you zoom in or out. Base game's value is about 1.1 when the map is closed and about 1.25 when the map is open (regardless of whether it is in the 'zoom to world' view or in the map view).
  • Max world zoom out level - defines how far you can zoom out and still see the world. In the player view it defines maximum zoom out, in the map it defines when the 'zoom to world' view switches back to the map view. Base game's value is about 0.4.
  • Default map zoom level - defines at what zoom level the map opens. Base game's value is about 0.0313. Note that map labels disappear at zoom level below 0.0157.
Read the full description on Factorio Mod Portal →

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.