Assigning Splitting Faction Core Groups
The start of the integration process for decision mods has been more complicated than I could have anticipated. There are a bunch of aspects of the original hardcoded implementation of the split clan decision that I basically ignored when I first designed the mod version, and now those ignored aspects have come back to bite me. One of them is the fact that newly formed factions have to be assigned a core group even before the decision is made. I was hoping to do this in the background for the mod implementation after the decision was already taken, but it turns out that if I do it like that there's a big chance the split operation might fail because there are no cell groups with enough prominence to be assigned the new faction's core role. So, a valid target group has to be found before the decision can take place to make sure it won't have an unexpected null result.
The implication was that now I had to expose the core group selection process as part of the mod's design. I ended up adding polity entities (which I was planning to add anyway) and a get_random_group method as one of their properties. I also modified the split clan mod entry to receive as a parameter the a target group to be assigned the core role of the new faction. All of this means it will be later possible for modders to pick a core group for a new faction in a way other than by random selection.
Anyway, there's still a lot of work to do. Nevertheless, I'm getting closer to have a fully working decision mod, and I already have begun deprecating the old hardcoded decision. So sooner, rather than later, the replacement will be complete.
Get Worlds - History Simulator
Worlds - History Simulator
A world generator, and human history simulator
Status | On hold |
Author | DrTardigrade |
Genre | Simulation, Strategy |
Tags | Alternate History, Procedural Generation |
Languages | English |
More posts
- Extended HiatusOct 23, 2022
- Worlds 0.3.4.01 (minor update)Oct 03, 2022
- Worlds 0.3.4Aug 22, 2022
- Worlds 0.3.4 alpha 4 ready for closed testingJul 27, 2022
- Done Migrating Discovery Mod ScriptsJun 05, 2022
- Halfway through Alpha 4Apr 19, 2022
- Closed Alpha 3 StartMar 20, 2022
- The Last PartMar 15, 2022
- Closed Alpha 3 Participation FormMar 13, 2022
- Relationship Improving Action Done...Jan 04, 2022
Leave a comment
Log in with itch.io to leave a comment.