[2.0] Map and zoom functionality

Place to get help with not working mods / modding interface.
User avatar
_Attila_
Long Handed Inserter
Long Handed Inserter
Posts: 76
Joined: Sun Jan 06, 2019 2:46 pm
Contact:

[2.0] Map and zoom functionality

Post by _Attila_ »

It seems that major changes were made to how the map and zoom setting are now set and applied.

Zoom mods used to rely on player.zoom_to_world, player.open_map and player.close_map. These no longer exist and it is not at all clear how to convert such mods to use the player.setcontroller function.

What is the equivalent of these functions in 2.0?
How is zoom level set now in remote view?

I can call player.setcontroller with type = defines.controllers.remote and it enters a new map mode, but I can't find an elegant way to exit this map mode.

Can we please get some clarity on how to re-implement zoom and map features that used to work just fine in 1.0?
Attila's QuickBar Mod - Auto-links hand crafted item to first free quickbar slot if not already linked.
Attila's Signals Mod - Alternate signals to use in same circuit as standard signals.
Attila's Zoom Mod - Modifies zoom functionality.
User avatar
Dixi
Fast Inserter
Fast Inserter
Posts: 210
Joined: Sat Nov 04, 2017 1:47 pm
Contact:

Re: [2.0] Map and zoom functionality

Post by Dixi »

Currently it's most wanted feature - to make map working as in 1.xx, without forcing player to scroll zoom out after opening map every time!
So please, make a mod public, as soon as you manage to find the solution.
User avatar
_Attila_
Long Handed Inserter
Long Handed Inserter
Posts: 76
Joined: Sun Jan 06, 2019 2:46 pm
Contact:

Re: [2.0] Map and zoom functionality

Post by _Attila_ »

Can someone answer this please?
Attila's QuickBar Mod - Auto-links hand crafted item to first free quickbar slot if not already linked.
Attila's Signals Mod - Alternate signals to use in same circuit as standard signals.
Attila's Zoom Mod - Modifies zoom functionality.
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 446
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: [2.0] Map and zoom functionality

Post by Stringweasel »

You can go into remote view and back by setting the player controller.

Related to zoom: viewtopic.php?p=662115#p662115
Alt-F4 Author | Factorio Modder
Probably known for: (Configurable) Valves | Better Victory Screen | Space Spidertron | Fluidic Power
Official Contributor to Space Exploration
Post Reply

Return to “Modding help”