SP Tutorial Module System Recruit your custom troops in your own Kingdom

Users who are viewing this thread

Topper said:
Since some people have requested this, I decided to start a new topic to explain how to do it.

What it does
In Warband it is possible to create your own Kingdom. You may want to create custom troops and being able to recruit them from the villages that are part of your Kingdom. This has been tested on version 1.113.
To maintain a common behaviour with the villages of other factions, this tweaks will give you recruits based on the faction that owns the village in that moment (even this feature has been asked by many members in this forum) and not based on the original culture of the village.


The fast method
If you added your custom recruit manually in the module system or with a txt editor, chances are that it has been added at the end the other troops already present in Native. If that is the case, then it is sufficient to do the following.

Open scripts.txt, look for "update_volunteer_troops_in_village" and substitute the next line with this one:

43 23 2 1224979098644774912 1 521 3 1224979098644774913 1224979098644774912 26 521 3 1224979098644774914 1224979098644774912 19 522 3 1224979098644774915 1224979098644774914 41 2204 2 1224979098644774916 1224979098644774912 4 0 33 3 1224979098644774916 432345564227567631 432345564227567637 522 3 1224979098644774915 1224979098644774916 41 5 0 31 2 1224979098644774916 432345564227567630 2133 2 1224979098644774915 360287970189640610 3 0 2133 2 1224979098644774917 1 2123 3 1224979098644774918 1224979098644774913 10 6 3 1224979098644774919 0 1224979098644774918 2136 3 1224979098644774920 0 100 2147483678 2 1224979098644774920 10 2136 3 1224979098644774920 0 2 1561 3 1224979098644774921 1224979098644774915 1224979098644774920 4 0 2147483680 2 1224979098644774921 0 1561 3 1224979098644774921 1224979098644774915 0 3 0 32 2 1224979098644774921 0 2105 2 1224979098644774917 1 2133 2 1224979098644774915 1224979098644774921 3 0 2133 2 1224979098644774922 7 4 0 30 2 1224979098644774913 5 2133 2 1224979098644774922 1224979098644774913 2108 2 1224979098644774922 2 2105 2 1224979098644774922 10 5 0 2147483678 2 1224979098644774913 0 2133 2 1224979098644774922 0 3 0 2107 2 1224979098644774922 3 2120 3 1224979098644774923 2 1224979098644774917 2108 2 1224979098644774922 1224979098644774923 2136 3 1224979098644774924 0 1224979098644774922 501 3 1224979098644774912 92 1224979098644774915 501 3 1224979098644774912 93 1224979098644774924

Let 72 hours pass and you can enjoy your troops in your villages.
Remember, this only works if your unit is added at the bottom of all other units.
Topper said:
That code isn't any more in the scripts.tx file. Correct me if I'm wrong. And I hilighted the part what I would like to implement.
 
I believe that entire code if that of a modified one from the module system. I think you may still have the default one and which is leading to the conclusion of that code not being the correct one. Have you done any modding in the past or have the module system? If you are using the module system refer back to my post on the page previously before this one. If you are not then I'll post what you need to do.
 
Atamawood said:
this is to get lords to recruit only thier cultures troops. First off you "replace cf_reinforce_party -1" with

34 21 1 1224979098644774912 2204 2 1224979098644774913 1224979098644774912 521 3 1224979098644774914 1224979098644774912 0 522 3 1224979098644774915 1224979098644774913 77 522 3 1224979098644774916 1224979098644774913 78 522 3 1224979098644774917 1224979098644774913 79 2133 2 1224979098644774918 0 2136 3 1224979098644774919 0 100 4 0 1073741855 2 1224979098644774914 3 31 2 1224979098644774914 2 4 0 2147483678 2 1224979098644774919 65 2133 2 1224979098644774918 1224979098644774915 5 0 2133 2 1224979098644774918 1224979098644774916 3 0 5 0 31 2 1224979098644774914 13 4 0 2147483678 2 1224979098644774919 50 2133 2 1224979098644774918 1224979098644774915 5 0 2147483678 2 1224979098644774919 75 2133 2 1224979098644774918 1224979098644774916 5 0 2133 2 1224979098644774918 1224979098644774917 3 0 5 0 3 0 4 0 32 2 1224979098644774918 0 1675 2 1224979098644774912 1224979098644774918 3 0

Thanks. this code worked brilliantly  :mrgreen:
And to your question no I don't have the module system. Only modding I have done is tweaking the files in notepad.
 
Well the thing is your gonna hit a problem when you start your own faction in your game because your faction has no culture, all those menus and stuff I posted will allow you too select in game what you and your vassles will recruit. I believe I also posted the codes except for the actual camp menu part so if you need that I'll post or email it to you.
 
I'm sorry if this is viewed as a stupid question... Before I simply copy and paste as was said at the start, I would like to know if it is compatible with 1.27 or 1.xx in general or purely the versions stated, mostly 1.113
 
drushing79 said:
It should be 1.xx compatible. I don't believe that particular bit of code has been changed.
I don`t have number like this "3602879701896406##"
my scripts.txt (v.1.126)
Code:
[left]update_volunteer_troops_in_village -1
 35 23 2 1224979098644774912 1 521 3 1224979098644774913 1224979098644774912 26 521 3 1224979098644774914 1224979098644774912 19 522 3 1224979098644774915 1224979098644774914 41 2133 2 1224979098644774916 1 2123 3 1224979098644774917 1224979098644774913 10 6 3 1224979098644774918 0 1224979098644774917 2136 3 1224979098644774919 0 100 2147483678 2 1224979098644774919 10 2136 3 1224979098644774919 0 2 1561 3 1224979098644774920 1224979098644774915 1224979098644774919 4 0 2147483680 2 1224979098644774920 0 1561 3 1224979098644774920 1224979098644774915 0 3 0 32 2 1224979098644774920 0 2105 2 1224979098644774916 1 2133 2 1224979098644774915 1224979098644774920 3 0 2133 2 1224979098644774921 7 4 0 30 2 1224979098644774913 5 2133 2 1224979098644774921 1224979098644774913 2108 2 1224979098644774921 2 2105 2 1224979098644774921 10 5 0 2147483678 2 1224979098644774913 0 2133 2 1224979098644774921 0 3 0 2107 2 1224979098644774921 3 2120 3 1224979098644774922 2 1224979098644774916 2108 2 1224979098644774921 1224979098644774922 2136 3 1224979098644774923 0 1224979098644774921 501 3 1224979098644774912 92 1224979098644774915 501 3 1224979098644774912 93 1224979098644774923[/left]
 
Well... I am going to have to say that it isn't compatible with 1.27

I've made all the changes, I've checked and double checked everything. The game still runs fine with the changes, but the ingame mechanics stay the same. The village recruits stay as the originals even after several weeks. perhaps there is a problem with other tweaks causing the failure such as tweakMB. The scripts that are said to be changed I did with no result, not even a script error message.

Much of the scripts are different as well... I am no longer sure that copy and paste will suffice even though it caused no problems, it also had no desired effects. 

Any hints or insight would be lovely, but for now I may just erase everything and start anew, starting with this tweak as I can say it is the single most important feature I want.
 
Tooff said:
I don`t have number like this "3602879701896406##"
my scripts.txt (v.1.126)
My apologies I thought you were speaking of the module system changes not text tweaks. Atamwood's earlier post is has all the info you need to make this work with the module system. If you are going to start from scratch I suggest using the module system. Tweaking with the module system is not that difficult. I've actually set up my own faction tree and my vassals recruit my custom troops. I even managed to get patrols working just by doing some searching in the forums. Plus you get the benefit of searching for words instead of strings of random numbers.
 
drushing79 said:
Tooff said:
I don`t have number like this "3602879701896406##"
my scripts.txt (v.1.126)
My apologies I thought you were speaking of the module system changes not text tweaks. Atamwood's earlier post is has all the info you need to make this work with the module system. If you are going to start from scratch I suggest using the module system. Tweaking with the module system is not that difficult. I've actually set up my own faction tree and my vassals recruit my custom troops. I even managed to get patrols working just by doing some searching in the forums. Plus you get the benefit of searching for words instead of strings of random numbers.

Did you use the things I've posted for  your custom faction? I've never heard if anyone had done it or not as even I haven't tried although I'm certain It can be.
 
I did everthing except the menu since all I wanted to do was use my own custum troops. I had been trying to get this to work in the MS for some time. But yeah it does work.Kudos to you good sir.
 
I'd like to implement that feature to my Warband 1.127 module system (which contains Diplomacy, Custom Commander, Formations and the deployable pavise), but it doesn't seem to work so far. That would be a great addition to these mods, but it seems to be rather difficult.

What I want is the following: when I speak to my chancellor and change the kingdom's culture, then the following should happen:
- A new entry called player faction should be added below the native cultures. This is the player supporters faction.

When using the player supporters faction as culture:
- my villages should spit out my custom recruits
- my lords should recruit my custom troops
- diplomacy's town patrols should use my troops
It would be great if the auto recruitment feature from Custom Commander would be linked to the selected culture from diplomacy.

So far, I have added culture_7 to module_factions.py
In module_troops.py, there's a new troop tree belonging to fac_player_supporters_faction
I've added the reinforcements to module_party_templates.py
I've added a lot of stuff to module scripts. My culture's tier troops, the reinforcements, the town walkers, the guards and so on.

Now I guess that the culture selection feature from diplomacy needs to be changed so that it adds the player faction as possible choice.
The village recruitment has to be altered, too. My recruits should reflect my chosen culture.
My lords should only hire the troops from the culture I've selected.

Now, does someone have any ideas what to add? I'm not very good at programming, but that feature would really enhance the game experience of the mod I'm working on (OSPW - Native 1.127).
 
@Bismarck:
Did you tried the source code of Outpost yet? I tried but still fail.
http://forums.taleworlds.com/index.php/topic,80871.0.html

BTW, with recruit custom troop, I meet trouble, can you fix it?
http://forums.taleworlds.com/index.php/topic,127922.0.html
Edit: if I delete the red lines, this happen
mb_warband2010-08-0312-33-52-44.jpg
 
I followed the directions in the following spoilers and am unable to get this to work.

LtpLegend said:
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"

trp_imperial_levy Imperial_Levy Imperial_Levy 0 3145728 0 0 14 934 0
  477 0 671 0 169 0 171 0 165 0 317 0 297 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
  5 5 4 4 5 # This is Str, Agi, Int, Cha, Level
75 75 60 60 60 60 0 # This is weapon proficiency starting with one hand, two hand, pole-arm, archery, crossbow, throwing.
274 131072 0 17 0 0
  1 1315051091194281984 1835136 0 33286021831 7916447985573822463 2031036 0
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.

update_volunteer_troops_in_village -1
43 23 2 1224979098644774912 1 521 3 1224979098644774913 1224979098644774912 26 521 3 1224979098644774914 1224979098644774912 19 522 3 1224979098644774915 1224979098644774914 41 2204 2 1224979098644774916 1224979098644774912 4 0 33 3 1224979098644774916 432345564227567631 432345564227567637 522 3 1224979098644774915 1224979098644774916 41 5 0 31 2 1224979098644774916 432345564227567630 2133 2 1224979098644774915 360287970189640610 3 0 2133 2 1224979098644774917 1 2123 3 1224979098644774918 1224979098644774913 10 6 3 1224979098644774919 0 1224979098644774918 2136 3 1224979098644774920 0 100 2147483678 2 1224979098644774920 10 2136 3 1224979098644774920 0 2 1561 3 1224979098644774921 1224979098644774915 1224979098644774920 4 0 2147483680 2 1224979098644774921 0 1561 3 1224979098644774921 1224979098644774915 0 3 0 32 2 1224979098644774921 0 2105 2 1224979098644774917 1 2133 2 1224979098644774915 1224979098644774921 3 0 2133 2 1224979098644774922 7 4 0 30 2 1224979098644774913 5 2133 2 1224979098644774922 1224979098644774913 2108 2 1224979098644774922 2 2105 2 1224979098644774922 10 5 0 2147483678 2 1224979098644774913 0 2133 2 1224979098644774922 0 3 0 2107 2 1224979098644774922 3 2120 3 1224979098644774923 2 1224979098644774917 2108 2 1224979098644774922 1224979098644774923 2136 3 1224979098644774924 0 1224979098644774922 501 3 1224979098644774912 92 1224979098644774915 501 3 1224979098644774912 93 1224979098644774924
update_npc_volunteer_troops_in_village -1
23 23 2 1224979098644774912 1 521 3 1224979098644774913 1224979098644774912 19 522 3 1224979098644774914 1224979098644774913 41 2133 2 1224979098644774915 1 6 3 1224979098644774916 0 5 2136 3 1224979098644774917 0 100 2147483678 2 1224979098644774917 10 2136 3 1224979098644774917 0 2 1561 3 1224979098644774918 1224979098644774914 1224979098644774917 4 0 2147483680 2 1224979098644774918 0 1561 3 1224979098644774918 1224979098644774914 0 3 0 32 2 1224979098644774918 0 2105 2 1224979098644774915 1 2133 2 1224979098644774914 1224979098644774918 3 0 2133 2 1224979098644774919 12 2120 3 1224979098644774920 2 1224979098644774915 2108 2 1224979098644774919 1224979098644774920 2136 3 1224979098644774921 0 1224979098644774919 501 3 1224979098644774912 90 1224979098644774914 501 3 1224979098644774912 91 1224979098644774921

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

31 23 2 1224979098644774912 1 521 3 1224979098644774913 1224979098644774912 19 522 3 1224979098644774914 1224979098644774913 41 2204 2 1224979098644774915 1224979098644774912 4 0 33 3 1224979098644774915 432345564227567631 432345564227567637 522 3 1224979098644774914 1224979098644774915 41 5 0 31 2 1224979098644774915 432345564227567630 2133 2 1224979098644774914 360287970189640610 3 0 2133 2 1224979098644774916 1 6 3 1224979098644774917 0 5 2136 3 1224979098644774918 0 100 2147483678 2 1224979098644774918 10 2136 3 1224979098644774918 0 2 1561 3 1224979098644774919 1224979098644774914 1224979098644774918 4 0 2147483680 2 1224979098644774919 0 1561 3 1224979098644774919 1224979098644774914 0 3 0 32 2 1224979098644774919 0 2105 2 1224979098644774916 1 2133 2 1224979098644774914 1224979098644774919 3 0 2133 2 1224979098644774920 12 2120 3 1224979098644774921 2 1224979098644774916 2108 2 1224979098644774920 1224979098644774921 2136 3 1224979098644774922 0 1224979098644774920 501 3 1224979098644774912 90 1224979098644774914 501 3 1224979098644774912 91 1224979098644774922

3. Now navigate to "cf_reinforce_party -1" in scripts.txt
Replace the code under it with this exact code no editing.

34 21 1 1224979098644774912 2204 2 1224979098644774913 1224979098644774912 521 3 1224979098644774914 1224979098644774912 0 522 3 1224979098644774915 1224979098644774913 77 522 3 1224979098644774916 1224979098644774913 78 522 3 1224979098644774917 1224979098644774913 79 2133 2 1224979098644774918 0 2136 3 1224979098644774919 0 100 4 0 1073741855 2 1224979098644774914 3 31 2 1224979098644774914 2 4 0 2147483678 2 1224979098644774919 65 2133 2 1224979098644774918 1224979098644774915 5 0 2133 2 1224979098644774918 1224979098644774916 3 0 5 0 31 2 1224979098644774914 13 4 0 2147483678 2 1224979098644774919 50 2133 2 1224979098644774918 1224979098644774915 5 0 2147483678 2 1224979098644774919 75 2133 2 1224979098644774918 1224979098644774916 5 0 2133 2 1224979098644774918 1224979098644774917 3 0 5 0 3 0 4 0 32 2 1224979098644774918 0 1675 2 1224979098644774912 1224979098644774918 3 0

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.
Atamawood said:
New: These codes are the same thing as the stuff above but only how they appear in the .txt files with the numbers. So this will help you all that don't use the module system which I still recommend you getting into if your going to do any modding.

So first of all locate "cf_reinforce_party -1" in scripts.txt and replace the entire line with

34 21 1 1224979098644774912 2204 2 1224979098644774913 1224979098644774912 521 3 1224979098644774914 1224979098644774912 0 522 3 1224979098644774915 1224979098644774913 77 522 3 1224979098644774916 1224979098644774913 78 522 3 1224979098644774917 1224979098644774913 79 2133 2 1224979098644774918 0 2136 3 1224979098644774919 0 100 4 0 1073741855 2 1224979098644774914 3 31 2 1224979098644774914 2 4 0 2147483678 2 1224979098644774919 65 2133 2 1224979098644774918 1224979098644774915 5 0 2133 2 1224979098644774918 1224979098644774916 3 0 5 0 31 2 1224979098644774914 13 4 0 2147483678 2 1224979098644774919 50 2133 2 1224979098644774918 1224979098644774915 5 0 2147483678 2 1224979098644774919 75 2133 2 1224979098644774918 1224979098644774916 5 0 2133 2 1224979098644774918 1224979098644774917 3 0 5 0 3 0 4 0 32 2 1224979098644774918 0 1675 2 1224979098644774912 1224979098644774918 3 0

Then find "update_volunteer_troops_in_village -1" in scripts.txt and replace the entire line with

35 23 2 1224979098644774912 1 521 3 1224979098644774913 1224979098644774912 26 2204 2 1224979098644774914 1224979098644774912 522 3 1224979098644774915 1224979098644774914 41 2133 2 1224979098644774916 1 2123 3 1224979098644774917 1224979098644774913 10 6 3 1224979098644774918 0 1224979098644774917 2136 3 1224979098644774919 0 100 2147483678 2 1224979098644774919 10 2136 3 1224979098644774919 0 2 1561 3 1224979098644774920 1224979098644774915 1224979098644774919 4 0 2147483680 2 1224979098644774920 0 1561 3 1224979098644774920 1224979098644774915 0 3 0 32 2 1224979098644774920 0 2105 2 1224979098644774916 1 2133 2 1224979098644774915 1224979098644774920 3 0 2133 2 1224979098644774921 12 4 0 30 2 1224979098644774913 5 2133 2 1224979098644774921 1224979098644774913 2108 2 1224979098644774921 2 2105 2 1224979098644774921 10 5 0 2147483678 2 1224979098644774913 0 2133 2 1224979098644774921 0 3 0 2107 2 1224979098644774921 3 2120 3 1224979098644774922 2 1224979098644774916 2108 2 1224979098644774921 1224979098644774922 2136 3 1224979098644774923 0 1224979098644774921 501 3 1224979098644774912 92 1224979098644774915 501 3 1224979098644774912 93 1224979098644774923

Then right below that at "update_npc_volunteer_troops_in_village -1" replace the entire line with

23 23 2 1224979098644774912 1 2204 2 1224979098644774913 1224979098644774912 522 3 1224979098644774914 1224979098644774913 41 2133 2 1224979098644774915 1 6 3 1224979098644774916 0 5 2136 3 1224979098644774917 0 100 2147483678 2 1224979098644774917 10 2136 3 1224979098644774917 0 2 1561 3 1224979098644774918 1224979098644774914 1224979098644774917 4 0 2147483680 2 1224979098644774918 0 1561 3 1224979098644774918 1224979098644774914 0 3 0 32 2 1224979098644774918 0 2105 2 1224979098644774915 1 2133 2 1224979098644774914 1224979098644774918 3 0 2133 2 1224979098644774919 12 2120 3 1224979098644774920 2 1224979098644774915 2108 2 1224979098644774919 1224979098644774920 2136 3 1224979098644774921 0 1224979098644774919 501 3 1224979098644774912 90 1224979098644774914 501 3 1224979098644774912 91 1224979098644774921

Now exit scripts.txt and find menus.txt.

Here you need to add two things. You can add them at the bottom or perhaps with the other camp menu stuff or what ever you want to do.

Here is the camp_action, I added it with the other camp_actions

mno_action_change_troops  1 31 2 144115188075856605 1  Change_your_kingdom's_default_troops.  1 2060 1 864691128455135449  .

and the last part where it selects the faction

menu_camp_action_change_troops 0 Which_faction? none 0 7
mno_Swadian  0  Swadian.  9 502 3 432345564227567630 41 360287970189639715 502 3 432345564227567630 42 360287970189639716 502 3 432345564227567630 43 360287970189639717 502 3 432345564227567630 44 360287970189639718 502 3 432345564227567630 45 360287970189639724 502 3 432345564227567630 77 576460752303423524 502 3 432345564227567630 78 576460752303423525 502 3 432345564227567630 79 576460752303423526 2060 1 864691128455135255  .  mno_Vaegir  0  Vaegir.  9 502 3 432345564227567630 41 360287970189639729 502 3 432345564227567630 42 360287970189639730 502 3 432345564227567630 43 360287970189639734 502 3 432345564227567630 44 360287970189639735 502 3 432345564227567630 45 360287970189639738 502 3 432345564227567630 77 576460752303423527 502 3 432345564227567630 78 576460752303423528 502 3 432345564227567630 79 576460752303423529 2060 1 864691128455135255  .  mno_Khergit  0  Khergit.  9 502 3 432345564227567630 41 360287970189639743 502 3 432345564227567630 42 360287970189639744 502 3 432345564227567630 43 360287970189639745 502 3 432345564227567630 44 360287970189639746 502 3 432345564227567630 45 360287970189639747 502 3 432345564227567630 77 576460752303423530 502 3 432345564227567630 78 576460752303423531 502 3 432345564227567630 79 576460752303423532 2060 1 864691128455135255  .  mno_Nord  0  Nord.  9 502 3 432345564227567630 41 360287970189639753 502 3 432345564227567630 42 360287970189639754 502 3 432345564227567630 43 360287970189639755 502 3 432345564227567630 44 360287970189639756 502 3 432345564227567630 45 360287970189639757 502 3 432345564227567630 77 576460752303423533 502 3 432345564227567630 78 576460752303423534 502 3 432345564227567630 79 576460752303423535 2060 1 864691128455135255  .  mno_Rhodok  0  Rhodok.  9 502 3 432345564227567630 41 360287970189639766 502 3 432345564227567630 42 360287970189639767 502 3 432345564227567630 43 360287970189639768 502 3 432345564227567630 44 360287970189639769 502 3 432345564227567630 45 360287970189639770 502 3 432345564227567630 77 576460752303423536 502 3 432345564227567630 78 576460752303423537 502 3 432345564227567630 79 576460752303423538 2060 1 864691128455135255  .  mno_Sarranid  0  Sarranid.  9 502 3 432345564227567630 41 360287970189639779 502 3 432345564227567630 42 360287970189639780 502 3 432345564227567630 43 360287970189639785 502 3 432345564227567630 44 360287970189639787 502 3 432345564227567630 45 360287970189639788 502 3 432345564227567630 77 576460752303423539 502 3 432345564227567630 78 576460752303423540 502 3 432345564227567630 79 576460752303423541 2060 1 864691128455135255  .  mno_cancel  0  Cancel.  1 2060 1 864691128455135255  .

All I want is to get my player faction troop tree working, any help would be greatly appreciated.
 
Bismarck said:
Now I guess that the culture selection feature from diplomacy needs to be changed so that it adds the player faction as possible choice.
The village recruitment has to be altered, too. My recruits should reflect my chosen culture.
My lords should only hire the troops from the culture I've selected.

Now, does someone have any ideas what to add? I'm not very good at programming, but that feature would really enhance the game experience of the mod I'm working on (OSPW - Native 1.127).
Since I don't know the code for Diplomacy, I just lay down the idea.

- Culture selection: just add another menu option and set the culture to culture_7 (player's one).
- For recruitment and template: check the center faction, if it belong to your faction/you, then set the proper culture/faction. You might need to define new reinforcement templates for player faction.

If you want to, you can give me the related code (scripts/menu part), I can take a closer look.
 
I downloaded it from steam and I can't seem to find the module_troop folder...

Edit: I found the module_troop folder, but can't seem to find the system file where you said to put code after (faction_get_slot, ":volunteer_troop", ":center_culture", slot_faction_tier_1_troop),

Edit: Found that folder, did all the steps, but a bug occured. After 72 game hours, I went to attempt to recruit my soldiers from a town. It gave an odd bug about 'one the town is indifferent to you wishes to join you' and crashed the game. I removed all the code I added and that fixed it, but I want the soldiers...
 
Back
Top Bottom