if anyone has any idea of what i may of done wrong please let me know.. i edited the .py, and posted the menu options and actual menu in the right place so it appears in game. also i cut out the stuff in red.. my faction is still not changing.
I didn't touch the py. I just realized, found out myself, the game doesnt even look at py files they just make the text files the game reads and since the text files are hard to read unless you know what your looking for alot of ppl prefer py. Point is I just edited my text files and it worked beautifully.
1. Create a new troop in troops.txt or editor. (here is my faction recruit)
In native there are about 929 troops.
The unique ID for the last troop is 360287970189640609 so if you add yours to the end its troop 930 or 360287970189640610 the next would be 36xxx11 then 36xxx12 and so on.
MAKE SURE THEY ARE "player_supporters_faction" and "not player_faction"
2. Navigate to scripts.txt in your module folder whether its native or anther mod.
Inside scripts.txt look for (ctrl+f) "update_volunteer_troops_in_village"
Paste the following code OVER the existing code making sure that the blue number below is the unique ID for your faction recruit troop that will come out of your villages.
NEXT under update_npc_volunteer_troops_in_village
Paste the following, making sure to substitute the blue code with your unquie ID if its not troop 930 as above
4. Save all the edits you made load your saved game. Wait or play for 72 in game hours or there abouts. Then try to do two of the following things.
- Recruit a troop from a village owned by a faction that took it over in war.
- If you can recruit that factions troops instead of the original culture troop you know its working.
- If you have your own kingdom try recruiting from any village you have and you should be able to recruit your custom faction troop just like any other.
I have done exactly what I wrote above and I can recruit any faction troop including my own in any village they or I own regardless of culture. Hope this helps.
EDIT: There is a way to get your lords to recruit your troops too through party_templates but I'm working on it. My skill limits me since this is all new to me.
Attempt at having your lords recruit your troops
So inside party templates I added this to the bottom
In there you see Kingdom_1 etc those are what the npc factions are called. The player faction is called "player_supporters_faction"
So I substituted the kingdom_1 with player_supports_faction.
Next the numbers 934 2 6 0 933 4 7 0 -1 -1 -1 -1 (934 = troop number, 2 = min to recruit, 6 = max to recruit, 933 = next troop to recruit 4 is min 7 is max.
Basically its saying in one recruitment period for the NPC recruit anywhere between 2 to 6 Trained recruits (my custom troop) and 4 to 7 fresh recruits.
this goes on for three lines and you can then tell it to recruit more advanced troops etc. This when looking at it explains to me why the damn NPC always has so many archers lol.
Always add a 0 at the end like the code above and the -1 are place holders. so say in line one you only add one troop to be recruited you would add an extra -1 as a place holder. It would look like this.
Well who knows if this will work but at least it was informative =)
YOU CAN however edit the kingdom ones to change the way the npc recruits in your game. I actually gave them more foot troops to compensate with archers and more high end troops like Knights because this game is so damn easy even on the hardest setting.
Can anyone confirm that this is incompatible with v.26?Cause every time I try it I only get something like "23 something are fiercely devoted to you" or "23 Temp something".The 1st option doesn't give me any unit but it does take my money.The later one give me a naked character like a Companion sort of type thats named Temp volunteer or something even tho I got 23 on the option it only gives me 1 unit.Also I have Diplomacy tho I also tried it on Native but still the same result.
P.S this method work prior to v.26 in Diplomacy and Native.
P.S.S sorry for my bad english lol