NPC orders base guns alongside mod guns, [Fixed!]
I'm working on updating Kettenkrad's Wehrmacht mod for the Steam Workshop, because I noticed some errors with it and he also has a lot of great content he hasn't included with the mod.
Thanks to help from Major, this is progressing well, but I would really like to squash one bug that has persisted from the vanilla Wehrmacht mod.
When the Wehrmacht is acting as an NPC faction, it will order the units as expected. They'll have all the gear they're supposed to. However, the NPC brain will also give them base weapons like "smg" and "blunderpop" in their inventories.
I noticed from the other thread here, that the items need to be grouped.
viewtopic.php?f=1&t=45659I did this, as found in this thread, but the problem is the same (Although the AI does seem to use their proper weapons as much as the defaults now.)
viewtopic.php?f=1&t=32748 TL;DR -I have two problems now:
1) The NPC controlled faction still orders basic equipment alongside what the troops should come with.
2) I have duplicate categories "Heavy Weapons, Heavy Weapons" one for everything but Wehrmacht, and one for only Wehrmacht.
I believe that if I can figure out why the Wehrmacht grouping isn't sticking with the other real groupings, the NPC will recognize that "Oh, I already have a primary weapon on this actor," and stop ordering garbage with his mighty Fatherland-gifted equipment.
Thank you for any help you can offer!
FIXED : AddToGroups lines must be directly under the PresetName lines.