Resource icon

Discovery Lens 1.1.0

wltk

Chieftain
Joined
Feb 10, 2025
Messages
43
A very simple QoL mod. Highlight the plots with discoveries when a scout is selected or via lens options above mini-map.

20250210114154_1.jpg


Download here: https://forums.civfanatics.com/resources/discovery-lens.31872/

Extract it and put it under:
Code:
C:\Users\{YOUR_USERNAME}\AppData\Local\Firaxis Games\Sid Meier's Civilization VII\Mods\
 
@wltk Is there a git repo or something to submit pull requests? The modinfo needs a bit more to it to use the custom localization tag (The UpdateText node), I'm guessing it would also need another Item for the Simplified Chinese localization file as well

XML:
    <ActionGroups>
        <ActionGroup id="game-discovery-lens" scope="game" criteria="always">
            <Actions>
                <UpdateText>
                    <Item>text/en_us/ModuleText.xml</Item>
                </UpdateText>
 
A very simple QoL mod. Highlight the plots with discoveries when a scout is selected or via lens options above mini-map.

View attachment 719048

Download here: https://forums.civfanatics.com/resources/discovery-lens.31872/

Extract it and put it under:
Code:
C:\Users\{YOUR_USERNAME}\AppData\Local\Firaxis Games\Sid Meier's Civilization VII\Mods\
I have placed the mod in the correct folder, but it does not appear in the Mods window of the game. Sukitracts Simple UI mod does, but this one does not. I tried removing all other mods from the folder path, but still do not see this one. What is the issue?

EDIT: I resolved the issue myself. The folder path within this mod prevents the game from recognizing it as a MOD. I moved the core files from the modules folder, then deleted the modules folder. It now appears in the "Additional Content | Mods" section of the game.
 
Last edited:
a small update to highlight Nature Wonder in another color.. haha. hope it can be added into this tool as well.

JavaScript:
const WONDER_COLOR = HexToFloat4(0x1E6FE1, .6); 

 applyLayer() {
        this.clearOverlay();
        const width = GameplayMap.getGridWidth();
        const height = GameplayMap.getGridHeight();
        for (let x = 0; x < width; x++) {
            for (let y = 0; y < height; y++) {
                if (this.hasDiscovery(x, y)) {
                    this.discoveryPlots.push({x, y});
                }
                if (GameplayMap.isNaturalWonder(x, y)) {
                    this.natureWonder.push({x, y});
                }
            }
        }
        this.discoveryOverlay.addPlots(this.discoveryPlots, { fillColor: DISCOVERY_COLOR });
        this.discoveryOverlay.addPlots(this.natureWonder, { fillColor: WONDER_COLOR });
    }
    removeLayer() {
        this.clearOverlay();
    }
 
It seems this lens turns on the hex grid always, is there a way to avoid this / edit it out manually ? Just can't stand the look.
 
Is it possible to create a lens for natural wonders? I’ve skipped right by natural wonders I’ve discovered too many times because the video doesn’t play
 
the lens disappear with other lens of mod, like trade lens search lens
Remove Moxl Map Search from your mods folder. That one is not updated (yet) and will disable all updated lens mods if used. Remove it for now and your other lenses will work again.
 
I love this mod and wouldn't play without it.
Suggestion: Similar to how the goodie huts highlight with the scout is selected, when the unit Sappfo is selected, can you light up the tile with an open great work slot? Thanks!
 
Back
Top Bottom