[LuaPlayer] min_zoom / max_zoom

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Sceat
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Jul 22, 2019 6:11 pm
Contact:

[LuaPlayer] min_zoom / max_zoom

Post by Sceat »

Request:

Code: Select all

LuaPlayer.max_zoom --[Write-only]

Code: Select all

LuaPlayer.min_zoom --[Write-only]
Why:

When making a RPG Scenario on a map where the player have to progress and find his way through structures and enemies, the immersion will be enhanced if the player can't see too much of the map

Exemples:

Immersive view with a max zoom limit :
Image

Vanilla view, the player can zoom out as much as he wants:
Image

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [LuaPlayer] min_zoom / max_zoom

Post by eradicator »

Alternatively: If player.zoom was part of the gamestate (and thus readable) this would be trivial to script. And being able to read zoom would generally make interacting with the player view much easier (custom zoom hotkeys, etc).
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
dog80
Filter Inserter
Filter Inserter
Posts: 278
Joined: Thu Dec 08, 2016 11:57 pm
Contact:

Re: [LuaPlayer] min_zoom / max_zoom

Post by dog80 »

there is a debug option in f3? where you can enhance the minimal zoom in factor just fyi, so you can zoom more in :D

User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 438
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [LuaPlayer] min_zoom / max_zoom

Post by raiguard »

Bump. I would also like this. A simple mod to set the lower/upper limits would be way more convenient than Infinizoom's current implementation.
Don't forget, you're here forever.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [LuaPlayer] min_zoom / max_zoom

Post by darkfrei »

Raiguard wrote:
Sun Nov 17, 2019 11:57 pm
Bump. I would also like this. A simple mod to set the lower/upper limits would be way more convenient than Infinizoom's current implementation.
Press F3 and change the setting by min/max zoom. It's not moddable.

Post Reply

Return to “Modding interface requests”