• 📚 A new project from the admin: Check out PictureBooks.io, an AI storyteller that lets you create personalized picture books for kids in seconds. Give it a try and let me know what you think!
Border Toggles

Border Toggles 4.3

Awesome mod, goes a little goofy from time to time, but it still gets the points across!
With goofy you mean the effect that settlements that change owner still have the old color as city border? Or something else?

Do you think an option could be added to the settings to have it on by default? Always have to turn it on at the start of the game and sometimes again throughout.
I'll consider it, but I don't know when I'll have time to do it. And do you want it enabled only for the default view, or also for certain lenses?

Trade lens could have been useful in the past, to direct your merchant to the closest tile of a city, but with the new trade lens and Send Merchant button that might not be really needed anymore.
Religion lenses from mods might benefit from it, so you know which improvement belongs to which city.
I don't really see the use for the Settler or Continent lens or the other mod lenses I know.

So maybe just the default view and religion lenses?
Edit: or maybe Map Tacks as well.
 
Last edited:
Sometimes the border will do weird things like go around a single hex in a territory with the lighter color on the inside. I just tried to check saves for an example image but I can't find one. I'll screen shot it when I see it again.
I'd love a screenshot indeed, and preferably a savefile as well, when you see that happening again. So I can investigate it some more.

I agree entirely with your assessment here. I was talking about default but those are all great points! Missionary and Map Tacs would be great, I think if it's not too much work, might as well have it on trade as well.

I'm not sure of the inner workings but if you have the option to always have it on by default whenever "civ border" is on, it wouldn't hinder anything to just have it show on all lenses that "civ border" is on for by default.
I'll see what I can do about those options for default, trade, map tacks and religion. It's not possible to directly link the city border and civ border, but I think I could make an option that does that.
 
I looked though the saves I had and didn't find it but I've seen it 3 times. I am playing a game right now and it's similar to this but the other times I noticed, it was a full hex. Makes me think maybe it was a fuller overlap of 2 cities or 3 even. This specific tile in the middle is listed as "Rusguniae" on the plot tool tip.
This is weird. It’s too far from the capital south of it, so it’s not even a question to which city it would belong. Can you share a savefile from this? You can either attach it here or send me a PM. And could you share which other mods you use. If you have CivMods you can easily share your profile and send me the link.

I don’t create the border myself with the mod, it’s a game default border, but it looks pretty funky indeed.
 
Sure thing, are you able to send me a DM with how to share a save file? Here is another example that I just found later in that game. That previous tile is still present also and further enclosed, so there are two examples for ya.

This is the list of mods I am using and it also has the link to my CivMods profile: https://forums.civfanatics.com/thre...standable-especially-for-a-new-player.696672/
Your mod list seems fine. I've tried all of those myself at some point and still use most of them. Two of them are somewhat outdated (Polo's and Migdol's) and might need an update (especially Polo's), but they don't touch anything with borders or maps, so they are not an issue here. I've sent you a DM regarding the save files. I'm very curious if I can reproduced this.

I don't think I asked already, but do you still see the same result after saving and reloading? Otherwise a save file from just before it happens might be needed for me to see it.
 
Well bad news, just reloaded the save file I had for you and it isn't there any more. I did noticed that they seemed to go away after the age transition last night. Hmph. I'll DM ya.

Now that they upgraded health bars I was thinking of dropping the Polo Vertical Health Bars anyway. And if Migdol's is getting outdated, I believe Beezany has an alternative, although I haven't tried it with the rest of the mods yet, maybe I'll try it and swap it.

Autosave, I guess? Check the prev folder inside the autosave folder. On age transition, all autosaves are moved to the prev folder and will stay there until your next age transition. I'll check the saves you send by DM tomorrow anyway.

Migdol's could be replaced by either Beezany's Resource Re-sorts, or TBQ's Resource Allocation Improvements. Both are pretty good.
I replace Polo's with nasuellia's, but that is a serious change from default (which I really like, but it's not for everyone). Flag Corps by Beezany is a very good alternative. You can't really go from with anything from Beezany.
 
Finwickle updated Border Toggles with a new update entry:

3.0 Mod options for enabling city borders by default

Added options to enable the city border for the default view, the trade lens, the map tacks mod* and religion lenses from two mods*. For map tacks it's enabled by default.
Also made sure those options will be re-applied after a UI reload, for instance when changing certain graphic options.

You can find the options in Options, Add-ons section, under Finwickle's Mods. The options are not yet localized and will display in English for now. I will update the localization when I can.

[ATTACH...

Read the rest of this update entry...
 
@Somchai2548, @leonardify, @Gusjeon, @Borush96, @Webrok, @F1rstDan, @iBlockZer0: you have kindly provided localization for this in the past. Would you be willing to translate a few new lines of text for me, for the new mod options? I would be really grateful.

These are the lines of English text for the options:
  • City border visible in default view
  • City border visible for trade lens
  • City border visible for map tacks (mod)
  • City border visible for religion lens (mod)
  • Shows the city border in the default view (no lens selected) when loading or starting a game. You can still toggle it manually.
  • Shows the city border when you select a merchant or when you select the trade lens.
  • Shows the city border while placing map tacks with the Detailed Map Tacks mod.
  • Shows the city border with religion lenses from mods when loading or starting a game. You can still toggle it manually.

I'm also still looking for complete localization for German, Japanese, Portuguese and Traditional Chinese 😄
 
ko_KR for option menu.:clap:
@Somchai2548, @leonardify, @Gusjeon, @Borush96, @Webrok, @F1rstDan, @iBlockZer0: you have kindly provided localization for this in the past. Would you be willing to translate a few new lines of text for me, for the new mod options? I would be really grateful.

These are the lines of English text for the options:
  • City border visible in default view
  • City border visible for trade lens
  • City border visible for map tacks (mod)
  • City border visible for religion lens (mod)
  • Shows the city border in the default view (no lens selected) when loading or starting a game. You can still toggle it manually.
  • Shows the city border when you select a merchant or when you select the trade lens.
  • Shows the city border while placing map tacks with the Detailed Map Tacks mod.
  • Shows the city border with religion lenses from mods when loading or starting a game. You can still toggle it manually.

I'm also still looking for complete localization for German, Japanese, Portuguese and Traditional Chinese 😄
 

Attachments

@Somchai2548, @leonardify, @Gusjeon, @Borush96, @Webrok, @F1rstDan, @iBlockZer0: you have kindly provided localization for this in the past. Would you be willing to translate a few new lines of text for me, for the new mod options? I would be really grateful.

These are the lines of English text for the options:
  • City border visible in default view
  • City border visible for trade lens
  • City border visible for map tacks (mod)
  • City border visible for religion lens (mod)
  • Shows the city border in the default view (no lens selected) when loading or starting a game. You can still toggle it manually.
  • Shows the city border when you select a merchant or when you select the trade lens.
  • Shows the city border while placing map tacks with the Detailed Map Tacks mod.
  • Shows the city border with religion lenses from mods when loading or starting a game. You can still toggle it manually.

I'm also still looking for complete localization for German, Japanese, Portuguese and Traditional Chinese 😄
Sure, no problem:
 

Attachments

@BrianKindly: I've been testing and could reproduce the weird issue that the city border is not including all tiles of the settlement.
  • I've seen it happen when an AI player finished production on a tile that unlocked the adjacent tile for the city. The city border did not update to show that, while the civ border did update, thus creating a weird tile that has a border as if it is another settlement on its own. I could reproduce it consistently, by loading the autosave from the previous turn. The weird border would happen every time on the next turn.
  • I've seen it happen both in view and out of view, so it doesn't seem to matter whether you see the border growing or not.
  • I've seen it happening on both the 3rd and 2nd ring.
  • I can imagine these weird single tiles can grow into multiple tiles when continuing playing without reloading, but I didn't get that far.
  • I have not seen it happening to my own tiles, while your screenshots clearly show that you have. When I complete production on a building, or purchased a building, or expanded the border with a growth event, the city border always followed the new tiles. I guess it only happens sometimes, which makes it even harder to understand.
  • Reloading the UI or reloading a save always updates the city border to where it actually should be.
It looks like it's the same issue as the city border color not updating when a settlement changes owner. This border was probably not meant to be shown on the map, or was abandoned during development of the game, and is not updating correctly on changes to the city tiles. It is calculated correctly on a reload, but not always during gameplay.

I'll dive into the code to see if I can find some way to force an update of the city border somehow. That might take a while though. I've updated the mod description page to show this known issue as well.
 
I think that I have fixed the issue of border colors not updating after a settlement changes owner. The game was updating the border itself, but not rethinking the color, so I force it to assign a color on all owner changes now.

I also think/hope I might have fixed the issue of single tiles having weird city borders, as if they are settlements of their own. The game sometimes thinks a tile which was aquired in a settlement, already had a previous owner (no idea why see next post), but then couldn't find the tile in the owned-by-someone list and created a new entry in that list for the non-existing previous owner, resulting in a tile that looks like it is a settlement on its own. I suppress that creation to avoid the game confusing itself.

But this fix needs some more testing before I call it a proper version 4.0. That's why I attached a beta version of the mod to this comment, hoping that some of you will test this and share your findings. This beta version writes a lot of debug info to the UI.log. I will ofcourse remove that for the real version later.

@BrianKindly and @nasuellia: I think you might be interested in this.

Edit: replaced the attached file with version 4.0 beta-3, which writes slightly more debug info to UI.log. No functional change.
Edit: I removed the beta version now that the real 4.0 version is out.
 
Last edited:
I also think/hope I might have fixed the issue of single tiles having weird city borders, as if they are settlements of their own. The game sometimes thinks a tile which was aquired in a settlement, already had a previous owner (no idea why), but then couldn't find the tile in the owned-by-someone list and created a new entry in that list for the non-existing previous owner, resulting in a tile that looks like it is a settlement on its own. I suppress that creation to avoid the game confusing itself.

I now do know what happens. Tiles with discoveries (goody huts) have a special kind of owner internally, as if all the goody huts combined form an empire of their own. When the discovery is cleared by a player, the "Goody Hut Empire" ownership is not completely removed from that tile. When a settlement later expands into that tile, the game finds that the tile has a previous owner, but cannot determine what the owner is and often creates a new border for that single tile, as if it is a settlement on its own. Now it's a mini-empire of sorts. It keeps this status until a reload, at which time the border is calculated from scratch which is much more error-proof.
This is visible in the UI.log when using the 4.0 beta-3 version.

The civ border is calculated completely independent from the city border and does not have this issue.

The 4.0 beta version seems to solve this issue correctly. I'll do some more testing myself and await feedback before publishing a real 4.0 version.
 
Finwickle updated Border Toggles with a new update entry:

4.0 Fixed city border not updating correctly

I fixed the city border not updating to the new color after a settlement changes owner by capture, peace deal or integration.
I also fixed some/most/all (?) cases of single tiles showing their own border instead of being part of the city border for that settlement. I'm not convinced yet that I fixed all possible cases. Therefor this version writes a lot of extra info to the UI.log, which helps me troubleshoot any leftover border mismatches.

If you still find a mismatched border at some...

Read the rest of this update entry...
 
I anyone still spots a mismatched city border like in the screenshots below, I would really appreciate it if you could send me the following, in a direct message or attached to a post here:
  • Screenshot with the mismatched tile
  • UI.log; on Windows you can find it in %localappdata%\Firaxis Games\Sid Meier's Civilization VII\Logs but you'll have to 'zip' it before attaching (right click, send to, zip)
  • savefile from one or two turns before it happened; either a manual save or an autosave, can be attached without zipping
The UI.log now contains a lot of messages from Border Toggles, making it much easier for me to troubleshoot these cases. Because it happens so rarely and because it fixes itself on a reload, it was very hard for me to find these before. A big thanks to @BrianKindly for assisting me before with several savefiles, which allowed me to fix many (I hope!) of these cases in version 4.0.

Somewhere in the future I will update this mod again to remove all or most of the extra logging. But I want to be confident that I've fixed most, or all, of these cases before I do.

Examples of what these mismatched borders look like:
1744659348118.png
1744659434006.png
 
I'm very confident that not every case is solved:
1744744695105.png


The tile to the west was a city center of a captured town I razed, because I wanted to build a town one tile to the east. I'm searching for ways to fix this.
 
Finwickle updated Border Toggles with a new update entry:

4.1 Fixed mismatched single tile city borders for destroyed settlements

I fixed all (?) remaining cases of single tiles showing their own border instead of being part of the city border for that settlement. In 4.0 this could still happen on the tiles where a settlements center once was, either from an independent people or (AI) player settlement that was dispersed or razed during the same game session.

I'll leave the debug logging in for now, in case my all is not truly all. It will be removed in a later version. I'm also looking at a way to simplify the code...

Read the rest of this update entry...
 
Back
Top Bottom