How Generative AI Helped Me Release Napoleonic Imperial War as a Solo Developer

Over the course of the last two years, generative AI has become a core part of my solo game development workflow.

Since October 2023, I have been developing a wide range of games with the help of generative AI. Most recently, I released Napoleonic Imperial War, the 66th game I have created using generative AI in some form. On a personal level, it is also my 11th released strategy simulation game, and my second strategy simulation title to support English.

https://play.google.com/store/apps/details?id=com.omworldgame.napoleonicimperialwar

Since December 2025, I have also been building a new strategy simulation framework that I am now using to develop eight different projects, including fantasy strategy, science fiction strategy, and historical strategy simulation games. That ongoing project has become a foundation for much of my recent work.

One of the biggest challenges in strategy simulation games is scale. A proper strategy simulation game often needs at least 200 characters, and in many cases 400 to 500. In the past, I used Stable Diffusion to generate character portraits, and I still do from time to time. But these days I increasingly rely on ChatGPT for character image generation. In particular, for historical simulations and games that require a large number of male characters, ChatGPT’s image generation has been surprisingly useful. It still has many limitations, and there are definitely areas where it falls short, but all 410 character portraits in Napoleonic Imperial War were created with ChatGPT.

Until recently, I mainly used ChatGPT as a coding assistant in a limited way. However, this project became the first one where I seriously started using coding agents, including Codex and Claude Code, to add new features and fix bugs. Some tasks simply would not have been realistic without agent support. Multilingual support is a good example. It required a huge amount of repetitive and detail-heavy work, and without the help of AI agents, I probably would have abandoned that part altogether. Because agents could handle a large portion of the heavy lifting, I was able to spend more time on testing, balancing, improving the gameplay in the later stages, and fixing bugs more carefully.

ChatGPT’s deep research capability has also been extremely helpful for gathering and organizing historical materials. Building game data from historical sources, especially for periods before the Middle Ages or for less accessible eras, is often difficult and time-consuming. In many cases, deep research produces better results than weeks of manual research on my own. In the case of the Napoleonic era, the source material is far more abundant than in earlier historical periods, so the overall development process was much smoother.

This experience has also made it possible for me to return to a World War I-themed game that had been stalled for four or five years. As a hobbyist solo developer, creating large-scale games is usually impossible because of the simple lack of time. That is the most difficult limit to overcome. But the rise of LLMs and AI agents is changing that. They do not remove the need for design judgment, testing, or iteration, but they do make it possible to overcome some of the physical time constraints that used to make certain projects unrealistic for a single developer.

For me, Napoleonic Imperial War is more than just another release. It is proof that generative AI is no longer only a supplementary tool for solo development. It is becoming a practical way to make larger, more ambitious strategy simulation games possible.

And for someone trying to build these games alone, that changes everything.

Adding AI Features to iOS/Android Apps with TensorFlow Lite

Working on personal projects with an ML engineer is always a pleasure. Our first project involved real-time recognition of exercise movements being captured by a camera, followed by determining the type of exercise and checking its accuracy, as well as counting the number of repetitions. My role was to integrate the program created by the ML engineer in Python into apps for Android and iOS platforms.

At first, I had to choose between MediaPipe and TensorFlow Lite for converting to Android/iOS. Thinking that MediaPipe had relatively better features and well-made examples for Android/iOS, I initially researched how to use MediaPipe. Through about a month of technical review, I realized that customizing MediaPipe examples to fit my needs was nearly impossible.

https://github.com/google/mediapipe

In the end, I decided to work with TensorFlow Lite’s examples, but there were differences in how the implementation was done for Android and iOS. While the Android example had both Pose Estimation and Pose Classification functionalities implemented, the iOS example only had Pose Estimation implemented, so I had to implement the Pose Classification functionality myself.

https://github.com/tensorflow/examples/tree/master/lite/examples/pose_estimation

When implementing logic using ML models, Python utilizes Numpy for various operations. Therefore, when porting to Swift, it is necessary to use Matft, although it may be cumbersome. However, with pod install, version 0.2.8 is installed, and to install version 0.3.2, Swift Packages must be used. Since some functions are not supported in version 0.2.8, it is necessary to install the latest version.

Our second personal project involved taking input for gender, age, and body type, then estimating the height and weight of children when they are captured. The overall implementation method was similar to the previous project, so I was able to proceed without major difficulties. However, the Swift TensorFlow library does not provide even simple functions like tf.gather or tf.broadcast_to. Therefore, to convert the code easily implemented in Python to Swift, I had to create custom functions that produce the same results. Since Swift already provides array operations, implementing them directly is not particularly difficult.

https://github.com/jjjkkkjjj/Matft

By directly participating in implementing features using ML models, it was a great opportunity to understand what ML engineers do and how they handle tasks, as well as how to apply the models created by ML engineers to services.

Creating a game with generative AI

The most time-consuming and effort-intensive task in game development is undoubtedly CG work. Having created numerous games, I’ve found this to be the most challenging aspect, making it difficult to turn even the most innovative ideas into playable games. However, recently, I became acquainted with generative AI, and after investing a considerable amount of time reviewing it, I concluded that it is indeed suitable for use in game development.

To try creating a game using generative AI, I chose the approach of remaking a game I had previously developed. The game I selected had achieved significant sales, but it was disappointing due to the lack of CG. Originally developed for Windows using MFC and DirectX, it had been ported to Android once. However, due to neglect in maintenance, there was an issue with building it on the latest version of Android Studio, so I decided to start from scratch with the program.

The number of images I generated using generative AI is approximately 2000, and out of these, around 700 were ultimately used in the game. While someone with some knowledge might recognize that these are CG images generated by AI, it was the first time in my game development experience that I had such a satisfactory quality and quantity of CG images to freely utilize. Thanks to this, I was able to enhance the game scenario and provide even richer game content.

I had no difficulty with CG work for the game, so the game development process was very enjoyable. However, there were some trial and error moments due to the content rating classification system, but even this was resolved by generating 600 images again using AI in just one day. In the end, I was able to launch the game on the Google Play Store on December 24, 2023, which felt like receiving a Christmas gift.

https://play.google.com/store/apps/details?id=com.omworldgame.replayh_remake

Thanks to having already achieved the important goal, I am currently in the process of converting it for iOS, albeit at a slower pace.

Through this experience, I’ve come to realize that generative AI can be tremendously helpful for CG work in games, and most of the games we develop in the future will likely utilize generative AI. This is not only because of the advantages of cost and time savings but also because it can make games even more enjoyable. The next challenge is to use ChatGPT’s assistance to write game scenarios. Just like CG work, scenario writing also requires human touch, as I was disappointed by the recent collaboration with scenario writers. If this becomes possible as well, it would mean that I can create the desired game to my heart’s content without the need for graphic designers or scenario writers.

Publish/Subscribe Message by MongoDB

Usually I used Redis or MQTT Broker (or AWS IoT) for Publish/Subscribe Messages. Recently I just thought that maybe it is possible in MongoDB also. So I googled it and found lots of references. It is not official function of MongoDB for Pub/Sub but that make similar result on MongoDB like other stuffs.

https://www.mongodb.com/blog/post/how-create-pubsub-application-mongodb

 

Node.js Example :

http://tugdualgrall.blogspot.com/2015/01/how-to-create-pubsub-application-with.html

 

Python Example :

http://blog.pythonisito.com/2013/04/mongodb-pubsub-with-capped-collections.html

 

C# Example :

https://www.codeproject.com/Articles/1241281/High-Speed-Message-Bus-using-Csharp-and-MongoDB

MongoDB .NET Driver (for C#) :

http://mongodb.github.io/mongo-csharp-driver/

and Good Example for C# programming with MongoDB

https://www.c-sharpcorner.com/article/getting-started-with-mongodb-mongodb-with-c-sharp/

 

Eventually I could make a publisher by C# and a subscriber by Python. It is not a big deal.

Get Windows Unique ID by Python

We can get Windows UUID by this.

https://stackoverflow.com/questions/2461141/get-a-unique-computer-id-in-python-on-windows-and-linux

import subprocess
current_machine_id = subprocess.check_output('wmic csproduct get uuid').split('\n')[1].strip()

 

But running console command on Service program is too risky. So I neet to PLAN B for that, and I found that I can get Windows GUID from Windows Registry.

https://stackoverflow.com/questions/36235807/fixed-identifier-for-a-machine-uuid-getnode

1) Windows:

Executing this one and getting output may be good enough:

wmic csproduct get UUID

or the one I used and is available in registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography):

import _winreg
registry = _winreg.HKEY_LOCAL_MACHINE
address = 'SOFTWARE\\Microsoft\\Cryptography'
keyargs = _winreg.KEY_READ | _winreg.KEY_WOW64_64KEY
key = _winreg.OpenKey(registry, address, 0, keyargs)
value = _winreg.QueryValueEx(key, 'MachineGuid')
_winreg.CloseKey(key)
unique = value[0]

 

If we need to test winreg codes on Linux machine, then we have to add to cheking routine like this.

https://stackoverflow.com/questions/29289411/import-winreg-while-retaining-linux-support

Try using importlib to test if winreg exists.

winreg_exists = importlib.find_loader('winreg')
if winreg_exists:
    import winreg
...
if winreg_exists:
    # do winreg stuff

 

Another reference for winreg (Korean)

https://chaosnabilera.me/?p=617

 

 

 

Create and launch an Android game in a month

I like historical simulation games very much.
My favorite historical simulation game is the Total War series from Creative Assembly and Romance of the Three Kingdoms from Koei.
I had already made a history simulation game titled Myth of Ambitions in 2000.
It was not a successful game, but it was very significant that I completed the historical simulation game I wanted to make since middle school.
In addition, a game called Myth of Ambitions was a meaningful game that made me win two awards.

야망의신화에 대한 이미지 검색결과

After completing Myth of Ambitions, I planned a second historical simulation game.
However, unfortunately, I only spent trying two or three times for data collection and planning works in 15 years.
I recently decided to take the 15 year old project and make it into an Android game.
In creating Myth of Ambitions, I was only responsible for planning and development, and CG work was a professional designer’s work.
This time, I did all the planning and development as well as CG work, script work, and translation work.
It was quite difficult and I had a lot of work, but I am very happy to have accomplished it.

IMG_0053

I used the new iPad and Apple Pencil for my CG work. It was nice to be able to draw pictures quite easily and quickly.
And I made a game to support both Hangul and English.
Previously, I have implemented multilingual support through translation work in English, Chinese and Japanese for my work, but this is the first time I have directly supported multilingual support for my personal projects.
In addition, all previously created Android games supported Landscape mode. Since users wanted Portrait mode, I designed the game screen to fit in Portrait mode.

 

About a month after I started the project, the game was completed.
So I signed up for the Google Play Store.
It was a very rewarding experience because it was aimed at making historical simulations that deal with the history of Korea, not games made to make money anyway.
If time is given in the future, I plan to continue to develop this.
Of course, I am planning to make an iPhone version or a Windows version.

https://play.google.com/store/apps/details?id=com.openmindworld.imjinwar

 

Studying german at Goethe Institude

I am learning German at the Goethe Institude in Namsan, Seoul.
I am very satisfied with Geothe Institude ‘s teaching methods and contents.

 

I started studying German with my daughter.
My daughter listens to youth lectures, which are much different from adult lectures.

Namsan is a mountain that spans Jung-gu and Yongsan-gu in Seoul.
The height is 270.85m above sea level, and it is located in the center of Seoul and becomes a symbol of Seoul.
There is N Seoul Tower at the top, and a cable car is installed to the vicinity.

How to save data inserted into Elasticsearch periodically in MongoDB

In a system that stores all of the raw data in Elasticsearch, I have looked at how to save the newly inserted data to the MongoDB sharding system, preferably in a way that does not touch Elasticsearch itself.

I needed a way to make it as easy to implement as possible and not overloading Elasticsearch, so I looked to see if Elasticsearch provided triggers. Elasticsearch seems to provide a watcher that is scheduled on a periodic basis rather than providing an immediate trigger when an Insert event occurs.

https://www.elastic.co/guide/en/watcher/current/trigger.html

 

So, I found an Elasticsearch watcher that I could use with Node.js. This is an appropriate method because it can extract inserted documents while periodically monitoring from outside without modifying the existing Elasticsearch system.

https://github.com/Gustu/elasticsearch-nodejs-watcher

 

I used kibana’s DevTools that works with Elasticsearch to test the query against the data structure.

Obviously, the queries specified in the sample source of the Elasticsearch NodeJS Watcher can not achieve the desired results.

GET index-1234567890/_search

{

  "size":10000,

  "query": {

      "bool": {

          "must": {

            "match_all": {}

          },

          "filter": {

            "range": {"created_at": {"gte": "now-30s"}}

          }

      }

  }

}

 

Finally, I was able to implement the ability to extract the inserted document and save it to MongoDB within 30 seconds in the following way.

* If you do not specify size as 10000 (the maximum value), the default value of 10 is applied, so only 10 documents are returned.

* If you look at the example source, after the range, it is called @timestamp, so I thought you have a unique function. You have to input the key name that contains the date information in that part.

const elasticWatcher = require("elasticsearch-nodejs-watcher");

const connection = {

    host: 'http://elasticsearch server ip:9200',

    log: 'trace'

};

const watcher = {

    schedule: "*/30 * * * * *",

    query: {

        index: 'index-*',

        body: {

            size: 10000,

            query: {

                bool: {

                    must: {

                      match_all: {}

                    },

                    filter: {

                      range: {"created_at": {gte: "now-30s"}}

                    }

                }

            }

        }

    },

    predicate: ({hits: {total}}) => total > 0,

    action: data => { 

          MongoDB store logic

    },

    errorHandler: err => console.log(JSON.stringify(err))

};

elasticWatcher.schedule(connection, watcher);

 

Experience using Google BigQuery

1. Advantages

  • Maintains a constant rate regardless of the amount of data. (Average 1 ~ 2 seconds)
  • It is said to be able to store (at a relatively lower cost) than AWS S3.

 

2. Disadvantages

  • It is complicated to define the schema to accommodate the original unstructured data, since unstructured data must be managed in the form of a formal data schema.
  • It is impossible to change the schema of the created table once. (The flexibility of the data structure seems to be declining.)
  • It is impossible to delete the data once saved.  (There is no problem in the case of log-quality data.)
  • It is possible to use query statement but it is not 100% compatible. (Like Hive, it receives input from Query statement and transforms it into separate logic and processes it)
  • The size of the data that can be inserted at a time using the Big Query API linked library for Node.js is as small as 10 megabytes at a time.
  • A reference that seems to be a reference more than you think seems to be lacking yet.

 

* How to query on columns that store data in array format

https://stackoverflow.com/questions/25939075/bigquery-not-a-leaf-field-error

https://cloud.google.com/bigquery/docs/reference/legacy-sql#flatten

 

* Loading BigQuery streaming data

http://whitechoi.tistory.com/28

 

* BigQuery Library sample source for Node.js

https://github.com/googleapis/nodejs-bigquery/blob/master/samples/tables.js

 

* Authentication method for Google cloud integration

https://cloud.google.com/docs/authentication/getting-started#auth-cloud-implicit-nodejs

 

Here is a link to the Korean text of this posting.

http://nashorn.tistory.com/entry/%EA%B5%AC%EA%B8%80-%EB%B9%85%EC%BF%BC%EB%A6%AC-Google-Bigquery-%EA%B4%80%EB%A0%A8-%EC%A0%95%EB%A6%AC?category=482174

 

 

Adding an EBS COLD HDD (sc1) volume to AWS EC2

In AWS, an RDBMS can be easily processed using RDS, and MongoDB is used by setting it in EC2. The problem is that the basic SSD-based EBS is expensive. To solve this problem, I found out that EBS COLD HDD (sc1) can be used at a low cost as s3 level among magnetic HDDs, so I decided to add COLD HDD and mount it to MongoDB data folder.

 

Add AWS EBS COLD HDD (sc1) volume and connect to EC2

 

After adding the volume from the AWS console and making a connection to EC2, the connected HDD will be checked as follows.

$ lsblk

NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT

xvda    202:0    0   20G  0 disk 

└─xvda1 202:1    0   20G  0 part /

xvdf    202:80   0  500G  0 disk 

 

Check the newly added HDD and format it immediately.

$ sudo file -s /dev/xvdf

/dev/xvdf: data

$ sudo mkfs -t ext4 /dev/xvdf

mke2fs 1.42.12 (29-Aug-2014)

Creating filesystem with 131072000 4k blocks and 32768000 inodes

Filesystem UUID: def4ac88-aabe-4d65-bd8c-0c669c505c36

Superblock backups stored on blocks: 

 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 

 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 

 102400000

Allocating group tables: done                            

Writing inode tables: done                            

Creating journal (32768 blocks): done

Writing superblocks and filesystem accounting information: done  

$ sudo file -s /dev/xvdf

/dev/xvdf: Linux rev 1.0 ext4 filesystem data, UUID=def4ac88-aabe-4d65-bd8c-0c669c505c36 (extents) (large files) (huge files)

 

Create a folder to store the MongoDB data file and mount it.

$ sudo mkdir /data

$ sudo mount /dev/xvdf /data

$ lsblk

NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT

xvda    202:0    0   20G  0 disk 

└─xvda1 202:1    0   20G  0 part /

xvdf    202:80   0  500G  0 disk /data

 

Modify the configuration file so that it is mounted automatically every time you boot.

$ sudo vi /etc/fstab

:

:

LABEL=cloudimg-rootfs /       ext4     defaults,discard   0   0

/dev/xvdf             /data   ext4     defaults,nofail    0   0

 

Changing the MongoDB Data folder with the newly added volume

 

It is confirmed that it is still alive that the service is stopped in order to terminate the MongoDB which is already running, and it is stopped.

$ service mongod stop

Stopping mongod:                                           [  OK  ]

$ service --status-all

:

mongod (pid 2651) is running...

 

So when I connect to the MongoDB client and force shutdown, the MongoDB service is dead.

$ mongo

MongoDB shell version v3.4.7

connecting to: mongodb://127.0.0.1:27017

MongoDB server version: 3.4.7

Server has startup warnings: 

:

> use admin

switched to db admin

> db.shutdownServer();

server should be down...

2017-12-05T02:10:38.797+0000 I NETWORK  [thread1] trying reconnect to 127.0.0.1:27017 (127.0.0.1) failed

2017-12-05T02:10:38.797+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused

2017-12-05T02:10:38.797+0000 I NETWORK  [thread1] reconnect 127.0.0.1:27017 (127.0.0.1) failed failed 

> exit

bye

$ service --status-all

:

mongod dead but subsys locked

 

Then it stops the MongoDB service and stops it properly.

$ service mongod stop

Stopping mongod:                                           [  OK  ]

$ service --status-all

:

mongod is stopped

 

Now move the data and log folders to the newly mounted HDD and modify the MongoDB configuration file accordingly.

$ sudo mv /var/lib/mongo /data/db

$ sudo mv /var/log/mongodb /data/log

$ sudo vi /etc/mongod.conf

# mongod.conf

# for documentation of all options, see:

#   http://docs.mongodb.org/manual/reference/configuration-options/

# where to write logging data.

systemLog:

  destination: file

  logAppend: true

  path: /data/log/mongod.log

#  path: /var/log/mongodb/mongod.log

# Where and how to store data.

storage:

  dbPath: /data/db

#  dbPath: /var/lib/mongo

  journal:

    enabled: true

:

 

After modifying the configuration file, start the MongoDB service.

$ sudo service mongod start

Starting mongod:                                           [  OK  ]

 

Here is a link to the Korean text of this posting.

http://nashorn.tistory.com/entry/AWS-EC2%EC%97%90-EBS-COLD-HDDsc1-%EB%B3%BC%EB%A5%A8-%EC%B6%94%EA%B0%80%ED%95%98%EA%B8%B0