F1rstDan's Cool UI

F1rstDan's Cool UI 1.9.1

I might have found a bug with the last version: the numbers say NaN at the top of the production panel of any city if I check the mod option "Simplified display of income values":
View attachment 725871
What language do you use to play the game? I need to test it.
请问你使用什么语言游玩游戏?我需要测试一下
 
You can try updating the graphics card driver, which seems to be some kind of rendering error.
可以尝试更新显卡驱动,这似乎是某种渲染错误
I did update the drivers, however I doubt this is related because the same issue is present on a completely different PC (different person who uses you mod).
I tried to change some graphics settings, but no luck.
The issue seem to be present on 10920x1080 and 2560×1440 resolutions
 
F1rstDan updated F1rstDan's Cool UI ("Quick Buy Button" added!) with a new update entry:

Fixed NaN errors

Version: 1.7.1 (2025-03-19)
  • Fixed NaN errors when using simplified number formatting in locales that use commas as decimal points (e.g., French, Russian).(Feedback from @Sébi11 )
  • Improved clarity of maintenance fee display.
======================
## 版本:1.7.1 (2025-03-19)
- 针对法语、俄语等以逗号作为小数点的语言环境,修复在启用简化数值功能时出现 NaN 错误的问题。(来自 @Sébi11 的反馈)
- 提升维护费显示的清晰度。

Read the rest of this update entry...
 
I play in French!
Thanks for the feedback, it has been fixed, please download the latest version.
谢谢反馈,已经修复,请下载最新版
 
I did update the drivers, however I doubt this is related because the same issue is present on a completely different PC (different person who uses you mod).
I tried to change some graphics settings, but no luck.
The issue seem to be present on 10920x1080 and 2560×1440 resolutions
I use a resolution of 2560×1440 when I play daily, and I just tested a resolution of 1920×1080. Under these two common resolutions, I failed to reproduce the problem. At present, it is difficult to troubleshoot and solve the problem, and we need to further find other ideas and methods.
====================================
我日常游玩时使用的是2560×1440分辨率,刚刚又专门测试了1920×1080分辨率,在这两种常见分辨率下,都未能重现该问题。目前来看,问题的排查与解决难度较大,还需要进一步寻找其他思路和方法 。
 
thank you for your work in making this mod fully compatible with City Hall! i just checked all of my test cases with Repairs, and everything worked flawlessly. i've previously looked at doing this from my side and couldn't get everything to work as smoothly as you did. great job!
 
thank you for your work in making this mod fully compatible with City Hall! i just checked all of my test cases with Repairs, and everything worked flawlessly. i've previously looked at doing this from my side and couldn't get everything to work as smoothly as you did. great job!
In the process of learning to modify mods non-invasively, you just released the mod options tutorial. This tutorial brings hope for me to achieve greater compatibility, and as a result, I am fully committed to working towards this goal.
==========
当我学习非侵入式修改mod的过程中,刚好你发布了mod选项教程。这一教程为我实现更高的兼容性带来了希望,也因此,我全力以赴地朝着这个目标努力迈进 。
 
F1rstDan updated F1rstDan's Cool UI ("Quick Buy Button" added!) with a new update entry:

Version: 1.7.2 (2025-03-20)

Version: 1.7.2 (2025-03-20)​

  • CityYieldsBar Tooltips to increase data sources to avoid certain situations where technical values (or others) do not display data.
  • CityYieldsBar Tooltips expands more data when there is only one "revenue" tier

版本:1.7.2 (2025-03-20)​

  • CityYieldsBar Tooltips 增加数据来源,避免某些情况科技值(或其他)没有数据显示。
  • CityYieldsBar Tooltips 在只有一个“收入”一级数据时,会展开更多数据

Read the rest of this update entry...
 
I found a bug in connected settlements for a special case. The number shown is not equal to the settlements in the list (see screenshots below). I think the number might still include a third town that was in between them, but which I razed. Or the two towns are connected to each other (there are 10 tiles with roads between them), but somehow don't show in the list. On the last screenshots all towns are visible. The razed town was were the archer is standing on the road. Ending the turn a few times still gives the same result. Saving and loading doesn't help either.
The game itself doesn't show this information, so it's hard to check for me what is correct. The City Hall mod doesn't show a number, but shows the same connected settlements as your mod (two for Risila, none for Chalkís).

Edit: when I used a merchant to connected Chalkís with my capital to the west, the number stayed at 1 and is now again correct and equal to the listed connections. Risila is still incorrectly showing 3.

1742588181359.png
1742588150899.png


1742588376037.png
 
Last edited:
I found a bug in connected settlements for a special case. The number shown is not equal to the settlements in the list (see screenshots below). I think the number might still include a third town that was in between them, but which I razed. Or the two towns are connected to each other (there are 10 tiles with roads between them), but somehow don't show in the list. On the last screenshots all towns are visible. The razed town was were the archer is standing on the road. Ending the turn a few times still gives the same result. Saving and loading doesn't help either.
The game itself doesn't show this information, so it's hard to check for me what is correct. The City Hall mod doesn't show a number, but shows the same connected settlements as your mod (two for Risila, none for Chalkís).

Edit: when I used a merchant to connected Chalkís with my capital to the west, the number stayed at 1 and is now again correct and equal to the listed connections. Risila is still incorrectly showing 3.

View attachment 726283 View attachment 726282

View attachment 726284
Thank you for your detailed and clear feedback report. I will carefully check the code logic in it.
---
The problem is to use "connectedCities.length" directly. The burned cities still retain their IDs, but the data is empty. Originally, subsequent calculations would exclude these cities, but the number of connections was ignored.
A simple fix is enough, and the next version will be updated.

感谢您详尽清晰的反馈报告,我会仔细核查其中的代码逻辑。
---
问题在于直接使用“connectedCities.length”。烧掉的城市仍保留ID,但数据为空。原本后续计算会将这些城市排除,然而却忽略了这个连接数。
简单修复即可,下个版本更新。
 
Last edited:
F1rstDan updated F1rstDan's Cool UI ("Quick Buy Button" added!) with a new update entry:

Version: 1.8.0 (2025-03-23)

Version: 1.8.0 (2025-03-23)​

  • Complete refactoring for enhanced compatibility:
    • Fully restructured Quick Buy Button code using non-intrusive modifications, significantly improving compatibility.
    • All components of this MOD now utilize non-intrusive modifications, ensuring compatibility with essentially all installed MODs.
    • Example: No longer interferes with the production list sorting functionality of bz-city-hall.
  • Hover over...

Read the rest of this update entry...
 
F1rstDan updated F1rstDan's Cool UI ("Quick Buy Button" added!) with a new update entry:

Version 1.8.1 (2025-03-24)

Version 1.8.1 (2025-03-24)​

  • Adjust the logic of the Quick Buy button to enter build mode.
    • Re-support the one-click repair function of "bz-city-hall"
  • Fixed the problem of disabling status judgment and not refreshing the status in time.
  • Added gold coin sound for quick buy button.

版本:1.8.1 (2025-03-24)
  • 调整快速购买按钮进入建造模式的相关逻辑。
    • 重新支持 "bz-city-hall" 的一键修复功能
  • 修复禁用状态判断问题,和没有及时刷新状态的问题。
  • 增加快速购买按钮的金币音效。...

Read the rest of this update entry...
 
Hey, I have another weird settlement connection issue. I don't know it this is a vanilla bug or related to your mod. I attached a save file, no mods required.

Madurai is connected to my capital Pataliputra, but not the other way around. The town and capital are quite close together, but there is no road between them because of the river. However, Madurai is also connected to Kopbal, which is on the other side of the capital, but Kopbal not to Madurai. I settled all these myself, no captured ones here. There are a few more weird one-way connections in the same save.
Or is there something I don't understand about connections and are they supposed to be one-way sometimes?

Edit: It's probably a vanilla thing, since TCS Improved Plot Tooltip gives the same connections in the tooltip.

1742853847279.png
1742853879760.png


1742854007451.png
 

Attachments

Last edited:
Back
Top Bottom