Posted in 2026

Common mistakes in Unciv Modding

Unciv is an open source clone of Civilization V. I have been playing it for a while and decided to try modding it. The modding process is quite straightforward. The modding is done by creating json files. You can find the built-in ruleset at yairm210/Unciv and start from there. Once you have a mod, you can download it in the mod section in game by providing the downloading address. The game also has a mod list that is based on github repos. On a Windows machine, you can find mods in the mods subfolder of the game and inspect the folder structure of mods and how they are json files work. You can add new nations, beliefs, units or buildings by copying the existing by copying the existing ones and rename them. But from what I see, a lot of modders make mistakes due to misunderstanding of the unique system and their code didn’t work.

The most common mistake is to assume building exist but they don’t in a different ruleset. For example, some mods has this:

Read more ...


Unable to get running user’s MyDocuments folder due to security interference

I was trying to retrieve the running user’s MyDocuments folder in a WinForms application via

To my surprise, it returned an empty string.

Read more ...