Names and Portraits
Posted: Wed Feb 05, 2025 8:15 pm
Hello,
I'm trying to figure out how names and portraits are assigned to soldiers. So, I've made a mod that adds about 200 real soldier photos instead of the placeholder images. It worked just fine, with pictures randomly assigned to all the soldiers. Next, I decided to increase the number of soldier names, since 300 resulted in too many repeats. So, I programmed another 150 names into the system. Well, the names work, and they are being assigned randomly to my men.
The problem is, I've noticed that certain portraits now seem to be sticking to certain names, and I have no idea why. Let's say I have 4 guys named Malone in my company, then all of them have the same picture. I have run tests and the problem persists. Any idea what I might have broke by adding more names?
Thank you,
Hicks
I'm trying to figure out how names and portraits are assigned to soldiers. So, I've made a mod that adds about 200 real soldier photos instead of the placeholder images. It worked just fine, with pictures randomly assigned to all the soldiers. Next, I decided to increase the number of soldier names, since 300 resulted in too many repeats. So, I programmed another 150 names into the system. Well, the names work, and they are being assigned randomly to my men.
The problem is, I've noticed that certain portraits now seem to be sticking to certain names, and I have no idea why. Let's say I have 4 guys named Malone in my company, then all of them have the same picture. I have run tests and the problem persists. Any idea what I might have broke by adding more names?
Thank you,
Hicks