Page 1 of 1

[2.0] Map and zoom functionality

Posted: Mon Oct 21, 2024 8:46 pm
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?

Re: [2.0] Map and zoom functionality

Posted: Tue Oct 22, 2024 10:23 am
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.

Re: [2.0] Map and zoom functionality

Posted: Sat Feb 22, 2025 8:17 pm
by _Attila_
Can someone answer this please?

Re: [2.0] Map and zoom functionality

Posted: Sun Feb 23, 2025 10:44 am
by Stringweasel
You can go into remote view and back by setting the player controller.

Related to zoom: viewtopic.php?p=662115#p662115