Own kingdom's trooptree, problems getting it into the game

正在查看此主题的用户

I use the morgh's editing tool.
This is how it looks in the tool:

Afbeelding1-4.jpg




This is the text file:

trp_player_faction_peasant Rohan_Peasant Rohan_Peasant 0 2097152 0 0 16 973 979
  464 0 394 0 368 0 539 0 518 0 315 0 232 0 240 0 241 0 171 0 165 0 314 0 644 0 642 0 643 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
  7 5 4 4 4
60 60 60 60 60 60 0
274 131072 0 1 0 0
  1 1315051091194281984 1835136 0 33286021831 7916447985573822463 2031036 0

trp_player_faction_levy Rohan_Levy Rohan_Levies 0 36700160 0 0 16 974 976
  468 0 518 0 317 0 308 0 313 0 170 0 165 0 722 0 720 0 250 0 759 0 643 0 642 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
  7 5 4 4 9
75 75 75 75 75 75 0
274 131072 0 1 0 0
  17179869185 1315051091194281984 1835136 0 50465891015 7916447985573822463 2031036 0

trp_player_faction_footman Rohan_Footman Rohan_Footmen 0 36700160 0 0 16 975 0
  478 0 519 0 250 0 253 0 170 0 313 0 325 0 412 0 442 0 720 0 722 0 248 0 759 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
  7 5 4 4 14
105 85 95 0 0 0 0
274 131072 0 545 69632 0
  17179869185 1315051091194281984 1835136 0 50465891015 7916447985573822463 2031036 0 

trp_player_faction_infantry Rohan_Infantry Rohan_Infantry 0 40894464 0 0 16 0 0
  409 0 520 0 169 0 324 0 329 0 441 0 444 0 160 0 174 0 749 0 768 0 777 0 635 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
  7 5 4 4 20
125 105 115 0 0 0 0
274 131072 0 819 139264 0
  34359738369 1315051091194281984 1835136 0 50465891015 7916447985573822463 2031036 0

trp_player_faction_hunter Rohan_Hunter Rohan_Hunter 0 70254592 0 0 16 977 0
  155 0 556 0 555 0 384 0 368 0 518 0 170 0 313 0 308 0 325 0 759 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
  7 5 4 4 14
80 80 80 80 80 80 0
274 131072 0 3 65568 0
  17179869185 1315051091194281984 1835136 0 33286021831 7916447985573822463 2031036 0 

trp_player_faction_bowman Rohan_Bowman Rohan_Bowmen 0 70254592 0 0 16 978 0
  434 0 519 0 169 0 158 0 466 0 386 0 387 0 391 0 159 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
  7 5 4 4 19
110 90 100 0 100 0 0
274 131072 0 19 65536 0
  17179869185 1315051091194281984 1835136 0 50465891015 7916447985573822463 2031036 0 

trp_player_faction_archer Rohan_Archer Rohan_Archers 0 74449920 0 0 16 0 0
  155 0 151 0 557 0 436 0 520 0 169 0 327 0 160 0 604 0 821 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
  15 5 4 4 14
120 100 110 0 130 0 0
274 131072 0 33 69680 0
  34359738369 1315051091194281984 1835136 0 67645760199 7916447985573822463 2031036 0 

trp_player_faction_light_cavalry Rohan_light_Cavalry Rohan_light_Cavalry 0 57672704 0 0 16 980 0
  483 0 435 0 438 0 522 0 169 0 327 0 324 0 329 0 148 0 733 0 722 0 148 0 148 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
  7 5 4 4 19
120 100 110 0 0 0 0
274 131072 0 517 143360 0
  17179869185 1315051091194281984 1835136 0 50465891015 7916447985573822463 2031036 0 

trp_player_faction_rohirrim Rohirrim Rohirrim 0 66061312 0 0 16 0 0
  484 0 410 0 379 0 523 0 174 0 177 0 360 0 363 0 357 0 148 0 149 0 160 0 161 0 735 0 148 0 148 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
  7 5 4 4 24
150 130 140 0 0 0 0
274 131072 0 773 278528 0
  34359738369 1315051091194281984 1835136 0 67645760199 7916447985573822463 2031036 0



This is all I've done, working in the troop.txt file. No other files. When I go ingame, and recruit people in my own kingdom's villages they still are the standard units. I've tried it in warband native and different mods. Notting works.

I would appriciate all help.
Thank you,

William
 
I'm no expert, but have you done this yet?

http://forums.taleworlds.com/index.php/topic,111689.0.html

Hope it helps... it worked for me.
 
That'll be the missing key!

I thought I saw something like that but couldn't find it anymore.

Thanx a lot, I'll be trying it right away.
 
Did you try the quick version (ie, modifying the "scripts.txt" file), or did you use the module system?

I recommend using the module system and altering "module_scripts.py", as the units I created weren't located where the tutorial said they'd be, and I had to do a fair bit of searching to make it all work. Not to mention that with the python files, you're looking at words instead of random numbers.

Sorry I can't be of more help... this is literally my second day of modding.
 
I_am_a_Spoon 说:
Did you try the quick version (ie, modifying the "scripts.txt" file), or did you use the module system?

I recommend using the module system and altering "module_scripts.py", as the units I created weren't located where the tutorial said they'd be, and I had to do a fair bit of searching to make it all work. Not to mention that with the python files, you're looking at words instead of random numbers.

Sorry I can't be of more help... this is literally my second day of modding.

Thanx for the help, the troops are ready, but it seems my kingdom isn't accepted. Well, than I'll just conquer my current faction and change their trooptree for mine (same amount of units). If i keep the troop_ID it's all right and works.
Now trying with the movable borders so i can recruit them in my entire territory and not only home-territory.
 
后退
顶部 底部